From 6fb1e76d6fee11d410869c2e7dd308defcc9a09e Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 6 May 2015 05:43:24 -0700 Subject: [PATCH] Manage size of lists used in global handles Make sure all lists are either regularly cleared or trimmed R=hpayer@chromium.org BUG=none LOG=n Review URL: https://codereview.chromium.org/1123213003 Cr-Commit-Position: refs/heads/master@{#28258} --- src/global-handles.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/global-handles.cc b/src/global-handles.cc index 6a6b6ef860..8e0ff13d33 100644 --- a/src/global-handles.cc +++ b/src/global-handles.cc @@ -786,6 +786,7 @@ void GlobalHandles::UpdateListOfNewSpaceNodes() { } } new_space_nodes_.Rewind(last); + new_space_nodes_.Trim(); } @@ -811,6 +812,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks() { // Fire second pass callback. callback.Invoke(isolate()); } + pending_phantom_callbacks_.Clear(); return freed_nodes; }