/art/runtime/base/ |
D | arena_allocator_test.cc | 137 for (size_t size = 1; size <= ArenaAllocator::kAlignment + 1; ++size) { in TEST_F() 139 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(allocation)) in TEST_F() 157 const size_t original_size = ArenaAllocator::kAlignment * 2; in TEST_F() 160 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() 170 const size_t original_size = ArenaAllocator::kAlignment * 2; in TEST_F() 173 const size_t new_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F() 183 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F() 186 const size_t new_size = ArenaAllocator::kAlignment * 4; in TEST_F() 196 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F() 199 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() [all …]
|
D | scoped_arena_allocator.h | 69 static constexpr size_t kAlignment = 8u; variable 94 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc() 102 ptr += kAlignment; in Alloc()
|
D | arena_allocator.h | 295 bytes = RoundUp(bytes, kAlignment); 301 DCHECK_ALIGNED(ret, kAlignment); 335 const size_t aligned_ptr_size = RoundUp(ptr_size, kAlignment); 341 const size_t aligned_new_size = RoundUp(new_size, kAlignment); 348 DCHECK_ALIGNED(ptr_, kAlignment); 383 static constexpr size_t kAlignment = 8u; variable
|
D | arena_allocator.cc | 470 DCHECK_ALIGNED(begin_, kAlignment); in AllocFromNewArena()
|
/art/runtime/gc/accounting/ |
D | space_bitmap.cc | 34 template<size_t kAlignment> 35 size_t SpaceBitmap<kAlignment>::ComputeBitmapSize(uint64_t capacity) { in ComputeBitmapSize() 36 const uint64_t kBytesCoveredPerWord = kAlignment * kBitsPerIntPtrT; in ComputeBitmapSize() 40 template<size_t kAlignment> 41 size_t SpaceBitmap<kAlignment>::ComputeHeapSize(uint64_t bitmap_bytes) { in ComputeHeapSize() 42 return bitmap_bytes * kBitsPerByte * kAlignment; in ComputeHeapSize() 45 template<size_t kAlignment> 46 SpaceBitmap<kAlignment>* SpaceBitmap<kAlignment>::CreateFromMemMap( in CreateFromMemMap() 54 template<size_t kAlignment> 55 SpaceBitmap<kAlignment>::SpaceBitmap(const std::string& name, in SpaceBitmap() [all …]
|
D | space_bitmap-inl.h | 32 template<size_t kAlignment> 33 inline bool SpaceBitmap<kAlignment>::AtomicTestAndSet(const mirror::Object* obj) { in AtomicTestAndSet() 54 template<size_t kAlignment> 55 inline bool SpaceBitmap<kAlignment>::Test(const mirror::Object* obj) const { in Test() 64 template<size_t kAlignment> template<typename Visitor> 65 inline void SpaceBitmap<kAlignment>::VisitMarkedRange(uintptr_t visit_begin, in VisitMarkedRange() 70 for (uintptr_t i = visit_begin; i < visit_end; i += kAlignment) { in VisitMarkedRange() 86 const size_t bit_start = (offset_start / kAlignment) % kBitsPerIntPtrT; in VisitMarkedRange() 87 const size_t bit_end = (offset_end / kAlignment) % kBitsPerIntPtrT; in VisitMarkedRange() 112 mirror::Object* obj = reinterpret_cast<mirror::Object*>(ptr_base + shift * kAlignment); in VisitMarkedRange() [all …]
|
D | bitmap.cc | 80 template<size_t kAlignment> 81 MemoryRangeBitmap<kAlignment>* MemoryRangeBitmap<kAlignment>::Create( in Create() 83 CHECK_ALIGNED(cover_begin, kAlignment); in Create() 84 CHECK_ALIGNED(cover_end, kAlignment); in Create() 85 const size_t num_bits = (cover_end - cover_begin) / kAlignment; in Create() 90 template<size_t kAlignment> 91 MemoryRangeBitmap<kAlignment>* MemoryRangeBitmap<kAlignment>::CreateFromMemMap( in CreateFromMemMap()
|
D | space_bitmap.h | 40 template<size_t kAlignment> 62 return offset / kAlignment / kBitsPerIntPtrT; in OffsetToIndex() 67 return static_cast<T>(index * kAlignment * kBitsPerIntPtrT); in IndexToOffset() 71 return (offset / kAlignment) % kBitsPerIntPtrT; in OffsetBitIndex() 123 for (; visit_begin < visit_end; visit_begin += kAlignment) { in VisitRange() 233 template<size_t kAlignment> 234 std::ostream& operator << (std::ostream& stream, const SpaceBitmap<kAlignment>& bitmap);
|
D | bitmap.h | 127 template<size_t kAlignment> 147 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex() 155 return (addr - CoverBegin()) / kAlignment; in BitIndexFromAddr() 181 : Bitmap(mem_map, num_bits), cover_begin_(begin), cover_end_(begin + kAlignment * num_bits) { in MemoryRangeBitmap()
|
D | space_bitmap_test.cc | 155 template <size_t kAlignment> 169 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest() 183 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest() 185 size_t end = offset + RoundDown(r.next() % (remain + 1), kAlignment); in RunTest() 191 for (uintptr_t k = offset; k < end; k += kAlignment) { in RunTest()
|
D | card_table.h | 43 template<size_t kAlignment> class SpaceBitmap;
|
/art/runtime/gc/space/ |
D | bump_pointer_space-inl.h | 31 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc() 48 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe() 67 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtualWithoutAccounting()
|
D | large_object_space.cc | 259 return AlignSize() * FreeListSpace::kAlignment; in ByteSize() 264 DCHECK_ALIGNED(size, FreeListSpace::kAlignment); in SetByteSize() 265 alloc_size_ = (size / FreeListSpace::kAlignment) | (free ? kFlagFree : 0u); in SetByteSize() 304 return GetPrevFree() * FreeListSpace::kAlignment; in GetPrevFreeBytes() 308 DCHECK_ALIGNED(bytes, FreeListSpace::kAlignment); in SetPrevFreeBytes() 309 prev_free_ = bytes / FreeListSpace::kAlignment; in SetPrevFreeBytes() 348 CHECK_EQ(size % kAlignment, 0U); in Create() 362 CHECK_ALIGNED(space_capacity, kAlignment); in FreeListSpace() 363 const size_t alloc_info_size = sizeof(AllocationInfo) * (space_capacity / kAlignment); in FreeListSpace() 406 DCHECK_ALIGNED(obj, kAlignment); in Free() [all …]
|
D | region_space-inl.h | 30 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc() 47 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtual() 95 DCHECK_ALIGNED(num_bytes, kAlignment); in Alloc() 236 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject() 243 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocLarge()
|
D | bump_pointer_space.cc | 93 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject() 141 bytes = RoundUp(bytes, kAlignment); in AllocBlock() 225 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
|
D | large_object_space.h | 168 static constexpr size_t kAlignment = kPageSize; 187 return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; in GetSlotIndexForAddress() 193 return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; in GetAllocationAddressForSlot()
|
D | bump_pointer_space.h | 166 static constexpr size_t kAlignment = 8; variable 197 static_assert(sizeof(BlockHeader) % kAlignment == 0,
|
D | region_space.cc | 118 DCHECK(full_region_.Alloc(kAlignment, &ignored, nullptr, &ignored) == nullptr); in RegionSpace() 543 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
|
/art/runtime/gc/ |
D | heap-inl.h | 82 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator() 262 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate() 342 alloc_size = RoundUp(alloc_size, space::RegionSpace::kAlignment); in TryToAllocate() 353 static_assert(space::RegionSpace::kAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate() 355 static_assert(kObjectAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
|
/art/runtime/mirror/ |
D | dex_cache.cc | 56 static_assert(ArenaAllocator::kAlignment == 8, "Expecting arena alignment of 8."); in InitializeDexCache()
|
/art/runtime/gc/collector/ |
D | mark_compact.cc | 80 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject() 104 DCHECK_ALIGNED(obj, space::BumpPointerSpace::kAlignment); in CalculateObjectForwardingAddresses()
|
D | concurrent_copying.cc | 1558 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in ProcessMarkStackRef() 2186 CHECK_ALIGNED(alloc_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 2188 size_t min_object_size = RoundUp(sizeof(mirror::Object), space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 2207 CHECK_ALIGNED(it->first - alloc_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 2217 CHECK_ALIGNED(byte_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 2226 CHECK_ALIGNED(byte_size - alloc_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 2257 ? RoundUp(obj_size, space::RegionSpace::kAlignment) in Copy()
|
D | concurrent_copying.h | 44 template <size_t kAlignment> class SpaceBitmap;
|
/art/runtime/entrypoints/quick/ |
D | quick_alloc_entrypoints.cc | 45 byte_count = RoundUp(byte_count, gc::space::BumpPointerSpace::kAlignment); in artAllocObjectFromCode()
|
/art/compiler/ |
D | image_writer.h | 52 template <size_t kAlignment> class SpaceBitmap;
|