Lines Matching refs:mon
48 Monitor* mon = new Monitor(self, owner, obj, hash_code); in CreateMonitor() local
49 DCHECK_ALIGNED(mon, LockWord::kMonitorIdAlignment); in CreateMonitor()
50 return mon; in CreateMonitor()
82 static MonitorId MonitorIdFromMonitor(Monitor* mon) { in MonitorIdFromMonitor() argument
84 return reinterpret_cast<MonitorId>(mon) >> LockWord::kMonitorIdAlignmentShift; in MonitorIdFromMonitor()
86 return mon->GetMonitorId(); in MonitorIdFromMonitor()
90 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { in ComputeMonitorId() argument
93 return MonitorIdFromMonitor(mon); in ComputeMonitorId()
95 return GetMonitorPool()->ComputeMonitorIdInPool(mon, self); in ComputeMonitorId()
145 static bool IsInChunk(uintptr_t base_addr, Monitor* mon) { in IsInChunk() argument
146 uintptr_t mon_ptr = reinterpret_cast<uintptr_t>(mon); in IsInChunk()
150 MonitorId ComputeMonitorIdInPool(Monitor* mon, Thread* self) { in ComputeMonitorIdInPool() argument
158 if (IsInChunk(chunk_addr, mon)) { in ComputeMonitorIdInPool()
160 reinterpret_cast<uintptr_t>(mon) - chunk_addr in ComputeMonitorIdInPool()