Index: src/heap/spaces-inl.h |
diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h |
index f9e40bb13a805d80eb8c5b643e35fe795badda47..7c753093381ab9ddbc6c810705e95703036c16d5 100644 |
--- a/src/heap/spaces-inl.h |
+++ b/src/heap/spaces-inl.h |
@@ -382,6 +382,7 @@ Page* Page::FromAnyPointerAddress(Heap* heap, Address addr) { |
} |
void Page::MarkNeverAllocateForTesting() { |
+ DCHECK(this->owner()->identity() != NEW_SPACE); |
DCHECK(!IsFlagSet(NEVER_ALLOCATE_ON_PAGE)); |
SetFlag(NEVER_ALLOCATE_ON_PAGE); |
reinterpret_cast<PagedSpace*>(owner())->free_list()->EvictFreeListItems(this); |