8154258: [TESTBUG] Various serviceability tests fail compilation
Summary: Replace sun.misc.Unsafe with jdk.internal.misc.Unsafe
Reviewed-by: chegar, kvn
--- a/hotspot/test/compiler/c2/5057225/Test5057225.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/5057225/Test5057225.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 5057225
* @summary Remove useless I2L conversions
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xcomp -XX:CompileOnly=Test5057225.doload Test5057225
*/
--- a/hotspot/test/compiler/c2/6603011/Test.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/6603011/Test.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 6603011
* @summary long/int division by constant
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xcomp -Xbatch -XX:-Inline Test
*/
--- a/hotspot/test/compiler/c2/6800154/Test6800154.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/6800154/Test6800154.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 6800154
* @summary Add comments to long_by_long_mulhi() for better understandability
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xcomp -XX:CompileOnly=Test6800154.divcomp Test6800154
*/
--- a/hotspot/test/compiler/c2/6805724/Test6805724.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/6805724/Test6805724.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 6805724
* @summary ModLNode::Ideal() generates functionally incorrect graph
* when divisor is any (2^k-1) constant.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xcomp -XX:CompileOnly=Test6805724.fcomp Test6805724
*/
--- a/hotspot/test/compiler/c2/6968348/Test6968348.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/6968348/Test6968348.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
* @run main Test6968348
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
public class Test6968348 {
@@ -40,7 +40,7 @@
static int array_long_base_offset;
public static void main(String[] args) throws Exception {
- Class c = Test6968348.class.getClassLoader().loadClass("sun.misc.Unsafe");
+ Class c = Test6968348.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
Field f = c.getDeclaredField("theUnsafe");
f.setAccessible(true);
unsafe = (Unsafe)f.get(c);
--- a/hotspot/test/compiler/c2/7190310/Test7190310_unsafe.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/7190310/Test7190310_unsafe.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.ref.*;
import java.lang.reflect.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class Test7190310_unsafe {
@@ -48,7 +48,7 @@
private TestObject obj;
public static void main(String[] args) throws Exception {
- Class c = Test7190310_unsafe.class.getClassLoader().loadClass("sun.misc.Unsafe");
+ Class c = Test7190310_unsafe.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
Field f = c.getDeclaredField("theUnsafe");
f.setAccessible(true);
Unsafe unsafe = (Unsafe)f.get(c);
--- a/hotspot/test/compiler/c2/8004867/TestIntUnsafeCAS.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/8004867/TestIntUnsafeCAS.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:+OptimizeFill TestIntUnsafeCAS
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
public class TestIntUnsafeCAS {
@@ -47,7 +47,7 @@
private static final int BASE;
static {
try {
- Class c = TestIntUnsafeCAS.class.getClassLoader().loadClass("sun.misc.Unsafe");
+ Class c = TestIntUnsafeCAS.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
Field f = c.getDeclaredField("theUnsafe");
f.setAccessible(true);
unsafe = (Unsafe)f.get(c);
--- a/hotspot/test/compiler/c2/8004867/TestIntUnsafeVolatile.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/c2/8004867/TestIntUnsafeVolatile.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
* @run main/othervm/timeout=300 -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:-TieredCompilation -XX:+OptimizeFill TestIntUnsafeVolatile
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
public class TestIntUnsafeVolatile {
@@ -47,7 +47,7 @@
private static final int BASE;
static {
try {
- Class c = TestIntUnsafeVolatile.class.getClassLoader().loadClass("sun.misc.Unsafe");
+ Class c = TestIntUnsafeVolatile.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
Field f = c.getDeclaredField("theUnsafe");
f.setAccessible(true);
unsafe = (Unsafe)f.get(c);
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeDynamic2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeInterface2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeSpecial2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeStatic2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromCompiled/CompiledInvokeVirtual2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeDynamic2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @library /test/lib /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @build compiler.calls.common.InvokeDynamic
* @build compiler.calls.common.InvokeDynamicPatcher
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeInterface2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeInterface
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeSpecial2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeStatic2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromInterpreted/InterpretedInvokeVirtual2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeSpecial2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeSpecial
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeStatic2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeStatic
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2CompiledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2CompiledTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2InterpretedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2InterpretedTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2NativeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/calls/fromNative/NativeInvokeVirtual2NativeTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary /
* @build compiler.calls.common.InvokeVirtual
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading.java Sun May 01 12:47:00 2016 +0300
@@ -22,7 +22,7 @@
*/
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.io.IOException;
import java.lang.reflect.Method;
--- a/hotspot/test/compiler/classUnloading/methodUnloading/TestMethodUnloading.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/classUnloading/methodUnloading/TestMethodUnloading.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* @test MethodUnloadingTest
* @bug 8029443
* @summary "Tests the unloading of methods to to class unloading"
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build TestMethodUnloading
* @build WorkerClass
--- a/hotspot/test/compiler/codecache/OverflowCodeCacheTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/OverflowCodeCacheTest.java Sun May 01 12:47:00 2016 +0300
@@ -35,6 +35,7 @@
* @test OverflowCodeCacheTest
* @bug 8059550
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build OverflowCodeCacheTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/dtrace/SegmentedCodeCacheDtraceTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/dtrace/SegmentedCodeCacheDtraceTest.java Sun May 01 12:47:00 2016 +0300
@@ -48,6 +48,7 @@
* @test SegmentedCodeCacheDtraceTest
* @bug 8015774
* @requires os.family=="solaris"
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary / /test/lib
* @build SegmentedCodeCacheDtraceTestWorker
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/jmx/BeanTypeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/BeanTypeTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
/**
* @test BeanTypeTest
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build BeanTypeTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/jmx/CodeHeapBeanPresenceTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/CodeHeapBeanPresenceTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
/**
* @test CodeHeapBeanPresenceTest
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build CodeHeapBeanPresenceTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/jmx/ManagerNamesTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/ManagerNamesTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
/**
* @test ManagerNamesTest
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build ManagerNamesTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/jmx/MemoryPoolsPresenceTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/MemoryPoolsPresenceTest.java Sun May 01 12:47:00 2016 +0300
@@ -33,6 +33,7 @@
/**
* @test MemoryPoolsPresenceTest
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build MemoryPoolsPresenceTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codecache/jmx/PoolsIndependenceTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/PoolsIndependenceTest.java Sun May 01 12:47:00 2016 +0300
@@ -37,6 +37,7 @@
/*
* @test PoolsIndependenceTest
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build PoolsIndependenceTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/codegen/6823354/Test6823354.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/codegen/6823354/Test6823354.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 6823354
* @summary These methods can be instrinsified by using bit scan, bit test, and population count instructions.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xcomp -XX:CompileOnly=Test6823354.lzcomp,Test6823354.tzcomp,.dolzcomp,.dotzcomp Test6823354
*/
--- a/hotspot/test/compiler/compilercontrol/InlineMatcherTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/InlineMatcherTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test InlineMatcherTest
* @bug 8074095
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commandfile/CompileOnlyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commandfile/CompileOnlyTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=compileonly
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commandfile.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commandfile/ExcludeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commandfile/ExcludeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=exclude
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commandfile.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commandfile/LogTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commandfile/LogTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=log
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commandfile.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commandfile/PrintTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commandfile/PrintTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=print
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commandfile.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commands/CompileOnlyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commands/CompileOnlyTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=compileonly
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commands.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commands/ExcludeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commands/ExcludeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=exclude
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commands.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commands/LogTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commands/LogTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=log
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commands.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/commands/PrintTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/commands/PrintTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests CompileCommand=print
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.commands.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/directives/CompileOnlyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/directives/CompileOnlyTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directives to be able to compile only specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.directives.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/directives/ExcludeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/directives/ExcludeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directives to be able to exclude methods from compilation
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.directives.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/directives/LogTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/directives/LogTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directives to be able to turn on LogCompilation
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.directives.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/directives/PrintTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/directives/PrintTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directives to be able to turn on print_assembly
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.directives.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/AddAndRemoveTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/AddAndRemoveTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directives to be able to add and remove directives
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.AddAndRemoveTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/AddCompileOnlyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/AddCompileOnlyTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests jcmd to be able to add a directive to compile only specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.AddCompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/AddExcludeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/AddExcludeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests jcmd to be able to add a directive to exclude only specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.AddExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/AddLogTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/AddLogTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests jcmd to be able to add a directive to log only specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.AddLogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/AddPrintAssemblyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/AddPrintAssemblyTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8137167
* @summary Tests jcmd to be able to add a directive to print assembly
* only for specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.AddPrintAssemblyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/ClearDirectivesFileStackTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/ClearDirectivesFileStackTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8137167
* @ignore 8140405
* @summary Tests jcmd to be able to clear directives added via options
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.ClearDirectivesFileStackTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/ClearDirectivesStackTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/ClearDirectivesStackTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests clear JCMD command
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.ClearDirectivesStackTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/PrintDirectivesTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/PrintDirectivesTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests jcmd to be able to add a directive to compile only specified methods
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.PrintDirectivesTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/jcmd/StressAddMultiThreadedTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8137167
* @summary Tests jcmd to be able to add a lot of huge directive files with
* parallel executed jcmds until timeout has reached
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/matcher/MethodMatcherTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/matcher/MethodMatcherTest.java Sun May 01 12:47:00 2016 +0300
@@ -40,6 +40,7 @@
* @test
* @bug 8135068
* @summary Tests CompilerCommand's method matcher
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ../share /
* @build compiler.compilercontrol.matcher.MethodMatcherTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/mixed/RandomCommandsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/mixed/RandomCommandsTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Randomly generates commands with random types
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.mixed.RandomCommandsTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/mixed/RandomValidCommandsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/mixed/RandomValidCommandsTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Randomly generates valid commands with random types
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share /
* @build compiler.compilercontrol.mixed.RandomValidCommandsTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/compilercontrol/parser/DirectiveParserTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/parser/DirectiveParserTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Tests directive json parser
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib ../share /
* @run driver compiler.compilercontrol.parser.DirectiveParserTest
*/
--- a/hotspot/test/compiler/compilercontrol/parser/DirectiveStressTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/compilercontrol/parser/DirectiveStressTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8137167
* @summary Stress directive json parser
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib ../share /
* @run driver compiler.compilercontrol.parser.DirectiveStressTest
*/
--- a/hotspot/test/compiler/eliminateAutobox/UnsignedLoads.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/eliminateAutobox/UnsignedLoads.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:+EliminateAutoBox
* -XX:CompileOnly=::valueOf,::byteValue,::shortValue,::testUnsignedByte,::testUnsignedShort
--- a/hotspot/test/compiler/escapeAnalysis/TestUnsafePutAddressNullObjMustNotEscape.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/escapeAnalysis/TestUnsafePutAddressNullObjMustNotEscape.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import java.lang.reflect.Field;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class TestUnsafePutAddressNullObjMustNotEscape {
@@ -43,7 +43,7 @@
System.out.println("EXECUTING test.");
{
- System.out.println("Acquiring sun.misc.Unsafe.theUnsafe using reflection.");
+ System.out.println("Acquiring jdk.internal.misc.Unsafe.theUnsafe using reflection.");
getUnsafe();
System.out.println("Allocating raw memory.");
mem = (usafe.allocateMemory(1024) + 8L) & ~7L;
@@ -78,8 +78,8 @@
}
private static void getUnsafe() throws Exception {
- Field field = sun.misc.Unsafe.class.getDeclaredField("theUnsafe");
+ Field field = jdk.internal.misc.Unsafe.class.getDeclaredField("theUnsafe");
field.setAccessible(true);
- usafe = (sun.misc.Unsafe) field.get(null);
+ usafe = (jdk.internal.misc.Unsafe) field.get(null);
}
}
--- a/hotspot/test/compiler/floatingpoint/TestPow2.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/floatingpoint/TestPow2.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8063086
* @summary X^2 special case for C2 yields different result than interpreter
* @library /testlibrary /test/lib /compiler/whitebox /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build TestPow2
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/inlining/InlineAccessors.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/inlining/InlineAccessors.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8140650
* @summary Method::is_accessor should cover getters and setters for all types
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm InlineAccessors
*/
--- a/hotspot/test/compiler/intrinsics/IntrinsicAvailableTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/IntrinsicAvailableTest.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
/*
* @test
* @bug 8130832
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox /compiler/testlibrary /
* @build IntrinsicAvailableTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/intrinsics/IntrinsicDisabledTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/IntrinsicDisabledTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @bug 8138651
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build IntrinsicDisabledTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/intrinsics/clone/TestObjectClone.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/clone/TestObjectClone.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @test
* @bug 8033626
* @summary assert(ex_map->jvms()->same_calls_as(_exceptions->jvms())) failed: all collected exceptions must come from the same place
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -XX:-TieredCompilation -Xbatch -XX:CompileOnly=TestObjectClone::f TestObjectClone
*/
--- a/hotspot/test/compiler/intrinsics/montgomerymultiply/MontgomeryMultiplyTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/montgomerymultiply/MontgomeryMultiplyTest.java Sun May 01 12:47:00 2016 +0300
@@ -42,6 +42,7 @@
* @test
* @bug 8130150 8131779 8139907
* @summary Verify that the Montgomery multiply and square intrinsic works and correctly checks their arguments.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @library /testlibrary
* @build MontgomeryMultiplyTest
--- a/hotspot/test/compiler/intrinsics/string/TestStringIntrinsicMemoryFlow.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/string/TestStringIntrinsicMemoryFlow.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @bug 8144212
* @summary Check for correct memory flow with the String compress/inflate intrinsics.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main TestStringIntrinsicMemoryFlow
*/
--- a/hotspot/test/compiler/intrinsics/string/TestStringIntrinsics2.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/string/TestStringIntrinsics2.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @test
* @bug 8145336
* @summary PPC64: fix string intrinsics after CompactStrings change
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/intrinsics/unsafe/HeapByteBufferTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/unsafe/HeapByteBufferTest.java Sun May 01 12:47:00 2016 +0300
@@ -36,6 +36,7 @@
/**
* @test
* @bug 8026049
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:-UseUnalignedAccesses -Djdk.test.lib.random.seed=0 HeapByteBufferTest
* @run main/othervm -Djdk.test.lib.random.seed=0 HeapByteBufferTest
--- a/hotspot/test/compiler/intrinsics/unsafe/TestUnsafeMismatchedArrayFieldAccess.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/unsafe/TestUnsafeMismatchedArrayFieldAccess.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/**
* @test
* @bug 8142386
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @summary Unsafe access to an array is wrongly marked as mismatched
* @run main/othervm -XX:-UseOnStackReplacement -XX:-BackgroundCompilation -XX:-TieredCompilation TestUnsafeMismatchedArrayFieldAccess
@@ -33,7 +34,7 @@
import java.lang.reflect.*;
import jdk.test.lib.Utils;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class TestUnsafeMismatchedArrayFieldAccess {
--- a/hotspot/test/compiler/intrinsics/unsafe/UnsafeGetAddressTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/intrinsics/unsafe/UnsafeGetAddressTest.java Sun May 01 12:47:00 2016 +0300
@@ -30,21 +30,21 @@
*
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
public class UnsafeGetAddressTest {
private static Unsafe unsafe;
public static void main(String[] args) throws Exception {
- Class c = UnsafeGetAddressTest.class.getClassLoader().loadClass("sun.misc.Unsafe");
+ Class c = UnsafeGetAddressTest.class.getClassLoader().loadClass("jdk.internal.misc.Unsafe");
Field f = c.getDeclaredField("theUnsafe");
f.setAccessible(true);
unsafe = (Unsafe)f.get(c);
long address = unsafe.allocateMemory(unsafe.addressSize());
unsafe.putAddress(address, 0x0000000080000000L);
- // from sun.misc.Unsafe.getAddress' documentation:
+ // from jdk.internal.misc.Unsafe.getAddress' documentation:
// "If the native pointer is less than 64 bits wide, it is
// extended as an unsigned number to a Java long."
result = unsafe.getAddress(address);
--- a/hotspot/test/compiler/jsr292/CallSiteDepContextTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/CallSiteDepContextTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/**
* @test
* @bug 8057967
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* @library patches
* @build java.base/java.lang.invoke.MethodHandleHelper
@@ -46,7 +47,7 @@
import java.lang.reflect.Field;
import jdk.internal.org.objectweb.asm.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.internal.org.objectweb.asm.Opcodes.*;
--- a/hotspot/test/compiler/jsr292/ContinuousCallSiteTargetChange.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/ContinuousCallSiteTargetChange.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/**
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main ContinuousCallSiteTargetChange
*/
--- a/hotspot/test/compiler/jsr292/InvokerGC.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/InvokerGC.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @bug 8067247
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /compiler/whitebox /
* @run main/bootclasspath -Xcomp -Xbatch
* -XX:CompileCommand=compileonly,InvokerGC::test
--- a/hotspot/test/compiler/jsr292/MHInlineTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/MHInlineTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8062280
* @summary C2: inlining failure due to access checks being too strict
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm MHInlineTest
*/
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/GCTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/GCTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8072008
* @library /testlibrary /test/lib ../patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build java.base/java.lang.invoke.MethodHandleHelper
* @build sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8072008
* @library /testlibrary /test/lib / ../patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build java.base/java.lang.invoke.MethodHandleHelper
* @build sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/jsr292/PollutedTrapCounts.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/PollutedTrapCounts.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/**
* @test
* @bug 8074551
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main PollutedTrapCounts
*/
--- a/hotspot/test/compiler/jsr292/VMAnonymousClasses.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jsr292/VMAnonymousClasses.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import jdk.internal.org.objectweb.asm.ClassWriter;
import jdk.internal.org.objectweb.asm.MethodVisitor;
import jdk.internal.org.objectweb.asm.Opcodes;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.invoke.ConstantCallSite;
import java.lang.invoke.MethodHandle;
--- a/hotspot/test/compiler/jvmci/JVM_GetJVMCIRuntimeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/JVM_GetJVMCIRuntimeTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 8136421
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.runtime
* @run main/othervm -XX:+UnlockExperimentalVMOptions
* -Dcompiler.jvmci.JVM_GetJVMCIRuntimeTest.positive=true
--- a/hotspot/test/compiler/jvmci/SecurityRestrictionsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/SecurityRestrictionsTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @run main/othervm -XX:+UnlockExperimentalVMOptions
--- a/hotspot/test/compiler/jvmci/compilerToVM/AllocateCompileIdTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/AllocateCompileIdTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/CanInlineMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/CanInlineMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/CollectCountersTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/CollectCountersTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib/
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.CollectCountersTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/DebugOutputTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/DebugOutputTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.DebugOutputTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/DisassembleCodeBlobTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/DisassembleCodeBlobTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/DoNotInlineOrCompileTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/DoNotInlineOrCompileTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/ExecuteInstalledCodeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ExecuteInstalledCodeTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @library /testlibrary /test/lib /
* @library ../common/patches
* @ignore 8139383
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/FindUniqueConcreteMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/FindUniqueConcreteMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetBytecodeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetBytecodeTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetClassInitializerTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetClassInitializerTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.GetClassInitializerTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetConstantPoolTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetConstantPoolTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.meta
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
@@ -51,7 +52,7 @@
import jdk.vm.ci.hotspot.PublicMetaspaceWrapperObject;
import jdk.test.lib.Utils;
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Tests for jdk.vm.ci.hotspot.CompilerToVM::getConstantPool method
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetExceptionTableTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetExceptionTableTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetImplementorTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetImplementorTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib/
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.GetImplementorTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetLineNumberTableTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetLineNumberTableTest.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* @library /testlibrary /test/lib /
* @library ../common/patches
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetLocalVariableTableTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetLocalVariableTableTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetMaxCallTargetOffsetTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetMaxCallTargetOffsetTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib/
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.GetMaxCallTargetOffsetTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetNextStackFrameTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetNextStackFrameTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaMethodAtSlotTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaMethodAtSlotTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* jdk.vm.ci/jdk.vm.ci.hotspot.PublicMetaspaceWrapperObject
@@ -48,7 +49,7 @@
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.Field;
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaTypeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetResolvedJavaTypeTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.meta
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
@@ -59,7 +60,7 @@
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class GetResolvedJavaTypeTest {
private static enum TestCase {
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetStackTraceElementTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetStackTraceElementTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetSymbolTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetSymbolTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/GetVtableIndexForInterfaceTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/GetVtableIndexForInterfaceTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/HasCompiledCodeForOSRTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/HasCompiledCodeForOSRTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/HasFinalizableSubclassTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/HasFinalizableSubclassTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.HasFinalizableSubclassTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/InitializeConfigurationTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/InitializeConfigurationTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.InitializeConfigurationTest
@@ -46,7 +47,7 @@
import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime;
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class InitializeConfigurationTest {
private static final Unsafe UNSAFE = Utils.getUnsafe();
--- a/hotspot/test/compiler/jvmci/compilerToVM/InvalidateInstalledCodeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/InvalidateInstalledCodeTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/IsMatureTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/IsMatureTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.IsMatureTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/JVM_RegisterJVMCINatives.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/JVM_RegisterJVMCINatives.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 8136421
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.runtime
* @run main/othervm -XX:+UnlockExperimentalVMOptions
--- a/hotspot/test/compiler/jvmci/compilerToVM/LookupTypeTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/LookupTypeTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.LookupTypeTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/MaterializeVirtualObjectTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/MaterializeVirtualObjectTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/MethodIsIgnoredBySecurityStackWalkTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/MethodIsIgnoredBySecurityStackWalkTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.reflect
* java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
--- a/hotspot/test/compiler/jvmci/compilerToVM/ReadUncompressedOopTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ReadUncompressedOopTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib/
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.ReadUncompressedOopTest
@@ -52,7 +53,7 @@
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.Field;
--- a/hotspot/test/compiler/jvmci/compilerToVM/ReprofileTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ReprofileTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/compilerToVM/ResolveFieldInPoolTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ResolveFieldInPoolTest.java Sun May 01 12:47:00 2016 +0300
@@ -60,7 +60,7 @@
import jdk.vm.ci.meta.ConstantPool;
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Test for {@code jdk.vm.ci.hotspot.CompilerToVM.resolveFieldInPool} method
--- a/hotspot/test/compiler/jvmci/compilerToVM/ResolveMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ResolveMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
@@ -56,7 +57,7 @@
import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
import jdk.test.lib.Asserts;
import jdk.test.lib.Utils;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class ResolveMethodTest {
private static final Unsafe UNSAFE = Utils.getUnsafe();
--- a/hotspot/test/compiler/jvmci/compilerToVM/ShouldDebugNonSafepointsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ShouldDebugNonSafepointsTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary /test/lib/
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* @build jdk.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
* @build compiler.jvmci.compilerToVM.ShouldDebugNonSafepointsTest
--- a/hotspot/test/compiler/jvmci/compilerToVM/ShouldInlineMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/compilerToVM/ShouldInlineMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/events/JvmciCreateMetaAccessContextTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/events/JvmciCreateMetaAccessContextTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.code
* jdk.vm.ci/jdk.vm.ci.meta
--- a/hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/events/JvmciNotifyInstallEventTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library / /testlibrary
* @library ../common/patches
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.base/jdk.internal.org.objectweb.asm.tree
* jdk.vm.ci/jdk.vm.ci.hotspot
--- a/hotspot/test/compiler/jvmci/events/JvmciShutdownEventTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/events/JvmciShutdownEventTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8136421
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.code
* jdk.vm.ci/jdk.vm.ci.meta
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/ConstantTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/ConstantTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.ConstantTest
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.ConstantTest
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/RedefineClassTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.RedefineClassTest
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.RedefineClassTest
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestConstantReflectionProvider.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestConstantReflectionProvider.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestConstantReflectionProvider
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestConstantReflectionProvider
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaField.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaField.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestJavaField
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestJavaField
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaMethod.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaMethod.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestJavaMethod
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestJavaMethod
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaType.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestJavaType.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestJavaType
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestJavaType
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestMetaAccessProvider.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestMetaAccessProvider.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestMetaAccessProvider
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestMetaAccessProvider
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaField.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaField.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestResolvedJavaField
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestResolvedJavaField
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaMethod.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @library ../../../../../
* @modules jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestResolvedJavaMethod
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestResolvedJavaMethod
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* jdk.vm.ci/jdk.vm.ci.meta
* jdk.vm.ci/jdk.vm.ci.runtime
* jdk.vm.ci/jdk.vm.ci.common
+ * java.base/jdk.internal.misc
* @build jdk.vm.ci.runtime.test.TestResolvedJavaType
* @run junit/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI jdk.vm.ci.runtime.test.TestResolvedJavaType
*/
--- a/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TypeUniverse.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TypeUniverse.java Sun May 01 12:47:00 2016 +0300
@@ -57,7 +57,7 @@
import org.junit.Test;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
//JaCoCo Exclude
--- a/hotspot/test/compiler/jvmci/meta/StableFieldTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/jvmci/meta/StableFieldTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8151664
* @requires (os.simpleArch == "x64" | os.simpleArch == "sparcv9" | os.simpleArch == "aarch64")
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* jdk.vm.ci/jdk.vm.ci.hotspot
* jdk.vm.ci/jdk.vm.ci.meta
--- a/hotspot/test/compiler/loopopts/UseCountedLoopSafepoints.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/loopopts/UseCountedLoopSafepoints.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 6869327
* @summary Test that C2 flag UseCountedLoopSafepoints ensures a safepoint is kept in a CountedLoop
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.base
* @ignore 8146096
* @run main UseCountedLoopSafepoints
--- a/hotspot/test/compiler/loopopts/superword/TestVectorizationWithInvariant.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/loopopts/superword/TestVectorizationWithInvariant.java Sun May 01 12:47:00 2016 +0300
@@ -23,12 +23,13 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* @test
* @bug 8078497
* @summary Tests correct alignment of vectors with loop invariant offset.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main TestVectorizationWithInvariant
*/
--- a/hotspot/test/compiler/onSpinWait/TestOnSpinWait.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/onSpinWait/TestOnSpinWait.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @test TestOnSpinWait
* @summary (x86 only) checks that java.lang.Thread.onSpinWait is intrinsified
* @bug 8147844
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @requires os.arch=="x86" | os.arch=="amd64" | os.arch=="x86_64"
* @run main TestOnSpinWait
--- a/hotspot/test/compiler/oracle/GetMethodOptionTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/oracle/GetMethodOptionTest.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
/*
* @test
* @bug 8074980
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox jdk.test.lib.Asserts GetMethodOptionTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/oracle/MethodMatcherTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/oracle/MethodMatcherTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test MethodMatcherTest
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/rangechecks/TestExplicitRangeChecks.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rangechecks/TestExplicitRangeChecks.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8073480
* @summary explicit range checks should be recognized by C2
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox /
* @build TestExplicitRangeChecks
* @run main ClassFileInstaller sun.hotspot.WhiteBox
@@ -40,7 +41,7 @@
import sun.hotspot.WhiteBox;
import sun.hotspot.code.NMethod;
import jdk.test.lib.Platform;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import compiler.whitebox.CompilerWhiteBoxTest;
public class TestExplicitRangeChecks {
--- a/hotspot/test/compiler/rtm/locking/TestRTMAbortRatio.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rtm/locking/TestRTMAbortRatio.java Sun May 01 12:47:00 2016 +0300
@@ -44,7 +44,7 @@
import rtm.*;
import rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Test verifies that method will be deoptimized on high abort ratio
--- a/hotspot/test/compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java Sun May 01 12:47:00 2016 +0300
@@ -46,7 +46,7 @@
import rtm.*;
import rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* To verify that with +UseRTMDeopt method's RTM state will be
--- a/hotspot/test/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java Sun May 01 12:47:00 2016 +0300
@@ -43,7 +43,7 @@
import rtm.*;
import rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Test verifies that low abort ratio method will be deoptimized with
--- a/hotspot/test/compiler/rtm/locking/TestRTMLockingThreshold.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rtm/locking/TestRTMLockingThreshold.java Sun May 01 12:47:00 2016 +0300
@@ -44,7 +44,7 @@
import rtm.*;
import rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Test verifies that RTMLockingThreshold option actually affects how soon
--- a/hotspot/test/compiler/rtm/locking/TestRTMTotalCountIncrRate.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/rtm/locking/TestRTMTotalCountIncrRate.java Sun May 01 12:47:00 2016 +0300
@@ -37,7 +37,7 @@
* -XX:+WhiteBoxAPI TestRTMTotalCountIncrRate
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.util.List;
import jdk.test.lib.*;
--- a/hotspot/test/compiler/runtime/8010927/Test8010927.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/runtime/8010927/Test8010927.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,7 @@
import sun.hotspot.WhiteBox;
import java.lang.reflect.Field;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* The test creates uncommitted space between oldgen and young gen
--- a/hotspot/test/compiler/stable/TestStableBoolean.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableBoolean.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableBoolean
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableBoolean
--- a/hotspot/test/compiler/stable/TestStableByte.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableByte.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableByte
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableByte
--- a/hotspot/test/compiler/stable/TestStableChar.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableChar.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableChar
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableChar
--- a/hotspot/test/compiler/stable/TestStableDouble.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableDouble.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableDouble
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableDouble
--- a/hotspot/test/compiler/stable/TestStableFloat.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableFloat.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableFloat
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableFloat
--- a/hotspot/test/compiler/stable/TestStableInt.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableInt.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableInt
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableInt
--- a/hotspot/test/compiler/stable/TestStableLong.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableLong.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableLong
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableLong
--- a/hotspot/test/compiler/stable/TestStableMemoryBarrier.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableMemoryBarrier.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @bug 8139758
* @summary tests memory barrier correctly inserted for stable fields
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
*
* @run main/bootclasspath -Xcomp -XX:CompileOnly=::testCompile
--- a/hotspot/test/compiler/stable/TestStableObject.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableObject.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableObject
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableObject
--- a/hotspot/test/compiler/stable/TestStableShort.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableShort.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableShort
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableShort
--- a/hotspot/test/compiler/stable/TestStableUByte.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableUByte.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableUByte
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableUByte
--- a/hotspot/test/compiler/stable/TestStableUShort.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/stable/TestStableUShort.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test TestStableUShort
* @summary tests on stable fields and arrays
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build sun.hotspot.WhiteBox
* @build compiler.stable.TestStableUShort
--- a/hotspot/test/compiler/testlibrary/rtm/XAbortProvoker.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/testlibrary/rtm/XAbortProvoker.java Sun May 01 12:47:00 2016 +0300
@@ -25,7 +25,7 @@
package rtm;
import jdk.test.lib.Utils;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Current RTM locking implementation force transaction abort
--- a/hotspot/test/compiler/tiered/NonTieredLevelsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/tiered/NonTieredLevelsTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
/**
* @test NonTieredLevelsTest
* @library /testlibrary /test/lib /compiler/whitebox /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build NonTieredLevelsTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/tiered/TieredLevelsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/tiered/TieredLevelsTest.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/**
* @test TieredLevelsTest
* @library /testlibrary /test/lib /compiler/whitebox /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build TieredLevelsTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/uncommontrap/8009761/Test8009761.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/uncommontrap/8009761/Test8009761.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
/*
* @test
* @bug 8009761
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @summary Deoptimization on sparc doesn't set Llast_SP correctly in the interpreter frames it creates
* @build Test8009761
--- a/hotspot/test/compiler/unsafe/GetUnsafeObjectG1PreBarrier.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/unsafe/GetUnsafeObjectG1PreBarrier.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
import java.lang.reflect.Field;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class GetUnsafeObjectG1PreBarrier {
private static final Unsafe unsafe;
--- a/hotspot/test/compiler/unsafe/TestUnsafeLoadControl.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/unsafe/TestUnsafeLoadControl.java Sun May 01 12:47:00 2016 +0300
@@ -25,12 +25,13 @@
* @test
* @bug 8077504
* @summary Unsafe load can loose control dependency and cause crash
+ * @modules java.base/jdk.internal.misc
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestUnsafeLoadControl
*
*/
import java.lang.reflect.Field;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class TestUnsafeLoadControl {
--- a/hotspot/test/compiler/unsafe/UnsafeRaw.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/unsafe/UnsafeRaw.java Sun May 01 12:47:00 2016 +0300
@@ -33,51 +33,52 @@
import jdk.test.lib.Utils;
import java.util.Random;
+import jdk.internal.misc.Unsafe;
public class UnsafeRaw {
public static class Tests {
- public static int int_index(sun.misc.Unsafe unsafe, long base, int index) throws Exception {
+ public static int int_index(Unsafe unsafe, long base, int index) throws Exception {
return unsafe.getInt(base + (index << 2));
}
- public static int long_index(sun.misc.Unsafe unsafe, long base, long index) throws Exception {
+ public static int long_index(Unsafe unsafe, long base, long index) throws Exception {
return unsafe.getInt(base + (index << 2));
}
- public static int int_index_back_ashift(sun.misc.Unsafe unsafe, long base, int index) throws Exception {
+ public static int int_index_back_ashift(Unsafe unsafe, long base, int index) throws Exception {
return unsafe.getInt(base + (index >> 2));
}
- public static int int_index_back_lshift(sun.misc.Unsafe unsafe, long base, int index) throws Exception {
+ public static int int_index_back_lshift(Unsafe unsafe, long base, int index) throws Exception {
return unsafe.getInt(base + (index >>> 2));
}
- public static int long_index_back_ashift(sun.misc.Unsafe unsafe, long base, long index) throws Exception {
+ public static int long_index_back_ashift(Unsafe unsafe, long base, long index) throws Exception {
return unsafe.getInt(base + (index >> 2));
}
- public static int long_index_back_lshift(sun.misc.Unsafe unsafe, long base, long index) throws Exception {
+ public static int long_index_back_lshift(Unsafe unsafe, long base, long index) throws Exception {
return unsafe.getInt(base + (index >>> 2));
}
- public static int int_const_12345678_index(sun.misc.Unsafe unsafe, long base) throws Exception {
+ public static int int_const_12345678_index(Unsafe unsafe, long base) throws Exception {
int idx4 = 0x12345678;
return unsafe.getInt(base + idx4);
}
- public static int long_const_1234567890abcdef_index(sun.misc.Unsafe unsafe, long base) throws Exception {
+ public static int long_const_1234567890abcdef_index(Unsafe unsafe, long base) throws Exception {
long idx5 = 0x1234567890abcdefL;
return unsafe.getInt(base + idx5);
}
- public static int int_index_mul(sun.misc.Unsafe unsafe, long base, int index) throws Exception {
+ public static int int_index_mul(Unsafe unsafe, long base, int index) throws Exception {
return unsafe.getInt(base + (index * 4));
}
- public static int long_index_mul(sun.misc.Unsafe unsafe, long base, long index) throws Exception {
+ public static int long_index_mul(Unsafe unsafe, long base, long index) throws Exception {
return unsafe.getInt(base + (index * 4));
}
- public static int int_index_mul_scale_16(sun.misc.Unsafe unsafe, long base, int index) throws Exception {
+ public static int int_index_mul_scale_16(Unsafe unsafe, long base, int index) throws Exception {
return unsafe.getInt(base + (index * 16));
}
- public static int long_index_mul_scale_16(sun.misc.Unsafe unsafe, long base, long index) throws Exception {
+ public static int long_index_mul_scale_16(Unsafe unsafe, long base, long index) throws Exception {
return unsafe.getInt(base + (index * 16));
}
}
public static void main(String[] args) throws Exception {
- sun.misc.Unsafe unsafe = Utils.getUnsafe();
+ Unsafe unsafe = Utils.getUnsafe();
final int array_size = 128;
final int element_size = 4;
final int magic = 0x12345678;
--- a/hotspot/test/compiler/whitebox/AllocationCodeBlobTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/AllocationCodeBlobTest.java Sun May 01 12:47:00 2016 +0300
@@ -35,6 +35,7 @@
* @test AllocationCodeBlobTest
* @bug 8059624 8064669
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build AllocationCodeBlobTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/BlockingCompilation.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/BlockingCompilation.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8150646
* @summary Add support for blocking compiles through whitebox API
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /
* @build sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils
--- a/hotspot/test/compiler/whitebox/ClearMethodStateTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/ClearMethodStateTest.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* @test ClearMethodStateTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build ClearMethodStateTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/DeoptimizeAllTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/DeoptimizeAllTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test DeoptimizeAllTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build DeoptimizeAllTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/DeoptimizeFramesTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/DeoptimizeFramesTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test DeoptimizeFramesTest
* @bug 8028595
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build DeoptimizeFramesTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/DeoptimizeMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/DeoptimizeMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test DeoptimizeMethodTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build DeoptimizeMethodTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/DeoptimizeMultipleOSRTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/DeoptimizeMultipleOSRTest.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
* @test DeoptimizeMultipleOSRTest
* @bug 8061817
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build DeoptimizeMultipleOSRTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/EnqueueMethodForCompilationTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/EnqueueMethodForCompilationTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test EnqueueMethodForCompilationTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build EnqueueMethodForCompilationTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/ForceNMethodSweepTest.java Sun May 01 12:47:00 2016 +0300
@@ -36,6 +36,7 @@
* @test
* @bug 8059624 8064669 8153265
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build ForceNMethodSweepTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/GetCodeHeapEntriesTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/GetCodeHeapEntriesTest.java Sun May 01 12:47:00 2016 +0300
@@ -34,6 +34,7 @@
* @test GetCodeHeapEntriesTest
* @bug 8059624
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build GetCodeHeapEntriesTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/GetNMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/GetNMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* @test GetNMethodTest
* @bug 8038240
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build GetNMethodTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/LockCompilationTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/LockCompilationTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test LockCompilationTest
* @bug 8059624 8152169
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build LockCompilationTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/MakeMethodNotCompilableTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/MakeMethodNotCompilableTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test MakeMethodNotCompilableTest
* @bug 8012322 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build MakeMethodNotCompilableTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/SetDontInlineMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/SetDontInlineMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test SetDontInlineMethodTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build SetDontInlineMethodTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/compiler/whitebox/SetForceInlineMethodTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/compiler/whitebox/SetForceInlineMethodTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test SetForceInlineMethodTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build SetForceInlineMethodTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/gc/CondCardMark/Basic.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/CondCardMark/Basic.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8076987
* @bug 8078438
* @summary Verify UseCondCardMark works
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build Basic
* @run main/othervm -Xint Basic
--- a/hotspot/test/gc/TestDisableExplicitGC.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/TestDisableExplicitGC.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @requires vm.opt.DisableExplicitGC == null
* @summary Verify GC behavior with DisableExplicitGC flag.
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules jdk.management/com.sun.management.internal
* @run main/othervm -Xlog:gc=debug TestDisableExplicitGC
* @run main/othervm/fail -XX:+DisableExplicitGC -Xlog:gc=debug TestDisableExplicitGC
--- a/hotspot/test/gc/TestSmallHeap.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/TestSmallHeap.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
* @requires vm.opt.UseCompressedOops != false
* @summary Verify that starting the VM with a small heap works
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @ignore 8076621
* @build TestSmallHeap
--- a/hotspot/test/gc/arguments/TestDynMaxHeapFreeRatio.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestDynMaxHeapFreeRatio.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* @bug 8028391
* @summary Verify that MaxHeapFreeRatio flag is manageable
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @run main TestDynMaxHeapFreeRatio
* @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 TestDynMaxHeapFreeRatio
--- a/hotspot/test/gc/arguments/TestDynMinHeapFreeRatio.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestDynMinHeapFreeRatio.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8028391
* @summary Verify that MinHeapFreeRatio flag is manageable
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @run main TestDynMinHeapFreeRatio
* @run main/othervm -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 TestDynMinHeapFreeRatio
--- a/hotspot/test/gc/arguments/TestG1HeapRegionSize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestG1HeapRegionSize.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 8021879
* @requires vm.gc=="null" | vm.gc=="G1"
* @summary Verify that the flag G1HeapRegionSize is updated properly
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @library /testlibrary
* @run main TestG1HeapRegionSize
--- a/hotspot/test/gc/arguments/TestMaxMinHeapFreeRatioFlags.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestMaxMinHeapFreeRatioFlags.java Sun May 01 12:47:00 2016 +0300
@@ -39,7 +39,7 @@
import jdk.test.lib.ProcessTools;
import jdk.test.lib.Utils;
import jdk.test.lib.HeapRegionUsageTool;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class TestMaxMinHeapFreeRatioFlags {
@@ -88,6 +88,7 @@
(useXmaxf ? "-Xmaxf" + maxRatio / 100.0 : "-XX:MaxHeapFreeRatio=" + maxRatio),
"-Xmx" + MAX_HEAP_SIZE,
"-Xms" + HEAP_SIZE,
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-XX:NewSize=" + NEW_SIZE,
"-XX:MaxNewSize=" + MAX_NEW_SIZE,
"-XX:" + (shrinkHeapInSteps ? '+' : '-') + "ShrinkHeapInSteps",
@@ -119,6 +120,7 @@
Collections.addAll(vmOptions,
(useXminf ? "-Xminf" + minRatio / 100.0 : "-XX:MinHeapFreeRatio=" + minRatio),
(useXmaxf ? "-Xmaxf" + maxRatio / 100.0 : "-XX:MaxHeapFreeRatio=" + maxRatio),
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-version"
);
ProcessBuilder procBuilder = ProcessTools.createJavaProcessBuilder(vmOptions.toArray(new String[vmOptions.size()]));
--- a/hotspot/test/gc/arguments/TestSurvivorRatioFlag.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestSurvivorRatioFlag.java Sun May 01 12:47:00 2016 +0300
@@ -74,6 +74,7 @@
Collections.addAll(vmOptions,
"-Xbootclasspath/a:.",
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"-XX:GCLockerEdenExpansionPercent=0",
--- a/hotspot/test/gc/arguments/TestTargetSurvivorRatioFlag.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestTargetSurvivorRatioFlag.java Sun May 01 12:47:00 2016 +0300
@@ -42,7 +42,7 @@
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import jdk.test.lib.HeapRegionUsageTool;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.test.lib.OutputAnalyzer;
import jdk.test.lib.ProcessTools;
import jdk.test.lib.Utils;
@@ -130,6 +130,7 @@
LinkedList<String> vmOptions = new LinkedList<>(options);
Collections.addAll(vmOptions,
"-Xbootclasspath/a:.",
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"-XX:+UseAdaptiveSizePolicy",
--- a/hotspot/test/gc/arguments/TestVerifyBeforeAndAfterGCFlags.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/arguments/TestVerifyBeforeAndAfterGCFlags.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary Runs an simple application (GarbageProducer) with various
combinations of -XX:{+|-}Verify{After|Before}GC flags and checks that
output contain or doesn't contain expected patterns
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @library /testlibrary
* @run driver TestVerifyBeforeAndAfterGCFlags
--- a/hotspot/test/gc/ergonomics/TestDynamicNumberOfGCThreads.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/ergonomics/TestDynamicNumberOfGCThreads.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @summary Ensure that UseDynamicNumberOfGCThreads runs
* @requires vm.gc=="null"
* @key gc
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/gc/g1/TestHumongousAllocNearlyFullRegion.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/TestHumongousAllocNearlyFullRegion.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8143587
* @summary G1: humongous object allocations should work even when there is
* not enough space in the heapRegion to fit a filler object.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run driver TestHumongousAllocNearlyFullRegion
*/
--- a/hotspot/test/gc/g1/TestHumongousShrinkHeap.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/TestHumongousShrinkHeap.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary Verify that heap shrinks after GC in the presence of fragmentation
* due to humongous objects
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @run main/othervm -XX:-ExplicitGCInvokesConcurrent -XX:MinHeapFreeRatio=10
* -XX:MaxHeapFreeRatio=12 -XX:+UseG1GC -XX:G1HeapRegionSize=1M -verbose:gc
--- a/hotspot/test/gc/g1/TestLargePageUseForAuxMemory.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/TestLargePageUseForAuxMemory.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @summary Test that auxiliary data structures are allocated using large pages if available.
* @bug 8058354 8079208
* @key gc
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @requires (vm.gc=="G1" | vm.gc=="null")
* @build jdk.test.lib.* sun.hotspot.WhiteBox
--- a/hotspot/test/gc/g1/TestPLABOutput.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/TestPLABOutput.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @summary Check that G1 does not report empty PLAB statistics in the first evacuation.
* @requires vm.gc=="G1" | vm.gc=="null"
* @key gc
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build sun.hotspot.WhiteBox
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/TestShrinkAuxiliaryData.java Sun May 01 12:47:00 2016 +0300
@@ -36,7 +36,7 @@
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
-import sun.misc.Unsafe; // for ADDRESS_SIZE
+import jdk.internal.misc.Unsafe; // for ADDRESS_SIZE
import sun.hotspot.WhiteBox;
public class TestShrinkAuxiliaryData {
@@ -52,6 +52,7 @@
"-Xlog:gc=debug",
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-Xbootclasspath/a:.",
};
--- a/hotspot/test/gc/g1/humongousObjects/TestHeapCounters.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestHeapCounters.java Sun May 01 12:47:00 2016 +0300
@@ -39,6 +39,7 @@
* @summary Checks that heap counters work as expected after humongous allocations/deallocations
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/humongousObjects/TestHumongousClassLoader.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestHumongousClassLoader.java Sun May 01 12:47:00 2016 +0300
@@ -42,6 +42,7 @@
* @requires vm.opt.G1HeapRegionSize == "null" | vm.opt.G1HeapRegionSize == "1M"
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/humongousObjects/TestHumongousMovement.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestHumongousMovement.java Sun May 01 12:47:00 2016 +0300
@@ -41,6 +41,7 @@
* @summary Checks that Humongous objects are not moved during GC
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestHumongousNonArrayAllocation.java Sun May 01 12:47:00 2016 +0300
@@ -40,6 +40,7 @@
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires vm.opt.G1HeapRegionSize == "null" | vm.opt.G1HeapRegionSize == "1M"
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/humongousObjects/TestHumongousThreshold.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestHumongousThreshold.java Sun May 01 12:47:00 2016 +0300
@@ -33,6 +33,7 @@
* @summary Checks that objects larger than half a region are allocated as humongous
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/humongousObjects/TestObjectCollected.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/humongousObjects/TestObjectCollected.java Sun May 01 12:47:00 2016 +0300
@@ -39,6 +39,7 @@
* actual object behavior
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox
* gc.testlibrary.Helpers
--- a/hotspot/test/gc/g1/ihop/TestIHOPErgo.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/ihop/TestIHOPErgo.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* @requires vm.opt.FlightRecorder != true
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build gc.g1.ihop.TestIHOPErgo
* gc.g1.ihop.lib.IhopUtils
--- a/hotspot/test/gc/g1/ihop/TestIHOPStatic.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/ihop/TestIHOPStatic.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* @requires vm.opt.FlightRecorder != true
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @library /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build gc.g1.ihop.TestIHOPStatic
* gc.g1.ihop.lib.IhopUtils
--- a/hotspot/test/gc/g1/mixedgc/TestLogging.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/mixedgc/TestLogging.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @summary Check that a mixed GC is reflected in the gc logs
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build sun.hotspot.WhiteBox gc.g1.mixedgc.TestLogging
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/gc/g1/plab/TestPLABEvacuationFailure.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/plab/TestPLABEvacuationFailure.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @summary Checks PLAB statistics on evacuation failure
* @requires vm.gc=="G1" | vm.gc=="null"
* @library /testlibrary /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build gc.g1.plab.lib.LogParser
* gc.g1.plab.lib.AppPLABEvacuationFailure
--- a/hotspot/test/gc/g1/plab/TestPLABPromotion.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/plab/TestPLABPromotion.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires vm.opt.FlightRecorder != true
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build ClassFileInstaller
* sun.hotspot.WhiteBox
--- a/hotspot/test/gc/g1/plab/TestPLABResize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/g1/plab/TestPLABResize.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @requires vm.gc=="G1" | vm.gc=="null"
* @requires vm.opt.FlightRecorder != true
* @library /testlibrary /test/lib /
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build ClassFileInstaller
* sun.hotspot.WhiteBox
--- a/hotspot/test/gc/metaspace/TestMetaspaceInitialization.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/metaspace/TestMetaspaceInitialization.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/* @test TestMetaspaceInitialization
* @bug 8042933
* @summary Tests to initialize metaspace with a very low MetaspaceSize
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -XX:MetaspaceSize=2m TestMetaspaceInitialization
*/
--- a/hotspot/test/gc/parallel/TestDynShrinkHeap.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/parallel/TestDynShrinkHeap.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8016479
* @requires vm.gc=="Parallel" | vm.gc=="null"
* @summary Verify that the heap shrinks after full GC according to the current values of the Min/MaxHeapFreeRatio flags
+ * @modules java.base/jdk.internal.misc
* @modules jdk.management
* @library /testlibrary
* @run main/othervm -XX:+UseAdaptiveSizePolicyWithSystemGC -XX:+UseParallelGC -XX:MinHeapFreeRatio=0 -XX:MaxHeapFreeRatio=100 -Xmx1g -verbose:gc TestDynShrinkHeap
--- a/hotspot/test/gc/parallel/TestPrintGCDetailsVerbose.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/parallel/TestPrintGCDetailsVerbose.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @summary Tests that jvm with maximally verbose GC logging does not crash when ParOldGC has no memory
* @key gc
* @requires vm.gc=="Parallel" | vm.gc=="null"
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -Xmx50m -XX:+UseParallelGC -Xlog:gc*=trace TestPrintGCDetailsVerbose
*/
--- a/hotspot/test/gc/stress/TestMultiThreadStressRSet.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/stress/TestMultiThreadStressRSet.java Sun May 01 12:47:00 2016 +0300
@@ -35,6 +35,7 @@
* @requires os.maxMemory > 2G
*
* @summary Stress G1 Remembered Set using multiple threads
+ * @modules java.base/jdk.internal.misc
* @library /test/lib /testlibrary
* @build sun.hotspot.WhiteBox
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/gc/survivorAlignment/SurvivorAlignmentTestMain.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/gc/survivorAlignment/SurvivorAlignmentTestMain.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
import jdk.test.lib.Asserts;
import com.sun.management.ThreadMXBean;
import sun.hotspot.WhiteBox;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Main class for tests on {@code SurvivorAlignmentInBytes} option.
--- a/hotspot/test/runtime/8026365/InvokeSpecialAnonTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/8026365/InvokeSpecialAnonTest.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,7 @@
*/
import jdk.internal.org.objectweb.asm.*;
import java.lang.reflect.Constructor;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class InvokeSpecialAnonTest implements Opcodes {
--- a/hotspot/test/runtime/BoolReturn/NativeSmallIntCallsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/BoolReturn/NativeSmallIntCallsTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/* @test
* @bug 8149170
* @summary Test native functions return booleans as 0/1 but differently than java functions
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile BoolConstructor.java
* @run main/native NativeSmallIntCallsTest
--- a/hotspot/test/runtime/ClassUnload/KeepAliveClass.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ClassUnload/KeepAliveClass.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test KeepAliveClass
* @summary This test case uses a java.lang.Class instance to keep a class alive.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /runtime/testlibrary
* @library classes
* @build KeepAliveClass test.Empty
--- a/hotspot/test/runtime/ClassUnload/KeepAliveClassLoader.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ClassUnload/KeepAliveClassLoader.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test KeepAliveClassLoader
* @summary This test case uses a java.lang.ClassLoader instance to keep a class alive.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /runtime/testlibrary
* @library classes
* @build KeepAliveClassLoader test.Empty
--- a/hotspot/test/runtime/ClassUnload/KeepAliveObject.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ClassUnload/KeepAliveObject.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test KeepAliveObject
* @summary This test case uses a class instance to keep the class alive.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /runtime/testlibrary
* @library classes
* @build KeepAliveObject test.Empty
--- a/hotspot/test/runtime/ClassUnload/KeepAliveSoftReference.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ClassUnload/KeepAliveSoftReference.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test KeepAliveSoftReference
* @summary This test case uses a java.lang.ref.SoftReference referencing a class instance to keep a class alive.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /runtime/testlibrary
* @library classes
* @build KeepAliveSoftReference test.Empty
--- a/hotspot/test/runtime/ClassUnload/UnloadTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ClassUnload/UnloadTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test UnloadTest
+ * @modules java.base/jdk.internal.misc
* @library /runtime/testlibrary /testlibrary /test/lib
* @library classes
* @build ClassUnloadCommon test.Empty
--- a/hotspot/test/runtime/CommandLine/ObsoleteFlagErrorMessage.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/CommandLine/ObsoleteFlagErrorMessage.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8060449 8073989
* @summary Newly obsolete command line options should still give useful error messages when used improperly.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/runtime/CommandLine/TestLongUnrecognizedVMOption.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/CommandLine/TestLongUnrecognizedVMOption.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8129786
* @summary Verify that JVM correctly processes very long unrecognized VM option
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @run main TestLongUnrecognizedVMOption
*/
--- a/hotspot/test/runtime/CommandLine/VMAliasOptions.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/CommandLine/VMAliasOptions.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @test
* @bug 8061611
* @summary Test that various alias options correctly set the target options. See aliased_jvm_flags in arguments.cpp.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
public class VMAliasOptions {
--- a/hotspot/test/runtime/CommandLine/VMDeprecatedOptions.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/CommandLine/VMDeprecatedOptions.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @test
* @bug 8066821
* @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
public class VMDeprecatedOptions {
--- a/hotspot/test/runtime/CommandLine/VMOptionsFile/TestVMOptionsFile.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/CommandLine/VMOptionsFile/TestVMOptionsFile.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8061999 8135195 8136552
* @summary Test "-XX:VMOptionsFile" VM option
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules jdk.management
* @run main TestVMOptionsFile
*/
--- a/hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java Sun May 01 12:47:00 2016 +0300
@@ -33,7 +33,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class CreateCoredumpOnCrash {
private static class Crasher {
@@ -56,7 +56,7 @@
public static OutputAnalyzer runTest(String option) throws Exception {
return new OutputAnalyzer(
ProcessTools.createJavaProcessBuilder(
- "-Xmx64m", "-XX:-TransmitErrorReport", option, Crasher.class.getName())
+ "-Xmx64m", "-XX:-TransmitErrorReport", "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED", option, Crasher.class.getName())
.start());
}
}
--- a/hotspot/test/runtime/ErrorHandling/ErrorHandler.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/ErrorHandler.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 8015884
* @summary Exercise HotSpot error handling code by invoking java with
* -XX:ErrorHandlerTest option to cause an error report. Check the results.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run driver ErrorHandler
*/
--- a/hotspot/test/runtime/ErrorHandling/ProblematicFrameTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/ProblematicFrameTest.java Sun May 01 12:47:00 2016 +0300
@@ -36,7 +36,7 @@
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.test.lib.Utils;
public class ProblematicFrameTest {
--- a/hotspot/test/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java Sun May 01 12:47:00 2016 +0300
@@ -35,6 +35,7 @@
* @test
* @bug 8074552
* @summary SafeFetch32 and SafeFetchN do not work in error handling
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @author Thomas Stuefe (SAP)
*/
--- a/hotspot/test/runtime/ErrorHandling/TestCrashOnOutOfMemoryError.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/TestCrashOnOutOfMemoryError.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestCrashOnOutOfMemoryError
* @summary Test using -XX:+CrashOnOutOfMemoryError
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @run driver TestCrashOnOutOfMemoryError
--- a/hotspot/test/runtime/ErrorHandling/TestExitOnOutOfMemoryError.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/TestExitOnOutOfMemoryError.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestExitOnOutOfMemoryError
* @summary Test using -XX:ExitOnOutOfMemoryError
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @run driver TestExitOnOutOfMemoryError
--- a/hotspot/test/runtime/ErrorHandling/TestOnError.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/TestOnError.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestOnError
* @summary Test using -XX:OnError=<cmd>
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build TestOnError
* @run main TestOnError
--- a/hotspot/test/runtime/ErrorHandling/TestOnOutOfMemoryError.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ErrorHandling/TestOnOutOfMemoryError.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestOnOutOfMemoryError
* @summary Test using -XX:OnOutOfMemoryError=<cmd>
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build TestOnOutOfMemoryError
* @run main TestOnOutOfMemoryError
--- a/hotspot/test/runtime/Metaspace/FragmentMetaspace.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Metaspace/FragmentMetaspace.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/**
* @test
* @library /runtime/testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.compiler
* @build GeneratedClassLoader
* @run main/othervm/timeout=200 -Xmx300m FragmentMetaspace
--- a/hotspot/test/runtime/NMT/ChangeTrackingLevel.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/NMT/ChangeTrackingLevel.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8059100
* @summary Test that you can decrease NMT tracking level but not increase it.
* @key nmt
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build ChangeTrackingLevel
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/NMT/MallocSiteHashOverflow.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/NMT/MallocSiteHashOverflow.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @summary Test corner case that overflows malloc site hashtable bucket
* @requires sun.arch.data.model == "32"
* @key nmt jcmd stress
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build MallocSiteHashOverflow
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/NMT/PrintNMTStatistics.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/NMT/PrintNMTStatistics.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @key nmt regression
* @bug 8005936 8058606
* @summary Verify PrintNMTStatistics on normal JVM exit for detail and summary tracking level
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/runtime/NMT/ReleaseCommittedMemory.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/NMT/ReleaseCommittedMemory.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8013120
* @summary Release committed memory and make sure NMT handles it correctly
* @key nmt regression
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build ReleaseCommittedMemory
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/RedefineTests/RedefineAnnotations.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/RedefineTests/RedefineAnnotations.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @library /testlibrary
* @summary Test that type annotations are retained after a retransform
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/runtime/RedefineTests/RedefineFinalizer.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/RedefineTests/RedefineFinalizer.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 6904403
* @summary Don't assert if we redefine finalize method
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.compiler
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/runtime/RedefineTests/RedefineRunningMethods.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/RedefineTests/RedefineRunningMethods.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8055008
* @summary Redefine EMCP and non-EMCP methods that are running in an infinite loop
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.compiler
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/runtime/RedefineTests/RedefineRunningMethodsWithBacktrace.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/RedefineTests/RedefineRunningMethodsWithBacktrace.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8087315
* @summary Get old method's stack trace elements after GC
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.compiler
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/runtime/RedefineTests/RedefineRunningMethodsWithResolutionErrors.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/RedefineTests/RedefineRunningMethodsWithResolutionErrors.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8076110
* @summary Redefine running methods that have cached resolution errors
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.org.objectweb.asm
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/runtime/ReservedStack/ReservedStackTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ReservedStack/ReservedStackTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test ReservedStackTest
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @build jdk.test.lib.*
* @run main/othervm -XX:-Inline -XX:CompileCommand=exclude,java/util/concurrent/locks/AbstractOwnableSynchronizer.setExclusiveOwnerThread ReservedStackTest
--- a/hotspot/test/runtime/SameObject/SameObject.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/SameObject/SameObject.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
* @summary -Xcheck:jni overly strict in JNI method IsSameObject
* Fixed in JDK1.3.1_10
* Fixed in JDK1.4.1_07
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm/native -Xcheck:jni SameObject
*/
--- a/hotspot/test/runtime/Thread/Fibonacci.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Thread/Fibonacci.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* This test is skipped on 32-bit Windows: limited virtual space on Win-32
* make this test inherently unstable on Windows with 32-bit VM data model.
* @requires !(os.family == "windows" & sun.arch.data.model == "32")
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm Fibonacci 15
*/
--- a/hotspot/test/runtime/ThreadSignalMask/ThreadSignalMask.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/ThreadSignalMask/ThreadSignalMask.java Sun May 01 12:47:00 2016 +0300
@@ -36,6 +36,7 @@
* @bug 4345157
* @summary JDK 1.3.0 alters thread signal mask
* @requires (os.simpleArch == "sparcv9")
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile Prog.java
* @run main/native ThreadSignalMask
--- a/hotspot/test/runtime/Throwable/TestThrowable.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Throwable/TestThrowable.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8150778
* @summary Test exception depths, and code to get stack traces
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm -XX:MaxJavaStackTraceDepth=1024 TestThrowable
*/
--- a/hotspot/test/runtime/Throwable/ThrowableIntrospectionSegfault.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Throwable/ThrowableIntrospectionSegfault.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8033735
* @summary check backtrace field introspection
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main ThrowableIntrospectionSegfault
*/
--- a/hotspot/test/runtime/Unsafe/AllocateInstance.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/AllocateInstance.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class AllocateInstance {
--- a/hotspot/test/runtime/Unsafe/AllocateMemory.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/AllocateMemory.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class AllocateMemory {
--- a/hotspot/test/runtime/Unsafe/CopyMemory.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/CopyMemory.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class CopyMemory {
--- a/hotspot/test/runtime/Unsafe/DefineClass.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/DefineClass.java Sun May 01 12:47:00 2016 +0300
@@ -34,7 +34,7 @@
import java.security.ProtectionDomain;
import java.io.InputStream;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class DefineClass {
--- a/hotspot/test/runtime/Unsafe/FieldOffset.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/FieldOffset.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
import static jdk.test.lib.Asserts.*;
--- a/hotspot/test/runtime/Unsafe/GetField.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetField.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import java.lang.reflect.*;
import static jdk.test.lib.Asserts.*;
--- a/hotspot/test/runtime/Unsafe/GetKlassPointerGetJavaMirror.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetKlassPointerGetJavaMirror.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import static jdk.test.lib.Asserts.*;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class GetKlassPointerGetJavaMirror {
--- a/hotspot/test/runtime/Unsafe/GetPutAddress.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutAddress.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutAddress {
--- a/hotspot/test/runtime/Unsafe/GetPutBoolean.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutBoolean.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutBoolean {
--- a/hotspot/test/runtime/Unsafe/GetPutByte.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutByte.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutByte {
--- a/hotspot/test/runtime/Unsafe/GetPutChar.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutChar.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutChar {
--- a/hotspot/test/runtime/Unsafe/GetPutDouble.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutDouble.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutDouble {
--- a/hotspot/test/runtime/Unsafe/GetPutFloat.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutFloat.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutFloat {
--- a/hotspot/test/runtime/Unsafe/GetPutInt.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutInt.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutInt {
--- a/hotspot/test/runtime/Unsafe/GetPutLong.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutLong.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutLong {
--- a/hotspot/test/runtime/Unsafe/GetPutObject.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutObject.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutObject {
--- a/hotspot/test/runtime/Unsafe/GetPutShort.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetPutShort.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetPutShort {
--- a/hotspot/test/runtime/Unsafe/GetUncompressedObject.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetUncompressedObject.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import static jdk.test.lib.Asserts.*;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class GetUncompressedObject {
--- a/hotspot/test/runtime/Unsafe/GetUnsafe.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/GetUnsafe.java Sun May 01 12:47:00 2016 +0300
@@ -29,7 +29,7 @@
* @run main GetUnsafe
*/
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class GetUnsafe {
--- a/hotspot/test/runtime/Unsafe/PageSize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/PageSize.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
import java.lang.reflect.Field;
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class PageSize {
--- a/hotspot/test/runtime/Unsafe/PrimitiveHostClass.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/PrimitiveHostClass.java Sun May 01 12:47:00 2016 +0300
@@ -25,7 +25,7 @@
import java.lang.reflect.Field;
import static jdk.internal.org.objectweb.asm.Opcodes.*;
import jdk.internal.org.objectweb.asm.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/*
* @test PrimitiveHostClass
--- a/hotspot/test/runtime/Unsafe/RangeCheck.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/RangeCheck.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
public class RangeCheck {
@@ -44,6 +44,7 @@
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
true,
"-Xmx32m",
+ "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED",
"-XX:-TransmitErrorReport",
"-XX:-CreateCoredumpOnCrash",
"-XX:-InlineUnsafeOps", // The compiler intrinsics doesn't have the assert
--- a/hotspot/test/runtime/Unsafe/Reallocate.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/Reallocate.java Sun May 01 12:47:00 2016 +0300
@@ -32,7 +32,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class Reallocate {
--- a/hotspot/test/runtime/Unsafe/SetMemory.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/SetMemory.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class SetMemory {
--- a/hotspot/test/runtime/Unsafe/ThrowException.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/Unsafe/ThrowException.java Sun May 01 12:47:00 2016 +0300
@@ -31,7 +31,7 @@
*/
import jdk.test.lib.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import static jdk.test.lib.Asserts.*;
public class ThrowException {
--- a/hotspot/test/runtime/contended/Basic.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/Basic.java Sun May 01 12:47:00 2016 +0300
@@ -35,13 +35,14 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
* @test
* @bug 8003985
* @summary Support Contended Annotation - JEP 142
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:-RestrictContended Basic
*/
--- a/hotspot/test/runtime/contended/DefaultValue.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/DefaultValue.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,7 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
@@ -43,6 +43,7 @@
* @bug 8014509
* @summary \@Contended: explicit default value behaves differently from the implicit value
*
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:-RestrictContended DefaultValue
*/
--- a/hotspot/test/runtime/contended/HasNonStatic.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/HasNonStatic.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,7 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
@@ -43,6 +43,7 @@
* @bug 8015270
* @summary \@Contended: fix multiple issues in the layout code
*
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:-RestrictContended HasNonStatic
*/
--- a/hotspot/test/runtime/contended/Inheritance1.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/Inheritance1.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,7 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
@@ -43,6 +43,7 @@
* @bug 8012939
* @summary \@Contended doesn't work correctly with inheritance
*
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.vm.annotation
* @run main/othervm -XX:-RestrictContended Inheritance1
*/
--- a/hotspot/test/runtime/contended/OopMaps.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/OopMaps.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,6 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
--- a/hotspot/test/runtime/contended/OopMapsSameGroup.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/contended/OopMapsSameGroup.java Sun May 01 12:47:00 2016 +0300
@@ -35,7 +35,6 @@
import java.util.regex.Pattern;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
import jdk.internal.vm.annotation.Contended;
/*
--- a/hotspot/test/runtime/getSysPackage/GetSysPkgTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/getSysPackage/GetSysPkgTest.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.loader
* java.desktop
* @library /testlibrary
--- a/hotspot/test/runtime/interned/SanityTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/interned/SanityTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test SanityTest
* @summary Sanity check of String.intern() & GC
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build SanityTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/libadimalloc.solaris.sparc/Testlibadimalloc.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/libadimalloc.solaris.sparc/Testlibadimalloc.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @bug 8141445
* @summary make sure the Solaris Sparc M7 libadimalloc.so library generates SIGSEGV's on buffer overflow
* @requires (os.family == "solaris" & os.arch == "sparcv9")
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @compile SEGVOverflow.java
--- a/hotspot/test/runtime/logging/ClassInitializationTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/ClassInitializationTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test ClassInitializationTest
* @bug 8142976
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile BadMap50.jasm
* @build jdk.test.lib.OutputAnalyzer jdk.test.lib.Platform jdk.test.lib.ProcessTools
--- a/hotspot/test/runtime/logging/ClassLoadUnloadTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/ClassLoadUnloadTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test ClassLoadUnloadTest
* @bug 8142506
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /runtime/testlibrary
* @library classes
* @build ClassUnloadCommon test.Empty jdk.test.lib.* jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
--- a/hotspot/test/runtime/logging/ClassResolutionTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/ClassResolutionTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test ClassResolutionTest
* @bug 8144874
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver ClassResolutionTest
--- a/hotspot/test/runtime/logging/LoaderConstraintsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/LoaderConstraintsTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test LoaderConstraintsTest
* @bug 8149996
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /runtime/testlibrary
* @library classes
* @build ClassUnloadCommon test.Empty jdk.test.lib.* jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
--- a/hotspot/test/runtime/logging/MonitorMismatchTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/MonitorMismatchTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test MonitorMismatchTest
* @bug 8150084
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile MonitorMismatchHelper.jasm
* @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools jdk.test.lib.Platform
--- a/hotspot/test/runtime/logging/ProtectionDomainVerificationTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/ProtectionDomainVerificationTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test ProtectionDomainVerificationTest
* @bug 8149064
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.OutputAnalyzer jdk.test.lib.Platform jdk.test.lib.ProcessTools
* @run driver ProtectionDomainVerificationTest
--- a/hotspot/test/runtime/logging/RemovedDevelopFlagsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/logging/RemovedDevelopFlagsTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/*
* @test RemovedDevelopFlagsTest
* @bug 8146632
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools
* @run driver RemovedDevelopFlagsTest
--- a/hotspot/test/runtime/memory/ReadVMPageSize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/memory/ReadVMPageSize.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Using WhiteBox to get VM page size
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build ReadVMPageSize
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/memory/StressVirtualSpaceResize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/memory/StressVirtualSpaceResize.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Stress test that expands/shrinks VirtualSpace
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build StressVirtualSpaceResize
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/modules/AccessCheck/CheckRead.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/CheckRead.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can not read module m2, then class p1.c1
* in module m1 can not access p2.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_CheckRead.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_CheckRead.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can not read module m2, then class p1.c1
* in module m1 can not access p2.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary Test that if module m1 can read module m2, but package p2 in m2
* is exported specifically to module m3, then class p1.c1 in m1 can not
* access p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpQualToM1.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpQualToM1.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary class p1.c1 defined in m1 tries to access p2.c2 defined in m2.
* Access allowed since m1 can read m2 and package p2 is exported to m1.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpUnqual.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_ExpUnqual.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can read module m2, and package p2 in m2 is
* exported unqualifiedly, then class p1.c1 in m1 can read p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_PkgNotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_PkgNotExp.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can read module m2, but package p2 in m2 is not
* exported, then class p1.c1 in m1 can not read p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_Umod.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_Umod.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary class p1.c1 defined in m1 tries to access p2.c2 defined in unnamed module.
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.module
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_UmodUpkg.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_UmodUpkg.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary class p3.c3 defined in module m1 tries to access c4 defined in an unnamed package
* and an unnamed module.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile c4.java
--- a/hotspot/test/runtime/modules/AccessCheck/ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary Test that if module m1 can read module m2, but package p2 in m2
* is exported specifically to module m3, then class p1.c1 in m1 can not
* access p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/ExpQualToM1.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/ExpQualToM1.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can read module m2, AND package p2 in m2 is
* exported qualifiedly to m1, then class p1.c1 in m1 can read p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/ExpUnqual.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/ExpUnqual.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can read module m2, AND package p2 in module2 is
* exported unqualifiedly, then class p1.c1 in m1 can read p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/ExportAllUnnamed.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/ExportAllUnnamed.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary Test if package p2 in module m2 is exported to all unnamed,
* then class p1.c1 in an unnamed module can read p2.c2 in module m2.
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.module
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/PkgNotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/PkgNotExp.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if module m1 can read module m2, but package p2 in m2 is not
* exported, then class p1.c1 in m1 can not read p2.c2 in m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/Umod.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/Umod.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary class p1.c1 defined in m1 tries to access p2.c2 defined in unnamed module.
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.base/jdk.internal.module
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary class p1.c1 defined in an unnamed module tries to access p2.c2 defined in m2.
* Access is denied, since an unnamed module can read all modules but p2 in module
* m2 is exported specifically to module m1, not to all modules.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_ExpUnqual.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_ExpUnqual.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary class p1.c1 defined in an unnamed module tries to access p2.c2 defined in m2.
* Access allowed, an unnamed module can read all modules and p2 in module m2
* which is exported unqualifiedly.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_PkgNotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodDiffCL_PkgNotExp.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary class p1.c1 defined in unnamed module tries to access p2.c2 defined in m2.
* Access is denied since even though unnamed module can read all modules, p2
* in module m2 is not exported at all.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodUPkg.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodUPkg.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/*
* @test
* @summary class p3.c3 defined in module m1 tries to access c4 defined in unnamed module.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile c4.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodUpkgDiffCL_ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodUpkgDiffCL_ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* @summary class c5 defined in an unnamed module tries to access p6.c6 defined in m2.
* Access is denied, since an unnamed module can read all modules but p6 in module
* m2 is exported specifically to module m1, not to all modules.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p6/c6.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodUpkgDiffCL_NotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodUpkgDiffCL_NotExp.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary class c5 in an unnamed module can read module m2, but package p6 in module m2 is not exported.
* Access denied since even though unnamed module can read all modules, p6 in module m2 is not exported at all.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MyDiffClassLoader.java
* @compile p6/c6.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodUpkg_ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodUpkg_ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if class c5 in an unnamed module can read package p6 in module m2, but package p6 in module m2 is
* exported qualifiedly to module m3, then class c5 in an unnamed module can not read p6.c6 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p6/c6.java
--- a/hotspot/test/runtime/modules/AccessCheck/UmodUpkg_NotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/UmodUpkg_NotExp.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test if package p6 in module m2 is not exported, then class c5
* in an unnamed module can not access p6.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p6/c6.java
--- a/hotspot/test/runtime/modules/AccessCheck/Umod_ExpQualOther.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/Umod_ExpQualOther.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test that if package p2 in module m2 is exported to module m3,
* then class p1.c1 in an unnamed module can not read p2.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/Umod_ExpUnqual.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/Umod_ExpUnqual.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test if package p2 in module m2 is exported unqualifiedly,
* then class p1.c1 in an unnamed module can read p2.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheck/Umod_PkgNotExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheck/Umod_PkgNotExp.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test if package p2 in module m2 is not exported, then class p1.c1
* in an unnamed module can not access p2.c2 in module m2.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @compile myloaders/MySameClassLoader.java
* @compile p2/c2.java
--- a/hotspot/test/runtime/modules/AccessCheckAllUnnamed.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckAllUnnamed.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/AccessCheckExp.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckExp.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/AccessCheckJavaBase.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckJavaBase.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @build sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/modules/AccessCheckRead.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckRead.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/AccessCheckSuper.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckSuper.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p3/c3.java
--- a/hotspot/test/runtime/modules/AccessCheckUnnamed.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckUnnamed.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/AccessCheckWorks.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/AccessCheckWorks.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/ExportTwice.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/ExportTwice.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/JVMAddModuleExportToAllUnnamed.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMAddModuleExportToAllUnnamed.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/JVMAddModuleExports.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMAddModuleExports.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/JVMAddModuleExportsToAll.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMAddModuleExportsToAll.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @compile p1/c1.java
--- a/hotspot/test/runtime/modules/JVMAddModulePackage.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMAddModulePackage.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/JVMAddReadsModule.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMAddReadsModule.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/JVMCanReadModule.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMCanReadModule.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/JVMDefineModule.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMDefineModule.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/JVMGetModuleByPkgName.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMGetModuleByPkgName.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @compile p2/c2.java
* @build sun.hotspot.WhiteBox
--- a/hotspot/test/runtime/modules/JVMIsExportedToModule.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/JVMIsExportedToModule.java Sun May 01 12:47:00 2016 +0300
@@ -23,6 +23,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/LoadUnloadModuleStress.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/LoadUnloadModuleStress.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Ensure module information is cleaned when owning class loader unloads
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ..
* @build sun.hotspot.WhiteBox
* @compile/module=java.base java/lang/reflect/ModuleHelper.java
--- a/hotspot/test/runtime/modules/Xpatch/Xpatch2Dirs.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/Xpatch/Xpatch2Dirs.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Make sure -Xpatch works with multiple directories.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile Xpatch2DirsMain.java
* @run main Xpatch2Dirs
--- a/hotspot/test/runtime/modules/Xpatch/XpatchTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/Xpatch/XpatchTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8130399
* @summary Make sure -Xpatch works for modules besides java.base.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile XpatchMain.java
* @run main XpatchTest
--- a/hotspot/test/runtime/modules/Xpatch/XpatchTraceCL.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/modules/Xpatch/XpatchTraceCL.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8069469
* @summary Make sure -XX:+TraceClassLoading works properly with "modules" jimage,
-Xpatch, and with -Xbootclasspath/a
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile XpatchMain.java
* @run main XpatchTraceCL
--- a/hotspot/test/runtime/os/AvailableProcessors.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/os/AvailableProcessors.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
* @bug 6515172 8148766
* @summary Check that availableProcessors reports the correct value when running in a cpuset on linux
* @requires os.family == "linux"
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @run driver AvailableProcessors
--- a/hotspot/test/runtime/verifier/TraceClassRes.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/verifier/TraceClassRes.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @bug 8076318
* @summary split verifier needs to add TraceClassResolution
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/runtime/whitebox/WBStackSize.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/runtime/whitebox/WBStackSize.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test WBStackSize
* @summary verify that whitebox functions getThreadFullStackSize() and getThreadRemainingStackSize are working
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build WBStackSize
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/sanity/MismatchedWhiteBox/WhiteBox.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/sanity/MismatchedWhiteBox/WhiteBox.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 8011675
* @summary verify that whitebox can be used even if not all functions are declared in java-part
* @author igor.ignatyev@oracle.com
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @compile WhiteBox.java
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/sanity/WBApi.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/sanity/WBApi.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test WBApi
* @summary verify that whitebox functions can be linked and executed
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build WBApi
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/serviceability/ParserTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/ParserTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Test that the diagnostic command arguemnt parser works
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib
* @build ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.parser.*
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/serviceability/attach/AttachWithStalePidFile.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/attach/AttachWithStalePidFile.java Sun May 01 12:47:00 2016 +0300
@@ -26,6 +26,7 @@
* @bug 7162400
* @key regression
* @summary Regression test for attach issue where stale pid files in /tmp lead to connection issues
+ * @modules java.base/jdk.internal.misc
* @modules jdk.attach/sun.tools.attach
* @library /testlibrary
* @build jdk.test.lib.* AttachWithStalePidFileTarget
--- a/hotspot/test/serviceability/dcmd/gc/FinalizerInfoTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/dcmd/gc/FinalizerInfoTest.java Sun May 01 12:47:00 2016 +0300
@@ -36,6 +36,7 @@
* @test
* @summary
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.xml
* java.management
* @build jdk.test.lib.*
--- a/hotspot/test/serviceability/dcmd/gc/HeapInfoTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/dcmd/gc/HeapInfoTest.java Sun May 01 12:47:00 2016 +0300
@@ -35,6 +35,7 @@
* @test
* @summary Test of diagnostic command GC.heap_info
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.xml
* java.management
* @build jdk.test.lib.*
--- a/hotspot/test/serviceability/dcmd/jvmti/DataDumpDcmdTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/dcmd/jvmti/DataDumpDcmdTest.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* @test
* @bug 8054890
* @summary Test of JVMTI.data_dump diagnostic command
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @run testng DataDumpDcmdTest
--- a/hotspot/test/serviceability/dcmd/vm/SetVMFlagTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/dcmd/vm/SetVMFlagTest.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* @test
* @bug 8054890
* @summary Test of VM.set_flag diagnostic command
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @build jdk.test.lib.dcmd.*
--- a/hotspot/test/serviceability/logging/TestBasicLogOutput.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/logging/TestBasicLogOutput.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestBasicLogOutput
* @summary Ensure logging can be enabled and successfully prints to stdout.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/serviceability/logging/TestMultipleXlogArgs.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/logging/TestMultipleXlogArgs.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestMultipleXlogArgs
* @summary Ensure multiple -Xlog arguments aggregate the logging options.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/serviceability/logging/TestQuotedLogOutputs.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/logging/TestQuotedLogOutputs.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test TestQuotedLogOutputs
* @summary Ensure proper parsing of quoted output names for -Xlog arguments.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
--- a/hotspot/test/serviceability/sa/DeadlockDetectionTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/sa/DeadlockDetectionTest.java Sun May 01 12:47:00 2016 +0300
@@ -40,6 +40,7 @@
* @summary Test deadlock detection
* @library /test/lib/share/classes
* @library /testlibrary
+ * @modules java.base/jdk.internal.misc
* @modules java.management
* @build jdk.test.lib.*
* @build jdk.test.lib.apps.*
--- a/hotspot/test/serviceability/sa/TestClassLoaderStats.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/sa/TestClassLoaderStats.java Sun May 01 12:47:00 2016 +0300
@@ -32,6 +32,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library /testlibrary
* @build jdk.test.lib.*
--- a/hotspot/test/serviceability/sa/TestStackTrace.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/sa/TestStackTrace.java Sun May 01 12:47:00 2016 +0300
@@ -32,6 +32,7 @@
/*
* @test
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library /testlibrary
* @build jdk.test.lib.*
--- a/hotspot/test/serviceability/threads/TestFalseDeadLock.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/threads/TestFalseDeadLock.java Sun May 01 12:47:00 2016 +0300
@@ -30,6 +30,7 @@
* @test
* @bug 8016304
* @summary Make sure no deadlock is reported for this program which has no deadlocks.
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @run main/othervm TestFalseDeadLock
*/
--- a/hotspot/test/serviceability/tmtools/jstack/DaemonThreadTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/DaemonThreadTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @summary Create daemon and non-deamon threads.
* Check the correctness of thread's status from jstack.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstack/JstackThreadTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/JstackThreadTest.java Sun May 01 12:47:00 2016 +0300
@@ -32,6 +32,7 @@
* @test JstackThreadTest
* @bug 8151442
* @summary jstack doesn't close quotation marks properly with threads' name greater than 1996 characters
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
* @build jdk.test.lib.*
* @run main JstackThreadTest
--- a/hotspot/test/serviceability/tmtools/jstack/SpreadLockTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/SpreadLockTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* synchronizing on one monitor inside of each method.
* After checking that lock info is correct invoke another method
* and get the lock again. Repeat this action.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstack/ThreadNamesTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/ThreadNamesTest.java Sun May 01 12:47:00 2016 +0300
@@ -24,6 +24,7 @@
/*
* @test
* @summary Checks that jstack correctly prints the thread names
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstack/TraveledLockTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/TraveledLockTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* synchronizing on one monitor inside of each method.
* After checking that lock info is correct free the lock and
* invoke another method. Repeat this action.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstack/WaitNotifyThreadTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstack/WaitNotifyThreadTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* presented in the stack is correct. Call notifyAll method
* monitor info have to disappear from the stack.
* Repeats the same scenario calling interrupt() method
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstat/GcCapacityTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcCapacityTest.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* @test
* @summary Test checks the consistency of the output
* displayed with jstat -gccapacity.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
--- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest01.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest01.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* test several times provokes garbage collection in the debuggee application and after each garbage
* collection runs jstat. jstat should show that after garbage collection number of GC events and garbage
* collection time increase.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
--- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest02.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest02.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* Test scenario:
* tests forces debuggee application eat ~70% of heap and runs jstat.
* jstat should show that ~70% of heap (OC/OU ~= 70%).
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest03.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest03.java Sun May 01 12:47:00 2016 +0300
@@ -27,6 +27,7 @@
* Test scenario:
* test forces debuggee application call System.gc(), runs jstat and checks that
* cause of last garbage collection displayed by jstat (LGCC) is 'System.gc()'.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstat/GcNewTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcNewTest.java Sun May 01 12:47:00 2016 +0300
@@ -29,6 +29,7 @@
* test several times provokes garbage collection in the debuggee application and after each garbage
* collection runs jstat. jstat should show that after garbage collection number of GC events and garbage
* collection time increase.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/serviceability/tmtools/jstat/GcTest01.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcTest01.java Sun May 01 12:47:00 2016 +0300
@@ -31,6 +31,7 @@
* jstat should show that after garbage collection
* number of GC events and garbage
* collection time increase.
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
--- a/hotspot/test/serviceability/tmtools/jstat/GcTest02.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/serviceability/tmtools/jstat/GcTest02.java Sun May 01 12:47:00 2016 +0300
@@ -28,6 +28,7 @@
* Test scenario:
* tests forces debuggee application eat ~70% of heap and runs jstat.
* jstat should show that ~70% of heap is utilized (OC/OU ~= 70%).
+ * @modules java.base/jdk.internal.misc
* @library /test/lib/share/classes
* @library ../share
* @build common.*
--- a/hotspot/test/testlibrary/jdk/test/lib/Utils.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary/jdk/test/lib/Utils.java Sun May 01 12:47:00 2016 +0300
@@ -51,7 +51,7 @@
import java.util.function.Consumer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
/**
* Common library for various test helper functions.
--- a/hotspot/test/testlibrary_tests/AssertsTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/AssertsTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
/* @test
* @summary Tests the different assertions in the Assert class
+ * @modules java.base/jdk.internal.misc
* @library /testlibrary
*/
public class AssertsTest {
--- a/hotspot/test/testlibrary_tests/RedefineClassTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/RedefineClassTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test
* @library /testlibrary
* @summary Proof of concept test for RedefineClassHelper
+ * @modules java.base/jdk.internal.misc
* @modules java.compiler
* java.instrument
* jdk.jartool/sun.tools.jar
--- a/hotspot/test/testlibrary_tests/whitebox/BlobSanityTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/whitebox/BlobSanityTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test BlobSanityTest
* @bug 8132980
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @build BlobSanityTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/whitebox/vm_flags/DoubleTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test DoubleTest
* @bug 8028756
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @build DoubleTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/testlibrary_tests/whitebox/vm_flags/IntxTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/whitebox/vm_flags/IntxTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test IntxTest
* @bug 8038756
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @build IntxTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/testlibrary_tests/whitebox/vm_flags/StringTest.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/whitebox/vm_flags/StringTest.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test StringTest
* @bug 8028756
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @build StringTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
--- a/hotspot/test/testlibrary_tests/whitebox/vm_flags/Uint64Test.java Fri Apr 29 22:40:51 2016 -0400
+++ b/hotspot/test/testlibrary_tests/whitebox/vm_flags/Uint64Test.java Sun May 01 12:47:00 2016 +0300
@@ -25,6 +25,7 @@
* @test Uint64Test
* @bug 8028756
* @library /testlibrary /test/lib
+ * @modules java.base/jdk.internal.misc
* @modules java.management/sun.management
* @build Uint64Test
* @run main ClassFileInstaller sun.hotspot.WhiteBox