Lines Matching refs:lock_word

1034 void Monitor::InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word,  in InflateThinLocked()  argument
1036 DCHECK_EQ(lock_word.GetState(), LockWord::kThinLocked); in InflateThinLocked()
1037 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in InflateThinLocked()
1055 lock_word = obj->GetLockWord(true); in InflateThinLocked()
1056 if (lock_word.GetState() == LockWord::kThinLocked && in InflateThinLocked()
1057 lock_word.ThinLockOwner() == owner_thread_id) { in InflateThinLocked()
1095 LockWord lock_word = h_obj->GetLockWord(false); in MonitorEnter() local
1096 switch (lock_word.GetState()) { in MonitorEnter()
1099 LockWord thin_locked(LockWord::FromThinLockId(thread_id, 0, lock_word.GCState())); in MonitorEnter()
1100 if (h_obj->CasLockWord(lock_word, thin_locked, CASMode::kWeak, std::memory_order_acquire)) { in MonitorEnter()
1107 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorEnter()
1111 uint32_t new_count = lock_word.ThinLockCount() + 1; in MonitorEnter()
1115 lock_word.GCState())); in MonitorEnter()
1124 if (h_obj->CasLockWord(lock_word, in MonitorEnter()
1135 InflateThinLocked(self, h_obj, lock_word, 0); in MonitorEnter()
1157 InflateThinLocked(self, h_obj, lock_word, 0); in MonitorEnter()
1166 Monitor* mon = lock_word.FatLockMonitor(); in MonitorEnter()
1178 Inflate(self, nullptr, h_obj.Get(), lock_word.GetHashCode()); in MonitorEnter()
1181 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorEnter()
1196 LockWord lock_word = obj->GetLockWord(true); in MonitorExit() local
1197 switch (lock_word.GetState()) { in MonitorExit()
1205 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in MonitorExit()
1212 if (lock_word.ThinLockCount() != 0) { in MonitorExit()
1213 uint32_t new_count = lock_word.ThinLockCount() - 1; in MonitorExit()
1214 new_lw = LockWord::FromThinLockId(thread_id, new_count, lock_word.GCState()); in MonitorExit()
1216 new_lw = LockWord::FromDefault(lock_word.GCState()); in MonitorExit()
1229 if (h_obj->CasLockWord(lock_word, new_lw, CASMode::kWeak, std::memory_order_release)) { in MonitorExit()
1239 Monitor* mon = lock_word.FatLockMonitor(); in MonitorExit()
1243 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in MonitorExit()
1267 LockWord lock_word = h_obj->GetLockWord(true); in Wait() local
1268 while (lock_word.GetState() != LockWord::kFatLocked) { in Wait()
1269 switch (lock_word.GetState()) { in Wait()
1277 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in Wait()
1285 lock_word = h_obj->GetLockWord(true); in Wait()
1291 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in Wait()
1296 Monitor* mon = lock_word.FatLockMonitor(); in Wait()
1303 LockWord lock_word = obj->GetLockWord(true); in DoNotify() local
1304 switch (lock_word.GetState()) { in DoNotify()
1312 uint32_t owner_thread_id = lock_word.ThinLockOwner(); in DoNotify()
1322 Monitor* mon = lock_word.FatLockMonitor(); in DoNotify()
1331 LOG(FATAL) << "Invalid monitor state " << lock_word.GetState(); in DoNotify()
1339 LockWord lock_word = obj->GetLockWord(true); in GetLockOwnerThreadId() local
1340 switch (lock_word.GetState()) { in GetLockOwnerThreadId()
1346 return lock_word.ThinLockOwner(); in GetLockOwnerThreadId()
1348 Monitor* mon = lock_word.FatLockMonitor(); in GetLockOwnerThreadId()
1502 bool Monitor::IsValidLockWord(LockWord lock_word) { in IsValidLockWord() argument
1503 switch (lock_word.GetState()) { in IsValidLockWord()
1509 return lock_word.ThinLockOwner() != ThreadList::kInvalidThreadId; in IsValidLockWord()
1512 Monitor* mon = lock_word.FatLockMonitor(); in IsValidLockWord()
1666 LockWord lock_word = obj->GetLockWord(true); in MonitorInfo() local
1667 switch (lock_word.GetState()) { in MonitorInfo()
1675 owner_ = Runtime::Current()->GetThreadList()->FindThreadByThreadId(lock_word.ThinLockOwner()); in MonitorInfo()
1677 entry_count_ = 1 + lock_word.ThinLockCount(); in MonitorInfo()
1681 Monitor* mon = lock_word.FatLockMonitor(); in MonitorInfo()