/art/runtime/gc/ |
D | heap-inl.h | 196 size_t alloc_size, size_t* bytes_allocated, in TryToAllocate() argument 199 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) { in TryToAllocate() 206 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate() 207 ret = bump_pointer_space_->AllocNonvirtual(alloc_size); in TryToAllocate() 209 *bytes_allocated = alloc_size; in TryToAllocate() 210 *usable_size = alloc_size; in TryToAllocate() 217 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 220 ret = rosalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 227 ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 230 ret = dlmalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() [all …]
|
D | heap.cc | 1281 size_t alloc_size, size_t* bytes_allocated, in AllocateInternalWithGc() argument 1301 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1315 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1335 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1344 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1353 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size) in AllocateInternalWithGc() 1362 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size); in AllocateInternalWithGc() 1377 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1409 if (!IsOutOfMemoryOnAllocation<false>(allocator, alloc_size)) { in AllocateInternalWithGc() 1421 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() [all …]
|
D | heap.h | 671 size_t alloc_size, size_t* bytes_allocated, 679 bool IsOutOfMemoryOnAllocation(AllocatorType allocator_type, size_t alloc_size);
|
/art/runtime/gc/space/ |
D | large_object_space.cc | 320 size_t alloc_size = cur_info->ByteSize(); in Walk() local 322 byte* byte_end = byte_start + alloc_size; in Walk() 323 callback(byte_start, byte_end, alloc_size, arg); in Walk() 402 size_t alloc_size = info->ByteSize(); in AllocationSize() local 404 *usable_size = alloc_size; in AllocationSize() 406 return alloc_size; in AllocationSize()
|
D | large_object_space_test.cc | 105 size_t alloc_size; in Run() local 106 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr); in Run()
|
D | space_test.h | 411 size_t alloc_size; in SizeFootPrintGrowthLimitAndTrimBody() local 413 alloc_size = object_size; in SizeFootPrintGrowthLimitAndTrimBody() 415 alloc_size = test_rand(&rand_seed) % static_cast<size_t>(-object_size); in SizeFootPrintGrowthLimitAndTrimBody() 418 if (alloc_size < size_of_zero_length_byte_array) { in SizeFootPrintGrowthLimitAndTrimBody() 419 alloc_size = size_of_zero_length_byte_array; in SizeFootPrintGrowthLimitAndTrimBody() 426 object.Assign(Alloc(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody() 428 object.Assign(AllocWithGrowth(space, self, alloc_size, &bytes_allocated, nullptr)); in SizeFootPrintGrowthLimitAndTrimBody()
|
/art/runtime/gc/collector/ |
D | mark_compact.cc | 91 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject() local 101 bump_pointer_ += alloc_size; in ForwardObject()
|