On Wed, 25 Nov 2026 12:47:35 GMT, Serguei Spitsyn <[email protected]> wrote:
>> Alan Bateman has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains 14 additional >> commits since the last revision: >> >> - Address review comments >> - Merge branch 'master' into JDK-8394915 >> - Merge branch 'master' into JDK-8394915 >> - Merge branch 'master' into JDK-8394915 >> - Merge branch 'master' into JDK-8394915 >> - Escape thread name in plain thread dump >> - cpuTime cleanup >> - Merge branch 'master' into JDK-8394915 >> - Merge branch 'master' into JDK-8394915 >> - Add cpuTime >> - ... and 4 more: https://git.openjdk.org/jdk/compare/8aaffcca...f2014652 > > test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java line 681: > >> 679: try (var scope = StructuredTaskScope.open()) { >> 680: queue.put(scope); >> 681: scope.fork(() -> LockSupport.park()); > > Q: Is it reliable enough to use `LockSupport.park()` at 681? Can it return > spuriously? Same applies to the line 765. This is forking a virtual thread and I can't think of any cases where the parking permit would be set (causing the thread to not park). There are 20+ other tests for virtual threads that do the same so if we had an issue then there would be failures elsewhere too. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33659#discussion_r4695909388
