| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 45a15a246474f0f1c351dd48435a1343c2157195..07b47b07ceab881501300713eae985cb4ae28423 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -5620,7 +5620,17 @@ void Heap::SetStackLimits() {
|
| }
|
|
|
|
|
| -void Heap::NotifyDeserializationComplete() { deserialization_complete_ = true; }
|
| +void Heap::NotifyDeserializationComplete() {
|
| + deserialization_complete_ = true;
|
| +#ifdef DEBUG
|
| + // All pages right after bootstrapping must be marked as never-evacuate.
|
| + PagedSpaces spaces(this);
|
| + for (PagedSpace* s = spaces.next(); s != NULL; s = spaces.next()) {
|
| + PageIterator it(s);
|
| + while (it.has_next()) CHECK(it.next()->NeverEvacuate());
|
| + }
|
| +#endif // DEBUG
|
| +}
|
|
|
|
|
| void Heap::TearDown() {
|
|
|