Home
last modified time | relevance | path

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

12

/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()
99 for (size_t j = 0; j < heap_capacity; j += kObjectAlignment) { in TEST_F()
105 {0, 10 * KB + kObjectAlignment}, in TEST_F()
106 {kObjectAlignment, kObjectAlignment}, in TEST_F()
107 {kObjectAlignment, 2 * kObjectAlignment}, in TEST_F()
108 {kObjectAlignment, 5 * kObjectAlignment}, in TEST_F()
109 {1 * KB + kObjectAlignment, 2 * KB + 5 * kObjectAlignment}, in TEST_F()
117 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()
114 start_offset = (start_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
120 end_offset = (end_offset + kObjectAlignment) % CardTable::kCardSize; in TEST_F()
Dcard_table.h110 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap,
Dspace_bitmap.h230 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
Dspace_bitmap.cc201 template class SpaceBitmap<kObjectAlignment>;
/art/tools/cpp-define-generator/
Dconstant_globals.def20 #include "globals.h" // art::kObjectAlignment
26 DEFINE_OBJECT_EXPR(ALIGNMENT_MASK, size_t, art::kObjectAlignment - 1)
27 DEFINE_OBJECT_EXPR(ALIGNMENT_MASK_TOGGLED, uint32_t, ~static_cast<uint32_t>(art::kObjectAlignment -…
28 DEFINE_OBJECT_EXPR(ALIGNMENT_MASK_TOGGLED64, uint64_t, ~static_cast<uint64_t>(art::kObjectAlignment
/art/runtime/
Dverify_object.cc35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl()
38 failed = failed || !IsAligned<kObjectAlignment>(c); in VerifyObjectImpl()
Dobj_ptr-inl.h45 DCHECK_ALIGNED(ref, kObjectAlignment); in Encode()
Dimage.cc157 static const size_t kStartPos = RoundUp(sizeof(ImageHeader), kObjectAlignment); in VisitObjects()
161 pos += RoundUp(object->SizeOf(), kObjectAlignment); in VisitObjects()
Dglobals.h51 static constexpr size_t kObjectAlignment = 1u << kObjectAlignmentShift; variable
Dclass_table.h95 static const uint32_t kHashMask = kObjectAlignment - 1;
Dfault_handler.cc293 if (!IsAligned<kObjectAlignment>(cls)) { in IsInGeneratedCode()
/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_verification_test.cc67 reinterpret_cast<const void*>(uint_klass + kObjectAlignment))); in TEST_F()
93 EXPECT_FALSE(v->IsValidClass(reinterpret_cast<const void*>(uint_klass - kObjectAlignment))); in TEST_F()
122 LOG(INFO) << v->DumpObjectInfo(reinterpret_cast<const void*>(uint_klass - kObjectAlignment), in TEST_F()
Dverification.cc76 oss << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in DumpObjectInfo()
108 << DumpRAMAroundAddress(reinterpret_cast<uintptr_t>(addr), 4 * kObjectAlignment); in LogHeapCorruption()
130 return IsAligned<kObjectAlignment>(addr) && IsAddressInHeapSpace(addr, out_space); in IsValidHeapObjectAddress()
Dheap-inl.h352 DCHECK_ALIGNED(alloc_size, kObjectAlignment); in TryToAllocate()
355 static_assert(kObjectAlignment == space::BumpPointerSpace::kAlignment, in TryToAllocate()
Dheap.h605 void MarkAllocStack(accounting::SpaceBitmap<kObjectAlignment>* bitmap1,
606 accounting::SpaceBitmap<kObjectAlignment>* bitmap2,
Dheap.cc1383 return IsAligned<kObjectAlignment>(addr) && FindSpaceFromAddress(addr) != nullptr; in IsValidObjectAddress()
1394 if (UNLIKELY(!IsAligned<kObjectAlignment>(obj.Ptr()))) { in IsLiveObjectLocked()
1498 CHECK_ALIGNED(obj.Ptr(), kObjectAlignment) << "Object isn't aligned"; in VerifyObjectBody()
1501 CHECK_ALIGNED(c, kObjectAlignment) << "Class " << c << " not aligned in object " << obj; in VerifyObjectBody()
2189 prev = object_addr + RoundUp(obj->SizeOf<kDefaultVerifyFlags>(), kObjectAlignment); in BuildBins()
2223 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject()
/art/runtime/mirror/
Dstring-inl.h200 return RoundUp(size, kObjectAlignment); in SizeOf()
218 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc()
225 static_assert(IsAligned<sizeof(uint16_t)>(kObjectAlignment), in Alloc()
227 const size_t max_length = RoundDown(max_alloc_length, kObjectAlignment / block_size); in Alloc()
/art/runtime/generated/
Dasm_support_gen.h118 …CK_EQ(static_cast<size_t>(OBJECT_ALIGNMENT_MASK), (static_cast<size_t>(art::kObjectAlignment - 1)))
120 …LIGNMENT_MASK_TOGGLED), (static_cast<uint32_t>(~static_cast<uint32_t>(art::kObjectAlignment - 1))))
122 …GNMENT_MASK_TOGGLED64), (static_cast<uint64_t>(~static_cast<uint64_t>(art::kObjectAlignment - 1))))
/art/runtime/gc/collector/
Dconcurrent_copying.h45 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
247 accounting::SpaceBitmap<kObjectAlignment>* bitmap)
/art/compiler/
Dimage_writer.h53 typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap;
271 size_t image_end_ = RoundUp(sizeof(ImageHeader), kObjectAlignment);
/art/runtime/gc/space/
Dimage_space.cc407 uint8_t* current = Begin() + RoundUp(sizeof(ImageHeader), kObjectAlignment); in VerifyImageAllocations()
409 CHECK_ALIGNED(current, kObjectAlignment); in VerifyImageAllocations()
416 current += RoundUp(obj->SizeOf(), kObjectAlignment); in VerifyImageAllocations()
967 static_assert(kObjectAlignment == 8u, "array bit may be in another object"); in UpdatePointerArrayContents()
969 reinterpret_cast<uintptr_t>(array) + kObjectAlignment); in UpdatePointerArrayContents()
Dregion_space.h173 static constexpr size_t kAlignment = kObjectAlignment;
/art/runtime/hprof/
Dhprof.cc1540 reinterpret_cast<uintptr_t>(s) + kObjectAlignment); in DumpHeapInstanceObject()
1552 reinterpret_cast<uintptr_t>(obj) + kObjectAlignment / 2); in DumpHeapInstanceObject()

12