Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 12482) |
+++ src/mark-compact.cc (working copy) |
@@ -343,7 +343,9 @@ |
CollectEvacuationCandidates(heap()->old_pointer_space()); |
CollectEvacuationCandidates(heap()->old_data_space()); |
- if (FLAG_compact_code_space && mode == NON_INCREMENTAL_COMPACTION) { |
+ if (FLAG_compact_code_space && |
+ (mode == NON_INCREMENTAL_COMPACTION || |
+ FLAG_incremental_code_compaction)) { |
CollectEvacuationCandidates(heap()->code_space()); |
} else if (FLAG_trace_fragmentation) { |
TraceFragmentation(heap()->code_space()); |