Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index fb8c7040100af0ac8e88226a22f0a06daa0b5def..48f4c796df4e5b7a1301775ff325f6878a8baf52 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8534,6 +8534,10 @@ void ObjectVisitor::VisitCodeEntry(Address entry_address) { |
Object* old_code = code; |
VisitPointer(&code); |
if (code != old_code) { |
+ // TODO(mstarzinger): Active in release mode to flush out problems. |
+ // Should be turned back into an ASSERT or removed completely. |
+ Page* target_page = Page::FromAddress(reinterpret_cast<Address>(code)); |
+ CHECK(!target_page->IsEvacuationCandidate()); |
Memory::Address_at(entry_address) = reinterpret_cast<Code*>(code)->entry(); |
} |
} |