RFR: 8307532: Implement LM_LIGHTWEIGHT for Zero
Roman Kennke
rkennke at openjdk.org
Fri Sep 27 15:21:07 UTC 2024
This implements the remaining parts of LW locking in Zero. Much of the work has already been done by Axel, this basically only implements the missing part that handles synchronized JNI entries. I basically preserved the LM_LEGACY case, except that I shuffled the code a little to match what we do in monitorexit case in bytecodeInterpreter.cpp (but should be functionally equivalent). The LM_LIGHTWEIGHT and LM_MONITOR case (the latter of which has been broken, before) simply call into the runtime.
With this change, we can now remove the block in arguments.cpp that deals with missing LM_LIGHTWEIGHT support.
Testing:
- [x] bootcycle-images
-------------
Commit messages:
- 8307532: Implement LM_LIGHTWEIGHT for Zero
Changes: https://git.openjdk.org/jdk/pull/21220/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21220&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8307532
Stats: 35 lines in 3 files changed: 4 ins; 16 del; 15 mod
Patch: https://git.openjdk.org/jdk/pull/21220.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21220/head:pull/21220
PR: https://git.openjdk.org/jdk/pull/21220
More information about the hotspot-dev
mailing list