Chromium Code Reviews| Index: src/heap/mark-compact.h |
| diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h |
| index cc5449f97765e7d1a6c2993b963ff569edc2df89..b36092b78bbb3205e2a59e0024b08dbff7831c58 100644 |
| --- a/src/heap/mark-compact.h |
| +++ b/src/heap/mark-compact.h |
| @@ -160,6 +160,8 @@ class Marking : public AllStatic { |
| // Returns true if the transferred color is black. |
| INLINE(static bool TransferColor(HeapObject* from, HeapObject* to)) { |
| + if (Page::FromAddress(to->address())->IsFlagSet(Page::BLACK_PAGE)) |
|
Michael Lippautz
2016/02/04 17:59:51
Why are you not transferring the markbit here (alt
Hannes Payer (out of office)
2016/02/06 08:50:16
Because to lives on a black page. It will always b
|
| + return true; |
| MarkBit from_mark_bit = MarkBitFrom(from); |
| MarkBit to_mark_bit = MarkBitFrom(to); |
| DCHECK(Marking::IsWhite(to_mark_bit)); |
| @@ -806,6 +808,8 @@ class MarkCompactCollector { |
| // Semaphore used to synchronize compaction tasks. |
| base::Semaphore pending_compaction_tasks_semaphore_; |
| + bool black_allocation_; |
| + |
| friend class Heap; |
| friend class StoreBuffer; |
| }; |