Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index a0c8f2cba168c6bc06bc0fe04879e0e4cd8d8c54..62873fa1cfe3520e2941a0ad621b6797dbf9382d 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -2027,15 +2027,16 @@ HeapObject* FreeList::Allocate(int size_in_bytes) { |
// if it is big enough. |
owner_->Free(owner_->top(), old_linear_size); |
+ owner_->heap()->incremental_marking()->OldSpaceStep( |
+ size_in_bytes - old_linear_size); |
+ |
#ifdef DEBUG |
for (int i = 0; i < size_in_bytes / kPointerSize; i++) { |
- reinterpret_cast<Object**>(new_node->address())[i] = Smi::FromInt(0); |
+ reinterpret_cast<Object**>(new_node->address())[i] = |
+ Smi::FromInt(kCodeZapValue); |
} |
#endif |
- owner_->heap()->incremental_marking()->OldSpaceStep( |
- size_in_bytes - old_linear_size); |
- |
// The old-space-step might have finished sweeping and restarted marking. |
// Verify that it did not turn the page of the new node into an evacuation |
// candidate. |