Home
last modified time | relevance | path

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

/art/runtime/gc/
Dheap-inl.h184 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 …]
Dheap.cc1229 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 …]
Dheap.h671 size_t alloc_size, size_t* bytes_allocated,
679 bool IsOutOfMemoryOnAllocation(AllocatorType allocator_type, size_t alloc_size);
/art/runtime/gc/space/
Dlarge_object_space.cc320 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()
Dlarge_object_space_test.cc105 size_t alloc_size; in Run() local
106 mirror::Object* ptr = los_->Alloc(self, size_, &alloc_size, nullptr); in Run()
Dspace_test.h411 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/
Dmark_compact.cc91 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject() local
101 bump_pointer_ += alloc_size; in ForwardObject()