Skip to content

Refactor Ports.fetch_port to avoid locking the cache where possible #13321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 26, 2021

This is in service of improving support for FROZEN_CACHE and is needed
as part of #13316.

The logic here mirrors the lock in cache.get() where we first attempt to
verify the contents of the cache without holding the lock and early out
in the common case the what we want is already here.

@sbc100 sbc100 requested a review from kripken January 26, 2021 13:09
This is in service of improving support for FROZEN_CACHE and is needed
as part of #13316.

The logic here mirrors the lock in cache.get() where we first attempt to
verify the contents of the cache without holding the lock and early out
in the common case the what we want is already here.
@sbc100 sbc100 force-pushed the avoid_cache_lock_ports branch from c386b6c to 8905799 Compare January 26, 2021 13:12
@sbc100 sbc100 merged commit f58f42b into master Jan 26, 2021
@sbc100 sbc100 deleted the avoid_cache_lock_ports branch January 26, 2021 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants