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

Issue 2592403002: [heap] Ensure progress when incrementally marking wrappers (Closed)

Created:
4 years ago by Michael Lippautz
Modified:
4 years ago
Reviewers:
ulan
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, haraken
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Ensure progress when incrementally marking wrappers The problem here is estimating the marking step size for wrapper tracing. If the steps are too small, we cannot keep up with the mutator creating new wrappers. The result is an endless stream of incremental marking steps, alternating v8 and wrappers tracing, without ever finalizing in a GC. The mitigation here is to abort finding the fix point after 10 incremental iterations. A proper solution would track newly created wrappers on the blink side during wrapper tracing. Will give this more thought after the holidays. BUG=chromium:668164, chromium:468240 Review-Url: https://codereview.chromium.org/2592403002 Cr-Commit-Position: refs/heads/master@{#41923} Committed: https://chromium.googlesource.com/v8/v8/+/a47417b89373c615f9256800cfc803d84ba58378

Patch Set 1 #

Patch Set 2 : Force marking in final pause #

Patch Set 3 : Remove max iterations to 10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M src/heap/embedder-tracing.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M src/heap/embedder-tracing.cc View 1 3 chunks +7 lines, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 2 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 26 (21 generated)
ulan
lgtm
4 years ago (2016-12-22 13:58:38 UTC) #8
Michael Lippautz
haraken: fyi; will give this more thought after the holidays but want to get the ...
4 years ago (2016-12-22 14:14:37 UTC) #17
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/2592403002/60001
4 years ago (2016-12-22 14:48:45 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/v8/v8/+/a47417b89373c615f9256800cfc803d84ba58378
4 years ago (2016-12-22 14:50:31 UTC) #25
Michael Lippautz
4 years ago (2016-12-22 15:07:21 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:60001) has been created in
https://codereview.chromium.org/2602433002/ by mlippautz@chromium.org.

The reason for reverting is: This won't work because the finalization still
checks whether both marking deques are empty, also calling into blink. So we
never proceed there..

Powered by Google App Engine
This is Rietveld 408576698