< prev index next >
test/hotspot/jtreg/runtime/cds/appcds/customLoader/LoaderSegregationTest.java
Print this page
*** 37,46 ****
--- 37,47 ----
* 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,82 ****
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");
// Dump the archive
String classlist[] = new String[] {
"LoaderSegregation",
"java/lang/Object id: 1",
--- 73,83 ----
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", "Hello");
// Dump the archive
String classlist[] = new String[] {
"LoaderSegregation",
"java/lang/Object id: 1",
*** 110,121 ****
// 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);
--- 111,120 ----
< prev index next >