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

Issue 2422943003: SerializedScriptValueFuzzer: Yield to the run loop to allow GC tasks to run. (Closed)

Created:
4 years, 2 months ago by jbroman
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, fuzzing_chromium.org, jbroman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SerializedScriptValueFuzzer: Yield to the run loop to allow GC tasks to run. The Blink garbage collector (Oilpan) relies on control periodically being yielded to the run loop to work efficiently. Previously, the fuzzer wasn't doing this, leading to a reduction in fuzzing speed and an increase in memory usage. Unit tests typically do not last long enough for this to be an issue. By periodically yielding to the run loop, the fuzzer has more stable performance characteristics over long runs. Every 2048 iterations was chosen as a slightly-tweaked heuristic, to balance between the cost of yielding to the run loop and the expense of letting the heap grow too much. BUG=148757 Committed: https://crrev.com/0f23ef667b5cbad5c0b1c3c2f31fd98e52535b78 Cr-Commit-Position: refs/heads/master@{#426031}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/serialization/SerializedScriptValueFuzzer.cpp View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
jbroman
4 years, 2 months ago (2016-10-17 23:52:27 UTC) #6
haraken
LGTM
4 years, 2 months ago (2016-10-17 23:53:54 UTC) #7
inferno
lgtm. Do we need to do something similar for other v8 libfuzzers, like wasm*, etc ...
4 years, 2 months ago (2016-10-18 00:18:58 UTC) #9
jbroman
On 2016/10/18 at 00:18:58, inferno wrote: > lgtm. > > Do we need to do ...
4 years, 2 months ago (2016-10-18 03:22:56 UTC) #10
inferno
On 2016/10/18 03:22:56, jbroman wrote: > On 2016/10/18 at 00:18:58, inferno wrote: > > lgtm. ...
4 years, 2 months ago (2016-10-18 03:27:58 UTC) #11
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/2422943003/1
4 years, 2 months ago (2016-10-18 20:07:49 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-18 20:15:48 UTC) #14
inferno
On 2016/10/18 20:15:48, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) Hoping ...
4 years, 2 months ago (2016-10-18 20:54:52 UTC) #15
jbroman
On 2016/10/18 at 20:54:52, inferno wrote: > On 2016/10/18 20:15:48, commit-bot: I haz the power ...
4 years, 2 months ago (2016-10-18 20:57:39 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:02:33 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0f23ef667b5cbad5c0b1c3c2f31fd98e52535b78
Cr-Commit-Position: refs/heads/master@{#426031}

Powered by Google App Engine
This is Rietveld 408576698