/art/runtime/gc/ |
D | heap-inl.h | 66 size_t bytes_allocated; in AllocObjectWithAllocator() local 83 bytes_allocated = byte_count; in AllocObjectWithAllocator() 84 usable_size = bytes_allocated; in AllocObjectWithAllocator() 88 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator() 92 obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &usable_size, in AllocObjectWithAllocator() 105 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator() 128 static_cast<size_t>(num_bytes_allocated_.FetchAndAddSequentiallyConsistent(bytes_allocated)) in AllocObjectWithAllocator() 129 + bytes_allocated; in AllocObjectWithAllocator() 139 thread_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator() 142 global_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator() [all …]
|
D | heap.cc | 1281 size_t alloc_size, size_t* bytes_allocated, in AllocateInternalWithGc() argument 1301 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1315 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1335 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1344 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1362 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size); in AllocateInternalWithGc() 1377 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1421 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1912 size_t bytes_allocated; in MarkNonForwardedObject() local 1913 forward_address = to_space_->Alloc(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject() [all …]
|
/art/runtime/gc/space/ |
D | dlmalloc_space-inl.h | 29 size_t* bytes_allocated, in AllocNonvirtual() argument 34 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtual() 53 size_t* bytes_allocated, in AllocWithoutGrowthLocked() argument 62 DCHECK(bytes_allocated != NULL); in AllocWithoutGrowthLocked() 63 *bytes_allocated = allocation_size; in AllocWithoutGrowthLocked()
|
D | rosalloc_space.h | 49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 51 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 53 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size); in Alloc() 55 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument 58 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size); in AllocThreadUnsafe() 68 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument 71 return AllocCommon(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtual() 74 size_t* bytes_allocated, size_t* usable_size) { in AllocNonvirtualThreadUnsafe() argument 76 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size); in AllocNonvirtualThreadUnsafe() 134 mirror::Object* AllocCommon(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | bump_pointer_space-inl.h | 26 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 31 *bytes_allocated = num_bytes; in Alloc() 40 size_t* bytes_allocated, in AllocThreadUnsafe() argument 50 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
|
D | dlmalloc_space.h | 50 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 53 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 55 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size); in Alloc() 77 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, 136 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | rosalloc_space-inl.h | 51 size_t* bytes_allocated, size_t* usable_size) { in AllocCommon() argument 63 DCHECK(bytes_allocated != NULL); in AllocCommon() 64 *bytes_allocated = rosalloc_size; in AllocCommon()
|
D | valgrind_malloc_space-inl.h | 34 size_t* bytes_allocated, in AllocWithGrowth() argument 37 bytes_allocated, usable_size); in AllocWithGrowth() 51 size_t* bytes_allocated, in Alloc() argument 53 void* obj_with_rdz = S::Alloc(self, num_bytes + 2 * kValgrindRedZoneBytes, bytes_allocated, in Alloc()
|
D | valgrind_malloc_space.h | 33 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated, 35 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | space_test.h | 64 size_t* bytes_allocated, size_t* usable_size) in Alloc() argument 68 mirror::Object* obj = alloc_space->Alloc(self, bytes, bytes_allocated, usable_size); in Alloc() 76 size_t* bytes_allocated, size_t* usable_size) in AllocWithGrowth() argument 80 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size); in AllocWithGrowth() 424 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local 426 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody() 428 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody() 435 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody() 517 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local 519 large_object.Assign(Alloc(space, self, three_quarters_space, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
D | large_object_space.cc | 40 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 43 LargeObjectMapSpace::Alloc(self, num_bytes + kValgrindRedZoneBytes * 2, bytes_allocated, in Alloc() 111 size_t* bytes_allocated, size_t* usable_size) { in Alloc() argument 124 DCHECK(bytes_allocated != nullptr); in Alloc() 130 *bytes_allocated = allocation_size; in Alloc() 409 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument 443 DCHECK(bytes_allocated != nullptr); in Alloc() 444 *bytes_allocated = allocation_size; in Alloc()
|
D | dlmalloc_space.cc | 129 size_t* bytes_allocated, size_t* usable_size) { in AllocWithGrowth() argument 137 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size); in AllocWithGrowth() 279 size_t bytes_allocated = 0; in GetBytesAllocated() local 280 mspace_inspect_all(mspace_, DlmallocBytesAllocatedCallback, &bytes_allocated); in GetBytesAllocated() 281 return bytes_allocated; in GetBytesAllocated()
|
D | rosalloc_space.cc | 147 size_t* bytes_allocated, size_t* usable_size) { in AllocWithGrowth() argument 155 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size); in AllocWithGrowth() 279 size_t bytes_allocated = 0; in GetBytesAllocated() local 280 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated() 281 return bytes_allocated; in GetBytesAllocated()
|
D | malloc_space.h | 58 size_t* bytes_allocated, size_t* usable_size) = 0; 60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | large_object_space_test.cc | 86 size_t bytes_allocated = 0; in LargeObjectTest() local 88 mirror::Object* obj = los->Alloc(Thread::Current(), 100 * MB, &bytes_allocated, nullptr); in LargeObjectTest()
|
D | space.h | 199 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 203 virtual mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument 206 return Alloc(self, num_bytes, bytes_allocated, usable_size); in AllocThreadUnsafe()
|
D | bump_pointer_space.h | 49 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 52 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | large_object_space.h | 120 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, 149 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | zygote_space.h | 48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
|
D | zygote_space.cc | 78 mirror::Object* ZygoteSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
|
/art/runtime/gc/allocator/ |
D | rosalloc-inl.h | 27 inline ALWAYS_INLINE void* RosAlloc::Alloc(Thread* self, size_t size, size_t* bytes_allocated) { in Alloc() argument 29 return AllocLargeObject(self, size, bytes_allocated); in Alloc() 33 m = AllocFromRun(self, size, bytes_allocated); in Alloc() 35 m = AllocFromRunThreadUnsafe(self, size, bytes_allocated); in Alloc()
|
D | dlmalloc.cc | 77 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local 78 *bytes_allocated += used_bytes + sizeof(size_t); in DlmallocBytesAllocatedCallback()
|
D | rosalloc.h | 491 void* AllocFromRun(Thread* self, size_t size, size_t* bytes_allocated) 495 void* AllocFromRunThreadUnsafe(Thread* self, size_t size, size_t* bytes_allocated) 514 void* AllocLargeObject(Thread* self, size_t size, size_t* bytes_allocated) LOCKS_EXCLUDED(lock_); 533 void* Alloc(Thread* self, size_t size, size_t* bytes_allocated)
|
/art/compiler/utils/ |
D | arena_allocator.cc | 96 const size_t bytes_allocated = BytesAllocated(); in Dump() local 97 os << " MEM: used: " << bytes_allocated << ", allocated: " << malloc_bytes in Dump() 102 << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; in Dump()
|
/art/runtime/gc/collector/ |
D | semi_space.cc | 482 size_t bytes_allocated; in MarkNonForwardedObject() local 488 forward_address = promo_dest_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject() 492 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject() 496 bytes_promoted_ += bytes_allocated; in MarkNonForwardedObject() 537 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject() 544 forward_address = fallback_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject() 553 bytes_moved_ += bytes_allocated; in MarkNonForwardedObject()
|