/art/runtime/ |
D | verify_object-inl.h | 35 bool failed = !IsAligned<kObjectAlignment>(obj); in VerifyObject() 38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObject()
|
D | globals.h | 44 static constexpr size_t kObjectAlignment = 8; variable
|
D | asm_support.h | 347 ADD_TEST_EQ(static_cast<size_t>(OBJECT_ALIGNMENT_MASK), art::kObjectAlignment - 1) in CheckAsmSupportOffsetsAndSizes() 351 ~static_cast<uint32_t>(art::kObjectAlignment - 1)) in CheckAsmSupportOffsetsAndSizes()
|
D | fault_handler.cc | 361 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
|
/art/runtime/gc/accounting/ |
D | space_bitmap_test.cc | 70 reinterpret_cast<mirror::Object*>(heap_begin + j * kObjectAlignment); in TEST_F() 81 reinterpret_cast<mirror::Object*>(heap_begin + i * kObjectAlignment); in TEST_F() 84 reinterpret_cast<mirror::Object*>(heap_begin + (i + j) * kObjectAlignment); in TEST_F() 161 RunTest<kObjectAlignment>(); in TEST_F()
|
D | card_table_test.cc | 83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) { in TEST_F() 114 start_offset = (start_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F() 120 end_offset = (end_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
|
D | card_table.h | 107 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap, uint8_t* scan_begin, uint8_t* scan_end,
|
D | space_bitmap.h | 231 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
|
D | space_bitmap.cc | 267 template class SpaceBitmap<kObjectAlignment>;
|
/art/runtime/gc/ |
D | heap_test.cc | 67 const size_t heap_capacity = kObjectAlignment * (sizeof(intptr_t) * 8 + 1); in TEST_F() 71 reinterpret_cast<mirror::Object*>(&heap_begin[heap_capacity - kObjectAlignment]); in TEST_F()
|
D | heap.cc | 796 if (IsAligned<kObjectAlignment>(obj)) { in DumpObject() 1487 return IsAligned<kObjectAlignment>(obj) && FindSpaceFromObject(obj, true) != nullptr; in IsValidObjectAddress() 1495 if (obj == nullptr || !IsAligned<kObjectAlignment>(obj)) { in IsValidContinuousSpaceObjectAddress() 1508 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj))) { in IsLiveObjectLocked() 1612 CHECK_ALIGNED(obj, kObjectAlignment) << "Object isn't aligned"; in VerifyObjectBody() 1615 CHECK_ALIGNED(c, kObjectAlignment) << "Class " << c << " not aligned in object " << obj; in VerifyObjectBody() 2350 context->prev_ = object_addr + RoundUp(obj->SizeOf(), kObjectAlignment); in Callback() 2371 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject()
|
D | heap.h | 576 void MarkAllocStack(accounting::SpaceBitmap<kObjectAlignment>* bitmap1, 577 accounting::SpaceBitmap<kObjectAlignment>* bitmap2,
|
/art/runtime/mirror/ |
D | string-inl.h | 152 return RoundUp(size, kObjectAlignment); in SizeOf() 167 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc() 174 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc() 176 constexpr size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / sizeof(uint16_t)); in Alloc()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.h | 42 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap; 205 std::vector<accounting::SpaceBitmap<kObjectAlignment>*> cc_bitmaps_; 206 accounting::SpaceBitmap<kObjectAlignment>* region_space_bitmap_;
|
D | concurrent_copying.cc | 1705 CHECK_ALIGNED(byte_size, kObjectAlignment); in FillWithDummyObject()
|
/art/imgdiag/ |
D | imgdiag.cc | 512 const uint8_t* current = begin_image_ptr + RoundUp(sizeof(ImageHeader), kObjectAlignment); in DumpImageDiffMap() 514 CHECK_ALIGNED(current, kObjectAlignment); in DumpImageDiffMap() 539 RoundUp(object_address + obj->SizeOf(), kObjectAlignment)); in DumpImageDiffMap() 627 current += RoundUp(obj->SizeOf(), kObjectAlignment); in DumpImageDiffMap()
|
/art/runtime/gc/space/ |
D | image_space.cc | 599 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations() 601 CHECK_ALIGNED(current, kObjectAlignment); in VerifyImageAllocations() 608 current += RoundUp(obj->SizeOf(), kObjectAlignment); in VerifyImageAllocations() 796 static_assert(kObjectAlignment == 8u, "array bit may be in another object"); in UpdatePointerArrayContents() 798 reinterpret_cast<uintptr_t>(array) + kObjectAlignment); in UpdatePointerArrayContents()
|
D | region_space.h | 169 static constexpr size_t kAlignment = kObjectAlignment;
|
/art/compiler/ |
D | image_writer.h | 259 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
|
D | image_writer.cc | 361 DCHECK_ALIGNED(new_offset, kObjectAlignment); in AssignImageOffset() 597 size_t offset_delta = RoundUp(object_size, kObjectAlignment); // 64-bit alignment in AssignImageBinSlot() 1345 image_objects_offset_begin_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); // 64-bit-alignment in CalculateNewObjectOffsets() 2182 DCHECK_ALIGNED(GetIndex(), kObjectAlignment); in BinSlot()
|
/art/runtime/hprof/ |
D | hprof.cc | 1355 reinterpret_cast<uintptr_t>(s) + kObjectAlignment); in DumpHeapInstanceObject()
|
/art/compiler/optimizing/ |
D | intrinsics_mips64.cc | 1444 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
|
D | intrinsics_arm64.cc | 1271 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
|
D | intrinsics_arm.cc | 1085 static_assert(IsAligned<4>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
|
/art/oatdump/ |
D | oatdump.cc | 1663 size_t alignment_bytes = RoundUp(object_bytes, kObjectAlignment) - object_bytes; in Callback()
|