Lines Matching refs:lock_word
1061 LockWord lock_word, in InflateThinLocked() argument
1064 DCHECK_EQ(lock_word.GetState(), LockWord::kThinLocked); in InflateThinLocked()
1065 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in InflateThinLocked()
1081 lock_word = obj->GetLockWord(true); in InflateThinLocked()
1082 if (lock_word.GetState() == LockWord::kThinLocked && in InflateThinLocked()
1083 lock_word.ThinLockOwner() == owner_thread_id) { in InflateThinLocked()
1123 LockWord lock_word = h_obj->GetLockWord(false); in MonitorEnter() local
1124 switch (lock_word.GetState()) { in MonitorEnter()
1127 LockWord thin_locked(LockWord::FromThinLockId(thread_id, 0, lock_word.GCState())); in MonitorEnter()
1128 if (h_obj->CasLockWord(lock_word, thin_locked, CASMode::kWeak, std::memory_order_acquire)) { in MonitorEnter()
1135 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorEnter()
1139 uint32_t new_count = lock_word.ThinLockCount() + 1; in MonitorEnter()
1143 lock_word.GCState())); in MonitorEnter()
1152 if (h_obj->CasLockWord(lock_word, in MonitorEnter()
1163 InflateThinLocked(self, h_obj, lock_word, 0, inflation_attempt++); in MonitorEnter()
1184 InflateThinLocked(self, h_obj, lock_word, 0, inflation_attempt++); in MonitorEnter()
1193 Monitor* mon = lock_word.FatLockMonitor(); in MonitorEnter()
1206 Inflate(self, nullptr, h_obj.Get(), lock_word.GetHashCode()); in MonitorEnter()
1209 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorEnter()
1224 LockWord lock_word = obj->GetLockWord(true); in MonitorExit() local
1225 switch (lock_word.GetState()) { in MonitorExit()
1233 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorExit()
1240 if (lock_word.ThinLockCount() != 0) { in MonitorExit()
1241 uint32_t new_count = lock_word.ThinLockCount() - 1; in MonitorExit()
1242 new_lw = LockWord::FromThinLockId(thread_id, new_count, lock_word.GCState()); in MonitorExit()
1244 new_lw = LockWord::FromDefault(lock_word.GCState()); in MonitorExit()
1257 if (h_obj->CasLockWord(lock_word, new_lw, CASMode::kWeak, std::memory_order_release)) { in MonitorExit()
1267 Monitor* mon = lock_word.FatLockMonitor(); in MonitorExit()
1271 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorExit()
1295 LockWord lock_word = h_obj->GetLockWord(true); in Wait() local
1296 while (lock_word.GetState() != LockWord::kFatLocked) { in Wait()
1297 switch (lock_word.GetState()) { in Wait()
1305 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in Wait()
1313 lock_word = h_obj->GetLockWord(true); in Wait()
1319 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in Wait()
1324 Monitor* mon = lock_word.FatLockMonitor(); in Wait()
1331 LockWord lock_word = obj->GetLockWord(true); in DoNotify() local
1332 switch (lock_word.GetState()) { in DoNotify()
1340 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in DoNotify()
1350 Monitor* mon = lock_word.FatLockMonitor(); in DoNotify()
1359 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in DoNotify()
1368 LockWord lock_word = obj->GetLockWord(true); in GetLockOwnerThreadId() local
1369 switch (lock_word.GetState()) { in GetLockOwnerThreadId()
1375 return lock_word.ThinLockOwner(); in GetLockOwnerThreadId()
1377 Monitor* mon = lock_word.FatLockMonitor(); in GetLockOwnerThreadId()
1559 bool Monitor::IsValidLockWord(LockWord lock_word) { in IsValidLockWord() argument
1560 switch (lock_word.GetState()) { in IsValidLockWord()
1566 return lock_word.ThinLockOwner() != ThreadList::kInvalidThreadId; in IsValidLockWord()
1569 Monitor* mon = lock_word.FatLockMonitor(); in IsValidLockWord()
1722 LockWord lock_word = obj->GetLockWord(true); in MonitorInfo() local
1723 switch (lock_word.GetState()) { in MonitorInfo()
1731 owner_ = Runtime::Current()->GetThreadList()->FindThreadByThreadId(lock_word.ThinLockOwner()); in MonitorInfo()
1733 entry_count_ = 1 + lock_word.ThinLockCount(); in MonitorInfo()
1737 Monitor* mon = lock_word.FatLockMonitor(); in MonitorInfo()