< prev index next >

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

Print this page
*** 392,19 ***
      // Be robust
      if (sp == null) return false;
      return stackBase.greaterThan(a) && sp.lessThanOrEqual(a);
    }
  
-   public boolean isLockOwned(Address a) {
-     Address stackBase = getStackBase();
-     Address stackLimit = stackBase.addOffsetTo(-getStackSize());
- 
-     return stackBase.greaterThan(a) && stackLimit.lessThanOrEqual(a);
- 
-     // FIXME: should traverse MonitorArray/MonitorChunks as in VM
-   }
- 
    public Oop getCurrentParkBlocker() {
      Oop threadObj = getThreadObj();
      if (threadObj != null) {
        try {
          return OopUtilities.threadOopGetParkBlocker(threadObj);
--- 392,10 ---
< prev index next >