RFR: 8318757: VM_ThreadDump asserts in interleaved ObjectMonitor::deflate_monitor calls [v5]

Aleksey Shipilev shade at openjdk.org
Fri Nov 10 12:59:03 UTC 2023


On Fri, 10 Nov 2023 02:38:09 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Done
>
> It still might eliminate locking due to the empty block.

Yes, I agree with David. Look how other monitor inflation tests do this, we call `wait()` to guarantee both inflation (although it is partially handled by `LockingMode=0` here) and escaping to native call thus avoiding aggressive compiler opts.
 https://github.com/openjdk/jdk/blob/6b21ff61dad6f633c744c1c33c29ea86183b509d/test/hotspot/jtreg/runtime/Monitor/DeflationIntervalsTest.java#L132-L140

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16519#discussion_r1389360096


More information about the hotspot-dev mailing list