Searched refs:allocation_size (Results 1 – 7 of 7) sorted by relevance
/art/runtime/gc/space/ |
D | large_object_space.cc | 123 size_t allocation_size = mem_map->Size(); in Alloc() local 126 byte* obj_end = reinterpret_cast<byte*>(obj) + allocation_size; in Alloc() 130 *bytes_allocated = allocation_size; in Alloc() 132 *usable_size = allocation_size; in Alloc() 134 num_bytes_allocated_ += allocation_size; in Alloc() 135 total_bytes_allocated_ += allocation_size; in Alloc() 149 size_t allocation_size = found->second->Size(); in Free() local 150 num_bytes_allocated_ -= allocation_size; in Free() 154 return allocation_size; in Free() 346 const size_t allocation_size = info->ByteSize(); in Free() local [all …]
|
D | space_test.h | 348 size_t allocation_size, usable_size; in AllocAndFreeListTestBody() local 350 lots_of_objects[i] = Alloc(space, self, size_of_zero_length_byte_array, &allocation_size, in AllocAndFreeListTestBody() 354 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in AllocAndFreeListTestBody() 363 size_t allocation_size, usable_size; in AllocAndFreeListTestBody() local 364 lots_of_objects[i] = AllocWithGrowth(space, self, 1024, &allocation_size, &usable_size); in AllocAndFreeListTestBody() 367 EXPECT_EQ(allocation_size, space->AllocationSize(lots_of_objects[i], &computed_usable_size)); in AllocAndFreeListTestBody() 434 size_t allocation_size = space->AllocationSize(object.Get(), nullptr); in SizeFootPrintGrowthLimitAndTrimBody() local 435 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() 437 EXPECT_GE(allocation_size, static_cast<size_t>(object_size)); in SizeFootPrintGrowthLimitAndTrimBody() 439 EXPECT_GE(allocation_size, 8u); in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
D | large_object_space_test.cc | 51 size_t allocation_size = 0; in LargeObjectTest() local 52 mirror::Object* obj = los->Alloc(Thread::Current(), request_size, &allocation_size, in LargeObjectTest() 55 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr)); in LargeObjectTest() 56 ASSERT_GE(allocation_size, request_size); in LargeObjectTest()
|
D | dlmalloc_space-inl.h | 61 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); in AllocWithoutGrowthLocked() local 63 *bytes_allocated = allocation_size; in AllocWithoutGrowthLocked()
|
/art/compiler/utils/ |
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 | 254 void ArenaAllocator::ObtainNewArenaForAllocation(size_t allocation_size) { in ObtainNewArenaForAllocation() argument 256 Arena* new_arena = pool_->AllocArena(std::max(Arena::kDefaultSize, allocation_size)); in ObtainNewArenaForAllocation()
|
D | arena_allocator.h | 191 void ObtainNewArenaForAllocation(size_t allocation_size);
|