Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 2626313003: [wasm] Change the constant kV8MaxWasmMemoryPages to a command line flag. (Closed)

Created:
3 years, 11 months ago by ahaas
Modified:
3 years, 11 months ago
Reviewers:
titzer
CC:
Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Change the constant kV8MaxWasmMemoryPages to a command line flag. The hardcoded constant caused a problem for the wasm fuzzer because when the maximum memory was allocated in a test case, clusterfuzz ran out of memory. with the command line flag we can set a lower limit for the fuzzer. The flag has the value of the constant as its default value, so that for everything but the fuzzers nothing should change. R=titzer@chromium.org BUG=chromium:676888 Review-Url: https://codereview.chromium.org/2626313003 Cr-Commit-Position: refs/heads/master@{#42599} Committed: https://chromium.googlesource.com/v8/v8/+/94266b7d86cfb7201461a9af2bfe2ec3268a70e3

Patch Set 1 #

Patch Set 2 : typo #

Total comments: 2

Patch Set 3 : Make the flag an unsigned int #

Patch Set 4 : Add parsing of uint commandline parameters #

Patch Set 5 : allow all unsigned ints #

Total comments: 6

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -18 lines) Patch
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M src/flags.cc View 1 2 3 4 5 8 chunks +47 lines, -2 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M src/wasm/wasm-limits.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 5 chunks +7 lines, -7 lines 0 comments Download
M test/fuzzer/wasm.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M test/fuzzer/wasm-asmjs.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 36 (26 generated)
ahaas
3 years, 11 months ago (2017-01-13 14:36:17 UTC) #1
ahaas
On 2017/01/13 at 14:36:17, ahaas wrote: > Fixed a typo.
3 years, 11 months ago (2017-01-13 14:51:50 UTC) #8
titzer
https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h#newcode502 src/flag-definitions.h:502: DEFINE_INT(wasm_max_mem_pages, 16384, "maximum memory size of a wasm instance") ...
3 years, 11 months ago (2017-01-13 14:54:22 UTC) #9
ahaas
https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h#newcode502 src/flag-definitions.h:502: DEFINE_INT(wasm_max_mem_pages, 16384, "maximum memory size of a wasm instance") ...
3 years, 11 months ago (2017-01-17 09:09:55 UTC) #16
titzer
On 2017/01/17 09:09:55, ahaas wrote: > https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h > File src/flag-definitions.h (right): > > https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h#newcode502 > ...
3 years, 11 months ago (2017-01-17 09:34:01 UTC) #17
ahaas
On 2017/01/17 at 09:34:01, titzer wrote: > On 2017/01/17 09:09:55, ahaas wrote: > > https://codereview.chromium.org/2626313003/diff/20001/src/flag-definitions.h ...
3 years, 11 months ago (2017-01-23 10:01:40 UTC) #22
titzer
Thanks for adding the unsigned parsing type. LGTM with comments https://codereview.chromium.org/2626313003/diff/80001/src/flags.cc File src/flags.cc (right): https://codereview.chromium.org/2626313003/diff/80001/src/flags.cc#newcode74 ...
3 years, 11 months ago (2017-01-23 10:20:44 UTC) #23
ahaas
https://codereview.chromium.org/2626313003/diff/80001/src/flags.cc File src/flags.cc (right): https://codereview.chromium.org/2626313003/diff/80001/src/flags.cc#newcode74 src/flags.cc:74: int* uint_variable() const { On 2017/01/23 at 10:20:44, titzer ...
3 years, 11 months ago (2017-01-23 11:47:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2626313003/100001
3 years, 11 months ago (2017-01-23 12:07:57 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 12:09:58 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/94266b7d86cfb7201461a9af2bfe2ec3268...

Powered by Google App Engine
This is Rietveld 408576698