Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 29ed215e75547bd7b55f6820320a3440c3f6d829..9818da757f9badeee91041cab0c44652e246119e 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_); |