8309397: com/sun/jdi/JdbXXX tests fail due to not being run with -Djdk.trackAllThreads #14293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The com/sun/jdi/JdbXXX tests rely on the jdb "threads" command output to find the main thread. If it is a virtual thread, it will not be included in the "threads" output unless the debuggee is run with -Djdk.trackAllThreads, so we need to make sure to include this option when launching the debuggee. The following tests are impacted.
com/sun/jdi/JdbMethodExitTest.java
com/sun/jdi/JdbStepTest.java
com/sun/jdi/JdbStopThreadTest.java
com/sun/jdi/JdbStopThreadidTest.java
Note that all these tests also fail due to JDK-8309334, which needs to be fixed first. Also JdbMethodExitTest.java will fail due to JDK-8309396, which should be fixed after this CR.
I've tested with mach5 tier5 in a workspace that has integrated the various CRs mentioned. Once JDK-8309334 is fixed, before integrating this PR I'll first merge and verify that the 3 tests being removed from the problem list by this PR also pass.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14293/head:pull/14293
$ git checkout pull/14293
Update a local copy of the PR:
$ git checkout pull/14293
$ git pull https://git.openjdk.org/jdk.git pull/14293/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14293
View PR using the GUI difftool:
$ git pr show -t 14293
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14293.diff
Webrev
Link to Webrev Comment