Home
last modified time | relevance | path

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

12

/art/runtime/gc/accounting/
Dspace_bitmap_test.cc71 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 …]
Dcard_table_test.cc83 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()
Dcard_table.h120 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap,
Dspace_bitmap.h264 using ContinuousSpaceBitmap = SpaceBitmap<kObjectAlignment>;
Dspace_bitmap.cc216 template class SpaceBitmap<kObjectAlignment>;
/art/runtime/
Dverify_object.cc35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl()
38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObjectImpl()
Druntime_globals.h35 static constexpr size_t kObjectAlignment = 1u << kObjectAlignmentShift; variable
Dimage.cc161 static const size_t kStartPos = RoundUp(sizeof(ImageHeader), kObjectAlignment); in VisitObjects()
165 pos += RoundUp(object->SizeOf(), kObjectAlignment); in VisitObjects()
Dobj_ptr-inl.h56 DCHECK_ALIGNED(ref, kObjectAlignment); in Encode()
Dclass_table.h98 static constexpr uint32_t kHashMask = kObjectAlignment - 1;
Dimage.h74 static_assert(kObjectAlignment == 8, "Alignment check");
Dfault_handler.cc353 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
/art/tools/cpp-define-generator/
Dglobals.def70 art::kObjectAlignment - 1)
72 ~static_cast<uint32_t>(art::kObjectAlignment - 1))
74 ~static_cast<uint64_t>(art::kObjectAlignment - 1))
/art/runtime/gc/
Dheap_test.cc89 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()
Dheap_verification_test.cc68 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()
Dverification.cc78 oss << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in DumpObjectInfo()
108 << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in LogHeapCorruption()
132 return IsAligned<kObjectAlignment>(addr) && IsAddressInHeapSpace(addr, out_space); in IsValidHeapObjectAddress()
Dheap-inl.h407 DCHECK_ALIGNED(alloc_size, kObjectAlignment); in TryToAllocate()
410 static_assert(kObjectAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
Dheap.cc1635 return IsAligned<kObjectAlignment>(addr) && FindSpaceFromAddress(addr) != nullptr; in IsValidObjectAddress()
1646 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj.Ptr()))) { in IsLiveObjectLocked()
1750 CHECK_ALIGNED(obj.Ptr(), kObjectAlignment) << "Object isn't aligned"; in VerifyObjectBody()
1753 CHECK_ALIGNED(c, kObjectAlignment) << "Class " << c << " not aligned in object " << obj; in VerifyObjectBody()
2254 prev = object_addr + RoundUp(obj->SizeOf<kDefaultVerifyFlags>(), kObjectAlignment); in BuildBins()
2288 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject()
4217 RoundUp(c->GetObjectSize(), kObjectAlignment) == in CheckPreconditionsForAllocObject()
4218 RoundUp(byte_count, kObjectAlignment))) in CheckPreconditionsForAllocObject()
/art/runtime/mirror/
Dstring-alloc-inl.h174 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc()
182 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc()
184 const size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / block_size); in Alloc()
Dstring.h88 return RoundUp(size, kObjectAlignment); in SizeOf()
/art/openjdkjvmti/
Dalloc_manager.cc109 std::max(art::RoundUp(static_cast<size_t>(type->GetObjectSize()), art::kObjectAlignment), in PreObjectAllocated()
/art/dex2oat/linker/
Dimage_writer.h55 using ContinuousSpaceBitmap = SpaceBitmap<kObjectAlignment>;
338 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
/art/runtime/gc/collector/
Dconcurrent_copying.h47 using ContinuousSpaceBitmap = SpaceBitmap<kObjectAlignment>;
309 accounting::SpaceBitmap<kObjectAlignment>* bitmap)
/art/runtime/gc/space/
Dimage_space.cc185 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations()
187 CHECK_ALIGNED(current, kObjectAlignment); in VerifyImageAllocations()
194 current += RoundUp(obj->SizeOf(), kObjectAlignment); in VerifyImageAllocations()
279 DCHECK_ALIGNED(klass.Ptr(), kObjectAlignment); in VisitClass()
280 static_assert(IsAligned<kHeapReferenceSize>(kObjectAlignment), "Object alignment check."); in VisitClass()
800 static_assert(IsAligned<kObjectAlignment>(sizeof(ImageHeader)), "Header alignment check"); in RemapInternedStringDuplicates()
802 DCHECK_ALIGNED(objects_end, kObjectAlignment); in RemapInternedStringDuplicates()
808 pos += RoundUp(object->SizeOf<kVerifyNone>(), kObjectAlignment); in RemapInternedStringDuplicates()
2814 static_assert(IsAligned<kObjectAlignment>(sizeof(ImageHeader)), "Header alignment check"); in DoRelocateSpaces()
2816 DCHECK_ALIGNED(objects_end, kObjectAlignment); in DoRelocateSpaces()
[all …]
/art/runtime/entrypoints/quick/
Dquick_alloc_entrypoints.cc52 static_assert(kObjectAlignment == gc::space::BumpPointerSpace::kAlignment, "Alignment check"); in artAllocObjectFromCode()

12