/aosp12/art/runtime/gc/ |
H A D | heap-inl.h | 81 size_t bytes_allocated; in AllocObjectWithAllocator() local 126 bytes_allocated = byte_count; in AllocObjectWithAllocator() 127 usable_size = bytes_allocated; in AllocObjectWithAllocator() 139 usable_size = bytes_allocated; in AllocObjectWithAllocator() 153 &bytes_allocated, in AllocObjectWithAllocator() 175 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator() 317 *bytes_allocated = alloc_size; in TryToAllocate() 359 bytes_allocated, in TryToAllocate() 375 bytes_allocated, in TryToAllocate() 414 bytes_allocated, in TryToAllocate() [all …]
|
H A D | heap.cc | 1162 uint64_t bytes_allocated = GetBytesAllocated(); in CalculateGcWeightedAllocatedBytes() local 1164 return weight * bytes_allocated; in CalculateGcWeightedAllocatedBytes() 1800 size_t* bytes_allocated, in AllocateInternalWithGc() argument 2248 size_t bytes_allocated, unused_bytes_tl_bulk_allocated; in MarkNonForwardedObject() local 3549 const size_t bytes_allocated = GetBytesAllocated(); in GrowForUtilization() local 3551 TraceHeapSize(bytes_allocated); in GrowForUtilization() 3595 if (bytes_allocated + adjusted_max_free < target_footprint) { in GrowForUtilization() 3596 target_size = bytes_allocated + adjusted_max_free; in GrowForUtilization() 3599 target_size = std::max(bytes_allocated, target_footprint); in GrowForUtilization() 4308 size_t* bytes_allocated, in AllocWithNewTLAB() argument [all …]
|
/aosp12/art/runtime/gc/space/ |
H A D | rosalloc_space.h | 56 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 59 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 61 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc() 64 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument 67 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe() 78 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument 81 return AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual() 85 size_t* bytes_allocated, size_t* usable_size, in AllocNonvirtualThreadUnsafe() argument 88 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtualThreadUnsafe() 98 size_t* bytes_allocated); [all …]
|
H A D | region_space-inl.h | 33 /* out */ size_t* bytes_allocated, in Alloc() argument 37 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc() 60 bytes_allocated, in AllocNonvirtual() 70 bytes_allocated, in AllocNonvirtual() 100 /* out */ size_t* bytes_allocated, in Alloc() argument 118 *bytes_allocated = num_bytes; in Alloc() 314 /* out */ size_t* bytes_allocated, in AllocLarge() argument 339 bytes_allocated, in AllocLarge() 352 bytes_allocated, in AllocLarge() 370 bytes_allocated, in AllocLarge() [all …]
|
H A D | rosalloc_space-inl.h | 33 size_t* bytes_allocated, size_t* usable_size, in AllocCommon() argument 50 DCHECK(bytes_allocated != nullptr); in AllocCommon() 51 *bytes_allocated = rosalloc_bytes_allocated; in AllocCommon() 67 size_t* bytes_allocated) { in AllocThreadLocal() argument 68 DCHECK(bytes_allocated != nullptr); in AllocThreadLocal() 70 rosalloc_->AllocFromThreadLocalRun(self, num_bytes, bytes_allocated)); in AllocThreadLocal()
|
H A D | memory_tool_malloc_space-inl.h | 35 size_t bytes_allocated, in AdjustForMemoryTool() argument 42 *bytes_allocated_out = bytes_allocated; in AdjustForMemoryTool() 98 size_t bytes_allocated; in AllocWithGrowth() local 103 &bytes_allocated, in AllocWithGrowth() 113 bytes_allocated, in AllocWithGrowth() 134 size_t bytes_allocated; in Alloc() local 139 &bytes_allocated, in Alloc() 149 bytes_allocated, in Alloc() 170 size_t bytes_allocated; in AllocThreadUnsafe() local 175 &bytes_allocated, in AllocThreadUnsafe() [all …]
|
H A D | dlmalloc_space-inl.h | 29 size_t* bytes_allocated, in AllocNonvirtual() argument 35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual() 56 size_t* bytes_allocated, in AllocWithoutGrowthLocked() argument 66 DCHECK(bytes_allocated != nullptr); in AllocWithoutGrowthLocked() 67 *bytes_allocated = allocation_size; in AllocWithoutGrowthLocked()
|
H A D | space_test.h | 70 size_t* bytes_allocated, in Alloc() argument 78 bytes_allocated, in Alloc() 90 size_t* bytes_allocated, in AllocWithGrowth() argument 96 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, in AllocWithGrowth() 193 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local 196 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody() 199 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody() 207 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() 291 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local 294 large_object.Assign(Alloc(space, self, three_quarters_space, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
H A D | bump_pointer_space-inl.h | 28 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 34 *bytes_allocated = num_bytes; in Alloc() 44 size_t* bytes_allocated, in AllocThreadUnsafe() argument 55 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
|
H A D | dlmalloc_space.h | 58 size_t* bytes_allocated, 64 size_t* bytes_allocated, in Alloc() argument 67 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc() 96 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, 168 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
H A D | memory_tool_malloc_space.h | 34 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 37 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 39 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
H A D | dlmalloc_space.cc | 168 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 177 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth() 325 size_t bytes_allocated = 0; in GetBytesAllocated() local 326 mspace_inspect_all(mspace_, DlmallocBytesAllocatedCallback, &bytes_allocated); in GetBytesAllocated() 327 return bytes_allocated; in GetBytesAllocated()
|
H A D | large_object_space.cc | 54 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 58 LargeObjectMapSpace::Alloc(self, num_bytes + kMemoryToolRedZoneBytes * 2, bytes_allocated, in Alloc() 137 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument 153 DCHECK(bytes_allocated != nullptr); in Alloc() 160 *bytes_allocated = allocation_size; in Alloc() 500 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 534 DCHECK(bytes_allocated != nullptr); in Alloc() 535 *bytes_allocated = allocation_size; in Alloc()
|
H A D | region_space.h | 70 /* out */ size_t* bytes_allocated, 77 /* out */ size_t* bytes_allocated, 84 /* out */ size_t* bytes_allocated, 91 /* out */ size_t* bytes_allocated, 95 void FreeLarge(mirror::Object* large_obj, size_t bytes_allocated) REQUIRES(!region_lock_); 434 /* out */ size_t* bytes_allocated, 724 /* out */ size_t* bytes_allocated,
|
H A D | rosalloc_space.cc | 203 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 212 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth() 359 size_t bytes_allocated = 0; in GetBytesAllocated() local 360 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated() 361 return bytes_allocated; in GetBytesAllocated()
|
H A D | space.h | 214 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 218 virtual mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument 222 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
|
H A D | malloc_space.h | 49 size_t* bytes_allocated, size_t* usable_size, 52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
H A D | bump_pointer_space.h | 55 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 58 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
H A D | large_object_space_test.cc | 113 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in LargeObjectTest() local 115 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, in LargeObjectTest()
|
/aosp12/art/runtime/gc/allocator/ |
H A D | rosalloc-inl.h | 31 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated, in Alloc() argument 35 return AllocLargeObject(self, size, bytes_allocated, usable_size, in Alloc() 40 m = AllocFromRun(self, size, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in Alloc() 42 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated, usable_size, in Alloc() 79 size_t* bytes_allocated) { in AllocFromThreadLocalRun() argument 80 DCHECK(bytes_allocated != nullptr); in AllocFromThreadLocalRun() 97 *bytes_allocated = bracket_size; in AllocFromThreadLocalRun()
|
H A D | dlmalloc.cc | 93 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local 94 *bytes_allocated += used_bytes + sizeof(size_t); in DlmallocBytesAllocatedCallback()
|
H A D | rosalloc.h | 786 void* AllocFromRun(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size, 791 void* AllocFromRunThreadUnsafe(Thread* self, size_t size, size_t* bytes_allocated, 811 void* AllocLargeObject(Thread* self, size_t size, size_t* bytes_allocated, 850 void* Alloc(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size, 863 ALWAYS_INLINE void* AllocFromThreadLocalRun(Thread* self, size_t size, size_t* bytes_allocated);
|
/aosp12/art/runtime/gc/accounting/ |
H A D | mod_union_table_test.cc | 55 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in AllocObjectArray() local 57 space->Alloc(self, size, &bytes_allocated, nullptr, &bytes_tl_bulk_allocated)); in AllocObjectArray() 62 EXPECT_GE(bytes_allocated, size); in AllocObjectArray() 83 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in GetObjectArrayClass() local 84 auto* klass = down_cast<mirror::Class*>(space->Alloc(self, class_size, &bytes_allocated, in GetObjectArrayClass()
|
/aosp12/art/test/099-vmdebug/src/ |
H A D | Main.java | 183 String bytes_allocated = VMDebug.getRuntimeStat("art.gc.bytes-allocated"); in testRuntimeStat() local 192 checkNumber(bytes_allocated); in testRuntimeStat() 210 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testRuntimeStats() local 219 checkNumber(bytes_allocated); in testRuntimeStats()
|
/aosp12/art/libartbase/base/ |
H A D | arena_allocator.cc | 144 const size_t bytes_allocated = BytesAllocated(); in Dump() local 145 os << " MEM: used: " << bytes_allocated << ", allocated: " << malloc_bytes in Dump() 150 << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; in Dump()
|