Lines Matching refs:LockWord
469 LockWord lock = obj->GetLockWord(false); in TEST_F()
470 LockWord::LockState old_state = lock.GetState(); in TEST_F()
471 EXPECT_EQ(LockWord::LockState::kUnlocked, old_state); in TEST_F()
475 LockWord lock_after = obj->GetLockWord(false); in TEST_F()
476 LockWord::LockState new_state = lock_after.GetState(); in TEST_F()
477 EXPECT_EQ(LockWord::LockState::kThinLocked, new_state); in TEST_F()
485 LockWord l_inc = obj->GetLockWord(false); in TEST_F()
486 LockWord::LockState l_inc_state = l_inc.GetState(); in TEST_F()
487 EXPECT_EQ(LockWord::LockState::kThinLocked, l_inc_state); in TEST_F()
499 LockWord lock_after2 = obj2->GetLockWord(false); in TEST_F()
500 LockWord::LockState new_state2 = lock_after2.GetState(); in TEST_F()
501 EXPECT_EQ(LockWord::LockState::kFatLocked, new_state2); in TEST_F()
543 LockWord lock = obj->GetLockWord(false); in TestUnlockObject()
544 LockWord::LockState old_state = lock.GetState(); in TestUnlockObject()
545 EXPECT_EQ(LockWord::LockState::kUnlocked, old_state); in TestUnlockObject()
552 LockWord lock_after = obj->GetLockWord(false); in TestUnlockObject()
553 LockWord::LockState new_state = lock_after.GetState(); in TestUnlockObject()
554 EXPECT_EQ(LockWord::LockState::kUnlocked, new_state); in TestUnlockObject()
558 LockWord lock_after2 = obj->GetLockWord(false); in TestUnlockObject()
559 LockWord::LockState new_state2 = lock_after2.GetState(); in TestUnlockObject()
560 EXPECT_EQ(LockWord::LockState::kThinLocked, new_state2); in TestUnlockObject()
564 LockWord lock_after3 = obj->GetLockWord(false); in TestUnlockObject()
565 LockWord::LockState new_state3 = lock_after3.GetState(); in TestUnlockObject()
566 EXPECT_EQ(LockWord::LockState::kUnlocked, new_state3); in TestUnlockObject()
597 LockWord lock_iter = objects[index]->GetLockWord(false); in TestUnlockObject()
598 LockWord::LockState iter_state = lock_iter.GetState(); in TestUnlockObject()
600 EXPECT_EQ(LockWord::LockState::kHashCode, iter_state); in TestUnlockObject()
602 EXPECT_EQ(LockWord::LockState::kFatLocked, iter_state); in TestUnlockObject()
628 LockWord lock_iter = objects[index]->GetLockWord(true); in TestUnlockObject()
629 LockWord::LockState iter_state = lock_iter.GetState(); in TestUnlockObject()
632 EXPECT_EQ(LockWord::LockState::kFatLocked, iter_state) << index; in TestUnlockObject()
637 EXPECT_EQ(LockWord::LockState::kThinLocked, iter_state); in TestUnlockObject()
640 EXPECT_EQ(LockWord::LockState::kUnlocked, iter_state); in TestUnlockObject()
657 LockWord lock_after4 = objects[index]->GetLockWord(false); in TestUnlockObject()
658 LockWord::LockState new_state4 = lock_after4.GetState(); in TestUnlockObject()
659 EXPECT_TRUE(LockWord::LockState::kUnlocked == new_state4 in TestUnlockObject()
660 || LockWord::LockState::kFatLocked == new_state4); in TestUnlockObject()