Skip to content

Fix ShardedStackBase::refill to properly use CAS#7

Merged
vadimskipin merged 1 commit intomainfrom
vskipin/sharded-stack-fix
May 6, 2026
Merged

Fix ShardedStackBase::refill to properly use CAS#7
vadimskipin merged 1 commit intomainfrom
vskipin/sharded-stack-fix

Conversation

@vadimskipin
Copy link
Copy Markdown
Collaborator

The code is too optimistic, but it should not be. Slow path must use a proper CAS to be correct.
This change also fixes a problem with an incorrect counter.

@vadimskipin vadimskipin merged commit c72e297 into main May 6, 2026
14 checks passed
@vadimskipin vadimskipin deleted the vskipin/sharded-stack-fix branch May 6, 2026 18:02
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