diff options
| -rw-r--r-- | src/heap.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/heap.cc b/src/heap.cc index 6b0b0e5377..2f5362ec61 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -504,8 +504,9 @@ bool Heap::IsHeapAddress(const Object* obj) { return true; } } - // TODO: Find a way to check large object space without using a lock. - return true; + // Note: Doing this only works for the free list version of the large object space since the + // multiple memory map version uses a lock to do the contains check. + return large_object_space_->Contains(obj); } bool Heap::IsLiveObjectLocked(const Object* obj) { |