test/hotspot/jtreg/runtime/appcds/javaldr/GCDuringDump.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/appcds/javaldr/GCDuringDump.java
test/hotspot/jtreg/runtime/appcds/javaldr/GCDuringDump.java
Print this page
*** 54,79 ****
agentClasses);
String appJar =
ClassFileInstaller.writeJar("GCDuringDumpApp.jar", appClasses);
- String gcLog = "-Xlog:gc*=info,gc+region=trace,gc+alloc+region=debug";
-
for (int i=0; i<2; i++) {
// i = 0 -- run without agent = no extra GCs
// i = 1 -- run with agent = cause extra GCs
String extraArg = (i == 0) ? "-showversion" : "-javaagent:" + agentJar;
TestCommon.testDump(appJar, TestCommon.list("Hello"),
! extraArg, "-Xmx32m", gcLog);
TestCommon.run(
"-cp", appJar,
"-Xmx32m",
"-XX:+PrintSharedSpaces",
- gcLog,
"Hello")
.assertNormalExit();
}
}
}
--- 54,76 ----
agentClasses);
String appJar =
ClassFileInstaller.writeJar("GCDuringDumpApp.jar", appClasses);
for (int i=0; i<2; i++) {
// i = 0 -- run without agent = no extra GCs
// i = 1 -- run with agent = cause extra GCs
String extraArg = (i == 0) ? "-showversion" : "-javaagent:" + agentJar;
TestCommon.testDump(appJar, TestCommon.list("Hello"),
! extraArg, "-Xmx32m");
TestCommon.run(
"-cp", appJar,
"-Xmx32m",
"-XX:+PrintSharedSpaces",
"Hello")
.assertNormalExit();
}
}
}
test/hotspot/jtreg/runtime/appcds/javaldr/GCDuringDump.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File