Repository navigation
[ISSUE #68] Wake segment waiters when a drained refill finishes - #69
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #68
Step 13. Signal stock changes and successful completion under the switching lock. A caller waiting after the last delivered segment was drained can request the next refill within its original deadline. An empty or failed delivery does not create a busy retry loop.
Validation
A deterministic two-generation in-memory regression drained the only segment before releasing its provider, observed exactly one refill owner, and returned unique IDs 1 and 2 without timing out. Core, SDK and benchmark reactor passed. Re-ran the formerly failing 8-thread refill JMH on JDK 25: two forks, 2 x 1 s warmup and 3 x 2 s measurements each, GC profiler, 256–512 MiB heap. All six measured samples completed (2.570/2.393/2.389 and 2.354/2.293/1.927 million ops/s); no benchmark exceptions.