Searched refs:allocation_size (Results 1 – 7 of 7) sorted by relevance
/art/runtime/gc/space/ |
D | large_object_space.cc | 150 const size_t allocation_size = mem_map->BaseSize(); in Alloc() local 156 end_ = std::max(end_, reinterpret_cast<uint8_t*>(obj) + allocation_size); in Alloc() 158 *bytes_allocated = allocation_size; in Alloc() 160 *usable_size = allocation_size; in Alloc() 163 *bytes_tl_bulk_allocated = allocation_size; in Alloc() 164 num_bytes_allocated_ += allocation_size; in Alloc() 165 total_bytes_allocated_ += allocation_size; in Alloc() 196 size_t allocation_size = map_size; in Free() local 197 num_bytes_allocated_ -= allocation_size; in Free() 201 return allocation_size; in Free() [all …]
|
D | dlmalloc_space-inl.h | 65 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()
|
D | large_object_space_test.cc | 61 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()
|
D | space_test.h | 205 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local 206 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() 208 EXPECT_GE(allocation_size, static_cast<size_t>(object_size)); in SizeFootPrintGrowthLimitAndTrimBody() 210 EXPECT_GE(allocation_size, 8u); in SizeFootPrintGrowthLimitAndTrimBody() 213 bytes_tl_bulk_allocated >= allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() 214 amount_allocated += allocation_size; in SizeFootPrintGrowthLimitAndTrimBody() 262 size_t allocation_size = space->AllocationSize(object, nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local 264 EXPECT_GE(allocation_size, static_cast<size_t>(object_size)); in SizeFootPrintGrowthLimitAndTrimBody() 266 EXPECT_GE(allocation_size, 8u); in SizeFootPrintGrowthLimitAndTrimBody() 270 amount_allocated -= allocation_size; in SizeFootPrintGrowthLimitAndTrimBody()
|
D | space_create_test.cc | 315 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local 320 &allocation_size, in TEST_P() 325 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P() 328 bytes_tl_bulk_allocated >= allocation_size); in TEST_P() 336 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local 340 &allocation_size, in TEST_P() 345 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in TEST_P() 348 bytes_tl_bulk_allocated >= allocation_size); in TEST_P()
|
D | memory_tool_malloc_space-inl.h | 204 size_t allocation_size = AllocationSize(ptr, &usable_size); in Free() local 210 MEMORY_TOOL_MAKE_UNDEFINED(obj_with_rdz, allocation_size); in Free()
|
/art/runtime/base/ |
D | scoped_arena_allocator.cc | 56 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()
|