On Wed, 21 May 2025 20:35:33 GMT, Alex Menkov <amen...@openjdk.org> wrote:
> The change fixes "Thread.print" diagnostic command when mounted virtual > thread is waiting on the class initialization monitor. > > Testing: new test, tier1 sanity run 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. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25367#discussion_r2105754084