8225804: SA: Remove unused CollectedHeap.oopOffset() method
authorzgu
Tue, 18 Jun 2019 13:11:09 -0400
changeset 55404 8259c22be42c
parent 55403 8d50ff464ae5
child 55405 17f24c0e2f01
8225804: SA: Remove unused CollectedHeap.oopOffset() method Reviewed-by: rkennke
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeap.java
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeap.java	Tue Jun 18 10:37:28 2019 -0400
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/gc/shared/CollectedHeap.java	Tue Jun 18 13:11:09 2019 -0400
@@ -64,8 +64,6 @@
   public abstract long capacity();
   public abstract long used();
 
-  public long oopOffset() { return 0; }
-
   public MemRegion reservedRegion() {
     return new MemRegion(addr.addOffsetTo(reservedFieldOffset));
   }
--- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java	Tue Jun 18 10:37:28 2019 -0400
+++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/ObjectHeap.java	Tue Jun 18 13:11:09 2019 -0400
@@ -256,8 +256,6 @@
 
         while (handle.lessThan(top)) {
           Oop obj = null;
-          // Raw pointer walk
-          handle = handle.addOffsetToAsOopHandle(heap.oopOffset());
 
           try {
             obj = newOop(handle);