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

Issue 2360983002: Enable component builds for fuzzers (Closed)

Created:
4 years, 3 months ago by jgruber
Modified:
4 years, 2 months ago
CC:
jochen (gone - plz use gerrit), v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Enable component builds for fuzzers V8 is collecting a growing amount of fuzzers, all of which take substantial space on the bots and in chromium build archives. This CL improves that situation by allowing component (shared library) builds for almost all fuzzers. The parser fuzzer is handled as an exception since it would require exporting a large number of additional functions. A component build results in about a 50-100x improvement in file size for each fuzzer (~50M-100M to around 1.1M). BUG=chromium:648864 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_compile_dbg_ng;master.tryserver.chromium.android:android_clang_dbg_recipe Committed: https://crrev.com/22606f0c29421d6a72e46595ec2995c7771ff070 Cr-Commit-Position: refs/heads/master@{#39709}

Patch Set 1 #

Patch Set 2 : Export addtl symbols #

Patch Set 3 : Move definition of ParserTarget{,Scope} to header #

Patch Set 4 : Special-case parser fuzzer in shared builds #

Patch Set 5 : external_config for regexp_fuzzer #

Patch Set 6 : Set all fuzzers as internal_config_base #

Patch Set 7 : Add GYP support #

Patch Set 8 : Explicit external configs for fuzzer targets #

Total comments: 2

Patch Set 9 : Addtl. exports for chromium fuzzer targets #

Patch Set 10 : Move PerThreadAssertScope exports to satisfy compiler #

Patch Set 11 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -77 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 16 chunks +82 lines, -16 lines 0 comments Download
M src/assert-scope.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -2 lines 0 comments Download
M src/execution.h View 1 chunk +3 lines, -5 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -9 lines 0 comments Download
M src/handles.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -5 lines 0 comments Download
M src/lookup.h View 1 chunk +1 line, -1 line 0 comments Download
M src/machine-type.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +9 lines, -7 lines 0 comments Download
M src/regexp/jsregexp.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/ast-decoder.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/wasm/encoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/wasm/module-decoder.h View 1 chunk +5 lines, -3 lines 0 comments Download
M src/wasm/wasm-interpreter.h View 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-js.h View 1 chunk +4 lines, -5 lines 0 comments Download
M src/wasm/wasm-module.h View 3 chunks +7 lines, -10 lines 0 comments Download
M src/wasm/wasm-result.h View 1 chunk +1 line, -1 line 0 comments Download
M src/zone/accounting-allocator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/zone/zone.h View 1 1 chunk +1 line, -1 line 0 comments Download
M test/fuzzer/fuzzer.gyp View 1 2 3 4 5 6 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 73 (53 generated)
jgruber
4 years, 3 months ago (2016-09-22 09:52:25 UTC) #20
jochen (gone - plz use gerrit)
does this work out of the box for the gyp build? should we bother to ...
4 years, 3 months ago (2016-09-22 09:54:46 UTC) #22
jgruber
On 2016/09/22 09:54:46, jochen (slow) wrote: > does this work out of the box for ...
4 years, 3 months ago (2016-09-22 10:16:16 UTC) #23
Michael Achenbach
lgtm on the build files! Thanks a lot for working on this!
4 years, 3 months ago (2016-09-22 10:26:39 UTC) #24
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-22 10:29:49 UTC) #25
ahaas
On 2016/09/22 at 10:29:49, jochen wrote: > lgtm lgtm, thank you very much for that!
4 years, 3 months ago (2016-09-22 10:42:16 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/2360983002/140001
4 years, 2 months ago (2016-09-22 11:21:18 UTC) #37
Michael Achenbach
Does the last patchset fix this? https://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/161179/steps/compile%20%28with%20patch%29/logs/stdio https://codereview.chromium.org/2360983002/diff/140001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2360983002/diff/140001/BUILD.gn#newcode2336 BUILD.gn:2336: ":v8", Instead ...
4 years, 2 months ago (2016-09-22 11:22:08 UTC) #38
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/2360983002/140001
4 years, 2 months ago (2016-09-22 11:30:46 UTC) #42
commit-bot: I haz the power
Your CL was about to rely on recently removed CQ feature(s): * Specifying master names ...
4 years, 2 months ago (2016-09-22 11:30:49 UTC) #44
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/2360983002/140001
4 years, 2 months ago (2016-09-22 11:38:57 UTC) #47
jgruber
https://codereview.chromium.org/2360983002/diff/140001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2360983002/diff/140001/BUILD.gn#newcode2336 BUILD.gn:2336: ":v8", On 2016/09/22 11:22:07, machenbach (slow) wrote: > Instead ...
4 years, 2 months ago (2016-09-23 14:09:27 UTC) #58
Michael Achenbach
still lgtm
4 years, 2 months ago (2016-09-23 14:18:06 UTC) #59
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/2360983002/180001
4 years, 2 months ago (2016-09-23 16:43:27 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/24893)
4 years, 2 months ago (2016-09-23 16:47:37 UTC) #64
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/2360983002/200001
4 years, 2 months ago (2016-09-26 06:48:00 UTC) #67
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-09-26 07:40:32 UTC) #69
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/22606f0c29421d6a72e46595ec2995c7771ff070 Cr-Commit-Position: refs/heads/master@{#39709}
4 years, 2 months ago (2016-09-26 07:40:59 UTC) #71
Michael Achenbach
Impact so far: - This fixed our arm Chromebooks in debug! They could indeed not ...
4 years, 2 months ago (2016-09-27 07:36:23 UTC) #72
Michael Achenbach
4 years, 2 months ago (2016-09-27 10:41:08 UTC) #73
Message was sent while issue was closed.
Moar impact on all v8 debug bots, around 70% space saved everywhere, examples:

- Linux debug: 681.9 MiB down to 216.78 MiB - 68% space saved!
https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20-%20debug%20bu...
vs.
https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20-%20debug%20bu...

- Linux arm64 sim debug: ~2.4 GB down to ~795.0 MB - 68% space saved!
https://chromium-swarm.appspot.com/user/task/318394bd5a5fdc10 vs.
https://chromium-swarm.appspot.com/user/task/3183e382a0e89510

Powered by Google App Engine
This is Rietveld 408576698