• Samuel Groß's avatar
    [sandbox] Make ExternalPointerTable::capacity_ atomic · d8de0035
    Samuel Groß authored
    The capacity may be modified on one thread when growing the table while
    being used in a DCHECK (to sanity-check a provided
    ExternalPointerHandle) on another thread, resulting in TSan failures.
    This CL turns these accesses into atomic accesses and adds a comment
    explaining when the capacity value can be used reliably.
    
    Bug: chromium:1352148
    Change-Id: I0b86a47e16cfa14ff2d296e7e507e38a3fb5893c
    Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3826244
    Commit-Queue: Samuel Groß <saelo@chromium.org>
    Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82444}
    d8de0035
Name
Last commit
Last update
..
OWNERS Loading commit data...
external-pointer-inl.h Loading commit data...
external-pointer-table-inl.h Loading commit data...
external-pointer-table.cc Loading commit data...
external-pointer-table.h Loading commit data...
external-pointer.h Loading commit data...
sandbox.cc Loading commit data...
sandbox.h Loading commit data...
sandboxed-pointer-inl.h Loading commit data...
sandboxed-pointer.h Loading commit data...
testing.cc Loading commit data...
testing.h Loading commit data...