/art/runtime/gc/ |
D | heap-inl.h | 253 size_t alloc_size, in TryToAllocate() argument 260 UNLIKELY(IsOutOfMemoryOnAllocation(allocator_type, alloc_size, kGrow))) { in TryToAllocate() 267 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate() 268 ret = bump_pointer_space_->AllocNonvirtual(alloc_size); in TryToAllocate() 270 *bytes_allocated = alloc_size; in TryToAllocate() 271 *usable_size = alloc_size; in TryToAllocate() 272 *bytes_tl_bulk_allocated = alloc_size; in TryToAllocate() 279 size_t max_bytes_tl_bulk_allocated = rosalloc_space_->MaxBytesBulkAllocatedFor(alloc_size); in TryToAllocate() 285 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size, in TryToAllocate() 290 rosalloc_space_->MaxBytesBulkAllocatedForNonvirtual(alloc_size); in TryToAllocate() [all …]
|
D | heap.cc | 1723 size_t alloc_size, in AllocateInternalWithGc() argument 1745 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1760 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1781 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1790 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1799 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size) in AllocateInternalWithGc() 1809 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size, in AllocateInternalWithGc() 1830 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1867 if (!IsOutOfMemoryOnAllocation(allocator, alloc_size, /*grow=*/ false)) { in AllocateInternalWithGc() 1884 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() [all …]
|
D | heap.h | 1019 size_t alloc_size, 1026 size_t alloc_size, 1042 size_t alloc_size, 1182 static void VlogHeapGrowth(size_t max_allowed_footprint, size_t new_footprint, size_t alloc_size);
|
/art/runtime/gc/space/ |
D | space_test.h | 180 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()
|
D | large_object_space.cc | 207 size_t alloc_size = it->second.mem_map.BaseSize(); in AllocationSize() local 209 *usable_size = alloc_size; in AllocationSize() 211 return alloc_size; in AllocationSize() 397 size_t alloc_size = cur_info->ByteSize(); in Walk() local 399 uint8_t* byte_end = byte_start + alloc_size; in Walk() 400 callback(byte_start, byte_end, alloc_size, arg); in Walk() 485 size_t alloc_size = info->ByteSize(); in AllocationSize() local 487 *usable_size = alloc_size; in AllocationSize() 489 return alloc_size; in AllocationSize()
|
D | large_object_space_test.cc | 133 size_t alloc_size, bytes_tl_bulk_allocated; in Run() local 134 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr, in Run()
|
D | region_space.h | 313 void AddLiveBytes(mirror::Object* ref, size_t alloc_size) { in AddLiveBytes() argument 315 reg->AddLiveBytes(alloc_size); in AddLiveBytes()
|
D | region_space.cc | 653 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in CheckLiveBytesAgainstRegionBitmap() local 654 live_bytes_recount += alloc_size; in CheckLiveBytesAgainstRegionBitmap()
|
/art/runtime/gc/collector/ |
D | concurrent_copying.cc | 1123 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in AddLiveBytesAndScanRef() local 1124 region_space_->AddLiveBytes(ref, alloc_size); in AddLiveBytesAndScanRef() 2271 size_t alloc_size = RoundUp(obj_size, space::RegionSpace::kAlignment); in ProcessMarkStackRef() local 2272 region_space_->AddLiveBytes(to_ref, alloc_size); in ProcessMarkStackRef() 3256 mirror::Object* ConcurrentCopying::AllocateInSkippedBlock(Thread* const self, size_t alloc_size) { in AllocateInSkippedBlock() argument 3258 CHECK_ALIGNED(alloc_size, space::RegionSpace::kAlignment); in AllocateInSkippedBlock() 3264 auto it = skipped_blocks_map_.lower_bound(alloc_size); in AllocateInSkippedBlock() 3270 CHECK_GE(byte_size, alloc_size); in AllocateInSkippedBlock() 3271 if (byte_size > alloc_size && byte_size - alloc_size < min_object_size) { in AllocateInSkippedBlock() 3273 it = skipped_blocks_map_.lower_bound(alloc_size + min_object_size); in AllocateInSkippedBlock() [all …]
|
D | concurrent_copying.h | 260 mirror::Object* AllocateInSkippedBlock(Thread* const self, size_t alloc_size)
|
/art/runtime/mirror/ |
D | string-alloc-inl.h | 173 size_t alloc_size = RoundUp(size, kObjectAlignment); in Alloc() local 196 alloc_size, in Alloc()
|