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()
91 if (kCheckLargeObject && UNLIKELY(ShouldAllocLargeObject(klass, byte_count))) { in AllocObjectWithAllocator()
94 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
108 byte_count = RoundUp(byte_count, space::BumpPointerSpace::kAlignment); in AllocObjectWithAllocator()
111 if (IsTLABAllocator(allocator) && byte_count <= self->TlabSize()) { in AllocObjectWithAllocator()
112 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
118 bytes_allocated = byte_count; in AllocObjectWithAllocator()
124 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
138 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
147 byte_count, in AllocObjectWithAllocator()
162 byte_count, in AllocObjectWithAllocator()
273 size_t byte_count, in AllocLargeObject() argument
278 return AllocObjectWithAllocator<kInstrumented, false, PreFenceVisitor>(self, *klass, byte_count, in AllocLargeObject()
420 inline bool Heap::ShouldAllocLargeObject(ObjPtr<mirror::Class> c, size_t byte_count) const { in ShouldAllocLargeObject() argument
425 return byte_count >= large_object_threshold_ && (c->IsPrimitiveArray() || c->IsStringClass()); in ShouldAllocLargeObject()