Add large object space contains check to IsHeapAddress.

Improves the accuracy of check jni.

Change-Id: I112ec9bf37ce01a20c033caf9141c9f0de8644a6
diff --git a/src/ b/src/
index 6b0b0e5..2f5362e 100644
--- a/src/
+++ b/src/
@@ -504,8 +504,9 @@
       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) {