Lines Matching refs:Monitor
45 static Monitor* CreateMonitor(Thread* self, in CreateMonitor()
51 Monitor* mon = new Monitor(self, owner, obj, hash_code); in CreateMonitor()
59 static void ReleaseMonitor(Thread* self, Monitor* monitor) { in ReleaseMonitor()
77 static Monitor* MonitorFromMonitorId(MonitorId mon_id) { in MonitorFromMonitorId()
79 return reinterpret_cast<Monitor*>(mon_id << LockWord::kMonitorIdAlignmentShift); in MonitorFromMonitorId()
85 static MonitorId MonitorIdFromMonitor(Monitor* mon) { in MonitorIdFromMonitor()
93 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { in ComputeMonitorId()
128 Monitor* CreateMonitorInPool(Thread* self,
134 void ReleaseMonitorToPool(Thread* self, Monitor* monitor);
141 Monitor* LookupMonitor(MonitorId mon_id) { in LookupMonitor()
148 return reinterpret_cast<Monitor*>(base + offset_in_chunk); in LookupMonitor()
151 static bool IsInChunk(uintptr_t base_addr, Monitor* mon) { in IsInChunk()
156 MonitorId ComputeMonitorIdInPool(Monitor* mon, Thread* self) { in ComputeMonitorIdInPool()
190 static constexpr size_t kAlignedMonitorSize = (sizeof(Monitor) + kMonitorAlignment - 1) &
244 Monitor* first_free_ GUARDED_BY(Locks::allocated_monitor_ids_lock_);