Lines Matching refs:self

62   static bool Destroy(art::Thread* self, JvmtiMonitor* monitor) NO_THREAD_SAFETY_ANALYSIS {  in Destroy()  argument
65 if (owner_thread != nullptr && self != owner_thread) { in Destroy()
79 void MonitorEnter(art::Thread* self, bool suspend) NO_THREAD_SAFETY_ANALYSIS { in MonitorEnter() argument
85 ThreadUtil::SuspendCheck(self); in MonitorEnter()
86 if (ThreadUtil::WouldSuspendForUserCode(self)) { in MonitorEnter()
92 if (IsOwner(self)) { in MonitorEnter()
106 if (!suspend || !ThreadUtil::WouldSuspendForUserCode(self)) { in MonitorEnter()
119 owner_.store(self, std::memory_order_relaxed); in MonitorEnter()
124 bool MonitorExit(art::Thread* self) NO_THREAD_SAFETY_ANALYSIS { in MonitorExit() argument
125 if (!IsOwner(self)) { in MonitorExit()
138 bool Wait(art::Thread* self) { in Wait() argument
142 return Wait(self, wait_without_timeout); in Wait()
145 bool Wait(art::Thread* self, uint64_t timeout_in_ms) { in Wait() argument
149 return Wait(self, wait_with_timeout); in Wait()
152 bool Notify(art::Thread* self) { in Notify() argument
153 return Notify(self, [&]() { cond_.notify_one(); }); in Notify()
156 bool NotifyAll(art::Thread* self) { in NotifyAll() argument
157 return Notify(self, [&]() { cond_.notify_all(); }); in NotifyAll()
161 bool IsOwner(art::Thread* self) const { in IsOwner()
166 return self == owner_thread; in IsOwner()
170 bool Wait(art::Thread* self, T how_to_wait) { in Wait() argument
171 if (!IsOwner(self)) { in Wait()
194 MonitorEnter(self, /*suspend=*/ true); in Wait()
195 CHECK(owner_.load(std::memory_order_relaxed) == self); in Wait()
204 bool Notify(art::Thread* self, T how_to_notify) { in Notify() argument
205 if (!IsOwner(self)) { in Notify()
247 art::Thread* self = art::Thread::Current(); in DestroyRawMonitor() local
249 if (!JvmtiMonitor::Destroy(self, monitor)) { in DestroyRawMonitor()
262 art::Thread* self = art::Thread::Current(); in RawMonitorEnterNoSuspend() local
264 monitor->MonitorEnter(self, /*suspend=*/false); in RawMonitorEnterNoSuspend()
275 art::Thread* self = art::Thread::Current(); in RawMonitorEnter() local
277 monitor->MonitorEnter(self, /*suspend=*/true); in RawMonitorEnter()
288 art::Thread* self = art::Thread::Current(); in RawMonitorExit() local
290 if (!monitor->MonitorExit(self)) { in RawMonitorExit()
305 art::Thread* self = art::Thread::Current(); in RawMonitorWait() local
310 ? monitor->Wait(self, static_cast<uint64_t>(millis)) in RawMonitorWait()
311 : monitor->Wait(self); in RawMonitorWait()
318 if (self->IsInterrupted()) { in RawMonitorWait()
331 art::Thread* self = art::Thread::Current(); in RawMonitorNotify() local
333 if (!monitor->Notify(self)) { in RawMonitorNotify()
346 art::Thread* self = art::Thread::Current(); in RawMonitorNotifyAll() local
348 if (!monitor->NotifyAll(self)) { in RawMonitorNotifyAll()
361 art::Thread* self = art::Thread::Current(); in GetCurrentContendedMonitor() local
362 art::ScopedObjectAccess soa(self); in GetCurrentContendedMonitor()
363 art::Locks::thread_list_lock_->ExclusiveLock(self); in GetCurrentContendedMonitor()
367 art::Locks::thread_list_lock_->ExclusiveUnlock(self); in GetCurrentContendedMonitor()