RFR: 8318757: VM_ThreadDump asserts in interleaved ObjectMonitor::deflate_monitor calls [v5]
Stefan Karlsson
stefank at openjdk.org
Thu Nov 9 07:29:17 UTC 2023
On Thu, 9 Nov 2023 01:26:21 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> test/hotspot/jtreg/runtime/Monitor/ConcurrentDeflation.java line 69:
>>
>>> 67:
>>> 68: static private void createMonitors() {
>>> 69: Object[] monitors = new Object[1000];
>>
>> Since `monitors` is local to this static function, if the test runs for long
>> enough, then C2 might optimize away all those monitors...
>>
>> I usually ask @vnkozlov about the best way to keep that from happening.
>
> Yeah make the array a static field.
Done
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16519#discussion_r1387581814
More information about the hotspot-dev
mailing list