Can I please get a review of this change which removes the 
`test/jdk/com/sun/jdi/cds/` tests from being problem listed when jtreg launches 
these tests through a virtual thread?

These tests aren't actually incompatible with virtual threads. The real issue 
is that in https://bugs.openjdk.org/browse/JDK-8305608, a test infrastructure 
class `test/jdk/com/sun/jdi/VMConnection.java` was changed to use the 
`test.class.path` system property instead of the previously used `test.classes`.

That change missed out updating the `test/jdk/com/sun/jdi/cds/` tests to pass 
along the classpath through the `test.class.path` system property. As a result 
these tests still use the old `test.classes` system property to pass around the 
test classpath and thus causes these tests to fail. The reason why this only 
impacts virtual threads is noted by Chris in this JBS comment 
https://bugs.openjdk.org/browse/JDK-8305608?focusedId=14572100&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14572100.

The commit in this PR updates the `CDSJDITest` to pass along `test.class.path` 
instead of `test.classes`. The `CDSJDITest` is only used in the tests under 
`test/jdk/com/sun/jdi/cds/`, so nothing else should be impacted by this change.

I ran these changes against both launching with platform thread as well as 
virtual thread and these tests now pass in both these cases.

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

Commit messages:
 - 8307778: com/sun/jdi/cds tests are not compatible with jtreg test factory

Changes: https://git.openjdk.org/jdk/pull/19244/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19244&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8307778
  Stats: 5 lines in 2 files changed: 0 ins; 3 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/19244.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19244/head:pull/19244

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

Reply via email to