Lines Matching refs:alloc_size

1799                                              size_t alloc_size,  in AllocateInternalWithGc()  argument
1817 l->PreObjectAllocated(self, h_klass, &alloc_size); in AllocateInternalWithGc()
1842 mirror::Object* ptr = TryToAllocate<true, false>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1873 alloc_size, bytes_allocated, in AllocateInternalWithGc()
1884 VLOG(gc) << "Forcing collection of SoftReferences for " << PrettySize(alloc_size) in AllocateInternalWithGc()
1899 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1923 ptr = TryToAllocate<true, true>(self, allocator, alloc_size, bytes_allocated, in AllocateInternalWithGc()
1963 ThrowOutOfMemoryError(self, alloc_size, allocator); in AllocateInternalWithGc()
2241 size_t alloc_size = RoundUp(obj_size, kObjectAlignment); in MarkNonForwardedObject() local
2244 auto it = bins_.lower_bound(alloc_size); in MarkNonForwardedObject()
2250 self_, alloc_size, &bytes_allocated, nullptr, &unused_bytes_tl_bulk_allocated); in MarkNonForwardedObject()
2265 DCHECK_GE(size, alloc_size); in MarkNonForwardedObject()
2267 AddBin(size - alloc_size, pos + alloc_size); in MarkNonForwardedObject()
4181 void Heap::JHPCheckNonTlabSampleAllocation(Thread* self, mirror::Object* obj, size_t alloc_size) { in JHPCheckNonTlabSampleAllocation() argument
4192 prof_heap_sampler.GetSampleOffset(alloc_size, in JHPCheckNonTlabSampleAllocation()
4198 prof_heap_sampler.ReportSample(obj, alloc_size); in JHPCheckNonTlabSampleAllocation()
4206 size_t alloc_size, in JHPCalculateNextTlabSize() argument
4212 GetHeapSampler().GetSampleOffset(alloc_size, in JHPCalculateNextTlabSize()
4306 size_t alloc_size, in AllocWithNewTLAB() argument
4315 if (kUsePartialTlabs && alloc_size <= self->TlabRemainingCapacity()) { in AllocWithNewTLAB()
4316 DCHECK_GT(alloc_size, self->TlabSize()); in AllocWithNewTLAB()
4319 const size_t min_expand_size = alloc_size - self->TlabSize(); in AllocWithNewTLAB()
4322 alloc_size, in AllocWithNewTLAB()
4333 DCHECK_LE(alloc_size, self->TlabSize()); in AllocWithNewTLAB()
4338 alloc_size, in AllocWithNewTLAB()
4341 const size_t new_tlab_size = alloc_size + next_tlab_size; in AllocWithNewTLAB()
4357 if (space::RegionSpace::kRegionSize >= alloc_size) { in AllocWithNewTLAB()
4367 alloc_size, in AllocWithNewTLAB()
4371 ? std::max(alloc_size, next_pr_tlab_size) in AllocWithNewTLAB()
4376 ret = region_space_->AllocNonvirtual<false>(alloc_size, in AllocWithNewTLAB()
4380 JHPCheckNonTlabSampleAllocation(self, ret, alloc_size); in AllocWithNewTLAB()
4386 if (!IsOutOfMemoryOnAllocation(allocator_type, alloc_size, grow)) { in AllocWithNewTLAB()
4387 ret = region_space_->AllocNonvirtual<false>(alloc_size, in AllocWithNewTLAB()
4391 JHPCheckNonTlabSampleAllocation(self, ret, alloc_size); in AllocWithNewTLAB()
4399 if (LIKELY(!IsOutOfMemoryOnAllocation(allocator_type, alloc_size, grow))) { in AllocWithNewTLAB()
4400 ret = region_space_->AllocNonvirtual<false>(alloc_size, in AllocWithNewTLAB()
4404 JHPCheckNonTlabSampleAllocation(self, ret, alloc_size); in AllocWithNewTLAB()
4411 ret = self->AllocTlab(alloc_size); in AllocWithNewTLAB()
4413 *bytes_allocated = alloc_size; in AllocWithNewTLAB()
4414 *usable_size = alloc_size; in AllocWithNewTLAB()
4421 GetHeapSampler().ReportSample(ret, alloc_size); in AllocWithNewTLAB()
4435 void Heap::VlogHeapGrowth(size_t old_footprint, size_t new_footprint, size_t alloc_size) { in VlogHeapGrowth() argument
4437 << PrettySize(new_footprint) << " for a " << PrettySize(alloc_size) << " allocation"; in VlogHeapGrowth()