Index: runtime/vm/pages.h |
diff --git a/runtime/vm/pages.h b/runtime/vm/pages.h |
index f7acf90e0d7f516fbc752d51518132b6fb0a2391..7cc123b6ff16765859c336b1ce9cb1f6ed21a599 100644 |
--- a/runtime/vm/pages.h |
+++ b/runtime/vm/pages.h |
@@ -230,7 +230,11 @@ class PageSpace { |
void IncreaseCapacityInWordsLocked(intptr_t increase_in_words) { |
DEBUG_ASSERT(pages_lock_->IsOwnedByCurrentThread()); |
usage_.capacity_in_words += increase_in_words; |
+ UpdateMaxCapacityLocked(); |
} |
+ |
+ void UpdateMaxCapacityLocked(); |
+ |
intptr_t ExternalInWords() const { |
return usage_.external_in_words; |
} |