Lines Matching refs:byte_count
47 size_t byte_count, in AllocObjectWithAllocator() argument
57 CheckPreconditionsForAllocObject(klass, byte_count); in AllocObjectWithAllocator()
75 l->PreObjectAllocated(self, h_klass, &byte_count); in AllocObjectWithAllocator()
96 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { in AllocObjectWithAllocator()
98 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
112 (self, klass, byte_count, GetUpdatedAllocator(allocator), pre_fence_visitor); in AllocObjectWithAllocator()
116 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator()
119 if (IsTLABAllocator(allocator) && byte_count <= self->TlabSize()) { in AllocObjectWithAllocator()
120 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
126 bytes_allocated = byte_count; in AllocObjectWithAllocator()
132 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
143 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
152 byte_count, in AllocObjectWithAllocator()
165 int new_byte_count = klass->IsVariableSize()? byte_count : klass->GetObjectSize(); in AllocObjectWithAllocator()
286 size_t byte_count, in AllocLargeObject() argument
292 (self, *klass, byte_count, kAllocatorTypeLOS, pre_fence_visitor); in AllocLargeObject()
295 JHPCheckNonTlabSampleAllocation(self, obj, byte_count); in AllocLargeObject()
437 inline bool Heap::ShouldAllocLargeObject(ObjPtr<mirror::Class> c, size_t byte_count) const { in ShouldAllocLargeObject() argument
442 return byte_count >= large_object_threshold_ && (c->IsPrimitiveArray() || c->IsStringClass()); in ShouldAllocLargeObject()