Home
last modified time | relevance | path

Searched refs:kObjectAlignment (Results 1 – 25 of 29) sorted by relevance

12

/art/runtime/
Dverify_object-inl.h35 bool failed = !IsAligned<kObjectAlignment>(obj); in VerifyObject()
38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObject()
Dglobals.h44 static constexpr size_t kObjectAlignment = 8; variable
Dasm_support.h347 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()
Dfault_handler.cc361 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
/art/runtime/gc/accounting/
Dspace_bitmap_test.cc70 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()
Dcard_table_test.cc83 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()
Dcard_table.h107 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap, uint8_t* scan_begin, uint8_t* scan_end,
Dspace_bitmap.h231 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
Dspace_bitmap.cc267 template class SpaceBitmap<kObjectAlignment>;
/art/runtime/gc/
Dheap_test.cc67 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()
Dheap.cc796 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()
Dheap.h576 void MarkAllocStack(accounting::SpaceBitmap<kObjectAlignment>* bitmap1,
577 accounting::SpaceBitmap<kObjectAlignment>* bitmap2,
/art/runtime/mirror/
Dstring-inl.h152 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/
Dconcurrent_copying.h42 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
205 std::vector<accounting::SpaceBitmap<kObjectAlignment>*> cc_bitmaps_;
206 accounting::SpaceBitmap<kObjectAlignment>* region_space_bitmap_;
Dconcurrent_copying.cc1705 CHECK_ALIGNED(byte_size, kObjectAlignment); in FillWithDummyObject()
/art/imgdiag/
Dimgdiag.cc512 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/
Dimage_space.cc599 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()
Dregion_space.h169 static constexpr size_t kAlignment = kObjectAlignment;
/art/compiler/
Dimage_writer.h259 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
Dimage_writer.cc361 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/
Dhprof.cc1355 reinterpret_cast<uintptr_t>(s) + kObjectAlignment); in DumpHeapInstanceObject()
/art/compiler/optimizing/
Dintrinsics_mips64.cc1444 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
Dintrinsics_arm64.cc1271 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
Dintrinsics_arm.cc1085 static_assert(IsAligned<4>(kObjectAlignment), "String of odd length is not zero padded"); in VisitStringEquals()
/art/oatdump/
Doatdump.cc1663 size_t alignment_bytes = RoundUp(object_bytes, kObjectAlignment) - object_bytes; in Callback()

12