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

Conversation

Projects
None yet
3 participants
@ahorek
Copy link
Contributor

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;
}
pavel

@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

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
You can’t perform that action at this time.