Lines Matching refs:lock_word
978 void Monitor::InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word, in InflateThinLocked() argument
980 DCHECK_EQ(lock_word.GetState(), LockWord::kThinLocked); in InflateThinLocked()
981 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in InflateThinLocked()
999 lock_word = obj->GetLockWord(true); in InflateThinLocked()
1000 if (lock_word.GetState() == LockWord::kThinLocked && in InflateThinLocked()
1001 lock_word.ThinLockOwner() == owner_thread_id) { in InflateThinLocked()
1037 LockWord lock_word = h_obj->GetLockWord(false); in MonitorEnter() local
1038 switch (lock_word.GetState()) { in MonitorEnter()
1041 LockWord thin_locked(LockWord::FromThinLockId(thread_id, 0, lock_word.GCState())); in MonitorEnter()
1042 if (h_obj->CasLockWordWeakAcquire(lock_word, thin_locked)) { in MonitorEnter()
1049 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorEnter()
1053 uint32_t new_count = lock_word.ThinLockCount() + 1; in MonitorEnter()
1057 lock_word.GCState())); in MonitorEnter()
1066 if (h_obj->CasLockWordWeakRelaxed(lock_word, thin_locked)) { in MonitorEnter()
1074 InflateThinLocked(self, h_obj, lock_word, 0); in MonitorEnter()
1096 InflateThinLocked(self, h_obj, lock_word, 0); in MonitorEnter()
1105 Monitor* mon = lock_word.FatLockMonitor(); in MonitorEnter()
1117 Inflate(self, nullptr, h_obj.Get(), lock_word.GetHashCode()); in MonitorEnter()
1120 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorEnter()
1135 LockWord lock_word = obj->GetLockWord(true); in MonitorExit() local
1136 switch (lock_word.GetState()) { in MonitorExit()
1144 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorExit()
1151 if (lock_word.ThinLockCount() != 0) { in MonitorExit()
1152 uint32_t new_count = lock_word.ThinLockCount() - 1; in MonitorExit()
1153 new_lw = LockWord::FromThinLockId(thread_id, new_count, lock_word.GCState()); in MonitorExit()
1155 new_lw = LockWord::FromDefault(lock_word.GCState()); in MonitorExit()
1168 if (h_obj->CasLockWordWeakRelease(lock_word, new_lw)) { in MonitorExit()
1178 Monitor* mon = lock_word.FatLockMonitor(); in MonitorExit()
1182 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorExit()
1202 LockWord lock_word = h_obj->GetLockWord(true); in Wait() local
1203 while (lock_word.GetState() != LockWord::kFatLocked) { in Wait()
1204 switch (lock_word.GetState()) { in Wait()
1212 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in Wait()
1220 lock_word = h_obj->GetLockWord(true); in Wait()
1226 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in Wait()
1231 Monitor* mon = lock_word.FatLockMonitor(); in Wait()
1238 LockWord lock_word = obj->GetLockWord(true); in DoNotify() local
1239 switch (lock_word.GetState()) { in DoNotify()
1247 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in DoNotify()
1257 Monitor* mon = lock_word.FatLockMonitor(); in DoNotify()
1266 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in DoNotify()
1274 LockWord lock_word = obj->GetLockWord(true); in GetLockOwnerThreadId() local
1275 switch (lock_word.GetState()) { in GetLockOwnerThreadId()
1281 return lock_word.ThinLockOwner(); in GetLockOwnerThreadId()
1283 Monitor* mon = lock_word.FatLockMonitor(); in GetLockOwnerThreadId()
1432 bool Monitor::IsValidLockWord(LockWord lock_word) { in IsValidLockWord() argument
1433 switch (lock_word.GetState()) { in IsValidLockWord()
1439 return lock_word.ThinLockOwner() != ThreadList::kInvalidThreadId; in IsValidLockWord()
1442 Monitor* mon = lock_word.FatLockMonitor(); in IsValidLockWord()
1596 LockWord lock_word = obj->GetLockWord(true); in MonitorInfo() local
1597 switch (lock_word.GetState()) { in MonitorInfo()
1605 owner_ = Runtime::Current()->GetThreadList()->FindThreadByThreadId(lock_word.ThinLockOwner()); in MonitorInfo()
1607 entry_count_ = 1 + lock_word.ThinLockCount(); in MonitorInfo()
1611 Monitor* mon = lock_word.FatLockMonitor(); in MonitorInfo()