Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 5685ab5de2964d9a56abe0dac7520344cd2b4256..62dee4847265f489423b101d9dc708c410ebffbf 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -3125,6 +3125,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(); |