8163581: Heap Parameters in HSDB cannot handle G1CollectedHeap
Reviewed-by: dholmes, sjohanss
This commit is contained in:
parent
1618785868
commit
d1eb1ae8ea
@ -24,6 +24,7 @@
|
||||
|
||||
package sun.jvm.hotspot.gc.g1;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.util.Iterator;
|
||||
import java.util.Observable;
|
||||
import java.util.Observer;
|
||||
@ -125,6 +126,15 @@ public class G1CollectedHeap extends CollectedHeap {
|
||||
return CollectedHeapName.G1_COLLECTED_HEAP;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void printOn(PrintStream tty) {
|
||||
MemRegion mr = reservedRegion();
|
||||
|
||||
tty.print("garbage-first heap");
|
||||
tty.print(" [" + mr.start() + ", " + mr.end() + "]");
|
||||
tty.println(" region size " + (HeapRegion.grainBytes() / 1024) + "K");
|
||||
}
|
||||
|
||||
public G1CollectedHeap(Address addr) {
|
||||
super(addr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user