diff --git a/src/mark-compact.cc b/src/mark-compact.cc index 29ed215e75..9818da757f 100644 --- a/src/mark-compact.cc +++ b/src/mark-compact.cc @@ -296,8 +296,6 @@ void MarkCompactCollector::CollectGarbage() { if (!collect_maps_) ReattachInitialMaps(); - heap_->isolate()->inner_pointer_to_code_cache()->Flush(); - Finish(); tracer_ = NULL; @@ -3423,6 +3421,8 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() { // under it. ProcessInvalidatedCode(&updating_visitor); + heap_->isolate()->inner_pointer_to_code_cache()->Flush(); + #ifdef DEBUG if (FLAG_verify_heap) { VerifyEvacuation(heap_);