Reviewers: William Hesse, Description: Patch trunk to version 2.2.16.1, pulling in change 4840 (put code flushing behind flag)
Please review this at http://codereview.chromium.org/2745013/show SVN Base: http://v8.googlecode.com/svn/trunk/ Affected files: M src/flag-definitions.h M src/heap.cc M src/version.cc Index: src/flag-definitions.h =================================================================== --- src/flag-definitions.h (revision 4840) +++ src/flag-definitions.h (working copy) @@ -191,6 +191,8 @@ "print more details following each garbage collection") DEFINE_bool(collect_maps, true, "garbage collect maps from which no objects can be reached") +DEFINE_bool(flush_code, false, + "flush code that we expect not to use again before full gc") // v8.cc DEFINE_bool(use_idle_notification, true, Index: src/heap.cc =================================================================== --- src/heap.cc (revision 4840) +++ src/heap.cc (working copy) @@ -605,8 +605,10 @@ EnsureFromSpaceIsCommitted(); if (collector == MARK_COMPACTOR) { - // Flush all potentially unused code. - FlushCode(); + if (FLAG_flush_code) { + // Flush all potentially unused code. + FlushCode(); + } // Perform mark-sweep with optional compaction. MarkCompact(tracer); Index: src/version.cc =================================================================== --- src/version.cc (revision 4840) +++ src/version.cc (working copy) @@ -35,7 +35,7 @@ #define MAJOR_VERSION 2 #define MINOR_VERSION 2 #define BUILD_NUMBER 16 -#define PATCH_LEVEL 0 +#define PATCH_LEVEL 1 #define CANDIDATE_VERSION false // Define SONAME to have the SCons build the put a specific SONAME into the -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
