On Thu, 6 Oct 2022 15:31:02 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
> If these tests are ever run with the virtual thread wrapper, will we end up > being short a carrier thread? It's unclear to me if the tests will always > have at least one unpinned carrier thread to work with. There's nothing inherit here that prevents use of the jtreg main wrapper with only a single carrier thread. That is, the helper class used by these tests will allow the underlying carrier to be released while waiting for the test running in another virtual thread to finish. However, there are a few issues that are problematic right now, one being that TestNG's test method invoker (specifically MethodInvocationHelper) pins. In time we will see if we have any similar issues with JUnit tests. So issues for the future if there the jtreg main wrapper is integrated, not an issue for this PR. ------------- PR: https://git.openjdk.org/jdk/pull/10562