< prev index next >
test/hotspot/jtreg/runtime/CompressedOops/CompressedClassSpaceSize.java
Print this page
rev 60538 : imported patch jep387-test.patch
@@ -62,16 +62,18 @@
output.shouldContain("outside the allowed range")
.shouldHaveExitValue(1);
// Make sure the minimum size is set correctly and printed
+ // (Note: ccs size shall be rounded up to the minimum size of 4m since metaspace reservations
+ // are done in a 4m granularity. Note that this is **reserved** size and does not affect rss.
pb = ProcessTools.createJavaProcessBuilder("-XX:+UnlockDiagnosticVMOptions",
"-XX:CompressedClassSpaceSize=1m",
"-Xlog:gc+metaspace=trace",
"-version");
output = new OutputAnalyzer(pb.start());
- output.shouldMatch("Compressed class space.*1048576")
+ output.shouldMatch("Compressed class space.*4194304")
.shouldHaveExitValue(0);
// Make sure the maximum size is set correctly and printed
pb = ProcessTools.createJavaProcessBuilder("-XX:+UnlockDiagnosticVMOptions",
< prev index next >