Skip to content

Use atomics to reduce contention within failover invaldator.#5526

Merged
headius merged 1 commit intojruby:masterfrom
headius:reduce_global_contention
Dec 17, 2018
Merged

Use atomics to reduce contention within failover invaldator.#5526
headius merged 1 commit intojruby:masterfrom
headius:reduce_global_contention

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.

2 participants