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

Unified Diff: runtime/vm/pages.h

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 | « runtime/vm/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.h
diff --git a/runtime/vm/pages.h b/runtime/vm/pages.h
index 29144bb6ae7d0edde82c91932661256d23a797a0..320efe3182bd8c15dc7b768d61181d2134227a53 100644
--- a/runtime/vm/pages.h
+++ b/runtime/vm/pages.h
@@ -221,6 +221,10 @@ class PageSpace {
return page_space_controller_.is_enabled();
}
+ bool NeedExternalGC() {
+ return used_in_words_ + ExternalInWords() > max_capacity_in_words_;
+ }
+
void WriteProtect(bool read_only);
void AddGCTime(int64_t micros) {
« no previous file with comments | « runtime/vm/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698