< prev index next >

src/hotspot/share/runtime/javaThread.cpp

Print this page
*** 971,44 ***
      JavaThread *ret = op == NULL ? NULL : JavaThread::cast(op->calling_thread());
      return ret;
    }
  }
  
- bool JavaThread::is_lock_owned(address adr) const {
-   if (Thread::is_lock_owned(adr)) return true;
- 
-   for (MonitorChunk* chunk = monitor_chunks(); chunk != NULL; chunk = chunk->next()) {
-     if (chunk->contains(adr)) return true;
-   }
- 
-   return false;
- }
- 
- bool JavaThread::is_lock_owned_current(address adr) const {
-   address stack_end = _stack_base - _stack_size;
-   const ContinuationEntry* ce = vthread_continuation();
-   address stack_base = ce != nullptr ? (address)ce->entry_sp() : _stack_base;
-   if (stack_base > adr && adr >= stack_end) {
-     return true;
-   }
- 
-   for (MonitorChunk* chunk = monitor_chunks(); chunk != NULL; chunk = chunk->next()) {
-     if (chunk->contains(adr)) {
-       return true;
-     }
-   }
- 
-   return false;
- }
- 
- bool JavaThread::is_lock_owned_carrier(address adr) const {
-   assert(is_vthread_mounted(), "");
-   address stack_end = _stack_base - _stack_size;
-   address stack_base = (address)vthread_continuation()->entry_sp();
-   return stack_base > adr && adr >= stack_end;
- }
- 
  oop JavaThread::exception_oop() const {
    return Atomic::load(&_exception_oop);
  }
  
  void JavaThread::set_exception_oop(oop o) {
--- 971,10 ---
< prev index next >