Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: src/global-handles.cc

Issue 1123213003: Manage size of lists used in global handles (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.cc
diff --git a/src/global-handles.cc b/src/global-handles.cc
index 6a6b6ef8603b23e47654f9bc531191d2cb649f82..8e0ff13d3341e8ab6bb9befdbd481186312e2159 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698