Lines Matching refs:obj
64 ObjPtr<mirror::Object> obj; in AllocObjectWithAllocator() local
66 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
68 if (obj != nullptr) { in AllocObjectWithAllocator()
69 return obj.Ptr(); in AllocObjectWithAllocator()
87 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
88 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
89 obj->SetClass(klass); in AllocObjectWithAllocator()
91 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
95 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
99 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
100 LIKELY(obj != nullptr)) { in AllocObjectWithAllocator()
102 obj->SetClass(klass); in AllocObjectWithAllocator()
104 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
107 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
113 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
115 if (UNLIKELY(obj == nullptr)) { in AllocObjectWithAllocator()
118 obj = AllocateInternalWithGc(self, in AllocObjectWithAllocator()
125 if (obj == nullptr) { in AllocObjectWithAllocator()
141 obj->SetClass(klass); in AllocObjectWithAllocator()
143 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
155 WriteBarrier::ForFieldWrite(obj, mirror::Object::ClassOffset(), klass); in AllocObjectWithAllocator()
157 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
169 CHECK_LE(obj->SizeOf(), usable_size); in AllocObjectWithAllocator()
189 allocation_records_->RecordAllocation(self, &obj, bytes_allocated); in AllocObjectWithAllocator()
195 l->ObjectAllocated(self, &obj, bytes_allocated); in AllocObjectWithAllocator()
201 PushOnAllocationStack(self, &obj); in AllocObjectWithAllocator()
205 CheckGcStressMode(self, &obj); in AllocObjectWithAllocator()
217 CheckConcurrentGCForJava(self, new_num_bytes_allocated, &obj); in AllocObjectWithAllocator()
219 VerifyObject(obj); in AllocObjectWithAllocator()
221 return obj.Ptr(); in AllocObjectWithAllocator()
227 inline void Heap::PushOnAllocationStack(Thread* self, ObjPtr<mirror::Object>* obj) { in PushOnAllocationStack() argument
229 if (UNLIKELY(!self->PushOnThreadLocalAllocationStack(obj->Ptr()))) { in PushOnAllocationStack()
230 PushOnThreadLocalAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
232 } else if (UNLIKELY(!allocation_stack_->AtomicPushBack(obj->Ptr()))) { in PushOnAllocationStack()
233 PushOnAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
436 ObjPtr<mirror::Object>* obj) { in CheckConcurrentGCForJava() argument
438 RequestConcurrentGCAndSaveObject(self, false /* force_full */, obj); in CheckConcurrentGCForJava()