[master] RFR: Add some inlining and avoid CAS for quick_enter for lightweight locking. [v2]
Coleen Phillimore
coleenp at openjdk.org
Tue Jul 2 20:14:41 UTC 2024
On Tue, 2 Jul 2024 14:44: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.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
>
> Axel review comments.
Thanks Axel for the review.
-------------
PR Comment: https://git.openjdk.org/lilliput/pull/187#issuecomment-2204303653
More information about the lilliput-dev
mailing list