Searched refs:allocation_size (Results 1 – 8 of 8) sorted by relevance
/art/runtime/gc/space/ |
D | large_object_space.cc | 149 const size_t allocation_size = mem_map.BaseSize(); in Alloc() local 157 end_ = std::max(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() 200 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 | space_test.h | 206 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()
|
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_create_test.cc | 312 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()
|
D | memory_tool_malloc_space-inl.h | 230 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/ |
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()
|
/art/runtime/jit/ |
D | jit_code_cache.cc | 2189 uint8_t* JitCodeCache::AllocateCode(size_t allocation_size) { in AllocateCode() argument 2194 mspace_memalign(exec_mspace_, alignment, allocation_size)); in AllocateCode()
|