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 |