On Wed, 25 Nov 2026 13:00:56 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/079edc3e...f2014652 > > test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java line 695: > >> 693: try { >> 694: String scopeId = Objects.toIdentityString(scope); >> 695: > > Q: Would it better to move lines 690-691 to the beginning of the try block > (staring at line 693)? > Then the finally block at lines 710-713 would handle failures and > interruptions. If the thread were to terminate then awaitWaiting will assert. If the code/test had a bug and it hangs here then the test will be interrupted by the timeout. There are 3 threads in the picture here (needed to create the scenario in the first place) and I'll see if I can make this easier to understand. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/33659#discussion_r4696062989
