--- a/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestInt.java Sat Apr 09 23:03:25 2016 +0100
+++ b/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestInt.java Sat Apr 09 23:03:39 2016 +0100
@@ -25,7 +25,7 @@
* @test
* @bug 8143628
* @summary Test unsafe access for int
- * @modules java.base/sun.misc
+ * @modules jdk.unsupported/sun.misc
* @run testng/othervm -Diters=100 -Xint SunMiscUnsafeAccessTestInt
* @run testng/othervm -Diters=20000 -XX:TieredStopAtLevel=1 SunMiscUnsafeAccessTestInt
* @run testng/othervm -Diters=20000 -XX:-TieredCompilation SunMiscUnsafeAccessTestInt
@@ -165,6 +165,7 @@
+
UNSAFE.putInt(base, offset, 1);
// Compare
@@ -183,6 +184,7 @@
}
+
// Compare set and get
{
int o = UNSAFE.getAndSetInt(base, offset, 1);
@@ -212,3 +214,4 @@
}
}
+