8164987: RTM jtreg tests failing due to unnamed module unable to access class jdk.internal.misc.Unsafe

Reviewed-by: kvn
This commit is contained in:
Gustavo Romero 2016-09-08 18:17:50 -04:00
parent 4ae6ce2b44
commit c6be265b46

View File

@ -241,7 +241,8 @@ public class RTMTestBase {
"-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()) {