Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 8fbec0cec33ff70ab7722591b0206746ae2d25a6..f8e6d499a473dcfd4d12d48c6aca32782fa02ca0 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4887,7 +4887,7 @@ bool Heap::ConfigureHeap(int max_semi_space_size, |
max_semi_space_size_ = Page::kPageSize; |
} |
- if (Snapshot::IsEnabled()) { |
+ if (Snapshot::HaveASnapshotToStartFrom()) { |
// If we are using a snapshot we always reserve the default amount |
// of memory for each semispace because code in the snapshot has |
// write-barrier code that relies on the size and alignment of new |