RFR: 8291429: java/lang/Thread/virtual/ThreadAPI.java timed out on single core system [v2]

Alan Bateman alanb at openjdk.org
Thu Oct 6 17:51:13 UTC 2022


On Thu, 6 Oct 2022 15:31:02 GMT, Chris Plummer <cjplummer at 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


More information about the serviceability-dev mailing list