/art/tools/cpp-define-generator/ |
D | lockword.def | 22 art::LockWord::kGCStateMaskShifted) 24 art::LockWord::kGCStateMaskShiftedToggled) 26 art::LockWord::kGCStateShift) 28 art::LockWord::kGCStateSize) 30 art::LockWord::kMarkBitStateMaskShifted) 32 art::LockWord::kMarkBitStateShift) 34 art::LockWord::kReadBarrierStateMaskShifted) 36 art::LockWord::kReadBarrierStateMaskShiftedToggled) 38 art::LockWord::kReadBarrierStateShift) 40 art::LockWord::kStateForwardingAddress) [all …]
|
/art/runtime/ |
D | lock_word-inl.h | 25 inline uint32_t LockWord::ThinLockOwner() const { in ThinLockOwner() 31 inline uint32_t LockWord::ThinLockCount() const { in ThinLockCount() 37 inline Monitor* LockWord::FatLockMonitor() const { in FatLockMonitor() 44 inline size_t LockWord::ForwardingAddress() const { in ForwardingAddress() 49 inline LockWord::LockWord() : value_(0) { in LockWord() function 53 inline LockWord::LockWord(Monitor* mon, uint32_t gc_state) in LockWord() function 63 inline int32_t LockWord::GetHashCode() const { in GetHashCode()
|
D | lock_word.h | 66 class LockWord { 139 static LockWord FromThinLockId(uint32_t thread_id, uint32_t count, uint32_t gc_state) { in FromThinLockId() 143 return LockWord((thread_id << kThinLockOwnerShift) | in FromThinLockId() 149 static LockWord FromForwardingAddress(size_t target) { in FromForwardingAddress() 151 return LockWord((target >> kForwardingAddressShift) | kStateForwardingAddressShifted); in FromForwardingAddress() 154 static LockWord FromHashCode(uint32_t hash_code, uint32_t gc_state) { in FromHashCode() 157 return LockWord((hash_code << kHashShift) | in FromHashCode() 162 static LockWord FromDefault(uint32_t gc_state) { in FromDefault() 163 return LockWord(gc_state << kGCStateShift); in FromDefault() 166 static bool IsDefault(LockWord lw) { in IsDefault() [all …]
|
D | monitor.cc | 157 LockWord lw(GetObject()->GetLockWord(false)); in Install() 159 case LockWord::kThinLocked: { in Install() 164 case LockWord::kHashCode: { in Install() 168 case LockWord::kFatLocked: { in Install() 172 case LockWord::kUnlocked: { in Install() 181 LockWord fat(this, lw.GCState()); in Install() 966 LockWord lw(obj->GetLockWord(false)); in Deflate() 968 if (lw.GetState() == LockWord::kFatLocked) { in Deflate() 983 if (static_cast<uint32_t>(monitor->lock_count_) > LockWord::kThinLockMaxCount) { in Deflate() 987 LockWord new_lw = LockWord::FromThinLockId(owner->GetThreadId(), in Deflate() [all …]
|
D | monitor_test.cc | 72 LockWord lock_after = monitor_test_->object_.Get()->GetLockWord(false); // it to thinLocked. in Run() 73 LockWord::LockState new_state = lock_after.GetState(); in Run() 76 if (LockWord::LockState::kThinLocked != new_state) { in Run() 78 ASSERT_EQ(LockWord::LockState::kThinLocked, new_state); // To fail the test. in Run() 84 LockWord lock_after2 = monitor_test_->object_.Get()->GetLockWord(false); in Run() 85 LockWord::LockState new_state2 = lock_after2.GetState(); in Run() 88 if (LockWord::LockState::kFatLocked != new_state2) { in Run() 90 ASSERT_EQ(LockWord::LockState::kFatLocked, new_state2); // To fail the test. in Run()
|
D | monitor_pool.h | 52 DCHECK_ALIGNED(mon, LockWord::kMonitorIdAlignment); in CreateMonitor() 79 return reinterpret_cast<Monitor*>(mon_id << LockWord::kMonitorIdAlignmentShift); in MonitorFromMonitorId() 87 return reinterpret_cast<MonitorId>(mon) >> LockWord::kMonitorIdAlignmentShift; in MonitorIdFromMonitor() 211 static_assert(kMaxListSize * kChunkSize < (1 << LockWord::kMonitorIdSize),
|
D | monitor.h | 42 class LockWord; variable 125 static bool IsValidLockWord(LockWord lock_word); 149 static void InflateThinLocked(Thread* self, Handle<mirror::Object> obj, LockWord lock_word, 162 int error = posix_memalign(&result, LockWord::kMonitorIdAlignment, size); in new()
|
D | transaction_test.cc | 71 LockWord old_lock_word = h_klass->GetLockWord(false); in testTransactionAbort() 81 LockWord new_lock_word = h_klass->GetLockWord(false); in testTransactionAbort() 82 EXPECT_TRUE(LockWord::Equal<false>(old_lock_word, new_lock_word)); in testTransactionAbort() 121 LockWord old_lock_word = h_obj->GetLockWord(false); in TEST_F() 126 LockWord new_lock_word = h_obj->GetLockWord(false); in TEST_F() 130 LockWord aborted_lock_word = h_obj->GetLockWord(false); in TEST_F() 131 EXPECT_FALSE(LockWord::Equal<false>(old_lock_word, new_lock_word)); in TEST_F() 132 EXPECT_TRUE(LockWord::Equal<false>(aborted_lock_word, new_lock_word)); in TEST_F()
|
D | common_throws.cc | 457 constexpr uint32_t gray_byte_position = LockWord::kReadBarrierStateShift / kBitsPerByte; in IsValidReadBarrierImplicitCheck()
|
D | thread_list.cc | 83 CHECK(Monitor::IsValidLockWord(LockWord::FromThinLockId(kMaxThreadId, 1, 0U))); in ThreadList()
|
/art/runtime/mirror/ |
D | object-readbarrier-inl.h | 33 inline LockWord Object::GetLockWord(bool as_volatile) { in GetLockWord() 35 return LockWord(GetField32Volatile<kVerifyFlags>(MonitorOffset())); in GetLockWord() 37 return LockWord(GetField32<kVerifyFlags>(MonitorOffset())); in GetLockWord() 61 inline bool Object::CasLockWord(LockWord old_val, in CasLockWord() 62 LockWord new_val, in CasLockWord() 91 LockWord lw(static_cast<uint32_t>(result)); in GetReadBarrierState() 107 LockWord lw(static_cast<uint32_t>(result)); in GetReadBarrierState() 111 LockWord lw = GetLockWord(false); in GetReadBarrierState() 120 LockWord lw = GetLockWord(false); in GetReadBarrierState() 134 LockWord lw(GetFieldPrimitive<uint32_t, /*kIsVolatile=*/false>(MonitorOffset())); in GetReadBarrierState() [all …]
|
D | object.cc | 181 (expected_value & LockWord::kHashMask) == 0); in GenerateIdentityHashCode() 182 return expected_value & LockWord::kHashMask; in GenerateIdentityHashCode() 192 LockWord lw = current_this->GetLockWord(false); in IdentityHashCode() 194 case LockWord::kUnlocked: { in IdentityHashCode() 197 LockWord hash_word = LockWord::FromHashCode(GenerateIdentityHashCode(), lw.GCState()); in IdentityHashCode() 198 DCHECK_EQ(hash_word.GetState(), LockWord::kHashCode); in IdentityHashCode() 206 case LockWord::kThinLocked: { in IdentityHashCode() 217 case LockWord::kFatLocked: { in IdentityHashCode() 223 case LockWord::kHashCode: { in IdentityHashCode()
|
D | object.h | 36 class LockWord; variable 148 LockWord GetLockWord(bool as_volatile) REQUIRES_SHARED(Locks::mutator_lock_); 150 void SetLockWord(LockWord new_val, bool as_volatile) REQUIRES_SHARED(Locks::mutator_lock_); 151 bool CasLockWord(LockWord old_val, LockWord new_val, CASMode mode, std::memory_order memory_order)
|
D | object-inl.h | 69 inline void Object::SetLockWord(LockWord new_val, bool as_volatile) { in SetLockWord() 114 LockWord lw = GetLockWord(false); in SetReadBarrierState()
|
/art/runtime/gc/collector/ |
D | semi_space-inl.h | 31 LockWord lock_word = obj->GetLockWord(false); in GetForwardingAddressInFromSpace() 32 if (lock_word.GetState() != LockWord::kForwardingAddress) { in GetForwardingAddressInFromSpace() 56 LockWord::FromForwardingAddress(reinterpret_cast<size_t>(forward_address)), false); in MarkObject()
|
D | concurrent_copying-inl.h | 229 LockWord lw = from_ref->GetLockWord(false); in GetFwdPtr() 230 if (lw.GetState() == LockWord::kForwardingAddress) { in GetFwdPtr()
|
D | concurrent_copying.cc | 3384 sizeof(LockWord), in Copy() 3395 LockWord old_lock_word = from_ref->GetLockWord(false); in Copy() 3397 if (old_lock_word.GetState() == LockWord::kForwardingAddress) { in Copy() 3431 CHECK_NE(to_ref->GetLockWord(false).GetState(), LockWord::kForwardingAddress); in Copy() 3446 LockWord new_lock_word = LockWord::FromForwardingAddress(reinterpret_cast<size_t>(to_ref)); in Copy() 3482 CHECK_NE(to_ref->GetLockWord(false).GetState(), LockWord::kForwardingAddress); in Copy()
|
/art/runtime/arch/ |
D | stub_test.cc | 601 LockWord lock = obj->GetLockWord(false); in TEST_F() 602 LockWord::LockState old_state = lock.GetState(); in TEST_F() 603 EXPECT_EQ(LockWord::LockState::kUnlocked, old_state); in TEST_F() 607 LockWord lock_after = obj->GetLockWord(false); in TEST_F() 608 LockWord::LockState new_state = lock_after.GetState(); in TEST_F() 609 EXPECT_EQ(LockWord::LockState::kThinLocked, new_state); in TEST_F() 617 LockWord l_inc = obj->GetLockWord(false); in TEST_F() 618 LockWord::LockState l_inc_state = l_inc.GetState(); in TEST_F() 619 EXPECT_EQ(LockWord::LockState::kThinLocked, l_inc_state); in TEST_F() 631 LockWord lock_after2 = obj2->GetLockWord(false); in TEST_F() [all …]
|
/art/dex2oat/linker/ |
D | image_writer.cc | 916 object->SetLockWord(LockWord::FromForwardingAddress(offset), false); in SetImageOffset() 923 obj->SetLockWord(LockWord::FromForwardingAddress(offset), false); in UpdateImageOffset() 944 return object->GetLockWord(false).GetState() == LockWord::kForwardingAddress; in IsImageOffsetAssigned() 950 LockWord lock_word = object->GetLockWord(false); in GetImageOffset() 964 LockWord lw(object->GetLockWord(false)); in SetImageBinSlot() 966 case LockWord::kFatLocked: in SetImageBinSlot() 968 case LockWord::kThinLocked: { in SetImageBinSlot() 970 bool thin = (lw.GetState() == LockWord::kThinLocked); in SetImageBinSlot() 980 case LockWord::kUnlocked: in SetImageBinSlot() 983 case LockWord::kHashCode: in SetImageBinSlot() [all …]
|
D | image_writer.h | 251 static const size_t kBinShift = BitSizeOf<uint32_t>() - kBinBits - LockWord::kGCStateSize;
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_thumb2_test.cc | 745 DCHECK_GE(LockWord::kReadBarrierStateShift, 8u); // ROR modified immediate. in TestBakerFieldWide() 746 uint32_t ror_shift = 7 + (32 - LockWord::kReadBarrierStateShift); in TestBakerFieldWide() 846 DCHECK_GE(LockWord::kReadBarrierStateShift, 8u); // ROR modified immediate. in TestBakerFieldNarrow() 847 uint32_t ror_shift = 7 + (32 - LockWord::kReadBarrierStateShift); in TestBakerFieldNarrow() 1131 DCHECK_GE(LockWord::kReadBarrierStateShift, 8u); // ROR modified immediate. in TEST_F() 1132 uint32_t ror_shift = 7 + (32 - LockWord::kReadBarrierStateShift); in TEST_F()
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 197 if ((o->GetLockWord(false).GetState() == LockWord::kThinLocked) && in ComputeMonitorDescription()
|
D | jni_internal_test.cc | 2392 LockWord lock_word = soa.Decode<mirror::Object>(jobj)->GetLockWord(true); in IsLocked() 2394 case LockWord::kHashCode: in IsLocked() 2395 case LockWord::kUnlocked: in IsLocked() 2397 case LockWord::kThinLocked: in IsLocked() 2399 case LockWord::kFatLocked: in IsLocked()
|
/art/dex2oat/linker/arm64/ |
D | relative_patcher_arm64_test.cc | 1078 0x37000000u | (LockWord::kReadBarrierStateShift << 19) | /* ip0 */ 16; in TestBakerField() 1323 0x37000000u | (LockWord::kReadBarrierStateShift << 19) | /* ip0 */ 16; in TEST_F()
|
/art/compiler/optimizing/ |
D | intrinsics_x86_64.cc | 1148 constexpr uint32_t gray_byte_position = LockWord::kReadBarrierStateShift / kBitsPerByte; in VisitSystemArrayCopy() 1149 constexpr uint32_t gray_bit_position = LockWord::kReadBarrierStateShift % kBitsPerByte; in VisitSystemArrayCopy()
|