Index: src/heap.cc |
=================================================================== |
--- src/heap.cc (revision 4035) |
+++ src/heap.cc (working copy) |
@@ -3081,7 +3081,7 @@ |
static int number_idle_notifications = 0; |
static int last_gc_count = gc_count_; |
- if (contexts_disposed_ > 0) { |
+ if (!FLAG_expose_gc && (contexts_disposed_ > 0)) { |
HistogramTimerScope scope(&Counters::gc_context); |
CollectAllGarbage(false); |
ASSERT(contexts_disposed_ == 0); |