On Wed, 25 Nov 2026 12:53:36 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/9f58816e...f2014652
>
> test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreads.java line 687:
> 
>> 685:             } catch (Throwable e) {
>> 686:                 fail(e);
>> 687:             }
> 
> Q: Are the exception thrown at lines 633 and 686 propagated to the JUnit test 
> thread?

If join were to throw, without waiting for the target thread then awaitWaiting 
would assert. We could capture the exception but maybe simpler to just print 
the stack trace in joinerThread, it will be in the logs when the main asserts 
(and causes the test to fail).

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/33659#discussion_r4696196441

Reply via email to