RFR: 8294697: java/lang/Thread/virtual/ThreadAPI.testGetStackTrace2 failed with non-empty stack trace

Jaikiran Pai jpai at openjdk.org
Thu Oct 6 04:40:28 UTC 2022


On Wed, 5 Oct 2022 14:05:38 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> This is a test-only change. ThreadAPI.testGetStackTrace2 tests the stack trace of a virtual thread that has started but has not executed it. The test currently attempts to saturate all carrier threads before starting a target thread. The test is not reliable and failed at least once with a debug build and -Xcomp. The test is changed to use a custom scheduler that discards the task so the thread doesn't execute. The resulting test is much simpler and removes 3s from the execution time.

Marked as reviewed by jpai (Reviewer).

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

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


More information about the core-libs-dev mailing list