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

Add missing barriers to jProfiling helpers #7964

Merged

Conversation

aviansie-ben
Copy link
Contributor

Previously, the tryLock and unlock methods on the jProfiling hash table
implementation did not contain any read or write barriers. While this is
fine on architectures such as x86-64, this causes problems with the weak
memory model used in Power. Failing to include the barriers could allow
reordering of memory accesses to cause incorrect behaviour with
unpredictable results.

Signed-off-by: Ben Thomas ben@benthomas.ca

Previously, the tryLock and unlock methods on the jProfiling hash table
implementation did not contain any read or write barriers. While this is
fine on architectures such as x86-64, this causes problems with the weak
memory model used in Power. Failing to include the barriers could allow
reordering of memory accesses to cause incorrect behaviour with
unpredictable results.

Signed-off-by: Ben Thomas <ben@benthomas.ca>
@andrewcraik
Copy link
Contributor

Jenkins test sanity all jdk8,jdk11

@andrewcraik
Copy link
Contributor

Jenkins test sanity osx jdk11

@andrewcraik
Copy link
Contributor

Sanity full passed merging

@andrewcraik andrewcraik merged commit 6789ff8 into eclipse-openj9:master Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants