RFR: 8300526: Test runtime/jni/IsVirtualThread/IsVirtualThread.java should exercise alternative virtual thread implementation
Patricio Chilano Mateo
pchilanomate at openjdk.org
Wed Jan 18 18:56:14 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.
Marked as reviewed by pchilanomate (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/12070
More information about the hotspot-runtime-dev
mailing list