[master] RFR: Add some inlining and avoid CAS for quick_enter for lightweight locking.
Coleen Phillimore
coleenp at openjdk.org
Mon Jul 1 20:22:58 UTC 2024
This is sort of a simple change to inline the code that decides to go to LightweightSynchronizer in case the call has some negative effects for performance sensitive code. Avoiding the CAS in try_enter was the most helpful. With perf, I found that the CAS had a longer stall than with the code without the OM world refactoring. The OM world table is off for this comparison.
Tested with tier1-4, including some local changes to run tier1 tests with -XX:+UseObjectMonitorTable.
-------------
Commit messages:
- Add some inlining and avoid CAS for quick_enter for lightweight locking.
Changes: https://git.openjdk.org/lilliput/pull/187/files
Webrev: https://webrevs.openjdk.org/?repo=lilliput&pr=187&range=00
Stats: 151 lines in 9 files changed: 89 ins; 34 del; 28 mod
Patch: https://git.openjdk.org/lilliput/pull/187.diff
Fetch: git fetch https://git.openjdk.org/lilliput.git pull/187/head:pull/187
PR: https://git.openjdk.org/lilliput/pull/187
More information about the lilliput-dev
mailing list