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

Issue 660753002: Oilpan: Request an Oilpan's GC when a V8's major GC is triggered (Closed)

Created:
6 years, 2 months ago by haraken
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Project:
blink
Visibility:
Public.

Description

Oilpan: Request an Oilpan's GC when a V8's major GC is triggered This CL schedules an Oilpan's GC when a V8's major GC is triggered to avoid the following scenario: (1) A DOM object X holds a v8::Persistent to a V8 object. Assume that X is small but the V8 object is huge. (2) X's DOM wrapper is created. (3) The DOM wrapper becomes unreachable. (4) V8 triggers a GC. The V8's GC collects the DOM wrapper. However, X is not collected until a next Oilpan's GC is triggered. (5) If a lot of such DOM objects are created, we end up with a situation where V8's GC collects the DOM wrappers but the DOM objects are not collected forever. (Note that Oilpan's GC is not triggered unless Oilpan's heap gets full.) (6) V8 hits OOM. BUG=423047 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183861

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M Source/bindings/core/v8/V8GCController.cpp View 1 1 chunk +16 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
haraken
This CL is not yet for review. keishi-san: Would you try to apply this CL ...
6 years, 2 months ago (2014-10-16 08:20:48 UTC) #2
haraken
Slava, Erik: Would you take a look at this change? The underlying issue is that ...
6 years, 2 months ago (2014-10-16 11:52:18 UTC) #4
keishi
This fixes the bug crbug.com/423047 May I land this?
6 years, 2 months ago (2014-10-17 05:36:17 UTC) #5
haraken
On 2014/10/17 05:36:17, keishi wrote: > This fixes the bug crbug.com/423047 > > May I ...
6 years, 2 months ago (2014-10-17 05:38:49 UTC) #6
keishi
lgtm
6 years, 2 months ago (2014-10-17 05:51:55 UTC) #7
tkent
lgtm
6 years, 2 months ago (2014-10-17 05:52:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660753002/20001
6 years, 2 months ago (2014-10-17 05:52:42 UTC) #11
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 07:48:21 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 183861

Powered by Google App Engine
This is Rietveld 408576698