v8/test
Yang Guo 0a7e08ef26 [compiler] finalize compile jobs asap when compiling on main thread
Previously, we finalize all compile jobs at once. This keeps the zone memory
in every compile job alive until the end. This contributes to a high peak
memory when many functions are compiled eagerly, for example when producing
cache data for the ServiceWorker cache.

Memory tracked by the AccountingAllocator in bytes, prior to this change in
the test case:
peak memory after init:              8192
peak memory after lazy compile:     41200
peak memory after lazy compile:     41200
peak memory after eager compile:   164256

With this change, if we are compiling on the main thread, we finalize every
compile job as soon as it is done and dispose the compile job and its zone
memory.

After this change:
peak memory after init:              8192
peak memory after lazy compile:     41200
peak memory after lazy compile:     41200
peak memory after eager compile:    41376

R=leszeks@chromium.org, rmcilroy@chromium.org

Bug: chromium:901329
Change-Id: Iae0c89396c89692c4ecdeec3970d3c62031d2bce
Reviewed-on: https://chromium-review.googlesource.com/c/1322949
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57340}
2018-11-08 07:29:15 +00:00
..
benchmarks [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
cctest [compiler] finalize compile jobs asap when compiling on main thread 2018-11-08 07:29:15 +00:00
common [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
debugger [test] Skip slow tests on arm simulators 2018-10-17 08:52:47 +00:00
fuzzer [wasm] Rename GrowMemory to MemoryGrow 2018-10-29 14:06:24 +00:00
inspector Skip inspector/runtime/console-messages-limits on arm debug simulators 2018-11-07 20:00:39 +00:00
intl [intl] Don't run exhaustive regression tests on tsan variants 2018-11-07 23:44:24 +00:00
js-perf-test [Intl] Add benchmark for toLocaleString/localeCompare 2018-11-07 18:08:16 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message Rename fields to names or members 2018-11-06 16:04:08 +00:00
mjsunit [mjsunit] Make an Array#join regression test 8x faster 2018-11-07 22:13:38 +00:00
mkgrokdump [cleanup] Cleanup IMMORTAL_IMMOVABLE_ROOT_LIST 2018-10-09 09:05:37 +00:00
mozilla [test] Add more test suites to Android testing 2018-09-07 09:53:15 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 Roll Test262 2018-11-05 19:54:04 +00:00
torque [torque] allow qualified access to different modules/namespaces 2018-11-05 13:34:03 +00:00
unittests [wasm] Decouple wire bytes from compilation units 2018-11-07 13:56:53 +00:00
wasm-js Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00
wasm-spec-tests [wasm] Update wasm spec tests 2018-10-23 08:57:08 +00:00
webkit [tests] Skip webkit/dfg-inline-function-dot-caller on debug simulators 2018-11-07 01:37:25 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00