Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: src/mark-compact.cc

Issue 10144002: Flush PC-to-code cache before doing verification. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698