comparison src/share/vm/runtime/synchronizer.cpp @ 8673:5ee250974db9

8007476: assert(the_owner != NULL) failed: Did not find owning Java thread for lock word address Summary: Make deadlock detection a little more robust in the case of being unable to find the JavaThread associated with an object lock. Reviewed-by: sla, acorn
author dcubed
date Wed, 27 Feb 2013 15:00:30 -0800
parents 9fae07c31641
children b9a918201d47 cc32ccaaf47f
comparison
equal deleted inserted replaced
8671:698b615a1cde 8673:5ee250974db9
811 assert(monitor != NULL, "monitor should be non-null"); 811 assert(monitor != NULL, "monitor should be non-null");
812 owner = (address) monitor->owner(); 812 owner = (address) monitor->owner();
813 } 813 }
814 814
815 if (owner != NULL) { 815 if (owner != NULL) {
816 // owning_thread_from_monitor_owner() may also return NULL here
816 return Threads::owning_thread_from_monitor_owner(owner, doLock); 817 return Threads::owning_thread_from_monitor_owner(owner, doLock);
817 } 818 }
818 819
819 // Unlocked case, header in place 820 // Unlocked case, header in place
820 // Cannot have assertion since this object may have been 821 // Cannot have assertion since this object may have been