Index: src/heap/scavenger.cc |
diff --git a/src/heap/scavenger.cc b/src/heap/scavenger.cc |
index 74ed665c3feb97f4adee8cebf473e1993e3779ff..3e9f67b896ee614ce5163dfa2be995b2de557a31 100644 |
--- a/src/heap/scavenger.cc |
+++ b/src/heap/scavenger.cc |
@@ -216,7 +216,7 @@ class ScavengingVisitor : public StaticVisitorBase { |
template <ObjectContents object_contents, AllocationAlignment alignment> |
static inline void EvacuateObject(Map* map, HeapObject** slot, |
HeapObject* object, int object_size) { |
- SLOW_DCHECK(object_size <= Page::kMaxRegularHeapObjectSize); |
+ SLOW_DCHECK(object_size <= Page::kAllocatableMemory); |
SLOW_DCHECK(object->Size() == object_size); |
Heap* heap = map->GetHeap(); |