Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 711cde1c662c0c6c59d7148c2e6dec21f8f878f4..f3c5a08c5e1cc29d2a9590d194f5120789a5a44b 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -711,7 +711,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()); |