• Clemens Backes's avatar
    [d8] Make counters fully atomic · 6114d098
    Clemens Backes authored
    Counter updates were already atomic, but reading the counter values was
    not. This lead to data races if one isolate called `quit` while other
    isolates were still running.
    This makes counters fully atomic, and reflects that by making the fields
    {std::atomic<int>}.
    
    R=mlippautz@chromium.org
    
    Bug: v8:12481, v8:12482
    Change-Id: I6fc78ad6461b93c4b3e87bec052b0a67694539e3
    Cq-Include-Trybots: luci.v8.try:v8_linux64_tsan_rel_ng
    Cq-Include-Trybots: luci.v8.try:v8_linux64_ubsan_rel_ng
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3320428Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78279}
    6114d098
Name
Last commit
Last update
..
OWNERS Loading commit data...
async-hooks-wrapper.cc Loading commit data...
async-hooks-wrapper.h Loading commit data...
cov.cc Loading commit data...
cov.h Loading commit data...
d8-console.cc Loading commit data...
d8-console.h Loading commit data...
d8-js.cc Loading commit data...
d8-platforms.cc Loading commit data...
d8-platforms.h Loading commit data...
d8-posix.cc Loading commit data...
d8-test.cc Loading commit data...
d8-windows.cc Loading commit data...
d8.cc Loading commit data...
d8.h Loading commit data...