-
Notifications
You must be signed in to change notification settings - Fork 737
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
Recognize Thread.onSpinWait() on Power #20907
Conversation
@zl-wang Can you take a look at this when you get the chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jenkins test sanity plinux,aix jdk8,jdk23 |
This PR depends on an OMR PR to implement the yield instruction. The build failed for that reason. |
Thread.onSpinWait() is a yield instruction on Power. The method is recognized and inlined into JIT code. Original behavior can be restored by setting the TR_noPauseOnSpinWait environment variable. Signed-off-by: jimmyk <[email protected]>
Jenkins test sanity plinux,aix jdk8,jdk23 |
@zl-wang |
Jenkins test sanity plinux,aix jdk8,jdk23 |
1 similar comment
Jenkins test sanity plinux,aix jdk8,jdk23 |
Failing test is:
|
Thread.onSpinWait()
is ayield
instruction on Power. The method is recognized and inlined into JIT code.Original behavior can be restored by setting the
TR_noPauseOnSpinWait
environment variable.Edit:
Depends on eclipse-omr/omr#7604
The OMR PR needs to be merged first since it implements the properties of the
yield
instruction.