Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 11 of 11) sorted by relevance

/art/runtime/gc/
Dheap-inl.h286 size_t alloc_size, in TryToAllocate() argument
293 UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, alloc_size, kGrow))) { in TryToAllocate()
300 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate()
301 ret = bump_pointer_space_->AllocNonvirtual(alloc_size); in TryToAllocate()
303 *bytes_allocated = alloc_size; in TryToAllocate()
304 *usable_size = alloc_size; in TryToAllocate()
305 *bytes_tl_bulk_allocated = alloc_size; in TryToAllocate()
312 size_t max_bytes_tl_bulk_allocated = rosalloc_space_->MaxBytesBulkAllocatedFor(alloc_size); in TryToAllocate()
318 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size, in TryToAllocate()
323 rosalloc_space_->MaxBytesBulkAllocatedForNonvirtual(alloc_size); in TryToAllocate()
[all …]
Dheap.cc1743 size_t alloc_size, in AllocateInternalWithGc() argument
1764 l->PreObjectAllocated(self, h_klass, &alloc_size); in AllocateInternalWithGc()
1788 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1818 alloc_size, bytes_allocated, in AllocateInternalWithGc()
1829 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size) in AllocateInternalWithGc()
1841 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1865 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1905 ThrowOutOfMemoryError(self, alloc_size, allocator); in AllocateInternalWithGc()
2244 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject() local
2247 auto it = bins_.lower_bound(alloc_size); in MarkNonForwardedObject()
[all …]
Dheap.h1048 size_t alloc_size,
1056 size_t alloc_size,
1072 size_t alloc_size,
1219 static void VlogHeapGrowth(size_t max_allowed_footprint, size_t new_footprint, size_t alloc_size);
/art/runtime/gc/space/
Dspace_test.h180 size_t alloc_size; in SizeFootPrintGrowthLimitAndTrimBody() local
182 alloc_size = object_size; in SizeFootPrintGrowthLimitAndTrimBody()
184 alloc_size = test_rand(&rand_seed) % static_cast<size_t>(-object_size); in SizeFootPrintGrowthLimitAndTrimBody()
187 if (alloc_size < size_of_zero_length_byte_array) { in SizeFootPrintGrowthLimitAndTrimBody()
188 alloc_size = size_of_zero_length_byte_array; in SizeFootPrintGrowthLimitAndTrimBody()
196 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
199 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr, in SizeFootPrintGrowthLimitAndTrimBody()
Dlarge_object_space.cc212 size_t alloc_size = it->second.mem_map.BaseSize(); in AllocationSize() local
214 *usable_size = alloc_size; in AllocationSize()
216 return alloc_size; in AllocationSize()
402 size_t alloc_size = cur_info->ByteSize(); in Walk() local
404 uint8_t* byte_end = byte_start + alloc_size; in Walk()
405 callback(byte_start, byte_end, alloc_size, arg); in Walk()
493 size_t alloc_size = info->ByteSize(); in AllocationSize() local
495 *usable_size = alloc_size; in AllocationSize()
497 return alloc_size; in AllocationSize()
Dlarge_object_space_test.cc133 size_t alloc_size, bytes_tl_bulk_allocated; in Run() local
134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run()
Dregion_space.h319 void AddLiveBytes(mirror::Object* ref, size_t alloc_size) { in AddLiveBytes() argument
321 reg->AddLiveBytes(alloc_size); in AddLiveBytes()
Dregion_space.cc663 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in CheckLiveBytesAgainstRegionBitmap() local
664 live_bytes_recount += alloc_size; in CheckLiveBytesAgainstRegionBitmap()
/art/runtime/mirror/
Dstring-alloc-inl.h174 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc() local
197 alloc_size, in Alloc()
/art/runtime/gc/collector/
Dconcurrent_copying.cc1128 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in AddLiveBytesAndScanRef() local
1129 region_space_->AddLiveBytes(ref, alloc_size); in AddLiveBytesAndScanRef()
2293 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in ProcessMarkStackRef() local
2294 region_space_->AddLiveBytes(to_ref, alloc_size); in ProcessMarkStackRef()
3282 mirror::Object* ConcurrentCopying::AllocateInSkippedBlock(Thread* const self, size_t alloc_size) { in AllocateInSkippedBlock() argument
3284 CHECK_ALIGNED(alloc_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock()
3290 auto it = skipped_blocks_map_.lower_bound(alloc_size); in AllocateInSkippedBlock()
3296 CHECK_GE(byte_size, alloc_size); in AllocateInSkippedBlock()
3297 if (byte_size > alloc_size && byte_size - alloc_size < min_object_size) { in AllocateInSkippedBlock()
3299 it = skipped_blocks_map_.lower_bound(alloc_size + min_object_size); in AllocateInSkippedBlock()
[all …]
Dconcurrent_copying.h263 mirror::Object* AllocateInSkippedBlock(Thread* const self, size_t alloc_size)