Lines Matching refs:monitor

62   static bool Destroy(art::Thread* self, JvmtiMonitor* monitor) NO_THREAD_SAFETY_ANALYSIS {  in Destroy()  argument
64 art::Thread* owner_thread = monitor->owner_.load(std::memory_order_relaxed); in Destroy()
69 if (monitor->count_ > 0) { in Destroy()
70 monitor->count_ = 0; in Destroy()
71 monitor->owner_.store(nullptr, std::memory_order_relaxed); in Destroy()
72 monitor->mutex_.unlock(); in Destroy()
75 delete monitor; in Destroy()
220 static jrawMonitorID EncodeMonitor(JvmtiMonitor* monitor) { in EncodeMonitor() argument
221 return reinterpret_cast<jrawMonitorID>(monitor); in EncodeMonitor()
235 JvmtiMonitor* monitor = new JvmtiMonitor(); in CreateRawMonitor() local
236 *monitor_ptr = EncodeMonitor(monitor); in CreateRawMonitor()
246 JvmtiMonitor* monitor = DecodeMonitor(id); in DestroyRawMonitor() local
249 if (!JvmtiMonitor::Destroy(self, monitor)) { in DestroyRawMonitor()
261 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorEnterNoSuspend() local
264 monitor->MonitorEnter(self, /*suspend=*/false); in RawMonitorEnterNoSuspend()
274 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorEnter() local
277 monitor->MonitorEnter(self, /*suspend=*/true); in RawMonitorEnter()
287 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorExit() local
290 if (!monitor->MonitorExit(self)) { in RawMonitorExit()
304 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorWait() local
310 ? monitor->Wait(self, static_cast<uint64_t>(millis)) in RawMonitorWait()
311 : monitor->Wait(self); in RawMonitorWait()
330 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorNotify() local
333 if (!monitor->Notify(self)) { in RawMonitorNotify()
345 JvmtiMonitor* monitor = DecodeMonitor(id); in RawMonitorNotifyAll() local
348 if (!monitor->NotifyAll(self)) { in RawMonitorNotifyAll()
357 jobject* monitor) { in GetCurrentContendedMonitor() argument
358 if (monitor == nullptr) { in GetCurrentContendedMonitor()
433 *monitor = closure.GetResult(); in GetCurrentContendedMonitor()