Lines Matching refs:LockWord
62 class LockWord {
111 static LockWord FromThinLockId(uint32_t thread_id, uint32_t count, uint32_t rb_state) { in FromThinLockId()
115 return LockWord((thread_id << kThinLockOwnerShift) | (count << kThinLockCountShift) | in FromThinLockId()
120 static LockWord FromForwardingAddress(size_t target) { in FromForwardingAddress()
122 return LockWord((target >> kStateSize) | (kStateForwardingAddress << kStateShift)); in FromForwardingAddress()
125 static LockWord FromHashCode(uint32_t hash_code, uint32_t rb_state) { in FromHashCode()
128 return LockWord((hash_code << kHashShift) | in FromHashCode()
133 static LockWord FromDefault(uint32_t rb_state) { in FromDefault()
135 return LockWord(rb_state << kReadBarrierStateShift); in FromDefault()
138 static bool IsDefault(LockWord lw) { in IsDefault()
139 return LockWord().GetValue() == lw.GetValue(); in IsDefault()
142 static LockWord Default() { in Default()
143 return LockWord(); in Default()
200 LockWord(Monitor* mon, uint32_t rb_state);
206 static bool Equal(LockWord lw1, LockWord lw2) { in Equal()
219 LockWord();
221 explicit LockWord(uint32_t val) : value_(val) { in LockWord() function
228 bool operator==(const LockWord& rhs) = delete;
262 std::ostream& operator<<(std::ostream& os, const LockWord::LockState& code);