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