/art/runtime/gc/ |
D | heap-inl.h | 184 size_t alloc_size, size_t* bytes_allocated, in TryToAllocate() argument 187 UNLIKELY(IsOutOfMemoryOnAllocation<kGrow>(allocator_type, alloc_size))) { in TryToAllocate() 194 alloc_size = RoundUp(alloc_size, space::BumpPointerSpace::kAlignment); in TryToAllocate() 195 ret = bump_pointer_space_->AllocNonvirtual(alloc_size); in TryToAllocate() 197 *bytes_allocated = alloc_size; in TryToAllocate() 198 *usable_size = alloc_size; in TryToAllocate() 205 ret = rosalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 208 ret = rosalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 215 ret = dlmalloc_space_->Alloc(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() 218 ret = dlmalloc_space_->AllocNonvirtual(self, alloc_size, bytes_allocated, usable_size); in TryToAllocate() [all …]
|
D | heap.cc | 1229 size_t alloc_size, size_t* bytes_allocated, in AllocateInternalWithGc() argument 1249 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1263 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1283 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1292 mirror::Object* ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1301 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size) in AllocateInternalWithGc() 1310 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, usable_size); in AllocateInternalWithGc() 1325 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc() 1357 if (!IsOutOfMemoryOnAllocation<false>(allocator, alloc_size)) { in AllocateInternalWithGc() 1369 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()
|