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

Unified Diff: runtime/vm/heap.cc

Issue 220113004: Trigger old-space GC when scavange made the external heap of old-space larger than max old-space si… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup code. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/pages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 835139a9cbcedeb64b23601bb8b651bb804dc549..6660f5a0f27f6db8bc31b843258886f63b127bac 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -214,7 +214,7 @@ void Heap::CollectGarbage(Space space, ApiCallbacks api_callbacks) {
new_space_->Scavenge(invoke_api_callbacks);
RecordAfterGC();
PrintStats();
- if (new_space_->HadPromotionFailure()) {
+ if (new_space_->HadPromotionFailure() || old_space_->NeedExternalGC()) {
// Old collections should call the API callbacks.
CollectGarbage(kOld, kInvokeApiCallbacks);
}
« no previous file with comments | « no previous file | runtime/vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698