| Index: src/spaces.cc
|
| diff --git a/src/spaces.cc b/src/spaces.cc
|
| index 2aaca5b742f911d47be7816d0419a1321774f4b4..61b318118ae1e333027fc1081e45238af07c424f 100644
|
| --- a/src/spaces.cc
|
| +++ b/src/spaces.cc
|
| @@ -1798,6 +1798,11 @@ HeapObject* FreeList::Allocate(int size_in_bytes) {
|
| 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.
|
| + ASSERT(!MarkCompactCollector::IsOnEvacuationCandidate(new_node));
|
| +
|
| const int kThreshold = IncrementalMarking::kAllocatedThreshold;
|
|
|
| // Memory in the linear allocation area is counted as allocated. We may free
|
|
|