diff --git a/test/hotspot/jtreg/runtime/StackGap/TestStackGap.java b/test/hotspot/jtreg/runtime/StackGap/TestStackGap.java index 94f30d5f9b3..12d5c35b8bd 100644 --- a/test/hotspot/jtreg/runtime/StackGap/TestStackGap.java +++ b/test/hotspot/jtreg/runtime/StackGap/TestStackGap.java @@ -27,6 +27,7 @@ * @modules java.base/jdk.internal.misc * @library /test/lib * @requires os.family == "linux" + * @requires !jdk.static * @compile T.java * @run main/native TestStackGap */ diff --git a/test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java b/test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java index a9149a2e6c2..2dfb18447f1 100644 --- a/test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java +++ b/test/hotspot/jtreg/runtime/StackGuardPages/TestStackGuardPages.java @@ -27,6 +27,7 @@ * @modules java.base/jdk.internal.misc * @library /test/lib * @requires os.family == "linux" + * @requires !jdk.static * @compile DoOverflow.java * @run main/native TestStackGuardPages */ diff --git a/test/hotspot/jtreg/runtime/TLS/TestTLS.java b/test/hotspot/jtreg/runtime/TLS/TestTLS.java index eb9262f4453..2f9a559448b 100644 --- a/test/hotspot/jtreg/runtime/TLS/TestTLS.java +++ b/test/hotspot/jtreg/runtime/TLS/TestTLS.java @@ -28,6 +28,7 @@ * @modules java.base/jdk.internal.misc * @library /test/lib * @requires os.family == "linux" + * @requires !jdk.static * @compile T.java * @run main/native TestTLS */ diff --git a/test/hotspot/jtreg/runtime/jni/daemonDestroy/TestDaemonDestroy.java b/test/hotspot/jtreg/runtime/jni/daemonDestroy/TestDaemonDestroy.java index eb5769acc21..f74b7ed7ad9 100644 --- a/test/hotspot/jtreg/runtime/jni/daemonDestroy/TestDaemonDestroy.java +++ b/test/hotspot/jtreg/runtime/jni/daemonDestroy/TestDaemonDestroy.java @@ -29,6 +29,7 @@ * a daemon and non-daemon thread. The result should be the same in * both cases. * @requires vm.flagless + * @requires !jdk.static * @library /test/lib * @build Main * @run main/native TestDaemonDestroy diff --git a/test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java b/test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java index a84f6d7b327..c80fdea70fa 100644 --- a/test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java +++ b/test/hotspot/jtreg/runtime/jni/getCreatedJavaVMs/TestGetCreatedJavaVMs.java @@ -25,6 +25,7 @@ * @test * @library /test/lib * @requires os.family != "Windows" + * @requires !jdk.static * @run driver TestGetCreatedJavaVMs */ import jdk.test.lib.Utils; diff --git a/test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java b/test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java index 749133bb581..bcd77af9ead 100644 --- a/test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java +++ b/test/jdk/java/lang/reflect/exeCallerAccessTest/CallerAccessTest.java @@ -26,6 +26,7 @@ * @test * @bug 8221530 8221642 * @library /test/lib + * @requires !jdk.static * @run main/native CallerAccessTest */ diff --git a/test/jdk/jni/nullCaller/NullCallerTest.java b/test/jdk/jni/nullCaller/NullCallerTest.java index 2e54760ace0..1ba6d6f0add 100644 --- a/test/jdk/jni/nullCaller/NullCallerTest.java +++ b/test/jdk/jni/nullCaller/NullCallerTest.java @@ -28,6 +28,7 @@ * @summary Test uses custom launcher that starts VM using JNI that verifies * various API called with a null caller class function properly. * @library /test/lib + * @requires !jdk.static * @modules java.base/jdk.internal.module * jdk.compiler * @build NullCallerTest diff --git a/test/jdk/tools/launcher/JniInvocationTest.java b/test/jdk/tools/launcher/JniInvocationTest.java index 56b95ca0d70..e18dc8b137d 100644 --- a/test/jdk/tools/launcher/JniInvocationTest.java +++ b/test/jdk/tools/launcher/JniInvocationTest.java @@ -27,6 +27,7 @@ * @bug 8213362 * @comment Test uses custom launcher that starts VM using JNI via libjli, only for MacOS * @requires os.family == "mac" + * @requires !jdk.static * @library /test/lib * @run main/native JniInvocationTest */