Chromium Code Reviews| 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) { |