| Index: test/unittests/heap/spaces-unittest.cc
|
| diff --git a/test/unittests/heap/spaces-unittest.cc b/test/unittests/heap/spaces-unittest.cc
|
| index bdd993339845bffc41592bec372c9d3e5d84c74d..9b4b2675e3f66bc512f10a91e542675d58d0705b 100644
|
| --- a/test/unittests/heap/spaces-unittest.cc
|
| +++ b/test/unittests/heap/spaces-unittest.cc
|
| @@ -22,6 +22,12 @@ TEST_F(SpacesTest, CompactionSpaceMerge) {
|
| EXPECT_TRUE(compaction_space != NULL);
|
| EXPECT_TRUE(compaction_space->SetUp());
|
|
|
| + for (Page* p : *old_space) {
|
| + // Unlink free lists from the main space to avoid reusing the memory for
|
| + // compaction spaces.
|
| + old_space->UnlinkFreeListCategories(p);
|
| + }
|
| +
|
| // Cannot loop until "Available()" since we initially have 0 bytes available
|
| // and would thus neither grow, nor be able to allocate an object.
|
| const int kNumObjects = 10;
|
|
|