| Index: test/cctest/heap/utils-inl.h
|
| diff --git a/test/cctest/heap/utils-inl.h b/test/cctest/heap/utils-inl.h
|
| index 0e943b4197538bccb7bd79c14c0bcd352a512177..1f9eb5c386c68f256dab1affe5e6096c84073f23 100644
|
| --- a/test/cctest/heap/utils-inl.h
|
| +++ b/test/cctest/heap/utils-inl.h
|
| @@ -142,6 +142,14 @@ static inline void SimulateIncrementalMarking(i::Heap* heap,
|
| CHECK(marking->IsComplete());
|
| }
|
|
|
| +static inline void AbandonCurrentlyFreeMemory(PagedSpace* space) {
|
| + space->EmptyAllocationInfo();
|
| + PageIterator pit(space);
|
| + while (pit.has_next()) {
|
| + pit.next()->MarkNeverAllocateForTesting();
|
| + }
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|
|
|