v8/test
Andreas Haas 401190baf0 [wasm] Fix return value of concurrent memory.grow
When memory.grow was executed concurrently on multiple threads a data
race could happen such that two memory.grow operations result in the
same return value. With this CL the return value of memory.grow is
unique, given that memory.grow actually grows the memory.

As a concrete example, assume a shared WebAssembly memory initially has
a size of 100. Assume two threads call memory.grow concurrently with a
parameter `10`. Then with the existing code, memory would grow correctly
to a size of 120, but the data race may cause both memory.grow
operations to return 100. With the change in this CL one memory.grow
operation would return 100, the other would return 110.

R=gdeepti@chromium.org
CC=rreverser@google.com

Bug: chromium:1067621
Change-Id: Ib22b5135714a56799e0818ccb39e5dce327e5f8e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2144113
Reviewed-by: Ben Smith <binji@chromium.org>
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67135}
2020-04-14 21:37:32 +00:00
..
benchmarks Create master files per benchmark in csuite 2020-02-26 10:37:33 +00:00
cctest Revert "[wasm-debug-eval] Implement additional evaluator API methods" 2020-04-14 15:43:04 +00:00
common [wasm] Turn ValueType from an enum to a class 2020-03-12 17:03:16 +00:00
debugger [wasm] Store whether code was generated for debugging 2020-04-14 14:51:39 +00:00
debugging Add initial support for Wasm debugging with LLDB: implements a GDB-remote stub 2020-02-20 22:27:58 +00:00
fuzzer [wasm-simd][fuzzer] Add S8x16Shuffle to fuzzer 2020-04-09 01:02:57 +00:00
inspector [test] Crash on invalid intrinsic use unless --fuzzing is on 2020-04-14 15:01:49 +00:00
intl Enable legacy locales "sh", "no", "tl" 2020-04-01 22:43:43 +00:00
js-perf-test [cleanup][test] Fix typo in js-perf-test/Scope/with.js 2020-02-12 10:59:54 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message [weakrefs] Update FinalizationRegistry to take a per-item callback 2020-04-08 17:54:24 +00:00
mjsunit [wasm] Fix return value of concurrent memory.grow 2020-04-14 21:37:32 +00:00
mkgrokdump [heap] Enable Verify for RO_SPACE when it is shared 2019-11-04 09:55:45 +00:00
mozilla Remove and update some outdated TODO(mstarzinger). 2019-12-13 10:18:04 +00:00
test262 Support the o?.#foo syntax 2020-04-14 10:16:25 +00:00
torque [torque] support multiline comments 2020-04-07 13:32:16 +00:00
unittests [wasm] Fix return value of concurrent memory.grow 2020-04-14 21:37:32 +00:00
wasm-api-tests [wasm] Clean up WASM_CALL_INDIRECT macros 2019-11-28 14:44:06 +00:00
wasm-js [wasm] Update wasm spec tests 2020-03-26 16:04:53 +00:00
wasm-spec-tests [wasm] Passive element segments don't need a table 2020-03-27 08:38:03 +00:00
webkit [class] Improve error message for calling anonymous class constructors 2019-12-05 21:13:07 +00:00
BUILD.gn [preparser] deprecate stand-alone "preparser" test-suite 2019-11-20 08:52:59 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00