Home
last modified time | relevance | path

Searched refs:usable_size (Results 1 – 25 of 34) sorted by relevance

12

/art/runtime/gc/space/
Dmemory_tool_malloc_space-inl.h32 size_t bytes_allocated, size_t usable_size, in AdjustForValgrind() argument
49 *usable_size_out = usable_size - 2 * kMemoryToolRedZoneBytes; in AdjustForValgrind()
68 usable_size - (num_bytes + kMemoryToolRedZoneBytes)); in AdjustForValgrind()
91 size_t usable_size; in AllocWithGrowth() local
94 &bytes_allocated, &usable_size, in AllocWithGrowth()
102 bytes_allocated, usable_size, in AllocWithGrowth()
120 size_t usable_size; in Alloc() local
123 &bytes_allocated, &usable_size, &bytes_tl_bulk_allocated); in Alloc()
130 bytes_allocated, usable_size, in Alloc()
148 size_t usable_size; in AllocThreadUnsafe() local
[all …]
Ddlmalloc_space-inl.h30 size_t* usable_size, in AllocNonvirtual() argument
35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
45 inline size_t DlMallocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
48 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
49 *usable_size = size; in AllocationSizeNonvirtual()
57 size_t* usable_size, in AllocWithoutGrowthLocked() argument
65 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); in AllocWithoutGrowthLocked()
Drosalloc_space.h50 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
53 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE { in Alloc() argument
54 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
58 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in AllocThreadUnsafe() argument
60 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe()
63 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
64 return AllocationSizeNonvirtual<true>(obj, usable_size); in AllocationSize()
72 size_t* usable_size, size_t* bytes_tl_bulk_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
[all …]
Dbump_pointer_space-inl.h29 size_t* usable_size, in Alloc() argument
35 if (usable_size != nullptr) { in Alloc()
36 *usable_size = num_bytes; in Alloc()
45 size_t* usable_size, in AllocThreadUnsafe() argument
59 if (UNLIKELY(usable_size != nullptr)) { in AllocThreadUnsafe()
60 *usable_size = num_bytes; in AllocThreadUnsafe()
Dregion_space-inl.h28 size_t* usable_size, in Alloc() argument
31 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc()
37 size_t* usable_size, in AllocThreadUnsafe() argument
40 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
45 size_t* usable_size, in AllocNonvirtual() argument
53 usable_size, in AllocNonvirtual()
62 usable_size, in AllocNonvirtual()
69 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
82 obj = AllocLarge<kForEvac>(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
92 size_t* usable_size, in Alloc() argument
[all …]
Ddlmalloc_space.h51 size_t* usable_size,
56 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in Alloc() argument
58 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc()
62 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
63 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize()
88 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
92 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size);
148 size_t* usable_size,
Dmemory_tool_malloc_space.h35 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
38 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
40 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
43 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE;
Drosalloc_space-inl.h33 size_t* bytes_allocated, size_t* usable_size, in AllocCommon() argument
53 if (usable_size != nullptr) { in AllocCommon()
54 *usable_size = rosalloc_usable_size; in AllocCommon()
Dlarge_object_space.cc55 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in Alloc() argument
59 usable_size, bytes_tl_bulk_allocated); in Alloc()
66 if (usable_size != nullptr) { in Alloc()
67 *usable_size = num_bytes; // Since we have redzones, shrink the usable size. in Alloc()
72 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
73 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize()
136 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
157 if (usable_size != nullptr) { in Alloc()
158 *usable_size = allocation_size; in Alloc()
202 size_t LargeObjectMapSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument
[all …]
Dbump_pointer_space.h54 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
57 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
64 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize() argument
66 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize()
78 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
Dzygote_space.h49 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
51 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE;
Dmalloc_space.h57 size_t* bytes_allocated, size_t* usable_size,
61 size_t* usable_size, size_t* bytes_tl_bulk_allocated) = 0;
64 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
Dregion_space.h51 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
55 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
60 size_t* usable_size,
65 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size,
70 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize() argument
72 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize()
74 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
291 size_t* usable_size,
Dlarge_object_space.h137 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) REQUIRES(!lock_);
139 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
172 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE
175 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
Dspace_create_test.cc315 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local
321 &usable_size, in TEST_P()
326 EXPECT_EQ(usable_size, computed_usable_size); in TEST_P()
336 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local
341 &usable_size, in TEST_P()
346 EXPECT_EQ(usable_size, computed_usable_size); in TEST_P()
Dspace.h215 size_t* usable_size, size_t* bytes_tl_bulk_allocated) = 0;
219 size_t* usable_size, in AllocThreadUnsafe() argument
222 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
226 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
Drosalloc_space.cc156 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument
165 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
378 size_t RosAllocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
404 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
405 *usable_size = size_by_size; in AllocationSizeNonvirtual()
Dbump_pointer_space.cc222 size_t BumpPointerSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
224 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
225 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
Dspace_test.h72 size_t* usable_size, in Alloc() argument
80 usable_size, in Alloc()
92 size_t* usable_size, in AllocWithGrowth() argument
97 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, in AllocWithGrowth()
Dregion_space.cc538 size_t RegionSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
540 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
543 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
546 *usable_size = RoundUp(num_bytes, kRegionSize); in AllocationSizeNonvirtual()
/art/runtime/gc/
Dheap-inl.h79 size_t usable_size; in AllocObjectWithAllocator() local
93 usable_size = bytes_allocated; in AllocObjectWithAllocator()
94 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
105 usable_size = bytes_allocated; in AllocObjectWithAllocator()
106 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
112 &usable_size, &bytes_tl_bulk_allocated); in AllocObjectWithAllocator()
121 &usable_size, in AllocObjectWithAllocator()
138 DCHECK_GT(usable_size, 0u); in AllocObjectWithAllocator()
155 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
166 CHECK_LE(obj->SizeOf(), usable_size); in AllocObjectWithAllocator()
[all …]
/art/runtime/gc/allocator/
Drosalloc-inl.h32 size_t* usable_size, 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()
Drosalloc.h785 void* AllocFromRun(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
791 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
811 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
849 void* Alloc(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
/art/test/659-unpadded-array/
Dinfo.txt2 a bug when the request for allocation ended up using 'usable_size'
/art/runtime/mirror/
Dstring-inl.h48 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
68 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
104 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
135 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()

12