changeset 8012:0b8ad3584a1c

Added AddModuleExports to the new runtime/Unsafe tests
author ctornqvi
date Tue, 03 Mar 2015 08:56:44 -0800
parents 26957b8c2b76
children 9f16f5d21ff1
files test/runtime/Unsafe/AllocateInstance.java test/runtime/Unsafe/AllocateMemory.java test/runtime/Unsafe/CopyMemory.java test/runtime/Unsafe/DefineClass.java test/runtime/Unsafe/FieldOffset.java test/runtime/Unsafe/GetField.java test/runtime/Unsafe/GetPutAddress.java test/runtime/Unsafe/GetPutBoolean.java test/runtime/Unsafe/GetPutByte.java test/runtime/Unsafe/GetPutChar.java test/runtime/Unsafe/GetPutDouble.java test/runtime/Unsafe/GetPutFloat.java test/runtime/Unsafe/GetPutInt.java test/runtime/Unsafe/GetPutLong.java test/runtime/Unsafe/GetPutObject.java test/runtime/Unsafe/GetPutShort.java test/runtime/Unsafe/GetUnsafe.java test/runtime/Unsafe/PageSize.java test/runtime/Unsafe/SetMemory.java test/runtime/Unsafe/ThrowException.java
diffstat 20 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/Unsafe/AllocateInstance.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/AllocateInstance.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies the behaviour of Unsafe.allocateInstance
  * @library /testlibrary
- * @run main AllocateInstance
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc AllocateInstance
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/AllocateMemory.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/AllocateMemory.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies behaviour of Unsafe.allocateMemory
  * @library /testlibrary
- * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m AllocateMemory
+ * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m -XX:AddModuleExports=java.base/sun.misc AllocateMemory
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/CopyMemory.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/CopyMemory.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies behaviour of Unsafe.copyMemory
  * @library /testlibrary
- * @run main CopyMemory
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc CopyMemory
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/DefineClass.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/DefineClass.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies the behaviour of Unsafe.defineClass
  * @library /testlibrary
- * @run main DefineClass
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc DefineClass
  */
 
 import java.security.ProtectionDomain;
--- a/test/runtime/Unsafe/FieldOffset.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/FieldOffset.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies the behaviour of Unsafe.fieldOffset
  * @library /testlibrary
- * @run main FieldOffset
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc FieldOffset
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetField.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetField.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies behaviour of Unsafe.getField
  * @library /testlibrary
- * @run main GetField
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetField
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/GetPutAddress.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutAddress.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * Verify behaviour of Unsafe.get/putAddress and Unsafe.addressSize
  * @library /testlibrary
- * @run main GetPutAddress
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutAddress
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/GetPutBoolean.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutBoolean.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putBoolean
  * @library /testlibrary
- * @run main GetPutBoolean
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutBoolean
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutByte.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutByte.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putByte
  * @library /testlibrary
- * @run main GetPutByte
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutByte
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutChar.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutChar.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putChar
  * @library /testlibrary
- * @run main GetPutChar
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutChar
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutDouble.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutDouble.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putDouble
  * @library /testlibrary
- * @run main GetPutDouble
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutDouble
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutFloat.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutFloat.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putFloat
  * @library /testlibrary
- * @run main GetPutFloat
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutFloat
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutInt.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutInt.java	Tue Mar 03 08:56:44 2015 -0800
@@ -24,7 +24,7 @@
 /*
  * @test
  * @library /testlibrary
- * @run main GetPutInt
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutInt
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutLong.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutLong.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putLong
  * @library /testlibrary
- * @run main GetPutLong
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutLong
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutObject.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutObject.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putObject
  * @library /testlibrary
- * @run main GetPutObject
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutObject
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetPutShort.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetPutShort.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify behaviour of Unsafe.get/putShort
  * @library /testlibrary
- * @run main GetPutShort
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetPutShort
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/GetUnsafe.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/GetUnsafe.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies that getUnsafe() actually throws SecurityException when unsafeAccess is prohibited.
  * @library /testlibrary
- * @run main GetUnsafe
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc GetUnsafe
  */
 
 import sun.misc.Unsafe;
--- a/test/runtime/Unsafe/PageSize.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/PageSize.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Make sure pageSize() returns a value that is a power of two
  * @library /testlibrary
- * @run main PageSize
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc PageSize
  */
 
 import java.lang.reflect.Field;
--- a/test/runtime/Unsafe/SetMemory.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/SetMemory.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verifies that setMemory works correctly
  * @library /testlibrary
- * @run main SetMemory
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc SetMemory
  */
 
 import com.oracle.java.testlibrary.*;
--- a/test/runtime/Unsafe/ThrowException.java	Tue Mar 03 09:06:21 2015 -0500
+++ b/test/runtime/Unsafe/ThrowException.java	Tue Mar 03 08:56:44 2015 -0800
@@ -25,7 +25,7 @@
  * @test
  * @summary Verify that throwException() can throw an exception
  * @library /testlibrary
- * @run main ThrowException
+ * @run main/othervm -XX:AddModuleExports=java.base/sun.misc ThrowException
  */
 
 import com.oracle.java.testlibrary.*;