• Dominik Inführ's avatar
    [heap] Fix global safepoint when waiting in event loop · 3eb8671e
    Dominik Inführ authored
    When starting a global safepoint, it could happen that one isolate is
    waiting/blocking in the event loop, which prevents this isolate from
    reaching a safepoint. As a consequence we therefore deadlock when
    performing the safepoint. We can solve this by simply posting a task
    for each isolate that when run performs a safepoint check.
    
    This CL also renames IncludeMainThreadUnlessInitiator to
    ShouldIncludeMainThread.
    
    Bug: v8:11708, v8:12645
    Change-Id: Ide956b3c39b350c2bb0279a7dd94ff79cb9d771b
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3555771Reviewed-by: 's avatarAnton Bikineev <bikineev@chromium.org>
    Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79675}
    3eb8671e
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...