From a0d67fd9b0600e14d42e5ab44807331ab4eaa109 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Fri, 20 Apr 2012 09:37:06 +0000 Subject: [PATCH] Flush PC-to-code cache before doing verification. Review URL: https://chromiumcodereview.appspot.com/10144002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11395 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mark-compact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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_);