/art/runtime/gc/accounting/ |
D | space_bitmap_test.cc | 71 reinterpret_cast<mirror::Object*>(heap_begin + j * kObjectAlignment); in TEST_F() 82 reinterpret_cast<mirror::Object*>(heap_begin + i * kObjectAlignment); in TEST_F() 85 reinterpret_cast<mirror::Object*>(heap_begin + (i + j) * kObjectAlignment); in TEST_F() 100 for (size_t j = 0; j < heap_capacity; j += kObjectAlignment) { in TEST_F() 106 {0, 10 * KB + kObjectAlignment}, in TEST_F() 107 {kObjectAlignment, kObjectAlignment}, in TEST_F() 108 {kObjectAlignment, 2 * kObjectAlignment}, in TEST_F() 109 {kObjectAlignment, 5 * kObjectAlignment}, in TEST_F() 110 {1 * KB + kObjectAlignment, 2 * KB + 5 * kObjectAlignment}, in TEST_F() 118 for (uintptr_t i = 0; i < range.first; i += kObjectAlignment) { in TEST_F() [all …]
|
D | card_table_test.cc | 83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) { in TEST_F() 115 start_offset = (start_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F() 121 end_offset = (end_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
|
D | card_table.h | 120 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap,
|
D | space_bitmap.h | 257 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
|
D | space_bitmap.cc | 217 template class SpaceBitmap<kObjectAlignment>;
|
/art/runtime/ |
D | verify_object.cc | 35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl() 38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObjectImpl()
|
D | runtime_globals.h | 35 static constexpr size_t kObjectAlignment = 1u << kObjectAlignmentShift; variable
|
D | image.cc | 141 static const size_t kStartPos = RoundUp(sizeof(ImageHeader), kObjectAlignment); in VisitObjects() 145 pos += RoundUp(object->SizeOf(), kObjectAlignment); in VisitObjects()
|
D | obj_ptr-inl.h | 56 DCHECK_ALIGNED(ref, kObjectAlignment); in Encode()
|
D | class_table.h | 103 static const uint32_t kHashMask = kObjectAlignment - 1;
|
D | fault_handler.cc | 319 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
|
D | image.h | 74 static_assert(kObjectAlignment == 8, "Alignment check");
|
/art/tools/cpp-define-generator/ |
D | globals.def | 60 art::kObjectAlignment - 1) 62 ~static_cast<uint32_t>(art::kObjectAlignment - 1)) 64 ~static_cast<uint64_t>(art::kObjectAlignment - 1))
|
/art/runtime/gc/ |
D | heap_test.cc | 89 const size_t heap_capacity = kObjectAlignment * (sizeof(intptr_t) * 8 + 1); in TEST_F() 93 reinterpret_cast<mirror::Object*>(&heap_begin[heap_capacity - kObjectAlignment]); in TEST_F()
|
D | heap_verification_test.cc | 68 reinterpret_cast<const void*>(uint_klass + kObjectAlignment))); in TEST_F() 99 EXPECT_FALSE(v->IsValidClass(reinterpret_cast<const void*>(uint_klass - kObjectAlignment))); in TEST_F() 134 LOG(INFO) << v->DumpObjectInfo(reinterpret_cast<const void*>(uint_klass - kObjectAlignment), in TEST_F()
|
D | verification.cc | 78 oss << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in DumpObjectInfo() 111 << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in LogHeapCorruption() 133 return IsAligned<kObjectAlignment>(addr) && IsAddressInHeapSpace(addr, out_space); in IsValidHeapObjectAddress()
|
D | heap-inl.h | 357 DCHECK_ALIGNED(alloc_size, kObjectAlignment); in TryToAllocate() 360 static_assert(kObjectAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
|
D | heap.cc | 1528 return IsAligned<kObjectAlignment>(addr) && FindSpaceFromAddress(addr) != nullptr; in IsValidObjectAddress() 1539 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj.Ptr()))) { in IsLiveObjectLocked() 1643 CHECK_ALIGNED(obj.Ptr(), kObjectAlignment) << "Object isn't aligned"; in VerifyObjectBody() 1646 CHECK_ALIGNED(c, kObjectAlignment) << "Class " << c << " not aligned in object " << obj; in VerifyObjectBody() 2352 prev = object_addr + RoundUp(obj->SizeOf<kDefaultVerifyFlags>(), kObjectAlignment); in BuildBins() 2386 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject() 4112 RoundUp(c->GetObjectSize(), kObjectAlignment) == in CheckPreconditionsForAllocObject() 4113 RoundUp(byte_count, kObjectAlignment))) in CheckPreconditionsForAllocObject()
|
D | heap.h | 661 void MarkAllocStack(accounting::SpaceBitmap<kObjectAlignment>* bitmap1, 662 accounting::SpaceBitmap<kObjectAlignment>* bitmap2,
|
/art/runtime/mirror/ |
D | string-alloc-inl.h | 173 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc() 181 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc() 183 const size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / block_size); in Alloc()
|
D | string.h | 81 return RoundUp(size, kObjectAlignment); in SizeOf()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.h | 45 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap; 298 accounting::SpaceBitmap<kObjectAlignment>* bitmap)
|
/art/dex2oat/linker/ |
D | image_writer.h | 54 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap; 340 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
|
D | image_writer.cc | 935 DCHECK_ALIGNED(new_offset, kObjectAlignment); in AssignImageOffset() 1207 size_t offset_delta = RoundUp(object_size, kObjectAlignment); // 64-bit alignment in AssignImageBinSlot() 2298 image_objects_offset_begin_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); // 64-bit-alignment in CalculateNewObjectOffsets() 2482 const size_t object_size = RoundUp(obj->SizeOf(), kObjectAlignment); in CalculateNewObjectOffsets() 2494 bin_offset += kObjectAlignment; in CalculateNewObjectOffsets() 2495 region_alignment_wasted_ += kObjectAlignment; in CalculateNewObjectOffsets() 2496 image_info.image_end_ += kObjectAlignment; in CalculateNewObjectOffsets() 3495 DCHECK_ALIGNED(GetIndex(), kObjectAlignment); in BinSlot()
|
/art/runtime/gc/space/ |
D | region_space.h | 228 static constexpr size_t kAlignment = kObjectAlignment;
|