< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/CompressedKlassPointers.java

Print this page
@@ -56,24 +56,27 @@
    }
  
    private static synchronized void initialize(TypeDataBase db) {
      Type type = db.lookupType("CompressedKlassPointers");
  
-     baseField = type.getAddressField("_narrow_klass._base");
-     shiftField = type.getCIntegerField("_narrow_klass._shift");
+     baseField = type.getAddressField("_base");
+     shiftField = type.getCIntegerField("_shift_copy");
    }
  
    public CompressedKlassPointers() {
    }
  
    public static long getBase() {
      if (baseField.getValue() == null) {
        return 0;
      } else {
+         System.out.println("base: " + baseField.getValue().minus(null));
        return baseField.getValue().minus(null);
      }
    }
  
    public static int getShift() {
-     return (int)shiftField.getValue();
+ 
+       System.out.println("shift: " + (int)shiftField.getValue());
+       return (int)shiftField.getValue();
    }
  }
< prev index next >