v8/test/cctest/wasm
Etienne Pierre-Doray 393782efee Revert "Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob.""
This reverts commit 064ee3c835.

Reason for revert: Causing blink_web_tests to fail on builder "WebKit Linux MSAN"
https://bugs.chromium.org/p/chromium/issues/detail?id=1153968

Original change's description:
> Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob."
>
> Reason for revert: Data race:
> https://ci.chromium.org/p/v8/builders/ci/V8%20Linux64%20TSAN/34121
>
> It was assume that MockPlatform runs everything on 1 thread. However,
> MockPlatform::PostJob previously would schedule the job through
> TestPlatform, which eventually posts concurrent tasks, thus causing
> data race.
> Fix: Manually calling NewDefaultJobHandle and passing the MockPlatform
> ensures the jobs also run sequentially.
>
> Additional change:
> - CancelAndDetach is now called in ~CompilationStateImpl() to make sure
> it's called in sequence with ScheduleCompileJobForNewUnits
>
> Original CL description:
> To avoid keeping around a list of job handles, CancelAndDetach() is
> used in CancelCompilation. Dependency on WasmEngine is handled by a
> barrier that waits on all jobs to finish.
>
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2498659
> Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
> Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
> Reviewed-by: Clemens Backes <clemensb@chromium.org>
> Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
> Cr-Original-Commit-Position: refs/heads/master@{#71074}
> Change-Id: Ie9556f7f96f6fb9a61ada0e5cbd58d4fb4a0f571
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2559137
> Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
> Reviewed-by: Andreas Haas <ahaas@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#71459}

TBR=ulan@chromium.org,jkummerow@chromium.org,ahaas@chromium.org,clemensb@chromium.org,etiennep@chromium.org
Bug: chromium:1153968, v8:11209, v8:11210, v8:11212

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I2c8406bea81ee7cf6c5726c2fec50fffdce09611
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2566446
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71519}
2020-12-01 09:39:31 +00:00
..
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
test-c-wasm-entry.cc Use safe conversion helper to convert double to int64_t 2020-10-15 19:47:13 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [wasm-gc] Implement JS roundtrip for anyref 2020-11-23 14:18:31 +00:00
test-grow-memory.cc [wasm][fuzzer] Merge redundant functions 2020-08-11 12:30:53 +00:00
test-jump-table-assembler.cc [cctest][wasm] Fix JumpTablePatchingStress on systems with 64k pages 2020-10-12 15:43:15 +00:00
test-liftoff-inspection.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-64.cc Reland "Add int64_t min and max to value helpers for test" 2020-10-27 23:20:41 +00:00
test-run-wasm-asmjs.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics64.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-atomics.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-bulk-memory.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-exceptions.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-interpreter.cc [wasm][cleanup] Rename kLocal<type> constants -> k<type>Code 2020-09-29 08:48:21 +00:00
test-run-wasm-js.cc [wasm] Remove ExecutionTier::kInterpreter 2020-08-06 09:31:18 +00:00
test-run-wasm-module.cc [wasm][memory64] Start implementing the memory64 proposal 2020-09-24 09:38:08 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm-simd] Rename shuffle & swizzle instructions to match spec 2020-09-25 19:07:12 +00:00
test-run-wasm-simd-scalar-lowering.cc [wasm-simd][scalar-lowering] Fix replacement for call nodes 2020-11-17 02:38:57 +00:00
test-run-wasm-simd.cc [mips][wasm-simd] Prototype i64x2.bitmask 2020-12-01 03:22:01 +00:00
test-run-wasm-wrappers.cc [wasm] Add cctest for indirect js-to-wasm calls 2020-11-17 11:59:46 +00:00
test-run-wasm.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
test-streaming-compilation.cc Revert "Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob."" 2020-12-01 09:39:31 +00:00
test-wasm-breakpoints.cc [wasm][debug] Fix DebugInfo deadlock 2020-09-14 16:54:06 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-debug-evaluate.cc Add the remaining spaces to the WebAssembly JS debug proxy 2020-10-06 15:07:51 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-metrics.cc Revert "Reland "[wasm]: Use CancelAndDetach and barrier on BackgroundCompileJob."" 2020-12-01 09:39:31 +00:00
test-wasm-serialization.cc [asserts] Make assert scopes LocalHeap friendly 2020-11-20 17:39:14 +00:00
test-wasm-shared-engine.cc [wasm] Allow specifying larger code space limits 2020-08-28 16:25:36 +00:00
test-wasm-stack.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [wasm-gc][bug] call_indirect should check for null table entries 2020-10-05 13:08:20 +00:00
wasm-run-utils.h [wasm-gc][bug] Fix signature canonicalization 2020-10-05 16:16:51 +00:00