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

Acquire interruptLock for interruptImpl and isInterruptedImpl #10

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

babsingh
Copy link
Member

@babsingh babsingh commented Jul 8, 2024

interruptImpl and isInterruptedImpl use the eetop/threadRef value.
Acquiring interruptLock assures that the eetop/threadRef value won't
change during interruptImpl and isInterruptedImpl. This will prevent
crashes which happen when a stale eetop/threadRef value is used to
invoke OMR thread library functions.

Related: eclipse-openj9/openj9#19544
Related: eclipse-openj9/openj9#19598
Related: eclipse-openj9/openj9#19816

Backport of ibmruntimes/openj9-openjdk-jdk#803

interruptImpl and isInterruptedImpl use the eetop/threadRef value.
Acquiring interruptLock assures that the eetop/threadRef value won't
change during interruptImpl and isInterruptedImpl. This will prevent
crashes which happen when a stale eetop/threadRef value is used to
invoke OMR thread library functions.

Related: eclipse-openj9/openj9#19544
Related: eclipse-openj9/openj9#19598
Related: eclipse-openj9/openj9#19816

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
Copy link
Member Author

babsingh commented Jul 8, 2024

@pshipton is away today. @tajila This PR addresses eclipse-openj9/openj9#19816.

@tajila
Copy link
Member

tajila commented Jul 8, 2024

is this a backport?

@babsingh
Copy link
Member Author

babsingh commented Jul 8, 2024

is this a backport?

Yes, it is a backport of ibmruntimes/openj9-openjdk-jdk#803. The fix was pushed around the same time when the JDK23 extensions repo was created; I was expecting the JDK23 repo to pick up the fix from the JDK-next repo during creation, but it didn't happen.

@tajila
Copy link
Member

tajila commented Jul 8, 2024

jenkins test sanity alinux64 jdk23

@pshipton pshipton merged commit 8b9d0dd into ibmruntimes:openj9 Jul 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants