Report DOM partitionAlloc size to V8 GC.
Background: Currently V8GC do not have idea of DOM memory usage retained by wrappers. A small set of unreachable wrappers may retain huge DOM, but v8 gc may not be triggered as it is not aware of DOM memory usage. This CL introduces |V8GCController::reportDOMMemoryUsageToV8| - DOM memory usage is tracked at partition{Alloc,Free} - After each task run, |reportDOMMemoryUsageToV8| is called. - |reportDOMMemoryUsageToV8| notifies V8 GC the partition memory size currently consumed by DOM. After this CL, http://jsbin.com/nitobiru/18 will not crash. BUG=365018, 368406 Review URL: https://codereview.chromium.org/301743006 git-svn-id: svn://svn.chromium.org/blink/trunk@176006 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment