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); |