< prev index next >
test/hotspot/jtreg/runtime/cds/appcds/customLoader/LoaderSegregationTest.java
Print this page
@@ -37,10 +37,11 @@
* test-classes/CustomInterface2_ia.java test-classes/CustomInterface2_ib.java
* test-classes/CustomLoadee3.java test-classes/CustomLoadee3Child.java
* test-classes/OnlyBuiltin.java
* test-classes/OnlyUnregistered.java
* ../test-classes/Util.java
+ * ../test-classes/Hello.java
* @build sun.hotspot.WhiteBox
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run driver LoaderSegregationTest
*/
@@ -72,11 +73,11 @@
String app2Jar = JarBuilder.build("LoaderSegregation_app2", "CustomLoadee3", "CustomInterface2_ib");
String customJarPath = JarBuilder.build("LoaderSegregation_custom", "CustomLoadee",
"CustomLoadee2", "CustomInterface2_ia", "CustomInterface2_ib",
"CustomLoadee3", "CustomLoadee3Child",
- "OnlyBuiltin", "OnlyUnregistered");
+ "OnlyBuiltin", "OnlyUnregistered", "Hello");
// Dump the archive
String classlist[] = new String[] {
"LoaderSegregation",
"java/lang/Object id: 1",
@@ -110,12 +111,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 >