Home
last modified time | relevance | path

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

12

/art/runtime/gc/space/
Dvalgrind_malloc_space-inl.h34 size_t bytes_allocated, size_t usable_size, in AdjustForValgrind() argument
51 *usable_size_out = usable_size - 2 * kValgrindRedZoneBytes; in AdjustForValgrind()
70 usable_size - (num_bytes + kValgrindRedZoneBytes)); in AdjustForValgrind()
93 size_t usable_size; in AllocWithGrowth() local
96 &bytes_allocated, &usable_size, in AllocWithGrowth()
104 bytes_allocated, usable_size, in AllocWithGrowth()
122 size_t usable_size; in Alloc() local
125 &bytes_allocated, &usable_size, &bytes_tl_bulk_allocated); in Alloc()
132 bytes_allocated, usable_size, in Alloc()
150 size_t usable_size; in AllocThreadUnsafe() local
[all …]
Dregion_space-inl.h27 size_t* usable_size, in Alloc() argument
30 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc()
36 size_t* usable_size, in AllocThreadUnsafe() argument
39 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
44 size_t* usable_size, 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 …]
Dbump_pointer_space-inl.h28 size_t* usable_size, in Alloc() argument
34 if (usable_size != nullptr) { in Alloc()
35 *usable_size = num_bytes; in Alloc()
44 size_t* usable_size, in AllocThreadUnsafe() argument
58 if (UNLIKELY(usable_size != nullptr)) { in AllocThreadUnsafe()
59 *usable_size = num_bytes; in AllocThreadUnsafe()
89 inline size_t BumpPointerSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) in AllocationSizeNonvirtual() argument
92 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
93 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
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 …]
Drosalloc_space-inl.h30 inline size_t RosAllocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
56 if (usable_size != nullptr) { in AllocationSizeNonvirtual()
57 *usable_size = size_by_size; in AllocationSizeNonvirtual()
64 size_t* bytes_allocated, size_t* usable_size, in AllocCommon() argument
84 if (usable_size != nullptr) { in AllocCommon()
85 *usable_size = rosalloc_usable_size; in AllocCommon()
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,
Dvalgrind_malloc_space.h37 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
40 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
42 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
45 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE;
Dlarge_object_space.cc50 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in Alloc() argument
54 usable_size, bytes_tl_bulk_allocated); in Alloc()
60 if (usable_size != nullptr) { in Alloc()
61 *usable_size = num_bytes; // Since we have redzones, shrink the usable size. in Alloc()
66 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
67 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize()
130 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument
160 if (usable_size != nullptr) { in Alloc()
161 *usable_size = allocation_size; in Alloc()
204 size_t LargeObjectMapSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument
[all …]
Dbump_pointer_space.h50 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
53 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
60 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize() argument
62 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize()
74 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
Dregion_space.h45 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
48 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
53 size_t* usable_size,
57 mirror::Object* AllocLarge(size_t num_bytes, size_t* bytes_allocated, size_t* usable_size,
62 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize() argument
64 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize()
66 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
274 size_t* usable_size,
Dlarge_object_space.h133 size_t AllocationSize(mirror::Object* obj, size_t* usable_size);
135 size_t* usable_size, size_t* bytes_tl_bulk_allocated);
165 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE
168 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE;
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.h58 size_t* bytes_allocated, size_t* usable_size,
62 size_t* usable_size, size_t* bytes_tl_bulk_allocated) = 0;
65 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
Dspace.h216 size_t* usable_size, size_t* bytes_tl_bulk_allocated) = 0;
220 size_t* usable_size, in AllocThreadUnsafe() argument
223 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe()
227 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
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()
373 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in AllocAndFreeListTestBody() local
376 &usable_size, &bytes_tl_bulk_allocated); in AllocAndFreeListTestBody()
380 EXPECT_EQ(usable_size, computed_usable_size); in AllocAndFreeListTestBody()
390 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in AllocAndFreeListTestBody() local
391 lots_of_objects[i] = AllocWithGrowth(space, self, 1024, &allocation_size, &usable_size, in AllocAndFreeListTestBody()
396 EXPECT_EQ(usable_size, computed_usable_size); in AllocAndFreeListTestBody()
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()
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()
/art/runtime/gc/
Dheap-inl.h70 size_t usable_size; in AllocObjectWithAllocator() local
88 usable_size = bytes_allocated; in AllocObjectWithAllocator()
89 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
102 usable_size = bytes_allocated; in AllocObjectWithAllocator()
103 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
109 &usable_size, &bytes_tl_bulk_allocated); in AllocObjectWithAllocator()
112 obj = AllocateInternalWithGc(self, allocator, byte_count, &bytes_allocated, &usable_size, in AllocObjectWithAllocator()
126 DCHECK_GT(usable_size, 0u); in AllocObjectWithAllocator()
146 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
152 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.h520 void* AllocFromRun(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
526 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
546 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
571 void* Alloc(Thread* self, size_t size, size_t* bytes_allocated, size_t* usable_size,
Drosalloc.cc459 size_t* usable_size, size_t* bytes_tl_bulk_allocated) { in AllocLargeObject() argument
461 DCHECK(usable_size != nullptr); in AllocLargeObject()
477 *usable_size = total_bytes; in AllocLargeObject()
632 size_t* usable_size, in AllocFromRunThreadUnsafe() argument
635 DCHECK(usable_size != nullptr); in AllocFromRunThreadUnsafe()
649 *usable_size = bracket_size; in AllocFromRunThreadUnsafe()
657 size_t* usable_size, size_t* bytes_tl_bulk_allocated) { in AllocFromRun() argument
659 DCHECK(usable_size != nullptr); in AllocFromRun()
751 *usable_size = bracket_size; in AllocFromRun()
764 *usable_size = bracket_size; in AllocFromRun()
/art/runtime/mirror/
Dstring-inl.h44 void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
63 void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
90 void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
113 void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
Darray-inl.h103 void operator()(Object* obj, size_t usable_size) const in operator()
105 UNUSED(usable_size); in operator()
128 void operator()(Object* obj, size_t usable_size) const in operator()
133 int32_t length = (usable_size - header_size_) >> component_size_shift_; in operator()
Dobject.cc109 void operator()(Object* obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator ()()

12