Commit 8a321c5d authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[ptr-compr] Use RelaxedLoad() in FullObjectSlot::contains_value()

to make TSAN happy.

Bug: v8:8518
Change-Id: I1c7291cc6035c7e88758d867cb74467c59e95ef1
No-Tree-Checks: true
Reviewed-on: https://chromium-review.googlesource.com/c/1365285Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58075}
parent c1ceee7d
......@@ -24,7 +24,7 @@ FullObjectSlot::FullObjectSlot(ObjectPtr* object)
: SlotBase(reinterpret_cast<Address>(&object->ptr_)) {}
bool FullObjectSlot::contains_value(Address raw_value) const {
return *location() == raw_value;
return base::AsAtomicPointer::Relaxed_Load(location()) == raw_value;
}
Object* FullObjectSlot::operator*() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment