Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1290)

Unified Diff: src/heap/heap.cc

Issue 815933005: Reset old generation limit on main frame context disposal. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698