Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Fix race condition issue reported in #24 #25

Merged
merged 1 commit into from Jun 22, 2018
Merged

Conversation

samstarling
Copy link
Owner

The chaining of two getOrElseUpdate calls could result in two separate threads attempting to register the same counter. Widening the scope of the synchronised section should remedy this.

Thanks to @seanbrant for reporting this.

The chaining of two getOrElseUpdate calls could result in two separate threads
attempting to register the same counter. Widening the scope of the
synchronised section should remedy this.
@seanbrant
Copy link

💯

@samstarling samstarling merged commit 38ea5ba into master Jun 22, 2018
@samstarling samstarling deleted the race-condition branch June 22, 2018 13:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants