Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index bf1a74e5d1c0909d3b786c8cc9b2f519d0b0667e..8195e7c3e834f686ce7baa02cac42f19ca21717a 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -710,7 +710,7 @@ LargePage* MemoryAllocator::AllocateLargePage(intptr_t object_size, |
void MemoryAllocator::Free(MemoryChunk* chunk) { |
LOG(isolate_, DeleteEvent("MemoryChunk", chunk)); |
- if (chunk->owner() != NULL) { |
+ if (chunk->has_owner()) { |
ObjectSpace space = |
static_cast<ObjectSpace>(1 << chunk->owner()->identity()); |
PerformAllocationCallback(space, kAllocationActionFree, chunk->size()); |