Index: src/spaces.cc |
diff --git a/src/spaces.cc b/src/spaces.cc |
index 08399ee8ddb708296137bd9cae4b9bfaf426ef64..5f191ed3a55c003dca4785d3ea04216f3c18058e 100644 |
--- a/src/spaces.cc |
+++ b/src/spaces.cc |
@@ -2749,6 +2749,9 @@ void LargeObjectSpace::FreeUnmarkedObjects() { |
bool LargeObjectSpace::Contains(HeapObject* object) { |
Address address = object->address(); |
+ if (Heap::new_space()->Contains(address)) { |
+ return false; |
+ } |
Page* page = Page::FromAddress(address); |
SLOW_ASSERT(!page->IsLargeObjectPage() |