< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/runtime/BasicObjectLock.java

Print this page
@@ -40,25 +40,22 @@
        });
    }
  
    private static synchronized void initialize(TypeDataBase db) throws WrongTypeException {
      Type type  = db.lookupType("BasicObjectLock");
-     lockField  = type.getField("_lock");
      objField   = type.getOopField("_obj");
      size       = (int) type.getSize();
    }
  
-   private static sun.jvm.hotspot.types.Field    lockField;
    private static sun.jvm.hotspot.types.OopField objField;
    private static int        size;
  
    public BasicObjectLock(Address addr) {
      super(addr);
    }
  
    public OopHandle obj()  { return objField.getValue(addr); }
-   public BasicLock lock() { return new BasicLock(addr.addOffsetTo(lockField.getOffset())); }
  
    /** Note: Use frame::interpreter_frame_monitor_size() for the size
        of BasicObjectLocks in interpreter activation frames since it
        includes machine-specific padding. This routine returns a size
        in BYTES in this system! */
< prev index next >