Home
last modified time | relevance | path

Searched refs:object_size (Results 1 – 4 of 4) sorted by relevance

/art/runtime/gc/space/
Dspace_test.h119 void SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, intptr_t object_size,
121 void SizeFootPrintGrowthLimitAndTrimDriver(size_t object_size, CreateSpaceFn create_space);
375 void SpaceTest::SizeFootPrintGrowthLimitAndTrimBody(MallocSpace* space, intptr_t object_size, in SizeFootPrintGrowthLimitAndTrimBody() argument
377 if (((object_size > 0 && object_size >= static_cast<intptr_t>(growth_limit))) || in SizeFootPrintGrowthLimitAndTrimBody()
378 ((object_size < 0 && -object_size >= static_cast<intptr_t>(growth_limit)))) { in SizeFootPrintGrowthLimitAndTrimBody()
400 size_t max_objects = (growth_limit / (object_size > 0 ? object_size : 8)) + 1; in SizeFootPrintGrowthLimitAndTrimBody()
412 if (object_size > 0) { in SizeFootPrintGrowthLimitAndTrimBody()
413 alloc_size = object_size; in SizeFootPrintGrowthLimitAndTrimBody()
415 alloc_size = test_rand(&rand_seed) % static_cast<size_t>(-object_size); in SizeFootPrintGrowthLimitAndTrimBody()
436 if (object_size > 0) { in SizeFootPrintGrowthLimitAndTrimBody()
[all …]
/art/runtime/gc/collector/
Dsemi_space.cc481 const size_t object_size = obj->SizeOf(); in MarkNonForwardedObject() local
488 forward_address = promo_dest_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
492 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject()
537 forward_address = to_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject()
544 forward_address = fallback_space_->AllocThreadUnsafe(self_, object_size, &bytes_allocated, in MarkNonForwardedObject()
557 CopyAvoidingDirtyingPages(reinterpret_cast<void*>(forward_address), obj, object_size); in MarkNonForwardedObject()
/art/compiler/
Dimage_writer.cc282 size_t object_size; in AssignImageBinSlot() local
285 object_size = mirror::ArtMethod::InstanceSize(target_ptr_size_); in AssignImageBinSlot()
287 object_size = object->SizeOf(); in AssignImageBinSlot()
374 size_t offset_delta = RoundUp(object_size, kObjectAlignment); // 64-bit alignment in AssignImageBinSlot()
/art/runtime/gc/
Dheap.cc1905 size_t object_size = RoundUp(obj->SizeOf(), kObjectAlignment); in MarkNonForwardedObject() local
1908 auto it = bins_.lower_bound(object_size); in MarkNonForwardedObject()
1913 forward_address = to_space_->Alloc(self_, object_size, &bytes_allocated, nullptr); in MarkNonForwardedObject()
1928 DCHECK_GE(size, object_size); in MarkNonForwardedObject()
1929 AddBin(size - object_size, pos + object_size); // Add a new bin with the remaining space. in MarkNonForwardedObject()
1932 memcpy(reinterpret_cast<void*>(forward_address), obj, object_size); in MarkNonForwardedObject()