| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index dfe8bd6cf1b28a22a325e814be378c937f44e07a..4f5938abd5b2e7bd5337b48536b48dfc54b4abb5 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1995,9 +1995,10 @@
|
| // We just have to execute the generational barrier here because we never
|
| // mark through a weak cell and collect evacuation candidates when we process
|
| // all weak cells.
|
| - WriteBarrierMode mode = Marking::IsBlack(ObjectMarking::MarkBitFrom(this))
|
| - ? UPDATE_WRITE_BARRIER
|
| - : UPDATE_WEAK_WRITE_BARRIER;
|
| + WriteBarrierMode mode =
|
| + Page::FromAddress(this->address())->IsFlagSet(Page::BLACK_PAGE)
|
| + ? UPDATE_WRITE_BARRIER
|
| + : UPDATE_WEAK_WRITE_BARRIER;
|
| CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kValueOffset, val, mode);
|
| }
|
|
|
|
|