• Ulan Degenbaev's avatar
    Initial handling of bloated V8 heaps near the heap limit. · fc84822a
    Ulan Degenbaev authored
    This patch adds a new Blink feature flag - BloatedRendererDetection.
    When the flag is enabled, Blink uses the new V8 API to install
    a callback that is invoked when V8's heap reaches the heap limit.
    
    The callback notifies the BloatedRendererDetector controller that in
    future will dispatch a message to the browser process for reloading the
    tab and showing an infobar explaining that the tab ran out of memory.
    
    The patch also adds a new UMA histograms
    - "BloatedRenderer.V8.NearV8HeapLimitHandling"
    
    Bug: 835806
    Change-Id: I2f1bcefaaf8a553517de9a1bb2dc9d084f4eca4b
    Reviewed-on: https://chromium-review.googlesource.com/1024033
    Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
    Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#558275}
    fc84822a
enums.xml 2.05 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.