src/share/vm/runtime/synchronizer.cpp

Print this page

        

@@ -811,10 +811,11 @@
     assert(monitor != NULL, "monitor should be non-null");
     owner = (address) monitor->owner();
   }
 
   if (owner != NULL) {
+    // owning_thread_from_monitor_owner() may also return NULL here
     return Threads::owning_thread_from_monitor_owner(owner, doLock);
   }
 
   // Unlocked case, header in place
   // Cannot have assertion since this object may have been