Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 4bf00aa031eff05a831f8c328c866f0ba5b1b758..b3cc4edf0fe3c6a0645ce458b1e6daadf2fe010a 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -3309,6 +3309,8 @@ void MarkCompactCollector::ProcessInvalidatedCode(ObjectVisitor* visitor) { |
void MarkCompactCollector::EvacuateNewSpaceAndCandidates() { |
+ Heap::RelocationLock relocation_lock(heap()); |
+ |
bool code_slots_filtering_required; |
{ GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_SWEEP_NEWSPACE); |
code_slots_filtering_required = MarkInvalidatedCode(); |