Reviewers: Hannes Payer,

Description:
Manage size of lists used in global handles

Make sure all lists are either regularly cleared or trimmed

[email protected]
BUG=none
LOG=n

Please review this at https://codereview.chromium.org/1123213003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+2, -0 lines):
  M src/global-handles.cc


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;
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to