| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index 8feec8f3b59e5ce8c0d3e37a141a896e74909c4c..b3b6278dd3a72713c1b089e67bfb172d2a2f6128 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -5559,7 +5559,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() {
|
|
|