RFR: 8370636: com/sun/jdi/TwoThreadsTest.java should wait for completion of all threads

Serguei Spitsyn sspitsyn at openjdk.org
Tue Oct 28 00:43:01 UTC 2025


On Fri, 24 Oct 2025 20:20:14 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Test 
> com/sun/jdi/TwoThreadsTest.java 
> start new threads using DebuggeeWrapper.newThread()
> and exit immediately.
> 
> It is needed to jon() threads so test really works for virtual threads.
> 
> I looked on other threads that use DebuggeeWrapper.newThread(). Seems most of them already updated to join spawned threads.
> 
> Tested by running test on all platfrom with and wihtout virtual threads.

Looks good.

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

Marked as reviewed by sspitsyn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27982#pullrequestreview-3386075370


More information about the serviceability-dev mailing list