Commit 75d4b18a authored by Omer Katz's avatar Omer Katz Committed by Commit Bot

heap: Fix TracedReference::IsEmptyThreadSafe again

reinterpret_cast to std::atomic was missing const.

Bug: chromium:1108537
Change-Id: Ib737418bddbef6774deafa9714b0efcf2e3fd07c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2332797
Auto-Submit: Omer Katz <omerkatz@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69194}
parent 3cb51961
......@@ -917,7 +917,7 @@ class TracedReferenceBase {
* Get this reference in a thread-safe way
*/
const T* GetSlotThreadSafe() const {
return reinterpret_cast<std::atomic<const T*>*>(&val_)->load(
return reinterpret_cast<std::atomic<const T*> const*>(&val_)->load(
std::memory_order_relaxed);
}
......
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