Try to allow the new context disposal GC heuristic to kick
authorkasperl@chromium.org <kasperl@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Mar 2010 07:35:06 +0000 (07:35 +0000)
committerkasperl@chromium.org <kasperl@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 5 Mar 2010 07:35:06 +0000 (07:35 +0000)
in even when running with --expose-gc.
Review URL: http://codereview.chromium.org/668143

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4029 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/heap.cc

index aba9e41..d9fd995 100644 (file)
@@ -3081,7 +3081,7 @@ bool Heap::IdleNotification() {
   static int number_idle_notifications = 0;
   static int last_gc_count = gc_count_;
 
-  if (!FLAG_expose_gc && (contexts_disposed_ > 0)) {
+  if (contexts_disposed_ > 0) {
     HistogramTimerScope scope(&Counters::gc_context);
     CollectAllGarbage(false);
     ASSERT(contexts_disposed_ == 0);