JDK 24 |
---|
24 b04Fixed |
CSR :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
JDK-8331076 :
|
Having selection of locking modes for a user to pick in order to choose how HotSpot internally implements object synchronization is not something we should provide. This flag was introduced in JDK 21 so should not be in widespread use. HotSpot has recently changed the internal implementation of LockingMode to LM_LIGHTWEIGHT from LM_LEGACY. LM_LEGACY is an internal locking mode that is incompatible with newer changes to HotSpot, like Compact Object Headers: JDK-8294992. This RFE also is to deprecate LM_LEGACY and LM_MONITOR LockingMode selections, and reintroduce (revert) the UseHeavyMonitors option as a develop flag, rather than a diagnostic flag. If the performance of this is too bad in production, it's not really a good workaround option that we can give to a customer. And it's too slow to regularly test, and not well tested to date. Needs CSR.
|