On Mon, 5 Jun 2023 21:55:02 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:

> The test fails because it tries to determine the main debuggee thread by 
> allowing it run until the debuggee class is loaded (it waits for the 
> ClassPrepareEvent). Normally this would be done on the main debuggee thread. 
> However, when using virtual threads, the main thread has yet to spawn the 
> virtual thread to run the test on. The test is fixed by instead just waiting 
> until the debuggee main method is entered.
> 
> Tested by running the test locally with and without the virtual test thread 
> wrapper, and also all of tier1 plus tier5 svc tests.

This pull request has now been integrated.

Changeset: 16ab7bfe
Author:    Chris Plummer <cjplum...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/16ab7bfe22b96ec8c4b7b7197d55fa41d36e3875
Stats:     7 lines in 2 files changed: 1 ins; 1 del; 5 mod

8309505: com/sun/jdi/MethodEntryExitEvents.java due to finding wrong main thread

Reviewed-by: amenkov, sspitsyn

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

PR: https://git.openjdk.org/jdk/pull/14322

Reply via email to