Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 1a0d0bbecc622e3eb595cbf3442fdd7727d6b520..de752f3b780b5173be0aac9049c6b66a3414988d 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1032,6 +1032,9 @@ bool PagedSpace::Expand() { |
executable()); |
if (p == NULL) return false; |
+ // Pages created during bootstrapping may contain immortal immovable objects. |
+ if (!heap()->deserialization_complete()) p->MarkNeverEvacuate(); |
+ |
DCHECK(Capacity() <= max_capacity_); |
p->InsertAfter(anchor_.prev_page()); |