Lines Matching refs:alloc_size
286 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()
330 DCHECK(!rosalloc_space_->CanAllocThreadLocal(self, alloc_size)); in TryToAllocate()
333 alloc_size, in TryToAllocate()
344 alloc_size, in TryToAllocate()
351 alloc_size, in TryToAllocate()
360 alloc_size, in TryToAllocate()
368 alloc_size, in TryToAllocate()
380 alloc_size = RoundUp(alloc_size, space::RegionSpace::kAlignment); in TryToAllocate()
381 ret = region_space_->AllocNonvirtual<false>(alloc_size, in TryToAllocate()
390 DCHECK_ALIGNED(alloc_size, kObjectAlignment); in TryToAllocate()
395 if (UNLIKELY(self->TlabSize() < alloc_size)) { in TryToAllocate()
398 alloc_size, in TryToAllocate()
405 ret = self->AllocTlab(alloc_size); in TryToAllocate()
407 *bytes_allocated = alloc_size; in TryToAllocate()
409 *usable_size = alloc_size; in TryToAllocate()
429 size_t alloc_size, in IsOutOfMemoryOnAllocation() argument
434 size_t new_footprint = old_allocated + alloc_size; in IsOutOfMemoryOnAllocation()
449 VlogHeapGrowth(old_target, new_footprint, alloc_size); in IsOutOfMemoryOnAllocation()