Lines Matching defs:owner

76 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code)
80 owner_(owner),
92 // We should only inflate a lock if the owner is ourselves or suspended. This avoids a race
93 // with the owner unlocking the thin-lock.
94 CHECK(owner == nullptr || owner == self || owner->IsSuspended());
98 Monitor::Monitor(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code,
103 owner_(owner),
114 // We should only inflate a lock if the owner is ourselves or suspended. This avoids a race
115 // with the owner unlocking the thin-lock.
116 CHECK(owner == nullptr || owner == self || owner->IsSuspended());
308 oss << "monitor contention with owner " << owner_name << " (" << owner_tid << ")";
394 // Re-find the owner in case the thread got killed.
491 // Re-read owner now that we hold lock.
509 // Race: the original read found an owner but now there is none
518 // Race: originally there was no owner, there is now
526 // Race: originally found and current owner have changed
549 Thread* owner = owner_;
550 if (owner != nullptr) {
551 owner_thread_id = owner->GetThreadId();
553 if (owner == self) {
607 * We append to the wait set ahead of clearing the count and owner
699 * and owner fields so the subroutine can check that the calling
766 Thread* owner = monitor->owner_;
767 if (owner != nullptr) {
777 LockWord new_lw = LockWord::FromThinLockId(owner->GetThreadId(), monitor->lock_count_,
781 VLOG(monitor) << "Deflated " << obj << " to thin lock " << owner->GetTid() << " / "
802 void Monitor::Inflate(Thread* self, Thread* owner, mirror::Object* obj, int32_t hash_code) {
806 Monitor* m = MonitorPool::CreateMonitor(self, owner, obj, hash_code);
809 if (owner != nullptr) {
810 VLOG(monitor) << "monitor: thread" << owner->GetThreadId()
832 // Suspend the owner, inflate. First change to blocked and give up mutator_lock_.
835 Thread* owner;
838 owner = thread_list->SuspendThreadByThreadId(owner_thread_id, false, &timed_out);
840 if (owner != nullptr) {
846 Inflate(self, owner, obj.Get(), hash_code);
848 thread_list->Resume(owner, false);
1240 // Basic sanity check of owner.
1286 Thread* owner = owner_;
1287 if (owner != nullptr) {
1288 return owner->GetThreadId();