Home
last modified time | relevance | path

Searched refs:lw (Results 1 – 7 of 7) sorted by relevance

/art/runtime/mirror/
Dobject-readbarrier-inl.h91 LockWord lw(static_cast<uint32_t>(result)); in GetReadBarrierState()
92 uint32_t rb_state = lw.ReadBarrierState(); in GetReadBarrierState()
107 LockWord lw(static_cast<uint32_t>(result)); in GetReadBarrierState()
108 uint32_t rb_state = lw.ReadBarrierState(); in GetReadBarrierState()
111 LockWord lw = GetLockWord(false); in GetReadBarrierState() local
116 uint32_t rb_state = lw.ReadBarrierState(); in GetReadBarrierState()
131 LockWord lw(GetFieldPrimitive<uint32_t, /*kIsVolatile=*/false>(MonitorOffset())); in GetReadBarrierState()
132 uint32_t rb_state = lw.ReadBarrierState(); in GetReadBarrierState()
142 LockWord lw(GetFieldAcquire<uint32_t>(MonitorOffset())); in GetReadBarrierStateAcquire()
143 uint32_t rb_state = lw.ReadBarrierState(); in GetReadBarrierStateAcquire()
[all …]
Dobject.cc187 LockWord lw = current_this->GetLockWord(false); in IdentityHashCode() local
188 switch (lw.GetState()) { in IdentityHashCode()
192 LockWord hash_word = LockWord::FromHashCode(GenerateIdentityHashCode(), lw.GCState()); in IdentityHashCode()
196 if (current_this->CasLockWord(lw, hash_word, CASMode::kStrong, std::memory_order_relaxed)) { in IdentityHashCode()
207 Monitor::InflateThinLocked(self, h_this, lw, GenerateIdentityHashCode()); in IdentityHashCode()
214 Monitor* monitor = lw.FatLockMonitor(); in IdentityHashCode()
219 return lw.GetHashCode(); in IdentityHashCode()
222 LOG(FATAL) << "Invalid state during hashcode " << lw.GetState(); in IdentityHashCode()
Dobject-inl.h114 LockWord lw = GetLockWord(false); in SetReadBarrierState() local
115 lw.SetReadBarrierState(rb_state); in SetReadBarrierState()
116 SetLockWord(lw, false); in SetReadBarrierState()
/art/runtime/gc/collector/
Dconcurrent_copying-inl.h228 LockWord lw = from_ref->GetLockWord(false); in GetFwdPtrUnchecked() local
229 if (lw.GetState() == LockWord::kForwardingAddress) { in GetFwdPtrUnchecked()
230 mirror::Object* fwd_ptr = reinterpret_cast<mirror::Object*>(lw.ForwardingAddress()); in GetFwdPtrUnchecked()
/art/runtime/
Dmonitor.cc234 LockWord lw(GetObject()->GetLockWord(false)); in Install() local
235 switch (lw.GetState()) { in Install()
238 CHECK_EQ(owner->GetThreadId(), lw.ThinLockOwner()); in Install()
240 lock_count_ = lw.ThinLockCount(); in Install()
244 LockWord fat(this, lw.GCState()); in Install()
246 bool success = GetObject()->CasLockWord(lw, fat, CASMode::kWeak, std::memory_order_release); in Install()
258 CHECK_EQ(hash_code_.load(std::memory_order_relaxed), static_cast<int32_t>(lw.GetHashCode())); in Install()
260 LockWord fat(this, lw.GCState()); in Install()
261 return GetObject()->CasLockWord(lw, fat, CASMode::kWeak, std::memory_order_release); in Install()
272 LOG(FATAL) << "Invalid monitor state " << lw.GetState(); in Install()
[all …]
Dlock_word.h168 static bool IsDefault(LockWord lw) { in IsDefault() argument
169 return LockWord().GetValue() == lw.GetValue(); in IsDefault()
/art/dex2oat/linker/
Dimage_writer.cc606 LockWord lw(object->GetLockWord(false)); in SetImageBinSlot() local
607 switch (lw.GetState()) { in SetImageBinSlot()
612 bool thin = (lw.GetState() == LockWord::kThinLocked); in SetImageBinSlot()
617 oss << ". Lock owner:" << lw.ThinLockOwner(); in SetImageBinSlot()
627 saved_hashcode_map_.insert(std::make_pair(object, lw.GetHashCode())); in SetImageBinSlot()