Lines Matching refs:owner
97 Monitor::Monitor(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code) in Monitor() argument
100 owner_(owner), in Monitor()
118 CHECK(owner == nullptr || owner == self || owner->IsSuspended()); in Monitor()
128 Thread* owner, in Monitor() argument
134 owner_(owner), in Monitor()
151 CHECK(owner == nullptr || owner == self || owner->IsSuspended()); in Monitor()
172 void Monitor::SetLockingMethod(Thread* owner) { in SetLockingMethod() argument
173 DCHECK(owner == Thread::Current() || owner->IsSuspended()); in SetLockingMethod()
178 lock_owner_method = owner->GetCurrentMethod(&lock_owner_dex_pc, false); in SetLockingMethod()
214 SetLockOwnerInfo(lock_owner_method, lock_owner_dex_pc, owner); in SetLockingMethod()
218 void Monitor::SetLockingMethodNoProxy(Thread *owner) { in SetLockingMethodNoProxy() argument
219 DCHECK(owner == Thread::Current()); in SetLockingMethodNoProxy()
221 ArtMethod* lock_owner_method = owner->GetCurrentMethod(&lock_owner_dex_pc); in SetLockingMethodNoProxy()
224 SetLockOwnerInfo(lock_owner_method, lock_owner_dex_pc, owner); in SetLockingMethodNoProxy()
231 Thread* owner = owner_.load(std::memory_order_relaxed); in Install() local
232 CHECK(owner == nullptr || owner == self || owner->IsSuspended()); in Install()
237 DCHECK(owner != nullptr); in Install()
238 CHECK_EQ(owner->GetThreadId(), lw.ThinLockOwner()); in Install()
241 monitor_lock_.ExclusiveLockUncontendedFor(owner); in Install()
242 DCHECK_EQ(monitor_lock_.GetExclusiveOwnerTid(), owner->GetTid()) in Install()
249 SetLockingMethod(owner); in Install()
424 Thread *owner = owner_.load(std::memory_order_relaxed); in TryLock() local
425 if (owner == self) { in TryLock()
748 Thread* owner = owner_.load(std::memory_order_relaxed); in Unlock() local
749 if (owner == self) { in Unlock()
770 owner = owner_.load(std::memory_order_relaxed); in Unlock()
771 if (owner != nullptr) { in Unlock()
772 owner_thread_id = owner->GetThreadId(); in Unlock()
1038 void Monitor::Inflate(Thread* self, Thread* owner, ObjPtr<mirror::Object> obj, int32_t hash_code) { in Inflate() argument
1042 Monitor* m = MonitorPool::CreateMonitor(self, owner, obj, hash_code); in Inflate()
1045 if (owner != nullptr) { in Inflate()
1046 VLOG(monitor) << "monitor: thread" << owner->GetThreadId() in Inflate()
1073 Thread* owner; in InflateThinLocked() local
1076 owner = thread_list->SuspendThreadByThreadId( in InflateThinLocked()
1079 if (owner != nullptr) { in InflateThinLocked()
1085 Inflate(self, owner, obj.Get(), hash_code); in InflateThinLocked()
1087 bool resumed = thread_list->Resume(owner, SuspendReason::kInternal); in InflateThinLocked()
1611 Thread* owner = GetOwner(); in GetOwnerThreadId() local
1612 if (owner != nullptr) { in GetOwnerThreadId()
1613 return owner->GetThreadId(); in GetOwnerThreadId()