Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dheap-inl.h70 size_t bytes_allocated; in AllocObjectWithAllocator() local
88 bytes_allocated = byte_count; in AllocObjectWithAllocator()
89 usable_size = bytes_allocated; in AllocObjectWithAllocator()
93 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) && in AllocObjectWithAllocator()
103 usable_size = bytes_allocated; in AllocObjectWithAllocator()
109 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
118 &bytes_allocated, in AllocObjectWithAllocator()
135 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator()
169 thread_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
172 global_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
[all …]
/art/runtime/gc/space/
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()
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 …]
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 …]
Dmemory_tool_malloc_space-inl.h32 size_t bytes_allocated, size_t usable_size, in AdjustForValgrind() argument
37 *bytes_allocated_out = bytes_allocated; in AdjustForValgrind()
90 size_t bytes_allocated; in AllocWithGrowth() local
94 &bytes_allocated, &usable_size, in AllocWithGrowth()
102 bytes_allocated, usable_size, in AllocWithGrowth()
119 size_t bytes_allocated; in Alloc() local
123 &bytes_allocated, &usable_size, &bytes_tl_bulk_allocated); in Alloc()
130 bytes_allocated, usable_size, in Alloc()
147 size_t bytes_allocated; in AllocThreadUnsafe() local
151 &bytes_allocated, &usable_size, in AllocThreadUnsafe()
[all …]
Drosalloc_space-inl.h65 size_t* bytes_allocated, size_t* usable_size, in AllocCommon() argument
82 DCHECK(bytes_allocated != nullptr); in AllocCommon()
83 *bytes_allocated = rosalloc_bytes_allocated; in AllocCommon()
99 size_t* bytes_allocated) { in AllocThreadLocal() argument
100 DCHECK(bytes_allocated != nullptr); in AllocThreadLocal()
102 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()
Dmemory_tool_malloc_space.h34 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,
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,
Dspace_test.h71 size_t* bytes_allocated, in Alloc() argument
79 bytes_allocated, in Alloc()
91 size_t* bytes_allocated, in AllocWithGrowth() argument
97 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, in AllocWithGrowth()
195 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
198 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
201 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
209 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody()
293 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
296 large_object.Assign(Alloc(space, self, three_quarters_space, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
[all …]
Dregion_space.h44 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
48 mirror::Object* AllocThreadUnsafe(Thread* self, size_t num_bytes, size_t* bytes_allocated,
53 ALWAYS_INLINE mirror::Object* AllocNonvirtual(size_t num_bytes, size_t* bytes_allocated,
59 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size,
61 void FreeLarge(mirror::Object* large_obj, size_t bytes_allocated) REQUIRES(!region_lock_);
275 ALWAYS_INLINE mirror::Object* Alloc(size_t num_bytes, size_t* bytes_allocated,
394 size_t bytes_allocated = RoundUp(BytesAllocated(), kRegionSize); in GetLivePercent() local
395 DCHECK_GE(bytes_allocated, 0U); in GetLivePercent()
396 uint result = (live_bytes_ * 100U) / bytes_allocated; in GetLivePercent()
Ddlmalloc_space.cc129 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
138 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
266 size_t bytes_allocated = 0; in GetBytesAllocated() local
267 mspace_inspect_all(mspace_, DlmallocBytesAllocatedCallback, &bytes_allocated); in GetBytesAllocated()
268 return bytes_allocated; in GetBytesAllocated()
Drosalloc_space.cc155 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
164 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.cc52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
56 LargeObjectMapSpace::Alloc(self, num_bytes + kMemoryToolRedZoneBytes * 2, bytes_allocated, in Alloc()
134 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
157 DCHECK(bytes_allocated != nullptr); in Alloc()
163 *bytes_allocated = allocation_size; in Alloc()
479 mirror::Object* FreeListSpace::Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
513 DCHECK(bytes_allocated != nullptr); in Alloc()
514 *bytes_allocated = allocation_size; in Alloc()
Dmalloc_space.h57 size_t* bytes_allocated, size_t* usable_size,
60 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
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()
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()
Dzygote_space.h48 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
/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()
79 size_t* bytes_allocated) { in AllocFromThreadLocalRun() argument
80 DCHECK(bytes_allocated != nullptr); in AllocFromThreadLocalRun()
97 *bytes_allocated = bracket_size; in AllocFromThreadLocalRun()
Ddlmalloc.cc86 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local
87 *bytes_allocated += used_bytes + sizeof(size_t); in DlmallocBytesAllocatedCallback()
/art/runtime/gc/accounting/
Dmod_union_table_test.cc53 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in AllocObjectArray() local
55 space->Alloc(self, size, &bytes_allocated, nullptr, &bytes_tl_bulk_allocated)); in AllocObjectArray()
60 EXPECT_GE(bytes_allocated, size); in AllocObjectArray()
82 size_t bytes_allocated = 0, bytes_tl_bulk_allocated; in GetObjectArrayClass() local
83 auto* klass = down_cast<mirror::Class*>(space->Alloc(self, class_size, &bytes_allocated, in GetObjectArrayClass()
/art/test/099-vmdebug/src/
DMain.java183 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()
/art/runtime/gc/collector/
Dsemi_space.cc527 size_t bytes_allocated, dummy; in MarkNonForwardedObject() local
533 forward_address = promo_dest_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
537 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
542 bytes_promoted_ += bytes_allocated; in MarkNonForwardedObject()
583 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
591 forward_address = fallback_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
600 bytes_moved_ += bytes_allocated; in MarkNonForwardedObject()
/art/runtime/base/
Darena_allocator.cc130 const size_t bytes_allocated = BytesAllocated(); in Dump() local
131 os << " MEM: used: " << bytes_allocated << ", allocated: " << malloc_bytes in Dump()
136 << num_allocations << ", avg size: " << bytes_allocated / num_allocations << "\n"; in Dump()

12