Home
last modified time | relevance | path

Searched refs:bytes_allocated (Results 1 – 25 of 27) sorted by relevance

12

/art/runtime/gc/
Dheap-inl.h66 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 …]
Dheap.cc1281 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/
Ddlmalloc_space-inl.h29 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()
Drosalloc_space.h49 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,
Dbump_pointer_space-inl.h26 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()
Ddlmalloc_space.h50 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,
Drosalloc_space-inl.h51 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()
Dvalgrind_malloc_space-inl.h34 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()
Dvalgrind_malloc_space.h33 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,
Dspace_test.h64 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 …]
Dlarge_object_space.cc40 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()
Ddlmalloc_space.cc129 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()
Drosalloc_space.cc147 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()
Dmalloc_space.h58 size_t* bytes_allocated, size_t* usable_size) = 0;
60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dlarge_object_space_test.cc86 size_t bytes_allocated = 0; in LargeObjectTest() local
88 mirror::Object* obj = los->Alloc(Thread::Current(), 100 * MB, &bytes_allocated, nullptr); in LargeObjectTest()
Dspace.h199 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()
Dbump_pointer_space.h49 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,
Dlarge_object_space.h120 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,
Dzygote_space.h48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dzygote_space.cc78 mirror::Object* ZygoteSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
/art/runtime/gc/allocator/
Drosalloc-inl.h27 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()
Ddlmalloc.cc77 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local
78 *bytes_allocated += used_bytes + sizeof(size_t); in DlmallocBytesAllocatedCallback()
Drosalloc.h491 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/
Darena_allocator.cc96 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/
Dsemi_space.cc482 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()

12