Skip to content

Get the previous owner only when contended monitor enter is hooked - #23593

Merged
gacholio merged 1 commit into
eclipse-openj9:masterfrom
hangshao0:monEnt
Apr 17, 2026
Merged

gacholio merged 1 commit into
eclipse-openj9:masterfrom
hangshao0:monEnt

Conversation

@hangshao0

Copy link
Copy Markdown
Contributor

No description provided.

@hangshao0
hangshao0 marked this pull request as ready for review March 27, 2026 13:29
@hangshao0
hangshao0 requested a review from tajila March 27, 2026 13:29
@hangshao0

Copy link
Copy Markdown
Contributor Author

@tajila Could you please review this ?

Comment thread runtime/vm/ObjectMonitor.cpp Resolved
@hangshao0

Copy link
Copy Markdown
Contributor Author

If we are concerned about the perf of vmThreadListMutex, I have removed the code to acquire vmThreadListMutex. We should at least only attempt to get the previous owner when contended monitor enter event is hooked. The previous owner is not used if the event is not hooked. Hopefully this will minimize the chance the original crash occurs.

@hangshao0 hangshao0 changed the title Acquire ThreadListMutex when getting the previous monitor owner Get the prevous owner only when contened monitor enter is hooked Apr 15, 2026
@hangshao0 hangshao0 changed the title Get the prevous owner only when contened monitor enter is hooked Get the prevous owner only when contended monitor enter is hooked Apr 15, 2026
@tajila

tajila commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity alinux64 jdk17,jdk21

@tajila

tajila commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

jenkins test extended.functional plinux jdk17

Comment thread runtime/vm/ObjectMonitor.cpp Resolved
@hangshao0

Copy link
Copy Markdown
Contributor Author

Failure in the PR build is not related to this PR. All other PR builds passed.

Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
@hangshao0 hangshao0 changed the title Get the prevous owner only when contended monitor enter is hooked Get the previous owner only when contended monitor enter is hooked Apr 17, 2026
@tajila

tajila commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

jenkins compile alinux64 jdk17

@gacholio
gacholio merged commit 8725a91 into eclipse-openj9:master Apr 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants