Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 86d48a243bb5eacba91fabb0dfef120af4745939..cf67dab2b406ade3d21c99059e3a6b405aebe8dd 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -864,7 +864,10 @@ bool Heap::CollectGarbage(GarbageCollector collector, const char* gc_reason, |
int Heap::NotifyContextDisposed(bool dependant_context) { |
- // TODO(hpayer): Reset heap shrinking if dependant_context is false. |
+ if (!dependant_context) { |
+ tracer()->ResetSurvivalEvents(); |
+ old_generation_size_configured_ = false; |
+ } |
if (isolate()->concurrent_recompilation_enabled()) { |
// Flush the queued recompilation tasks. |
isolate()->optimizing_compiler_thread()->Flush(); |