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

synchronize RubyHash#iteratorExitSync #5409

Merged
merged 1 commit into from Nov 13, 2018
Merged

synchronize RubyHash#iteratorExitSync #5409

merged 1 commit into from Nov 13, 2018

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Nov 3, 2018

I think iteratorExitSync should be synchronized like iteratorEntrySync?

private volatile int iteratorCount;

private synchronized void iteratorEntrySync() {
    ++iteratorCount;
}
private void iteratorExitSync() {
    --iteratorCount;
}
@ahorek ahorek changed the title synchronize iteratorExitSync synchronize RubyHash#iteratorExitSync Nov 3, 2018
@kares kares merged commit 6daddcc into jruby:master Nov 13, 2018
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@kares kares added this to the JRuby 9.2.4.0 milestone Nov 13, 2018
@enebo enebo modified the milestones: JRuby 9.2.4.0, JRuby 9.2.5.0 Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants