[master] RFR: Add some inlining and avoid CAS for quick_enter for lightweight locking. [v2]

Coleen Phillimore coleenp at openjdk.org
Tue Jul 2 14:44:48 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.

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Axel review comments.

-------------

Changes:
  - all: https://git.openjdk.org/lilliput/pull/187/files
  - new: https://git.openjdk.org/lilliput/pull/187/files/fb00e8dd..063a1e36

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=lilliput&pr=187&range=01
 - incr: https://webrevs.openjdk.org/?repo=lilliput&pr=187&range=00-01

  Stats: 34 lines in 3 files changed: 0 ins; 14 del; 20 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