mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8145092: Use Unified Logging for the GC logging
JEP-271. VM changes contributed by brutisso, test changes contributed by david. Co-authored-by: David Lindholm <david.lindholm@oralce.com> Reviewed-by: sjohanss, david, brutisso
This commit is contained in:
parent
581eb19018
commit
ffeb0bdad0
200 changed files with 3331 additions and 6147 deletions
|
@ -64,7 +64,7 @@ public class CompressedClassSpaceSize {
|
|||
// Make sure the minimum size is set correctly and printed
|
||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:CompressedClassSpaceSize=1m",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-Xlog:gc+metaspace=trace",
|
||||
"-version");
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("Compressed class space size: 1048576")
|
||||
|
@ -74,7 +74,7 @@ public class CompressedClassSpaceSize {
|
|||
// Make sure the maximum size is set correctly and printed
|
||||
pb = ProcessTools.createJavaProcessBuilder("-XX:+UnlockDiagnosticVMOptions",
|
||||
"-XX:CompressedClassSpaceSize=3g",
|
||||
"-XX:+PrintCompressedOopsMode",
|
||||
"-Xlog:gc+metaspace=trace",
|
||||
"-version");
|
||||
output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain("Compressed class space size: 3221225472")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue