Lines Matching refs:space
25 namespace space { namespace
65 std::unique_ptr<Space> space(CreateSpace("test", 16 * MB, 32 * MB, 32 * MB, nullptr)); in TEST_P() local
66 EXPECT_TRUE(space != nullptr); in TEST_P()
68 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 16 * MB, nullptr)); in TEST_P()
69 EXPECT_TRUE(space != nullptr); in TEST_P()
71 space.reset(CreateSpace("test", 32 * MB, 16 * MB, 16 * MB, nullptr)); in TEST_P()
72 EXPECT_TRUE(space == nullptr); in TEST_P()
74 space.reset(CreateSpace("test", 16 * MB, 16 * MB, 32 * MB, nullptr)); in TEST_P()
75 EXPECT_TRUE(space != nullptr); in TEST_P()
77 space.reset(CreateSpace("test", 16 * MB, 8 * MB, 32 * MB, nullptr)); in TEST_P()
78 EXPECT_TRUE(space == nullptr); in TEST_P()
80 space.reset(CreateSpace("test", 8 * MB, 16 * MB, 32 * MB, nullptr)); in TEST_P()
81 EXPECT_TRUE(space != nullptr); in TEST_P()
83 space.reset(CreateSpace("test", 8 * MB, 32 * MB, 16 * MB, nullptr)); in TEST_P()
84 EXPECT_TRUE(space == nullptr); in TEST_P()
94 MallocSpace* space(CreateSpace("test", 4 * MB, 16 * MB, 16 * MB, nullptr)); in TEST_P() local
95 ASSERT_TRUE(space != nullptr); in TEST_P()
98 AddSpace(space); in TEST_P()
105 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
118 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
123 MutableHandle<mirror::Object> ptr3(hs.NewHandle(AllocWithGrowth(space, in TEST_P()
136 mirror::Object* ptr4 = space->Alloc(self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
140 mirror::Object* ptr5 = space->AllocWithGrowth(self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
144 size_t free3 = space->AllocationSize(ptr3.Get(), nullptr); in TEST_P()
146 EXPECT_EQ(free3, space->Free(self, ptr3.Assign(nullptr))); in TEST_P()
151 Handle<mirror::Object> ptr6(hs.NewHandle(AllocWithGrowth(space, in TEST_P()
164 size_t free1 = space->AllocationSize(ptr1.Get(), nullptr); in TEST_P()
165 space->Free(self, ptr1.Assign(nullptr)); in TEST_P()
169 EXPECT_TRUE(space->Alloc(self, 1U * MB, &dummy, nullptr, &dummy) != nullptr); in TEST_P()
172 space::Space* old_space = space; in TEST_P()
179 space::ZygoteSpace* zygote_space = space->CreateZygoteSpace("alloc space", in TEST_P()
181 &space); in TEST_P()
187 AddSpace(space, false); in TEST_P()
190 ptr1.Assign(Alloc(space, in TEST_P()
203 ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
207 ptr3.Assign(AllocWithGrowth(space, in TEST_P()
218 space->Free(self, ptr3.Assign(nullptr)); in TEST_P()
221 free1 = space->AllocationSize(ptr1.Get(), nullptr); in TEST_P()
222 space->Free(self, ptr1.Assign(nullptr)); in TEST_P()
228 MallocSpace* space(CreateSpace("test", 4 * MB, 16 * MB, 16 * MB, nullptr)); in TEST_P() local
229 ASSERT_TRUE(space != nullptr); in TEST_P()
234 AddSpace(space); in TEST_P()
239 MutableHandle<mirror::Object> ptr1(hs.NewHandle(Alloc(space, in TEST_P()
252 mirror::Object* ptr2 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
257 MutableHandle<mirror::Object> ptr3(hs.NewHandle(AllocWithGrowth(space, in TEST_P()
270 mirror::Object* ptr4 = Alloc(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
274 mirror::Object* ptr5 = AllocWithGrowth(space, self, 8 * MB, &dummy, nullptr, &dummy); in TEST_P()
278 size_t free3 = space->AllocationSize(ptr3.Get(), nullptr); in TEST_P()
280 space->Free(self, ptr3.Assign(nullptr)); in TEST_P()
285 Handle<mirror::Object> ptr6(hs.NewHandle(AllocWithGrowth(space, in TEST_P()
298 size_t free1 = space->AllocationSize(ptr1.Get(), nullptr); in TEST_P()
299 space->Free(self, ptr1.Assign(nullptr)); in TEST_P()
304 MallocSpace* space(CreateSpace("test", 4 * MB, 16 * MB, 16 * MB, nullptr)); in TEST_P() local
305 ASSERT_TRUE(space != nullptr); in TEST_P()
308 AddSpace(space); in TEST_P()
317 lots_of_objects[i] = Alloc(space, in TEST_P()
325 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P()
332 space->FreeList(self, arraysize(lots_of_objects), lots_of_objects); in TEST_P()
337 lots_of_objects[i] = AllocWithGrowth(space, in TEST_P()
345 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P()
352 space->FreeList(self, arraysize(lots_of_objects), lots_of_objects); in TEST_P()