Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dheap-inl.h79 size_t bytes_allocated; in AllocObjectWithAllocator() local
93 bytes_allocated = byte_count; in AllocObjectWithAllocator()
94 usable_size = bytes_allocated; in AllocObjectWithAllocator()
99 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
106 usable_size = bytes_allocated; in AllocObjectWithAllocator()
112 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
121 &bytes_allocated, in AllocObjectWithAllocator()
138 DCHECK_GT(bytes_allocated, 0u); in AllocObjectWithAllocator()
175 thread_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
178 global_stats->allocated_bytes += bytes_allocated; in AllocObjectWithAllocator()
[all …]
Dheap.cc1575 size_t* bytes_allocated, in AllocateInternalWithGc() argument
1596 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1611 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1632 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1641 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1660 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size, in AllocateInternalWithGc()
1681 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1735 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
2240 size_t bytes_allocated, dummy; in MarkNonForwardedObject() local
2241 forward_address = to_space_->Alloc(self_, alloc_size, &bytes_allocated, nullptr, &dummy); in MarkNonForwardedObject()
[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()
Dmemory_tool_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.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 …]
Dregion_space-inl.h29 /* out */ size_t* bytes_allocated, in Alloc() argument
33 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc()
39 /* out */ size_t* bytes_allocated, in AllocThreadUnsafe() argument
43 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
48 /* out */ size_t* bytes_allocated, in AllocNonvirtual() argument
56 bytes_allocated, in AllocNonvirtual()
65 bytes_allocated, in AllocNonvirtual()
73 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
86 obj = AllocLarge<kForEvac>(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
95 /* 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.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()
192 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
195 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
198 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
206 EXPECT_EQ(bytes_allocated, allocation_size); in SizeFootPrintGrowthLimitAndTrimBody()
290 size_t bytes_allocated = 0; in SizeFootPrintGrowthLimitAndTrimBody() local
293 large_object.Assign(Alloc(space, self, three_quarters_space, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
[all …]
Ddlmalloc_space.cc131 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
140 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
268 size_t bytes_allocated = 0; in GetBytesAllocated() local
269 mspace_inspect_all(mspace_, DlmallocBytesAllocatedCallback, &bytes_allocated); in GetBytesAllocated()
270 return bytes_allocated; in GetBytesAllocated()
Dlarge_object_space.cc56 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated, in Alloc() argument
60 LargeObjectMapSpace::Alloc(self, num_bytes + kMemoryToolRedZoneBytes * 2, bytes_allocated, in Alloc()
138 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
151 DCHECK(bytes_allocated != nullptr); in Alloc()
158 *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()
Drosalloc_space.cc157 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
166 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
292 size_t bytes_allocated = 0; in GetBytesAllocated() local
293 InspectAllRosAlloc(art::gc::allocator::RosAlloc::BytesAllocatedCallback, &bytes_allocated, false); in GetBytesAllocated()
294 return bytes_allocated; in GetBytesAllocated()
Dmalloc_space.h47 size_t* bytes_allocated, size_t* usable_size,
50 virtual mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
Dregion_space.h52 /* out */ size_t* bytes_allocated,
59 /* out */ size_t* bytes_allocated,
66 /* out */ size_t* bytes_allocated,
73 /* out */ size_t* bytes_allocated,
77 void FreeLarge(mirror::Object* large_obj, size_t bytes_allocated) REQUIRES(!region_lock_);
328 /* out */ size_t* bytes_allocated,
Dbump_pointer_space.h53 mirror::Object* Alloc(Thread* self, size_t num_bytes, size_t* bytes_allocated,
56 mirror::Object* AllocThreadUnsafe(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()
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.cc92 size_t* bytes_allocated = reinterpret_cast<size_t*>(arg); in DlmallocBytesAllocatedCallback() local
93 *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.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()
/art/runtime/gc/collector/
Dsemi_space.cc515 size_t bytes_allocated, dummy; in MarkNonForwardedObject() local
521 forward_address = promo_dest_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
525 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
530 bytes_promoted_ += bytes_allocated; in MarkNonForwardedObject()
571 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr, in MarkNonForwardedObject()
579 forward_address = fallback_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
588 bytes_moved_ += bytes_allocated; in MarkNonForwardedObject()

12