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 #803

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

babsingh
Copy link
Member

@babsingh babsingh commented Jun 11, 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

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

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

babsingh commented Jun 11, 2024

Started a personal build on amac and alinux to verify these changes. This build covers the following test suites: sanity.functional, sanity.openjdk, and extended.openjdk.

@babsingh
Copy link
Member Author

babsingh commented Jun 11, 2024

Only infra and known failures are seen in the personal build.

In a grinder for the CloseAndAvailableRC test, the failure manifested 9/50 times in a grinder; see eclipse-openj9/openj9#19598 (comment). With this fix, a 200x grinder on alinux and amac passes with no failures.

@babsingh babsingh marked this pull request as ready for review June 11, 2024 16:44
@babsingh babsingh requested a review from tajila June 11, 2024 16:45
@tajila
Copy link
Member

tajila commented Jun 13, 2024

jenkins test sanity zlinux jdknext

@tajila tajila merged commit 4d114f5 into ibmruntimes:openj9 Jun 18, 2024
5 checks passed
@tajila
Copy link
Member

tajila commented Jun 18, 2024

@babsingh Please open backports

babsingh added a commit to babsingh/openj9-openjdk-jdk21 that referenced this pull request Jun 18, 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

Backport of ibmruntimes/openj9-openjdk-jdk#803

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
babsingh added a commit to babsingh/openj9-openjdk-jdk22 that referenced this pull request Jun 18, 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

Backport of ibmruntimes/openj9-openjdk-jdk#803

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
babsingh added a commit to babsingh/openj9-openjdk-jdk21 that referenced this pull request Jun 18, 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

Backport of ibmruntimes/openj9-openjdk-jdk#803

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
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.

2 participants