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.cc123 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 …]
Dspace_test.h348 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 …]
Dlarge_object_space_test.cc51 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()
Ddlmalloc_space-inl.h61 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); in AllocWithoutGrowthLocked() local
63 *bytes_allocated = allocation_size; in AllocWithoutGrowthLocked()
/art/compiler/utils/
Dscoped_arena_allocator.cc58 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()
Darena_allocator.cc254 void ArenaAllocator::ObtainNewArenaForAllocation(size_t allocation_size) { in ObtainNewArenaForAllocation() argument
256 Arena* new_arena = pool_->AllocArena(std::max(Arena::kDefaultSize, allocation_size)); in ObtainNewArenaForAllocation()
Darena_allocator.h191 void ObtainNewArenaForAllocation(size_t allocation_size);