Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 2724) |
+++ src/mark-compact.cc (working copy) |
@@ -39,6 +39,7 @@ |
// ------------------------------------------------------------------------- |
// MarkCompactCollector |
+bool MarkCompactCollector::force_compaction_ = false; |
bool MarkCompactCollector::compacting_collection_ = false; |
int MarkCompactCollector::previous_marked_count_ = 0; |
@@ -110,7 +111,7 @@ |
#endif |
ASSERT(!FLAG_always_compact || !FLAG_never_compact); |
- compacting_collection_ = FLAG_always_compact; |
+ compacting_collection_ = FLAG_always_compact || force_compaction_; |
// We compact the old generation if it gets too fragmented (ie, we could |
// recover an expected amount of space by reclaiming the waste and free |