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

Side by Side 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 5 years, 12 months 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 unified diff | Download patch
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 if (!mark_compact_collector()->abort_incremental_marking() && 857 if (!mark_compact_collector()->abort_incremental_marking() &&
858 WorthActivatingIncrementalMarking()) { 858 WorthActivatingIncrementalMarking()) {
859 incremental_marking()->Start(); 859 incremental_marking()->Start();
860 } 860 }
861 861
862 return next_gc_likely_to_collect_more; 862 return next_gc_likely_to_collect_more;
863 } 863 }
864 864
865 865
866 int Heap::NotifyContextDisposed(bool dependant_context) { 866 int Heap::NotifyContextDisposed(bool dependant_context) {
867 // TODO(hpayer): Reset heap shrinking if dependant_context is false. 867 if (!dependant_context) {
868 tracer()->ResetSurvivalEvents();
869 old_generation_size_configured_ = false;
870 }
868 if (isolate()->concurrent_recompilation_enabled()) { 871 if (isolate()->concurrent_recompilation_enabled()) {
869 // Flush the queued recompilation tasks. 872 // Flush the queued recompilation tasks.
870 isolate()->optimizing_compiler_thread()->Flush(); 873 isolate()->optimizing_compiler_thread()->Flush();
871 } 874 }
872 flush_monomorphic_ics_ = true; 875 flush_monomorphic_ics_ = true;
873 AgeInlineCaches(); 876 AgeInlineCaches();
874 tracer()->AddContextDisposalTime(base::OS::TimeCurrentMillis()); 877 tracer()->AddContextDisposalTime(base::OS::TimeCurrentMillis());
875 return ++contexts_disposed_; 878 return ++contexts_disposed_;
876 } 879 }
877 880
(...skipping 5556 matching lines...) Expand 10 before | Expand all | Expand 10 after
6434 static_cast<int>(object_sizes_last_time_[index])); 6437 static_cast<int>(object_sizes_last_time_[index]));
6435 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6438 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6436 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6439 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6437 6440
6438 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6441 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6439 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6442 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6440 ClearObjectStats(); 6443 ClearObjectStats();
6441 } 6444 }
6442 } 6445 }
6443 } // namespace v8::internal 6446 } // namespace v8::internal
OLDNEW
« 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