Chromium Code Reviews| Index: src/heap.cc |
| =================================================================== |
| --- src/heap.cc (revision 2709) |
| +++ src/heap.cc (working copy) |
| @@ -315,11 +315,14 @@ |
| } |
| -void Heap::CollectAllGarbage() { |
| +void Heap::CollectAllGarbage(bool force_compaction) { |
| // Since we are ignoring the return value, the exact choice of space does |
| // not matter, so long as we do not specify NEW_SPACE, which would not |
| // cause a full GC. |
| + bool saved_always_compact_flag = FLAG_always_compact; |
|
Mads Ager (chromium)
2009/08/19 17:24:23
I would prefer to not use the flags to signal that
Feng Qian
2009/08/20 00:06:08
I had the same thought. There is no obvious way to
|
| + FLAG_always_compact = force_compaction; |
| CollectGarbage(0, OLD_POINTER_SPACE); |
| + FLAG_always_compact = saved_always_compact_flag; |
| } |