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

Unified Diff: runtime/vm/pages.cc

Issue 1390783002: Fix vm/cc/Pages unittest breakage (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index 390f452e858c5fa21febe736d742b9bb0c03724b..7cee6df7868fbd11a1d689a0a364ba9ee601948a 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -535,6 +535,10 @@ void PageSpace::AbandonBumpAllocation() {
void PageSpace::UpdateMaxCapacityLocked() {
+ if (heap_ == NULL) {
+ // Some unit tests.
+ return;
+ }
ASSERT(heap_ != NULL);
ASSERT(heap_->isolate() != NULL);
Isolate* isolate = heap_->isolate();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698