/aosp12/art/runtime/gc/space/ |
H A D | large_object_space.cc | 160 *bytes_allocated = allocation_size; in Alloc() 162 *usable_size = allocation_size; in Alloc() 166 num_bytes_allocated_ += allocation_size; in Alloc() 201 size_t allocation_size = map_size; in Free() local 202 num_bytes_allocated_ -= allocation_size; in Free() 205 return allocation_size; in Free() 434 DCHECK_GT(allocation_size, 0U); in Free() 486 return allocation_size; in Free() 529 free_end_ -= allocation_size; in Alloc() 535 *bytes_allocated = allocation_size; in Alloc() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/aosp12/art/runtime/javaheapprof/ |
H A D | javaheapsampler.cc | 64 void HeapSampler::ReportSample(art::mirror::Object* obj, size_t allocation_size) { in ReportSample() argument 65 VLOG(heap) << "JHP:***Report Perfetto Allocation: alloc_size: " << allocation_size; in ReportSample() 69 AHeapProfile_reportSample(perfetto_heap_id_, perf_alloc_id, allocation_size); in ReportSample()
|
H A D | javaheapsampler.h | 55 void ReportSample(art::mirror::Object* obj, size_t allocation_size);
|
/aosp12/art/libartbase/base/ |
H A 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()
|
/aosp12/system/core/debuggerd/libdebuggerd/ |
H A D | scudo.cpp | 104 heap_object->set_size(report->allocation_size); in FillInCause() 173 } else if (untagged_fault_addr_ - report->allocation_address < report->allocation_size) { in DumpReport() 180 diff = untagged_fault_addr_ - report->allocation_address - report->allocation_size; in DumpReport() 190 error_type_str, diff, byte_suffix, location_str, report->allocation_size, in DumpReport()
|
/aosp12/bionic/libc/bionic/ |
H A D | pthread_create.cpp | 73 size_t allocation_size = __BIONIC_ALIGN(sizeof(bionic_tls), PAGE_SIZE); in __allocate_temp_bionic_tls() local 74 void* allocation = mmap(nullptr, allocation_size, in __allocate_temp_bionic_tls()
|
/aosp12/bionic/libc/malloc_debug/ |
H A D | PointerData.cpp | 539 size_t allocation_size = in GetInfo() local 541 memcpy(data, &allocation_size, sizeof(size_t)); in GetInfo()
|