Chromium Code Reviews| Index: src/heap.cc |
| diff --git a/src/heap.cc b/src/heap.cc |
| index 30932093be4763c09ebbe8b1498192ab8cbd5cee..038ad32eb0af827c2cf242f38220c73df1204816 100644 |
| --- a/src/heap.cc |
| +++ b/src/heap.cc |
| @@ -1150,8 +1150,6 @@ void Heap::MarkCompact(GCTracer* tracer) { |
| isolate_->counters()->objs_since_last_full()->Set(0); |
| - contexts_disposed_ = 0; |
| - |
| flush_monomorphic_ics_ = false; |
| } |
| @@ -5728,6 +5726,7 @@ bool Heap::IdleNotification(int hint) { |
| size_factor * IncrementalMarking::kAllocatedThreshold; |
| if (contexts_disposed_ > 0) { |
| + contexts_disposed_ = 0; |
|
danno
2013/11/06 08:15:53
DBC: Why is this change needed? It seems unrelated
|
| if (hint >= kMaxHint) { |
| // The embedder is requesting a lot of GC work after context disposal, |
| // we age inline caches so that they don't keep objects from |
| @@ -5742,8 +5741,8 @@ bool Heap::IdleNotification(int hint) { |
| "idle notification: contexts disposed"); |
| } else { |
| AdvanceIdleIncrementalMarking(step_size); |
| - contexts_disposed_ = 0; |
| } |
| + |
| // After context disposal there is likely a lot of garbage remaining, reset |
| // the idle notification counters in order to trigger more incremental GCs |
| // on subsequent idle notifications. |