8314501: Shenandoah: sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java fails
Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
parent
8939d15d92
commit
812f475bc4
@ -86,10 +86,8 @@ public class HeapSummary extends Tool {
|
||||
printValMB("MetaspaceSize = ", getFlagValue("MetaspaceSize", flagMap));
|
||||
printValMB("CompressedClassSpaceSize = ", getFlagValue("CompressedClassSpaceSize", flagMap));
|
||||
printValMB("MaxMetaspaceSize = ", getFlagValue("MaxMetaspaceSize", flagMap));
|
||||
if (heap instanceof ShenandoahHeap) {
|
||||
printValMB("ShenandoahRegionSize = ", ShenandoahHeapRegion.regionSizeBytes());
|
||||
} else {
|
||||
printValMB("G1HeapRegionSize = ", HeapRegion.grainBytes());
|
||||
if (heap instanceof G1CollectedHeap) {
|
||||
printValMB("G1HeapRegionSize = ", HeapRegion.grainBytes());
|
||||
}
|
||||
|
||||
System.out.println();
|
||||
@ -138,6 +136,7 @@ public class HeapSummary extends Tool {
|
||||
long num_regions = sh.numOfRegions();
|
||||
System.out.println("Shenandoah Heap:");
|
||||
System.out.println(" regions = " + num_regions);
|
||||
printValMB("region size = ", ShenandoahHeapRegion.regionSizeBytes());
|
||||
printValMB("capacity = ", num_regions * ShenandoahHeapRegion.regionSizeBytes());
|
||||
printValMB("used = ", sh.used());
|
||||
printValMB("committed = ", sh.committed());
|
||||
|
@ -57,8 +57,7 @@ public class JMapHeapConfigTest {
|
||||
"NewRatio",
|
||||
"SurvivorRatio",
|
||||
"MetaspaceSize",
|
||||
"CompressedClassSpaceSize",
|
||||
"G1HeapRegionSize"};
|
||||
"CompressedClassSpaceSize"};
|
||||
|
||||
// Test can't deal with negative jlongs:
|
||||
// ignoring MaxMetaspaceSize
|
||||
|
Loading…
Reference in New Issue
Block a user