Integrated: 8286788: Test java/lang/Thread/virtual/ThreadAPI.testGetStackTrace3 fails
Alan Bateman
alanb at openjdk.java.net
Tue May 17 17:14:48 UTC 2022
On Tue, 17 May 2022 11:15:19 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This is a test fix. ThreadAPI.testGetStackTrace3 tests Thread::getStackTrace on a thread doing a selection operation. The test is not reliable as it expects to see the "select" method in the stack trace after waiting 200ms. The test is changed to poll the stack trace so that it's no longer dependent on sleep.
>
> The update includes a drive-by change to the test description to use `@enablePreview`.
This pull request has now been integrated.
Changeset: 8535d51d
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/8535d51db7e1c33218c4254e774de4ca4ca60023
Stats: 10 lines in 1 file changed: 3 ins; 2 del; 5 mod
8286788: Test java/lang/Thread/virtual/ThreadAPI.testGetStackTrace3 fails
Reviewed-by: darcy, jpai
-------------
PR: https://git.openjdk.java.net/jdk/pull/8743
More information about the core-libs-dev
mailing list