Skip to content

Fix maxSpinThreads accounting in ObjectMonitor - #24405

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
babsingh:main4
Jul 24, 2026
Merged

Fix maxSpinThreads accounting in ObjectMonitor#24405
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
babsingh:main4

Conversation

@babsingh

Copy link
Copy Markdown
Contributor

Replace the non-atomic check-and-increment of spinThreads with
a compare-and-swap loop.

This prevents concurrent threads from exceeding maxSpinThreads
while reserving slots in the try-enter spin path and aligns the
implementation with the corresponding OMR monitor fix.

Related: eclipse-omr/omr#7878

Replace the non-atomic check-and-increment of spinThreads with
a compare-and-swap loop.

This prevents concurrent threads from exceeding maxSpinThreads
while reserving slots in the try-enter spin path and aligns the
implementation with the corresponding OMR monitor fix.

Related: eclipse-omr/omr#7878

Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
@babsingh
babsingh requested a review from keithc-ca July 23, 2026 16:58
@babsingh

Copy link
Copy Markdown
Contributor Author

@keithc-ca Requesting your review.

@keithc-ca

Copy link
Copy Markdown
Contributor

Jenkins test sanity amac,plinux jdk25

@keithc-ca

Copy link
Copy Markdown
Contributor

The failure in sanity.functional on ppc64le appears to be #24389.
The failure in sanity.openjdk on ppc64le is in DateFormatProviderTest which seems unrelated to this change.

@keithc-ca
keithc-ca merged commit fca7001 into eclipse-openj9:master Jul 24, 2026
7 of 10 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.

2 participants