Revision: 9420 Author: [email protected] Date: Mon Sep 26 01:53:27 2011 Log: Disable compaction.
Introduce flag to control code compaction. [email protected] Review URL: http://codereview.chromium.org/8037022 http://code.google.com/p/v8/source/detail?r=9420 Modified: /branches/bleeding_edge/src/flag-definitions.h /branches/bleeding_edge/src/mark-compact.cc ======================================= --- /branches/bleeding_edge/src/flag-definitions.h Thu Sep 22 04:30:04 2011 +++ /branches/bleeding_edge/src/flag-definitions.h Mon Sep 26 01:53:27 2011 @@ -287,8 +287,9 @@ "Use lazy sweeping for old pointer and data spaces") DEFINE_bool(cleanup_caches_in_maps_at_gc, true, "Flush code caches in maps during mark compact cycle.") -DEFINE_bool(never_compact, false, +DEFINE_bool(never_compact, true, "Never perform compaction on full GC - testing only") +DEFINE_bool(compact_code_space, true, "Compact code space") DEFINE_bool(cleanup_code_caches_at_gc, true, "Flush inline caches prior to mark compact collection and " "flush code caches in maps during mark compact cycle.") ======================================= --- /branches/bleeding_edge/src/mark-compact.cc Fri Sep 23 08:09:00 2011 +++ /branches/bleeding_edge/src/mark-compact.cc Mon Sep 26 01:53:27 2011 @@ -244,7 +244,10 @@ CollectEvacuationCandidates(heap()->old_pointer_space()); CollectEvacuationCandidates(heap()->old_data_space()); - CollectEvacuationCandidates(heap()->code_space()); + + if (FLAG_compact_code_space) { + CollectEvacuationCandidates(heap()->code_space()); + } heap()->old_pointer_space()->EvictEvacuationCandidatesFromFreeLists(); heap()->old_data_space()->EvictEvacuationCandidatesFromFreeLists(); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
