• tzik's avatar
    Cancel EnqueueMicrotask on detached contexts · a487167c
    tzik authored
    Context::microtask_context can be null after v8::Context::DetachGlobal
    is called, and that should cancel microtasks that are associated to
    the detached context.
    However, there are several callers left without the null check to the
    microtask queue, and that causes crashes.
    
    This CL adds the null check and cancellation as the crash fix.
    
    Bug: chromium:937784
    Change-Id: Ie8d107f28f200cee6e75798e3f72c5ed7a2a461c
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1545139
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60623}
    a487167c
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer 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...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests 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...