Reviewers: Vyacheslav Egorov,
Description:
Flush PC-to-code cache before doing verification.
Please review this at http://codereview.chromium.org/10144002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/mark-compact.cc
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_);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev