Index: test/cctest/test-mementos.cc |
diff --git a/test/cctest/test-mementos.cc b/test/cctest/test-mementos.cc |
index 6d44f33ce689f2b1f146305a2763f6b8b134e44d..af480877e2bcae3d90bdf616ac7854173c0557f2 100644 |
--- a/test/cctest/test-mementos.cc |
+++ b/test/cctest/test-mementos.cc |
@@ -57,7 +57,8 @@ static void SetUpNewSpaceWithPoisonedMementoAtTop() { |
// site pointer. |
AllocationMemento* memento = |
reinterpret_cast<AllocationMemento*>(new_space->top() + kHeapObjectTag); |
- memento->set_map_no_write_barrier(heap->allocation_memento_map()); |
+ memento->set_map_after_allocation(heap->allocation_memento_map(), |
+ SKIP_WRITE_BARRIER); |
memento->set_allocation_site( |
reinterpret_cast<AllocationSite*>(kHeapObjectTag), SKIP_WRITE_BARRIER); |
} |