Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dheap-inl.h81 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 …]
Dheap.cc1112 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/
Drosalloc_space-inl.h33 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()
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.h56 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 …]
Dmemory_tool_malloc_space-inl.h35 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 …]
Dregion_space-inl.h33 /* 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 …]
Dbump_pointer_space-inl.h28 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()
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.h58 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,
Dspace_test.h70 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 …]
Ddlmalloc_space.cc168 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()
Dlarge_object_space.cc54 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()
Drosalloc_space.cc203 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()
Dregion_space.h70 /* 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,
Dmalloc_space.h49 size_t* bytes_allocated, size_t* usable_size,
52 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dspace.h214 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()
Dlarge_object_space_test.cc113 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()
Dbump_pointer_space.h55 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,
Dzygote_space.h51 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.cc93 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/
Dmod_union_table_test.cc55 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/
Darena_allocator.cc143 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/
DMain.java184 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()

12