| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[M149] 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)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |