< prev index next >

src/hotspot/share/runtime/thread.cpp

Print this page
@@ -531,10 +531,11 @@
  // However, there is a note in JavaThread::is_lock_owned() about the VM threads not being
  // used for compilation in the future. If that change is made, the need for these methods
  // should be revisited, and they should be removed if possible.
  
  bool Thread::is_lock_owned(address adr) const {
+   assert(!UseFastLocking, "should not be called with fast-locking");
    return is_in_full_stack(adr);
  }
  
  bool Thread::set_as_starting_thread() {
    assert(_starting_thread == nullptr, "already initialized: "
< prev index next >