Chromium Code Reviews| Index: src/mark-compact.cc |
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
| index 2378a5e0a4e0690ab99a5701125bc9d331d846c4..2b26236162188b3a700d44e996f76a82d3b6fe42 100644 |
| --- a/src/mark-compact.cc |
| +++ b/src/mark-compact.cc |
| @@ -483,15 +483,16 @@ void MarkCompactCollector::Prepare(GCTracer* tracer) { |
| ASSERT(!FLAG_always_compact || !FLAG_never_compact); |
| if (collect_maps_) CreateBackPointers(); |
| + bool gdbjit = false; |
| #ifdef ENABLE_GDB_JIT_INTERFACE |
| if (FLAG_gdbjit) { |
| // If GDBJIT interface is active disable compaction. |
| - compacting_collection_ = false; |
| + gdbjit = true; |
|
Vyacheslav Egorov (Chromium)
2011/09/23 09:27:55
lets instead do
never_compact = true;
sweep_prec
|
| } |
| #endif |
| // Clear marking bits for precise sweeping to collect all garbage. |
| - if (was_marked_incrementally_ && PreciseSweepingRequired()) { |
| + if ((was_marked_incrementally_ && PreciseSweepingRequired()) || gdbjit) { |
| heap()->incremental_marking()->Abort(); |
| ClearMarkbits(heap_); |
| AbortCompaction(); |