DescriptionOilpan: 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 : #Messages
Total messages: 12 (4 generated)
|