On Wed, 5 Oct 2022 14:05:38 GMT, Alan Bateman <al...@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. This pull request has now been integrated. Changeset: ad7b7d40 Author: Alan Bateman <al...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/ad7b7d40ce7b71d9e1e13e1b92f3ca6b30e635a2 Stats: 36 lines in 1 file changed: 0 ins; 30 del; 6 mod 8294697: java/lang/Thread/virtual/ThreadAPI.testGetStackTrace2 failed with non-empty stack trace Reviewed-by: dfuchs, jpai ------------- PR: https://git.openjdk.org/jdk/pull/10576