Integrated: 8300526: Test runtime/jni/IsVirtualThread/IsVirtualThread.java should exercise alternative virtual thread implementation

Alan Bateman alanb at openjdk.org
Thu Jan 19 09:03:25 UTC 2023


On Wed, 18 Jan 2023 13:22:57 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> test/hotspot/jtreg/runtime/jni/IsVirtualThread/IsVirtualThread.java is updated to exercise JNI IsVirtualThread when running with -XX:-VMContinuations.  On ports with VMContinuations supported, the test re-runs with the alternative implementation of virtual threads to ensure that the JNI function works as expected.
> 
> While in the area, the test is changed to used the jtreg `@enablePreview` tag and also changed to put a try-finally around the test for a started thread to ensure it doesn't it unparks in the event that the test fails.

This pull request has now been integrated.

Changeset: 08e62182
Author:    Alan Bateman <alanb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/08e621829bd60d37e946f4de8de42863ba78c3dc
Stats:     26 lines in 1 file changed: 16 ins; 0 del; 10 mod

8300526: Test runtime/jni/IsVirtualThread/IsVirtualThread.java should exercise alternative virtual thread implementation

Reviewed-by: pchilanomate

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

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


More information about the hotspot-runtime-dev mailing list