8164987: RTM jtreg tests failing due to unnamed module unable to access class jdk.internal.misc.Unsafe
authorgromero
Thu, 08 Sep 2016 18:17:50 -0400
changeset 41320 01ba89ffe494
parent 41319 af9a986a9ce2
child 41321 463ff7705f2f
8164987: RTM jtreg tests failing due to unnamed module unable to access class jdk.internal.misc.Unsafe Reviewed-by: kvn
hotspot/test/compiler/testlibrary/rtm/RTMTestBase.java
--- a/hotspot/test/compiler/testlibrary/rtm/RTMTestBase.java	Fri Sep 09 06:11:54 2016 -0700
+++ b/hotspot/test/compiler/testlibrary/rtm/RTMTestBase.java	Thu Sep 08 18:17:50 2016 -0400
@@ -241,7 +241,8 @@
                 "-XX:-TieredCompilation", "-XX:+UseRTMLocking",
                 CommandLineOptionTest.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
                 CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS,
-                "-Xbootclasspath/a:.", "-XX:+WhiteBoxAPI");
+                "-Xbootclasspath/a:.", "-XX:+WhiteBoxAPI",
+                "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED");
 
         if (test != null) {
             for (String method : test.getMethodsToCompileNames()) {