8239916: SA: delete dead code in jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java

Reviewed-by: stefank
This commit is contained in:
Lin Zang 2020-02-29 14:43:09 +08:00
parent 5bfb8146e9
commit 0a820d6d21

View File

@ -233,13 +233,6 @@ public class ObjectHeap {
}
visitor.prologue(totalSize);
CollectedHeap heap = VM.getVM().getUniverse().heap();
if (heap instanceof GenCollectedHeap) {
GenCollectedHeap genHeap = (GenCollectedHeap) heap;
Generation genOld = genHeap.getGen(1);
}
for (int i = 0; i < liveRegions.size(); i += 2) {
Address bottom = (Address) liveRegions.get(i);
Address top = (Address) liveRegions.get(i+1);