/art/runtime/gc/space/ |
D | memory_tool_malloc_space-inl.h | 34 size_t bytes_allocated, size_t usable_size, in AdjustForValgrind() argument 51 *usable_size_out = usable_size - 2 * kMemoryToolRedZoneBytes; in AdjustForValgrind() 70 usable_size - (num_bytes + kMemoryToolRedZoneBytes)); 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 …]
|
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 | 50 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 …]
|
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 59 if (UNLIKELY(usable_size != nullptr)) { in AllocThreadUnsafe() 60 *usable_size = num_bytes; in AllocThreadUnsafe()
|
D | dlmalloc_space.h | 51 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,
|
D | region_space-inl.h | 30 /* out */ size_t* usable_size, in Alloc() argument 33 return AllocNonvirtual<false>(num_bytes, bytes_allocated, usable_size, in Alloc() 40 /* out */ size_t* usable_size, in AllocThreadUnsafe() argument 43 return Alloc(self, num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocThreadUnsafe() 49 /* out */ size_t* usable_size, in AllocNonvirtual() argument 57 usable_size, in AllocNonvirtual() 66 usable_size, 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() 96 /* out */ size_t* usable_size, in Alloc() argument [all …]
|
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 | 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 | 57 size_t* usable_size, size_t* bytes_tl_bulk_allocated) in Alloc() argument 61 usable_size, bytes_tl_bulk_allocated); in Alloc() 68 if (usable_size != nullptr) { in Alloc() 69 *usable_size = num_bytes; // Since we have redzones, shrink the usable size. in Alloc() 74 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument 75 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize() 138 size_t* bytes_allocated, size_t* usable_size, in Alloc() argument 159 if (usable_size != nullptr) { in Alloc() 160 *usable_size = allocation_size; in Alloc() 204 size_t LargeObjectMapSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument [all …]
|
D | bump_pointer_space.h | 54 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)
|
D | zygote_space.h | 49 size_t* usable_size, size_t* bytes_tl_bulk_allocated) OVERRIDE; 51 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE;
|
D | malloc_space.h | 47 size_t* bytes_allocated, size_t* usable_size, 51 size_t* usable_size, size_t* bytes_tl_bulk_allocated) = 0; 54 virtual size_t AllocationSize(mirror::Object* obj, size_t* usable_size) = 0;
|
D | large_object_space.h | 138 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) REQUIRES(!lock_); 140 size_t* usable_size, size_t* bytes_tl_bulk_allocated) 173 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE 176 size_t* usable_size, size_t* bytes_tl_bulk_allocated)
|
D | space_create_test.cc | 315 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()
|
D | region_space.h | 53 /* out */ size_t* usable_size, 60 /* out */ size_t* usable_size, 67 /* out */ size_t* usable_size, 74 /* out */ size_t* usable_size, 80 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE in AllocationSize() argument 82 return AllocationSizeNonvirtual(obj, usable_size); in AllocationSize() 84 size_t AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) 329 /* out */ size_t* usable_size,
|
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 | 157 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 166 result = AllocCommon(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth() 379 size_t RosAllocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument 405 if (usable_size != nullptr) { in AllocationSizeNonvirtual() 406 *usable_size = size_by_size; in AllocationSizeNonvirtual()
|
D | bump_pointer_space.cc | 222 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()
|
D | space_test.h | 72 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()
|
D | region_space.cc | 577 size_t RegionSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument 579 if (usable_size != nullptr) { in AllocationSizeNonvirtual() 582 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual() 585 *usable_size = RoundUp(num_bytes, kRegionSize); in AllocationSizeNonvirtual()
|
D | dlmalloc_space.cc | 131 size_t* bytes_allocated, size_t* usable_size, in AllocWithGrowth() argument 140 result = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocWithGrowth()
|
/art/runtime/gc/ |
D | heap-inl.h | 80 size_t usable_size; in AllocObjectWithAllocator() local 94 usable_size = bytes_allocated; in AllocObjectWithAllocator() 95 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 106 usable_size = bytes_allocated; in AllocObjectWithAllocator() 107 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 113 &usable_size, &bytes_tl_bulk_allocated); in AllocObjectWithAllocator() 122 &usable_size, in AllocObjectWithAllocator() 139 DCHECK_GT(usable_size, 0u); in AllocObjectWithAllocator() 156 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 168 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 | string-inl.h | 57 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 77 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 113 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator() 144 void operator()(ObjPtr<Object> obj, size_t usable_size ATTRIBUTE_UNUSED) const in operator()
|