< prev index next >
test/hotspot/jtreg/runtime/cds/appcds/customLoader/LoaderSegregationTest.java
Print this page
@@ -61,11 +61,11 @@
public class LoaderSegregationTest {
public static void main(String[] args) throws Exception {
String wbJar = JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox");
String use_whitebox_jar = "-Xbootclasspath/a:" + wbJar;
- String appJar = JarBuilder.build("LoaderSegregation_app", "LoaderSegregation",
+ String appJar = JarBuilder.build("LoaderSegregation_app", "LoaderSegregation", "LoaderSegregation$1",
"CustomLoadee", "CustomLoadee2", "CustomLoadee3Child", "CustomInterface2_ia",
"OnlyBuiltin", "Util");
String app2Jar = JarBuilder.build("LoaderSegregation_app2", "CustomLoadee3", "CustomInterface2_ib");
@@ -108,12 +108,10 @@
// command-line arguments ...
use_whitebox_jar);
output = TestCommon.exec(TestCommon.concatPaths(appJar, app2Jar),
// command-line arguments ...
- "--add-opens=java.base/java.lang=ALL-UNNAMED",
- "--add-opens=java.base/java.security=ALL-UNNAMED",
use_whitebox_jar,
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"LoaderSegregation", customJarPath);
TestCommon.checkExec(output);
< prev index next >