Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dheap-inl.h69 size_t bytes_allocated; in AllocObjectWithAllocator() local
87 bytes_allocated = byte_count; in AllocObjectWithAllocator()
88 usable_size = bytes_allocated; in AllocObjectWithAllocator()
92 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) && in AllocObjectWithAllocator()
102 usable_size = bytes_allocated; in AllocObjectWithAllocator()
108 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
112 obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &usable_size, in AllocObjectWithAllocator()
125 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator()
159 thread_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
162 global_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
[all …]
/art/runtime/gc/space/
Dregion_space-inl.h26 inline mirror::Object* RegionSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
30 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc()
35 size_t* bytes_allocated, in AllocThreadUnsafe() argument
39 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
43 inline mirror::Object* RegionSpace::AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument
51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
64 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
67 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
84 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
[all …]
Ddlmalloc_space-inl.h29 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()
Drosalloc_space.h49 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
54 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
57 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
60 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe()
71 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocNonvirtual() argument
74 return AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
78 size_t* bytes_allocated, size_t* usable_size, in AllocNonvirtualThreadUnsafe() argument
81 return AllocCommon<false>(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtualThreadUnsafe()
91 size_t* bytes_allocated);
[all …]
Dvalgrind_malloc_space-inl.h34 size_t bytes_allocated, size_t usable_size, in AdjustForValgrind() argument
39 *bytes_allocated_out = bytes_allocated; in AdjustForValgrind()
92 size_t bytes_allocated; in AllocWithGrowth() local
96 &bytes_allocated, &usable_size, in AllocWithGrowth()
104 bytes_allocated, usable_size, in AllocWithGrowth()
121 size_t bytes_allocated; in Alloc() local
125 &bytes_allocated, &usable_size, &bytes_tl_bulk_allocated); in Alloc()
132 bytes_allocated, usable_size, in Alloc()
149 size_t bytes_allocated; in AllocThreadUnsafe() local
153 &bytes_allocated, &usable_size, in AllocThreadUnsafe()
[all …]
Drosalloc_space-inl.h64 size_t* bytes_allocated, size_t* usable_size, in AllocCommon() argument
81 DCHECK(bytes_allocated != nullptr); in AllocCommon()
82 *bytes_allocated = rosalloc_bytes_allocated; in AllocCommon()
98 size_t* bytes_allocated) { in AllocThreadLocal() argument
99 DCHECK(bytes_allocated != nullptr); in AllocThreadLocal()
101 rosalloc_->AllocFromThreadLocalRun(self, num_bytes, bytes_allocated)); in AllocThreadLocal()
Dbump_pointer_space-inl.h27 inline mirror::Object* BumpPointerSpace::Alloc(Thread*, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
33 *bytes_allocated = num_bytes; in Alloc()
43 size_t* bytes_allocated, in AllocThreadUnsafe() argument
54 *bytes_allocated = num_bytes; in AllocThreadUnsafe()
Ddlmalloc_space.h50 virtual mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
55 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
58 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
87 mirror::Object* AllocNonvirtual(Thread* self, size_t num_bytes, size_t* bytes_allocated,
147 mirror::Object* AllocWithoutGrowthLocked(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dvalgrind_malloc_space.h36 mirror::Object* AllocWithGrowth(Thread* self, size_t num_bytes, size_t* bytes_allocated,
39 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
41 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dregion_space.h44 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
47 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
52 ALWAYS_INLINE mirror::Object* AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated,
57 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size,
59 void FreeLarge(mirror::Object* large_obj, size_t bytes_allocated);
273 ALWAYS_INLINE mirror::Object* Alloc(size_t num_bytes, size_t* bytes_allocated,
392 size_t bytes_allocated = RoundUp(BytesAllocated(), kRegionSize); in GetLivePercent() local
393 DCHECK_GE(bytes_allocated, 0U); in GetLivePercent()
394 uint result = (live_bytes_ * 100U) / bytes_allocated; in GetLivePercent()
Dspace_test.h66 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
71 mirror::Object* obj = alloc_space->Alloc(self, bytes, bytes_allocated, usable_size, in Alloc()
80 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
85 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, in AllocWithGrowth()
454 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
457 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
460 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
468 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody()
552 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
555 large_object.Assign(Alloc(space, self, three_quarters_space, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
[all …]
Ddlmalloc_space.cc127 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
136 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
264 size_t bytes_allocated = 0; in GetBytesAllocated() local
265 mspace_inspect_all(mspace_, DlmallocBytesAllocatedCallback, &bytes_allocated); in GetBytesAllocated()
266 return bytes_allocated; in GetBytesAllocated()
Drosalloc_space.cc158 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
167 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
290 size_t bytes_allocated = 0; in GetBytesAllocated() local
291 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated()
292 return bytes_allocated; in GetBytesAllocated()
Dlarge_object_space.cc49 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
53 LargeObjectMapSpace::Alloc(self, num_bytes + kValgrindRedZoneBytes * 2, bytes_allocated, in Alloc()
130 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
153 DCHECK(bytes_allocated != nullptr); in Alloc()
159 *bytes_allocated = allocation_size; in Alloc()
474 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
508 DCHECK(bytes_allocated != nullptr); in Alloc()
509 *bytes_allocated = allocation_size; in Alloc()
Dmalloc_space.h58 size_t* bytes_allocated, size_t* usable_size,
61 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dspace.h215 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
219 virtual mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated, in AllocThreadUnsafe() argument
223 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); 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_test.cc103 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in LargeObjectTest() local
105 mirror::Object* obj = los->Alloc(self, 100 * MB, &bytes_allocated, nullptr, in LargeObjectTest()
/art/runtime/gc/allocator/
Drosalloc-inl.h31 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()
90 size_t* bytes_allocated) { in AllocFromThreadLocalRun() argument
91 DCHECK(bytes_allocated != nullptr); in AllocFromThreadLocalRun()
108 *bytes_allocated = bracket_size; in AllocFromThreadLocalRun()
Ddlmalloc.cc85 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local
86 *bytes_allocated += used_bytes + sizeof(size_t); in DlmallocBytesAllocatedCallback()
Drosalloc.h520 void* AllocFromRun(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
525 void* AllocFromRunThreadUnsafe(Thread* self, size_t size, size_t* bytes_allocated,
545 void* AllocLargeObject(Thread* self, size_t size, size_t* bytes_allocated,
571 void* Alloc(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
584 ALWAYS_INLINE void* AllocFromThreadLocalRun(Thread* self, size_t size, size_t* bytes_allocated);
/art/runtime/gc/accounting/
Dmod_union_table_test.cc52 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in AllocObjectArray() local
54 space->Alloc(self, size, &bytes_allocated, nullptr, &bytes_tl_bulk_allocated)); in AllocObjectArray()
59 EXPECT_GE(bytes_allocated, size); in AllocObjectArray()
81 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in GetObjectArrayClass() local
82 auto* klass = down_cast<mirror::Class*>(space->Alloc(self, class_size, &bytes_allocated, in GetObjectArrayClass()
/art/test/099-vmdebug/src/
DMain.java166 String bytes_allocated = VMDebug.getRuntimeStat("art.gc.bytes-allocated"); in testRuntimeStat() local
175 checkNumber(bytes_allocated); in testRuntimeStat()
193 String bytes_allocated = map.get("art.gc.bytes-allocated"); in testRuntimeStats() local
202 checkNumber(bytes_allocated); in testRuntimeStats()
/art/runtime/gc/collector/
Dsemi_space.cc493 size_t bytes_allocated, dummy; in MarkNonForwardedObject() local
499 forward_address = promo_dest_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
503 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
508 bytes_promoted_ += bytes_allocated; in MarkNonForwardedObject()
549 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
557 forward_address = fallback_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
566 bytes_moved_ += bytes_allocated; in MarkNonForwardedObject()
/art/runtime/base/
Darena_allocator.cc106 const size_t bytes_allocated = BytesAllocated(); in Dump() local
107 os << " MEM: used: " << bytes_allocated << ", allocated: " << malloc_bytes in Dump()
112 << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; in Dump()

12