Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index 0b4c7690b2cc82e92d3901ccf1bddf4602f6ed52..30c2a5f4631f5f00664c72ef6eb26bf544fa66a6 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -2527,7 +2527,7 @@ intptr_t FreeListCategory::SumFreeList() { |
intptr_t sum = 0; |
FreeSpace* cur = top(); |
while (cur != NULL) { |
- DCHECK(cur->map() == cur->GetHeap()->raw_unchecked_free_space_map()); |
+ DCHECK(cur->map() == cur->GetHeap()->root(Heap::kFreeSpaceMapRootIndex)); |
sum += cur->nobarrier_size(); |
cur = cur->next(); |
} |