[master] RFR: Add some inlining and avoid CAS for quick_enter for lightweight locking.
Coleen Phillimore
coleenp at openjdk.org
Tue Jul 2 14:24:33 UTC 2024
On Mon, 1 Jul 2024 20:18:48 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
> 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.
Thank you for your comments, Axel.
-------------
PR Review: https://git.openjdk.org/lilliput/pull/187#pullrequestreview-2154002470
More information about the lilliput-dev
mailing list