[master] Integrated: Add some inlining and avoid CAS for quick_enter for lightweight locking.
Coleen Phillimore
coleenp at openjdk.org
Tue Jul 2 20:14:41 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.
This pull request has now been integrated.
Changeset: fdfcf46a
Author: Coleen Phillimore <coleenp at openjdk.org>
URL: https://git.openjdk.org/lilliput/commit/fdfcf46a3a4bfcf0f58f9413788aed8acc746203
Stats: 127 lines in 9 files changed: 75 ins; 34 del; 18 mod
Add some inlining and avoid CAS for quick_enter for lightweight locking.
Reviewed-by: aboldtch
-------------
PR: https://git.openjdk.org/lilliput/pull/187
More information about the lilliput-dev
mailing list