Searched refs:mon (Results 1 – 9 of 9) 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 | 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 [all …]
|
D | lock_word-inl.h | 53 inline LockWord::LockWord(Monitor* mon, uint32_t gc_state) in LockWord() argument 54 : value_(mon->GetMonitorId() | (gc_state << kGCStateShift) | (kStateFat << kStateShift)) { in LockWord() 56 DCHECK_ALIGNED(mon, kMonitorIdAlignment); in LockWord() 58 DCHECK_EQ(FatLockMonitor(), mon); in LockWord() 59 DCHECK_LE(mon->GetMonitorId(), static_cast<uint32_t>(kMaxMonitorId)); in LockWord()
|
D | monitor.cc | 1013 Monitor* mon = lock_word.FatLockMonitor(); in MonitorEnter() local 1015 return mon->TryLock(self) ? h_obj.Get() : nullptr; in MonitorEnter() 1017 mon->Lock(self); in MonitorEnter() 1086 Monitor* mon = lock_word.FatLockMonitor(); in MonitorExit() local 1087 return mon->Unlock(self); in MonitorExit() 1130 Monitor* mon = lock_word.FatLockMonitor(); in Wait() local 1131 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait() 1156 Monitor* mon = lock_word.FatLockMonitor(); in DoNotify() local 1158 mon->NotifyAll(self); in DoNotify() 1160 mon->Notify(self); in DoNotify() [all …]
|
D | monitor_pool.cc | 152 for (Monitor* mon : *monitors) { in ReleaseMonitorsToPool() 153 ReleaseMonitorToPool(self, mon); in ReleaseMonitorsToPool()
|
D | lock_word.h | 242 LockWord(Monitor* mon, uint32_t gc_state);
|
D | monitor.h | 194 Monitor* mon)
|
D | thread.h | 534 void SetWaitMonitor(Monitor* mon) REQUIRES(wait_mutex_) { in SetWaitMonitor() argument 535 wait_monitor_ = mon; in SetWaitMonitor()
|
/art/runtime/openjdkjvm/ |
D | OpenjdkJvm.cc | 141 JNIEXPORT void JVM_RawMonitorDestroy(void* mon) { in JVM_RawMonitorDestroy() argument 143 (reinterpret_cast<pthread_mutex_t*>(mon)), in JVM_RawMonitorDestroy() 145 free(mon); in JVM_RawMonitorDestroy() 148 JNIEXPORT jint JVM_RawMonitorEnter(void* mon) { in JVM_RawMonitorEnter() argument 149 return pthread_mutex_lock(reinterpret_cast<pthread_mutex_t*>(mon)); in JVM_RawMonitorEnter() 152 JNIEXPORT void JVM_RawMonitorExit(void* mon) { in JVM_RawMonitorExit() argument 154 (reinterpret_cast<pthread_mutex_t*>(mon)), in JVM_RawMonitorExit()
|