Home
last modified time | relevance | path

Searched refs:kAlignment (Results 1 – 25 of 41) sorted by relevance

12

/aosp12/art/libartbase/base/
H A Darena_allocator_test.cc174 const size_t new_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
184 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
197 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
214 ArenaAllocator::kAlignment * 5; in TEST_F()
229 ArenaAllocator::kAlignment / 2; in TEST_F()
234 ArenaAllocator::kAlignment / 2; in TEST_F()
267 const size_t new_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
280 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
297 const size_t original_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F()
318 ArenaAllocator::kAlignment * 5; in TEST_F()
[all …]
H A Dscoped_arena_allocator.h73 static constexpr size_t kAlignment = 8u; variable
102 size_t rounded_bytes = RoundUp(bytes + (kIsDebugBuild ? kAlignment : 0u), kAlignment); in Alloc()
110 ptr += kAlignment; in Alloc()
H A Darena_allocator.h272 bytes = RoundUp(bytes, kAlignment);
278 DCHECK_ALIGNED(ret, kAlignment);
312 const size_t aligned_ptr_size = RoundUp(ptr_size, kAlignment);
318 const size_t aligned_new_size = RoundUp(new_size, kAlignment);
325 DCHECK_ALIGNED(ptr_, kAlignment);
360 static constexpr size_t kAlignment = 8u; variable
/aosp12/art/runtime/gc/accounting/
H A Dspace_bitmap.cc34 template<size_t kAlignment>
45 template<size_t kAlignment>
50 template<size_t kAlignment>
51 SpaceBitmap<kAlignment> SpaceBitmap<kAlignment>::CreateFromMemMap( in CreateFromMemMap()
59 template<size_t kAlignment>
76 template<size_t kAlignment>
79 template<size_t kAlignment>
80 SpaceBitmap<kAlignment> SpaceBitmap<kAlignment>::Create( in Create()
98 template<size_t kAlignment>
110 template<size_t kAlignment>
[all …]
H A Dspace_bitmap-inl.h33 template<size_t kAlignment>
55 template<size_t kAlignment>
66 template<size_t kAlignment>
73 for (uintptr_t i = visit_begin; i < visit_end; i += kAlignment) { in VisitMarkedRange()
89 const size_t bit_start = (offset_start / kAlignment) % kBitsPerIntPtrT; in VisitMarkedRange()
90 const size_t bit_end = (offset_end / kAlignment) % kBitsPerIntPtrT; in VisitMarkedRange()
164 template<size_t kAlignment>
166 void SpaceBitmap<kAlignment>::Walk(Visitor&& visitor) { in Walk()
185 template<size_t kAlignment>
187 inline bool SpaceBitmap<kAlignment>::Modify(const mirror::Object* obj) { in Modify()
[all …]
H A Dbitmap.cc82 template<size_t kAlignment>
83 MemoryRangeBitmap<kAlignment>* MemoryRangeBitmap<kAlignment>::Create( in Create()
85 CHECK_ALIGNED(cover_begin, kAlignment); in Create()
86 CHECK_ALIGNED(cover_end, kAlignment); in Create()
87 const size_t num_bits = (cover_end - cover_begin) / kAlignment; in Create()
93 template<size_t kAlignment>
94 MemoryRangeBitmap<kAlignment>* MemoryRangeBitmap<kAlignment>::CreateFromMemMap( in CreateFromMemMap()
H A Dspace_bitmap_test.cc156 template <size_t kAlignment, typename TestFn>
169 size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest()
180 const size_t offset = RoundDown(r.next() % heap_capacity, kAlignment); in RunTest()
182 const size_t end = offset + RoundDown(r.next() % (remain + 1), kAlignment); in RunTest()
185 for (uintptr_t k = offset; k < end; k += kAlignment) { in RunTest()
199 template <size_t kAlignment>
212 RunTest<kAlignment>(count_test_fn); in RunTestCount()
223 template <size_t kAlignment>
249 RunTest<kAlignment>(order_test_fn); in RunTestOrder()
H A Dspace_bitmap.h40 template<size_t kAlignment>
68 return offset / kAlignment / kBitsPerIntPtrT; in OffsetToIndex()
75 return static_cast<T>(index * kAlignment * kBitsPerIntPtrT); in IndexToOffset()
82 return (offset / kAlignment) % kBitsPerIntPtrT; in OffsetBitIndex()
129 for (; visit_begin < visit_end; visit_begin += kAlignment) { in VisitRange()
267 template<size_t kAlignment>
268 std::ostream& operator << (std::ostream& stream, const SpaceBitmap<kAlignment>& bitmap);
H A Dbitmap.h126 template<size_t kAlignment>
146 const uintptr_t addr = CoverBegin() + bit_index * kAlignment; in AddrFromBitIndex()
154 return (addr - CoverBegin()) / kAlignment; in BitIndexFromAddr()
182 cover_end_(begin + kAlignment * num_bits) {} in MemoryRangeBitmap()
H A Dcard_table.h42 template<size_t kAlignment> class SpaceBitmap;
/aosp12/art/runtime/gc/space/
H A Dlarge_object_space.cc272 return AlignSize() * FreeListSpace::kAlignment; in ByteSize()
277 DCHECK_ALIGNED(size, FreeListSpace::kAlignment); in SetByteSize()
317 return GetPrevFree() * FreeListSpace::kAlignment; in GetPrevFreeBytes()
321 DCHECK_ALIGNED(bytes, FreeListSpace::kAlignment); in SetPrevFreeBytes()
322 prev_free_ = bytes / FreeListSpace::kAlignment; in SetPrevFreeBytes()
361 CHECK_EQ(size % kAlignment, 0U); in Create()
380 CHECK_ALIGNED(space_capacity, kAlignment); in FreeListSpace()
430 DCHECK_ALIGNED(obj, kAlignment); in Free()
435 DCHECK_ALIGNED(allocation_size, kAlignment); in Free()
471 DCHECK_ALIGNED(next_next_info->ByteSize(), kAlignment); in Free()
[all …]
H A Dbump_pointer_space-inl.h31 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
48 num_bytes = RoundUp(num_bytes, kAlignment); in AllocThreadUnsafe()
69 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtualWithoutAccounting()
H A Dbump_pointer_space.cc102 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject()
150 bytes = RoundUp(bytes, kAlignment); in AllocBlock()
238 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
H A Dregion_space-inl.h36 num_bytes = RoundUp(num_bytes, kAlignment); in Alloc()
55 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocNonvirtual()
104 DCHECK_ALIGNED(num_bytes, kAlignment); in Alloc()
309 return reinterpret_cast<mirror::Object*>(RoundUp(position, kAlignment)); in GetNextObject()
317 DCHECK_ALIGNED(num_bytes, kAlignment); in AllocLarge()
H A Dlarge_object_space.h188 static constexpr size_t kAlignment = kPageSize;
207 return (address - reinterpret_cast<uintptr_t>(Begin())) / kAlignment; in GetSlotIndexForAddress()
213 return reinterpret_cast<uintptr_t>(Begin()) + slot * kAlignment; in GetAllocationAddressForSlot()
H A Dregion_space.cc145 DCHECK(full_region_.Alloc(kAlignment, &ignored, nullptr, &ignored) == nullptr); in RegionSpace()
650 DCHECK_ALIGNED(obj, kAlignment); in CheckLiveBytesAgainstRegionBitmap()
663 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in CheckLiveBytesAgainstRegionBitmap()
679 IsPowerOfTwo(RegionSpace::kAlignment) && in PoisonUnevacuatedRange()
680 (kPoisonDeadObjectSize < RegionSpace::kAlignment), in PoisonUnevacuatedRange()
704 DCHECK_ALIGNED(obj, kAlignment); in PoisonDeadObjectsInUnevacuatedRegion()
995 prev_object_end = RoundUp(object_end, kAlignment); in GetLongestConsecutiveFreeBytes()
1008 *usable_size = RoundUp(num_bytes, kAlignment); in AllocationSizeNonvirtual()
H A Dbump_pointer_space.h168 static constexpr size_t kAlignment = 8; variable
199 static_assert(sizeof(BlockHeader) % kAlignment == 0,
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include/
H A DTestHarness.h206 static constexpr size_t kAlignment = 4;
213 mBuffer.reset(aligned_alloc(kAlignment, alignedSize()), free);
230 static_assert(kAlignment % sizeof(uint32_t) == 0); in createRandom()
252 size_t alignedSize() const { return ((mSize + kAlignment - 1) / kAlignment) * kAlignment; } in alignedSize()
/aosp12/art/runtime/gc/
H A Dheap-inl.h116 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator()
314 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate()
394 alloc_size = RoundUp(alloc_size, space::RegionSpace::kAlignment); in TryToAllocate()
405 static_assert(space::RegionSpace::kAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
407 static_assert(kObjectAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
/aosp12/system/extras/partition_tools/
H A Dlpmake.cc108 kAlignment = 'a', enumerator
178 { "alignment", required_argument, nullptr, (int)Option::kAlignment }, in main()
259 case Option::kAlignment: in main()
/aosp12/system/libfmq/fuzzer/
H A Dfmq_fuzzer.cpp42 static constexpr size_t kAlignment = 8; variable
43 static constexpr size_t kMaxNumElements = PAGE_SIZE * 10 / sizeof(payload_t) - kAlignment + 1;
/aosp12/art/libdexfile/dex/
H A Dcompact_offset_table.h64 static constexpr size_t kAlignment = sizeof(uint32_t); variable
H A Dstandard_dex_file.h36 static constexpr size_t kAlignment = 4; member
H A Ddex_file_structs.h197 static constexpr size_t kAlignment = sizeof(uint32_t); member
/aosp12/art/runtime/entrypoints/quick/
H A Dquick_alloc_entrypoints.cc52 static_assert(kObjectAlignment == gc::space::BumpPointerSpace::kAlignment, "Alignment check"); in artAllocObjectFromCode()
53 DCHECK_ALIGNED(byte_count, gc::space::BumpPointerSpace::kAlignment); in artAllocObjectFromCode()

12