/art/runtime/gc/space/ |
D | memory_tool_malloc_space-inl.h | 36 size_t usable_size, in AdjustForMemoryTool() argument 54 *usable_size_out = usable_size - 2 * kMemoryToolRedZoneBytes; in AdjustForMemoryTool() 73 usable_size - (num_bytes + kMemoryToolRedZoneBytes)); in AdjustForMemoryTool() 99 size_t usable_size; in AllocWithGrowth() local 104 &usable_size, in AllocWithGrowth() 114 usable_size, in AllocWithGrowth() 135 size_t usable_size; in Alloc() local 140 &usable_size, in Alloc() 150 usable_size, in Alloc() 171 size_t usable_size; in AllocThreadUnsafe() local [all …]
|
D | dlmalloc_space-inl.h | 30 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()
|
D | rosalloc_space.h | 57 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 60 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override { in Alloc() argument 61 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc() 65 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in AllocThreadUnsafe() argument 67 return AllocNonvirtualThreadUnsafe(self, num_bytes, bytes_allocated, usable_size, in AllocThreadUnsafe() 70 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override { in AllocationSize() argument 71 return AllocationSizeNonvirtual<true>(obj, usable_size); in AllocationSize() 79 size_t* usable_size, size_t* bytes_tl_bulk_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 [all …]
|
D | bump_pointer_space-inl.h | 29 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 61 if (UNLIKELY(usable_size != nullptr)) { in AllocThreadUnsafe() 62 *usable_size = num_bytes; in AllocThreadUnsafe()
|
D | dlmalloc_space.h | 59 size_t* usable_size, 65 size_t* usable_size, in Alloc() argument 67 return AllocNonvirtual(self, num_bytes, bytes_allocated, usable_size, in Alloc() 71 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override { in AllocationSize() argument 72 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize() 97 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 101 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size); 169 size_t* usable_size,
|
D | memory_tool_malloc_space.h | 35 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;
|
D | region_space-inl.h | 34 /* out */ size_t* usable_size, in Alloc() argument 37 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc() 44 /* out */ size_t* usable_size, in AllocThreadUnsafe() argument 47 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe() 53 /* out */ size_t* usable_size, in AllocNonvirtual() argument 61 usable_size, in AllocNonvirtual() 71 usable_size, 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() 101 /* out */ size_t* usable_size, in Alloc() argument [all …]
|
D | rosalloc_space-inl.h | 33 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()
|
D | large_object_space.cc | 55 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() 137 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument 161 if (usable_size != nullptr) { in Alloc() 162 *usable_size = allocation_size; in Alloc() 208 size_t LargeObjectMapSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument [all …]
|
D | bump_pointer_space.h | 56 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override; 59 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 66 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override in AllocationSize() argument 68 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize() 80 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size)
|
D | zygote_space.h | 52 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override; 54 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override;
|
D | malloc_space.h | 49 size_t* bytes_allocated, size_t* usable_size, 53 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override = 0; 56 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override = 0;
|
D | space_create_test.cc | 312 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local 318 &usable_size, in TEST_P() 323 EXPECT_EQ(usable_size, computed_usable_size); in TEST_P() 333 size_t allocation_size, usable_size, bytes_tl_bulk_allocated; in TEST_P() local 338 &usable_size, in TEST_P() 343 EXPECT_EQ(usable_size, computed_usable_size); in TEST_P()
|
D | region_space.h | 71 /* out */ size_t* usable_size, 78 /* out */ size_t* usable_size, 85 /* out */ size_t* usable_size, 92 /* out */ size_t* usable_size, 98 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override in AllocationSize() argument 100 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize() 102 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) 435 /* out */ size_t* usable_size, 725 /* out */ size_t* usable_size,
|
D | large_object_space.h | 157 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override REQUIRES(!lock_); 159 size_t* usable_size, size_t* bytes_tl_bulk_allocated) override 192 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override 195 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
|
D | space.h | 215 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;
|
D | rosalloc_space.cc | 203 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 212 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth() 449 size_t RosAllocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument 475 if (usable_size != nullptr) { in AllocationSizeNonvirtual() 476 *usable_size = size_by_size; in AllocationSizeNonvirtual()
|
D | bump_pointer_space.cc | 231 size_t BumpPointerSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument 233 if (usable_size != nullptr) { in AllocationSizeNonvirtual() 234 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
|
D | space_test.h | 71 size_t* usable_size, in Alloc() argument 79 usable_size, in Alloc() 91 size_t* usable_size, in AllocWithGrowth() argument 96 mirror::Object* obj = alloc_space->AllocWithGrowth(self, bytes, bytes_allocated, usable_size, in AllocWithGrowth()
|
D | dlmalloc_space.cc | 168 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 177 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
|
/art/runtime/gc/ |
D | heap-inl.h | 82 size_t usable_size; in AllocObjectWithAllocator() local 119 usable_size = bytes_allocated; in AllocObjectWithAllocator() 120 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 131 usable_size = bytes_allocated; in AllocObjectWithAllocator() 132 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 139 &usable_size, &bytes_tl_bulk_allocated); in AllocObjectWithAllocator() 149 &usable_size, in AllocObjectWithAllocator() 169 DCHECK_GT(usable_size, 0u); in AllocObjectWithAllocator() 181 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 202 CHECK_LE(obj->SizeOf(), usable_size); in AllocObjectWithAllocator() [all …]
|
/art/runtime/gc/allocator/ |
D | rosalloc-inl.h | 32 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()
|
/art/test/659-unpadded-array/ |
D | info.txt | 2 a bug when the request for allocation ended up using 'usable_size'
|
/art/runtime/mirror/ |
D | array-alloc-inl.h | 70 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 94 void operator()(ObjPtr<Object> obj, size_t usable_size) const in operator() 99 int32_t length = (usable_size - header_size_) >> component_size_shift_; in operator()
|
D | string-alloc-inl.h | 43 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 63 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 99 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 130 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
|