changeset 58212:eeba18e49d0b

8239916: SA: delete dead code in jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java Reviewed-by: stefank
author lzang
date Sat, 29 Feb 2020 14:43:09 +0800
parents f46dfe6b18ac
children 1e4e7bf0b6f5
files src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java	Fri Feb 28 19:29:11 2020 -0800
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java	Sat Feb 29 14:43:09 2020 +0800
@@ -233,13 +233,6 @@
     }
     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);