Skip to content

(v0.51.0) Redesign preparePinnedVirtualThreadForUnmount logic #21514

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

Merged

Conversation

fengxue-IS
Copy link
Contributor

Remove use of objectMonitorInflate on lock that current thread doesn't own. Change to use of FLC bit to signal owner thread to inflate the monitor when it exits the monitor.

Use CAS operation to ensure only one thread can update the lockword flag bits to contended flatlock and ignore current lock learning state.

Lock reservation is cancelled before inflation/FLC bit set.

backport of #21459

Remove use of objectMonitorInflate on lock that current thread doesn't own.
Change to use of FLC bit to signal owner thread to inflate the monitor
when it exits the monitor.

Use CAS operation to ensure only one thread can update the lockword flag bits
to contended flatlock and ignore current lock learning state.

Lock reservation is cancelled before inflation/FLC bit set.

Signed-off-by: Jack Lu <[email protected]>
@fengxue-IS fengxue-IS requested a review from babsingh March 28, 2025 14:20
@babsingh babsingh merged commit 5a018cd into eclipse-openj9:v0.51.0-release Mar 28, 2025
2 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