DescriptionOilpan: adjust GC policy under memory pressure (only.)
When notified of a v8 major GC, check if we're under memory pressure and
overdue an Oilpan GC & urgently. If so, force a conservative GC right
away.
This addresses dom-modify.html OOM troubles on win32, in particular. It
runs into the allocation pattern where the Oilpan allocator is able to
handle a tight loop just allocating Text nodes by bump allocating each
such node. Each Text node has a large external string allocation however,
which leads to a steep ramp-upin overall allocation amounts to the point
where it might OOM as no Oilpan GCs will run. v8 will however notice the
increasing memory pressure and schedule major GCs of its own.
Oilpan is notified after each v8 major GC, so use that opportunity to
check for memory pressure & force an Oilpan GC right away.
R=haraken
BUG=474470
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197245
Patch Set 1 #
Total comments: 3
Patch Set 2 : remove testing CPPery #
Messages
Total messages: 18 (8 generated)
|