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}
This commit is contained in:
jochen 2015-05-06 05:43:24 -07:00 committed by Commit bot
parent 6d26ec0b4c
commit 6fb1e76d6f

View File

@ -786,6 +786,7 @@ void GlobalHandles::UpdateListOfNewSpaceNodes() {
} }
} }
new_space_nodes_.Rewind(last); new_space_nodes_.Rewind(last);
new_space_nodes_.Trim();
} }
@ -811,6 +812,7 @@ int GlobalHandles::DispatchPendingPhantomCallbacks() {
// Fire second pass callback. // Fire second pass callback.
callback.Invoke(isolate()); callback.Invoke(isolate());
} }
pending_phantom_callbacks_.Clear();
return freed_nodes; return freed_nodes;
} }