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

12

/art/runtime/
H A Dverify_object-inl.h35 bool failed = !IsAligned<kObjectAlignment>(obj);
38 failed = failed || !IsAligned<kObjectAlignment>(c);
H A Dglobals.h44 static constexpr size_t kObjectAlignment = 8; member in namespace:art
H A Dasm_support.h347 ADD_TEST_EQ(static_cast<size_t>(OBJECT_ALIGNMENT_MASK), art::kObjectAlignment - 1)
351 ~static_cast<uint32_t>(art::kObjectAlignment - 1))
H A Dfault_handler.cc361 if (!IsAligned<kObjectAlignment>(cls)) {
/art/runtime/gc/accounting/
H A Dspace_bitmap_test.cc70 reinterpret_cast<mirror::Object*>(heap_begin + j * kObjectAlignment);
81 reinterpret_cast<mirror::Object*>(heap_begin + i * kObjectAlignment);
84 reinterpret_cast<mirror::Object*>(heap_begin + (i + j) * kObjectAlignment);
161 RunTest<kObjectAlignment>();
H A Dcard_table_test.cc83 for (const uint8_t* addr = HeapBegin(); addr < HeapLimit(); addr += kObjectAlignment) {
114 start_offset = (start_offset + kObjectAlignment) % CardTable::kCardSize;
120 end_offset = (end_offset + kObjectAlignment) % CardTable::kCardSize;
H A Dcard_table.h107 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap, uint8_t* scan_begin, uint8_t* scan_end,
H A Dspace_bitmap.h231 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
H A Dspace_bitmap.cc267 template class SpaceBitmap<kObjectAlignment>;
/art/runtime/gc/
H A Dheap_test.cc67 const size_t heap_capacity = kObjectAlignment * (sizeof(intptr_t) * 8 + 1);
71 reinterpret_cast<mirror::Object*>(&heap_begin[heap_capacity - kObjectAlignment]);
H A Dheap.cc796 if (IsAligned<kObjectAlignment>(obj)) {
1487 return IsAligned<kObjectAlignment>(obj) && FindSpaceFromObject(obj, true) != nullptr;
1495 if (obj == nullptr || !IsAligned<kObjectAlignment>(obj)) {
1508 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj))) {
1612 CHECK_ALIGNED(obj, kObjectAlignment) << "Object isn't aligned";
1615 CHECK_ALIGNED(c, kObjectAlignment) << "Class " << c << " not aligned in object " << obj;
2350 context->prev_ = object_addr + RoundUp(obj->SizeOf(), kObjectAlignment);
2371 size_t alloc_size = RoundUp(obj_size, kObjectAlignment);
H A Dheap.h576 void MarkAllocStack(accounting::SpaceBitmap<kObjectAlignment>* bitmap1,
577 accounting::SpaceBitmap<kObjectAlignment>* bitmap2,
/art/runtime/mirror/
H A Dstring-inl.h148 // String.equals() intrinsics assume zero-padding up to kObjectAlignment,
152 return RoundUp(size, kObjectAlignment);
164 // String.equals() intrinsics assume zero-padding up to kObjectAlignment,
167 size_t alloc_size = RoundUp(size, kObjectAlignment);
174 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment),
175 "kObjectAlignment must be at least as big as Java char alignment");
176 constexpr size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / sizeof(uint16_t));
/art/runtime/gc/collector/
H A Dconcurrent_copying.h42 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
205 std::vector<accounting::SpaceBitmap<kObjectAlignment>*> cc_bitmaps_;
206 accounting::SpaceBitmap<kObjectAlignment>* region_space_bitmap_;
H A Dconcurrent_copying.cc1705 CHECK_ALIGNED(byte_size, kObjectAlignment);
/art/imgdiag/
H A Dimgdiag.cc512 const uint8_t* current = begin_image_ptr + RoundUp(sizeof(ImageHeader), kObjectAlignment);
514 CHECK_ALIGNED(current, kObjectAlignment);
539 RoundUp(object_address + obj->SizeOf(), kObjectAlignment));
627 current += RoundUp(obj->SizeOf(), kObjectAlignment);
/art/runtime/gc/space/
H A Dimage_space.cc599 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment);
601 CHECK_ALIGNED(current, kObjectAlignment);
608 current += RoundUp(obj->SizeOf(), kObjectAlignment);
796 static_assert(kObjectAlignment == 8u, "array bit may be in another object");
798 reinterpret_cast<uintptr_t>(array) + kObjectAlignment);
H A Dregion_space.h169 static constexpr size_t kAlignment = kObjectAlignment;
/art/compiler/
H A Dimage_writer.cc361 DCHECK_ALIGNED(new_offset, kObjectAlignment);
597 size_t offset_delta = RoundUp(object_size, kObjectAlignment); // 64-bit alignment
1345 image_objects_offset_begin_ = RoundUp(sizeof(ImageHeader), kObjectAlignment); // 64-bit-alignment
2182 DCHECK_ALIGNED(GetIndex(), kObjectAlignment); local
H A Dimage_writer.h259 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
/art/runtime/hprof/
H A Dhprof.cc1355 reinterpret_cast<uintptr_t>(s) + kObjectAlignment);
/art/compiler/optimizing/
H A Dintrinsics_mips64.cc1444 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded");
H A Dintrinsics_arm.cc1085 static_assert(IsAligned<4>(kObjectAlignment), "String of odd length is not zero padded");
H A Dintrinsics_arm64.cc1271 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded");
/art/oatdump/
H A Doatdump.cc1473 // Objects are kObjectAlignment-aligned.
1474 // CHECK_EQ(RoundUp(header_bytes, kObjectAlignment), object_section.Offset());
1663 size_t alignment_bytes = RoundUp(object_bytes, kObjectAlignment) - object_bytes;

Completed in 330 milliseconds

12