RFR: 8356222: Thread.print command reports waiting on the Class initialization monitor for both carrier and virtual threads [v2]
Alex Menkov
amenkov at openjdk.org
Wed May 28 01:27:51 UTC 2025
On Sat, 24 May 2025 08:08:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> feedback
>
> test/hotspot/jtreg/serviceability/dcmd/thread/ClassInitMonitorVThread.java line 71:
>
>> 69: Thread vthread2 = Thread.ofVirtual().name("Loader2").start(new Loader(loaderReady));
>> 70: loaderReady.await();
>> 71: Thread.sleep(100);
>
> How reliable is this? With a debug build and -Xcomp/other options, then this might not long enough to observe "Loader 2" waiting for the class initializer.
I updated the test to do several retries. I think 20 seconds is enough for any build/options
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25367#discussion_r2110665847
More information about the serviceability-dev
mailing list