File tree 2 files changed +4
-6
lines changed
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools
test/jdk/sun/tools/jhsdb/heapconfig
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,8 @@ public void run() {
85
85
printValMB ("MetaspaceSize = " , getFlagValue ("MetaspaceSize" , flagMap ));
86
86
printValMB ("CompressedClassSpaceSize = " , getFlagValue ("CompressedClassSpaceSize" , flagMap ));
87
87
printValMB ("MaxMetaspaceSize = " , getFlagValue ("MaxMetaspaceSize" , flagMap ));
88
- if (heap instanceof ShenandoahHeap ) {
89
- printValMB ("ShenandoahRegionSize = " , ShenandoahHeapRegion .regionSizeBytes ());
90
- } else {
91
- printValMB ("G1HeapRegionSize = " , HeapRegion .grainBytes ());
88
+ if (heap instanceof G1CollectedHeap ) {
89
+ printValMB ("G1HeapRegionSize = " , HeapRegion .grainBytes ());
92
90
}
93
91
94
92
System .out .println ();
@@ -137,6 +135,7 @@ public void run() {
137
135
long num_regions = sh .numOfRegions ();
138
136
System .out .println ("Shenandoah Heap:" );
139
137
System .out .println (" regions = " + num_regions );
138
+ printValMB ("region size = " , ShenandoahHeapRegion .regionSizeBytes ());
140
139
printValMB ("capacity = " , num_regions * ShenandoahHeapRegion .regionSizeBytes ());
141
140
printValMB ("used = " , sh .used ());
142
141
printValMB ("committed = " , sh .committed ());
Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ public class JMapHeapConfigTest {
57
57
"NewRatio" ,
58
58
"SurvivorRatio" ,
59
59
"MetaspaceSize" ,
60
- "CompressedClassSpaceSize" ,
61
- "G1HeapRegionSize" };
60
+ "CompressedClassSpaceSize" };
62
61
63
62
// Test can't deal with negative jlongs:
64
63
// ignoring MaxMetaspaceSize
You can’t perform that action at this time.
0 commit comments