/art/runtime/gc/ |
D | heap-inl.h | 81 size_t bytes_allocated; in AllocObjectWithAllocator() local 118 bytes_allocated = byte_count; in AllocObjectWithAllocator() 119 usable_size = bytes_allocated; in AllocObjectWithAllocator() 124 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator() 131 usable_size = bytes_allocated; in AllocObjectWithAllocator() 138 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator() 148 &bytes_allocated, in AllocObjectWithAllocator() 168 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator() 209 thread_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator() 212 global_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator() [all …]
|
D | heap.cc | 1112 uint64_t bytes_allocated = GetBytesAllocated(); in CalculateGcWeightedAllocatedBytes() local 1114 return weight * bytes_allocated; in CalculateGcWeightedAllocatedBytes() 1736 size_t* bytes_allocated, in AllocateInternalWithGc() argument 1777 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1793 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1814 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1823 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1842 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size, in AllocateInternalWithGc() 1864 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 2250 size_t bytes_allocated, dummy; in MarkNonForwardedObject() local [all …]
|
/art/runtime/gc/space/ |
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()
|
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()
|
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 …]
|
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 …]
|
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() 43 /* out */ size_t* bytes_allocated, in AllocThreadUnsafe() argument 47 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe() 52 /* out */ size_t* bytes_allocated, in AllocNonvirtual() argument 60 bytes_allocated, in AllocNonvirtual() 70 bytes_allocated, in AllocNonvirtual() 78 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual() 91 obj = AllocLarge<kForEvac>(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual() 100 /* out */ size_t* bytes_allocated, in Alloc() argument [all …]
|
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()
|
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,
|
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,
|
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 …]
|
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()
|
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()
|
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()
|
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_); 430 /* out */ size_t* bytes_allocated, 720 /* out */ size_t* bytes_allocated,
|
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,
|
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()
|
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()
|
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,
|
D | zygote_space.h | 51 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
/art/runtime/gc/allocator/ |
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()
|
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()
|
/art/runtime/gc/accounting/ |
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()
|
/art/libartbase/base/ |
D | arena_allocator.cc | 143 const size_t bytes_allocated = BytesAllocated(); in Dump() local 144 os << " MEM: used: " << bytes_allocated << ", allocated: " << malloc_bytes in Dump() 149 << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; in Dump()
|
/art/test/099-vmdebug/src/ |
D | Main.java | 184 String bytes_allocated = VMDebug.getRuntimeStat("art.gc.bytes-allocated"); in testRuntimeStat() local 193 checkNumber(bytes_allocated); in testRuntimeStat() 211 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testRuntimeStats() local 220 checkNumber(bytes_allocated); in testRuntimeStats()
|