v8/test
jameslahm d8c9b08925 [d8] Don't call WaitForRunningWorkers in quit()
There are problems calling WaitForRunningWorkers when we
call quit().
First, suppose the main thread first calls quit(),
and the worker thread calls quit() after the main
thread calls quit(), then sched_yield to wait for
quit_once_ updated to ONCE_STATE_DONE. However
the main thread is WaitForRunningWorkers to wait
for the worker thread to join, thus causing deadlock.

Second, suppose the worker thread calls quit() and empty
the running_workers_ by WaitForRunningWorkers, then
the main thread calls `onExit(isolate, true)` to dispose
the platform and other global data, which will crash other
running workers.

Bug: v8:12219
Change-Id: I333e5aad431daefb1c163f69e66d8e9d5e9bf754
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3518908
Reviewed-by: Marja Hölttä <marja@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79525}
2022-03-18 07:58:38 +00:00
..
benchmarks [tests] Skip slow tests on certain configurations 2022-01-31 13:52:22 +00:00
bigint [bigint][test] Better random input generation 2021-09-08 15:39:27 +00:00
cctest [osr] Minor refactors in OSR-related code 2022-03-17 10:09:16 +00:00
common [wasm-gc] Merge anyref and externref 2022-03-01 22:12:59 +00:00
debugger [ic] name Set/Define/Store property operations more consistently 2022-03-08 18:48:16 +00:00
debugging
fuzzer [wasm] Implement the Extended Constants proposal 2022-03-04 08:49:52 +00:00
fuzzilli
inspector [maglev] Initial Maglev commit 2022-02-24 09:50:50 +00:00
intl [intl] NumberFormat v3 Part 4 SelectRange 2022-03-16 11:01:35 +00:00
js-perf-test Revert "[call reducer] inline Array.prototype.indexOf/includes in js-call-reducer." 2022-03-17 11:39:46 +00:00
memory
message [test] Pretty print object properties on assert failure 2022-03-04 14:30:51 +00:00
mjsunit [d8] Don't call WaitForRunningWorkers in quit() 2022-03-18 07:58:38 +00:00
mkgrokdump [heap] Add flag for disabling map space 2022-02-18 09:03:07 +00:00
mozilla [test] Clean up Py2 code 2022-03-17 09:12:36 +00:00
test262 [Temporal] Add Temporal.PlainTime.from 2022-03-18 06:19:05 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests [compiler] Extract TF-specific parts of OptimizedCompilationJob 2022-03-17 12:37:45 +00:00
wasm-api-tests [test] Clean up Py2 code 2022-03-17 09:12:36 +00:00
wasm-js [wasm] Update spec tests 2022-02-10 13:15:08 +00:00
wasm-spec-tests [wasm] Update spec tests 2022-02-10 13:15:08 +00:00
webkit [test] Disable failing MSVC test 2021-12-01 15:51:59 +00:00
BUILD.gn Reland^2 "[bigint] Karatsuba multiplication" 2021-06-07 11:01:14 +00:00
OWNERS