Searched refs:allocation_size (Results 1 – 8 of 8) sorted by relevance
/art/runtime/gc/space/ |
D | large_object_space.cc | 152 const size_t allocation_size = mem_map->BaseSize(); in Alloc() local 155 uint8_t* obj_end = reinterpret_cast<uint8_t*>(obj) + allocation_size; in Alloc() 159 *bytes_allocated = allocation_size; in Alloc() 161 *usable_size = allocation_size; in Alloc() 164 *bytes_tl_bulk_allocated = allocation_size; in Alloc() 165 num_bytes_allocated_ += allocation_size; in Alloc() 166 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 | 53 size_t allocation_size = 0; in LargeObjectTest() local 55 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, in LargeObjectTest() 58 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr)); in LargeObjectTest() 59 ASSERT_GE(allocation_size, request_size); in LargeObjectTest() 60 ASSERT_EQ(allocation_size, bytes_tl_bulk_allocated); in LargeObjectTest()
|
D | space_test.h | 373 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in AllocAndFreeListTestBody() local 375 lots_of_objects[i] = Alloc(space, self, size_of_zero_length_byte_array, &allocation_size, in AllocAndFreeListTestBody() 379 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in AllocAndFreeListTestBody() 382 bytes_tl_bulk_allocated >= allocation_size); in AllocAndFreeListTestBody() 390 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in AllocAndFreeListTestBody() local 391 lots_of_objects[i] = AllocWithGrowth(space, self, 1024, &allocation_size, &usable_size, in AllocAndFreeListTestBody() 395 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in AllocAndFreeListTestBody() 398 bytes_tl_bulk_allocated >= allocation_size); in AllocAndFreeListTestBody() 467 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local 468 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
D | valgrind_malloc_space-inl.h | 203 size_t allocation_size = AllocationSize(ptr, &usable_size); in Free() local 209 VALGRIND_MAKE_MEM_UNDEFINED(obj_with_rdz, allocation_size); in Free()
|
/art/runtime/base/ |
D | scoped_arena_allocator.cc | 58 size_t allocation_size = std::max(Arena::kDefaultSize, rounded_bytes); in AllocateFromNextArena() local 60 top_arena_ = bottom_arena_ = stats_and_pool_.pool->AllocArena(allocation_size); in AllocateFromNextArena() 62 } else if (top_arena_->next_ != nullptr && top_arena_->next_->Size() >= allocation_size) { in AllocateFromNextArena() 66 top_arena_->next_ = stats_and_pool_.pool->AllocArena(allocation_size); in AllocateFromNextArena()
|
D | arena_allocator.cc | 295 void ArenaAllocator::ObtainNewArenaForAllocation(size_t allocation_size) { in ObtainNewArenaForAllocation() argument 297 Arena* new_arena = pool_->AllocArena(std::max(Arena::kDefaultSize, allocation_size)); in ObtainNewArenaForAllocation()
|
D | arena_allocator.h | 257 void ObtainNewArenaForAllocation(size_t allocation_size);
|