Home
last modified time | relevance | path

Searched refs:allocation_size (Results 1 – 7 of 7) sorted by relevance

/art/runtime/gc/space/
Dlarge_object_space.cc150 const size_t allocation_size = mem_map.BaseSize(); in Alloc() local
158 end_ = std::max(end_, reinterpret_cast<uint8_t*>(obj) + allocation_size); in Alloc()
160 *bytes_allocated = allocation_size; in Alloc()
162 *usable_size = allocation_size; in Alloc()
165 *bytes_tl_bulk_allocated = allocation_size; in Alloc()
166 num_bytes_allocated_ += allocation_size; in Alloc()
167 total_bytes_allocated_ += allocation_size; in Alloc()
201 size_t allocation_size = map_size; in Free() local
202 num_bytes_allocated_ -= allocation_size; in Free()
205 return allocation_size; in Free()
[all …]
Ddlmalloc_space-inl.h65 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); in AllocWithoutGrowthLocked() local
67 *bytes_allocated = allocation_size; in AllocWithoutGrowthLocked()
68 *bytes_tl_bulk_allocated = allocation_size; in AllocWithoutGrowthLocked()
Dlarge_object_space_test.cc61 size_t allocation_size = 0; in LargeObjectTest() local
63 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, in LargeObjectTest()
66 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr)); in LargeObjectTest()
67 ASSERT_GE(allocation_size, request_size); in LargeObjectTest()
68 ASSERT_EQ(allocation_size, bytes_tl_bulk_allocated); in LargeObjectTest()
Dspace_test.h206 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local
207 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody()
209 EXPECT_GE(allocation_size, static_cast<size_t>(object_size)); in SizeFootPrintGrowthLimitAndTrimBody()
211 EXPECT_GE(allocation_size, 8u); in SizeFootPrintGrowthLimitAndTrimBody()
214 bytes_tl_bulk_allocated >= allocation_size); in SizeFootPrintGrowthLimitAndTrimBody()
215 amount_allocated += allocation_size; in SizeFootPrintGrowthLimitAndTrimBody()
263 size_t allocation_size = space->AllocationSize(object, nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local
265 EXPECT_GE(allocation_size, static_cast<size_t>(object_size)); in SizeFootPrintGrowthLimitAndTrimBody()
267 EXPECT_GE(allocation_size, 8u); in SizeFootPrintGrowthLimitAndTrimBody()
271 amount_allocated -= allocation_size; in SizeFootPrintGrowthLimitAndTrimBody()
Dspace_create_test.cc312 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local
317 &allocation_size, in TEST_P()
322 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P()
325 bytes_tl_bulk_allocated >= allocation_size); in TEST_P()
333 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local
337 &allocation_size, in TEST_P()
342 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P()
345 bytes_tl_bulk_allocated >= allocation_size); in TEST_P()
Dmemory_tool_malloc_space-inl.h230 size_t allocation_size = AllocationSize(ptr, &usable_size); in Free() local
236 MEMORY_TOOL_MAKE_UNDEFINED(obj_with_rdz, allocation_size); in Free()
/art/libartbase/base/
Dscoped_arena_allocator.cc56 size_t allocation_size = std::max(arena_allocator::kArenaDefaultSize, rounded_bytes); in AllocateFromNextArena() local
58 top_arena_ = bottom_arena_ = stats_and_pool_.pool->AllocArena(allocation_size); in AllocateFromNextArena()
60 } else if (top_arena_->next_ != nullptr && top_arena_->next_->Size() >= allocation_size) { in AllocateFromNextArena()
64 top_arena_->next_ = stats_and_pool_.pool->AllocArena(allocation_size); in AllocateFromNextArena()