Searched refs:mon (Results 1 – 8 of 8) sorted by relevance
/art/runtime/ |
D | monitor_pool_test.cc | 39 static void VerifyMonitor(Monitor* mon, Thread* self) { in VerifyMonitor() argument 41 EXPECT_EQ(MonitorPool::MonitorIdFromMonitor(mon), mon->GetMonitorId()); in VerifyMonitor() 43 EXPECT_EQ(MonitorPool::ComputeMonitorId(mon, self), mon->GetMonitorId()); in VerifyMonitor() 45 EXPECT_EQ(mon, MonitorPool::MonitorFromMonitorId(mon->GetMonitorId())); in VerifyMonitor() 74 Monitor* mon = MonitorPool::CreateMonitor(self, self, nullptr, static_cast<int32_t>(i)); in TEST_F() local 75 monitors.push_back(mon); in TEST_F() 77 VerifyMonitor(mon, self); in TEST_F() 81 Monitor* mon = monitors[index]; in TEST_F() local 85 VerifyMonitor(mon, self); in TEST_F() 87 MonitorPool::ReleaseMonitor(self, mon); in TEST_F() [all …]
|
D | monitor_pool.h | 78 static MonitorId MonitorIdFromMonitor(Monitor* mon) { in MonitorIdFromMonitor() argument 80 return reinterpret_cast<MonitorId>(mon) >> 3; in MonitorIdFromMonitor() 82 return mon->GetMonitorId(); in MonitorIdFromMonitor() 86 static MonitorId ComputeMonitorId(Monitor* mon, Thread* self) { in ComputeMonitorId() argument 88 return MonitorIdFromMonitor(mon); in ComputeMonitorId() 90 return GetMonitorPool()->ComputeMonitorIdInPool(mon, self); in ComputeMonitorId() 125 static bool IsInChunk(uintptr_t base_addr, Monitor* mon) { in IsInChunk() argument 126 uintptr_t mon_ptr = reinterpret_cast<uintptr_t>(mon); in IsInChunk() 131 MonitorId ComputeMonitorIdInPool(Monitor* mon, Thread* self) { in ComputeMonitorIdInPool() argument 135 if (IsInChunk(chunk_addr, mon)) { in ComputeMonitorIdInPool() [all …]
|
D | lock_word-inl.h | 50 inline LockWord::LockWord(Monitor* mon) in LockWord() argument 51 : value_(mon->GetMonitorId() | (kStateFat << kStateShift)) { in LockWord() 52 DCHECK_EQ(FatLockMonitor(), mon); in LockWord()
|
D | monitor.cc | 769 Monitor* mon = lock_word.FatLockMonitor(); in MonitorEnter() local 770 mon->Lock(self); in MonitorEnter() 820 Monitor* mon = lock_word.FatLockMonitor(); in MonitorExit() local 821 return mon->Unlock(self); in MonitorExit() 866 Monitor* mon = lock_word.FatLockMonitor(); in Wait() local 867 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait() 892 Monitor* mon = lock_word.FatLockMonitor(); in DoNotify() local 894 mon->NotifyAll(self); in DoNotify() 896 mon->Notify(self); in DoNotify() 918 Monitor* mon = lock_word.FatLockMonitor(); in GetLockOwnerThreadId() local [all …]
|
D | monitor_pool.cc | 135 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool() 136 ReleaseMonitorToPool(self, mon); in ReleaseMonitorsToPool()
|
D | lock_word.h | 144 explicit LockWord(Monitor* mon);
|
D | monitor.h | 158 …c void FailedUnlock(mirror::Object* obj, Thread* expected_owner, Thread* found_owner, Monitor* mon)
|
D | thread.h | 446 void SetWaitMonitor(Monitor* mon) EXCLUSIVE_LOCKS_REQUIRED(wait_mutex_) { in SetWaitMonitor() argument 447 wait_monitor_ = mon; in SetWaitMonitor()
|