Skip to content
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

ShadowPagingRegion: improve concurrency #761

Open
wants to merge 2 commits into
base: MC_1.12
Choose a base branch
from

Conversation

DaMatrix
Copy link
Member

@DaMatrix DaMatrix commented Nov 6, 2022

reads will now never* block, even with concurrent writes. writes will only block while waiting for the previous group of reads to complete, or while waiting for a previous write to complete.

i'd like some code review on this one, i've double-checked this more times than i care to count and i haven't encountered any issues in testing, but i'd still like a second opinion before this is merged.

*reads will block if there is a concurrent write doing writeSpecial, however this is completely irrelevant as writeSpecial is never actually used.

reads will never* block, even with concurrent writes. writes will only block while waiting for the previous group of reads to complete, or while waiting for a previous write to complete.

*reads will block if there is a concurrent write doing writeSpecial, however this is completely irrelevant as writeSpecial is never actually used.
@DaMatrix DaMatrix requested a review from Barteks2x November 6, 2022 16:31
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.

1 participant