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

Use atomics to reduce contention within failover invaldator. #5526

Merged
merged 1 commit into from Dec 17, 2018

Conversation

headius
Copy link
Member

@headius headius commented Dec 17, 2018

Instead of locking around updates to the switchpoint and failure
count, this patch replaces those fields with a stamped atomic
reference that can update both atomically.

Fixes #5525.

Instead of locking around updates to the switchpoint and failure
count, this patch replaces those fields with a stamped atomic
reference that can update both atomically.

Fixes jruby#5525.
@headius headius merged commit 7f44f30 into jruby:master Dec 17, 2018
@headius headius deleted the reduce_global_contention branch December 17, 2018 22:08
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.

None yet

2 participants