[M148] blink: Make HeapBarrierCallback thread-safe by default [chromium/src : refs/branch-heads/7778]

0 views
Skip to first unread message

Chromium LUCI CQ (Gerrit)

unread,
May 21, 2026, 5:58:54 PM (9 days ago) May 21
to chrome-che...@chops-service-accounts.iam.gserviceaccount.com, Eugene Zemtsov, Kentaro Hara, android-bu...@system.gserviceaccount.com, rubber-...@appspot.gserviceaccount.com, oilpan-rev...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, kouhe...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[M148] blink: Make HeapBarrierCallback thread-safe by default

Original change's description:
> blink: Make HeapBarrierCallback thread-safe by default
>
> HeapBarrierCallback was using Persistent to store aggregated results.
> Since Persistent handles are thread-affine, destroying or clearing them
> on another thread (e.g. when a PostTask fails due to worker thread
> shutdown) results in free-list corruption of the calling thread's
> PersistentRegion.
>
> This change replaces Persistent with UnwrappingCrossThreadHandle to
> ensure safe cross-thread destruction while strictly enforcing that the
> underlying vector is only dereferenced on its creation thread,
> preventing data races.
>
> Bug: 514715455
> Change-Id: I44930a8d0d742a6194c6380c7b94abc8cf03dab7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7860937
> Reviewed-by: Nate Chapin <jap...@chromium.org>
> Commit-Queue: Eugene Zemtsov <eug...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1633752}

(cherry picked from commit 6fd20a57fccfaf70f2b472c7f1246033011af527)
Bug: 515276174,514715455
Change-Id: I44930a8d0d742a6194c6380c7b94abc8cf03dab7
Cr-Commit-Position: refs/branch-heads/7778@{#3430}
Cr-Branched-From: 77f495ee216d4c3cc784d33658bad4778c0680ee-refs/heads/main@{#1610480}
Files:
  • M third_party/blink/renderer/platform/heap/heap_barrier_callback.h
Change size: S
Delta: 1 file changed, 7 insertions(+), 5 deletions(-)
Branch: refs/branch-heads/7778
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7778
Gerrit-Change-Id: I44930a8d0d742a6194c6380c7b94abc8cf03dab7
Gerrit-Change-Number: 7868493
Gerrit-PatchSet: 3
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-CC: Eugene Zemtsov <eug...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages