Lines Matching refs:obj

79   ObjPtr<mirror::Object> obj;  in AllocObjectWithAllocator()  local
94 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
96 if (obj != nullptr) { in AllocObjectWithAllocator()
97 return obj.Ptr(); in AllocObjectWithAllocator()
112 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
113 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
114 obj->SetClass(klass); in AllocObjectWithAllocator()
116 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
120 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
124 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
125 LIKELY(obj != nullptr)) { in AllocObjectWithAllocator()
127 obj->SetClass(klass); in AllocObjectWithAllocator()
129 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
132 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
138 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
140 if (UNLIKELY(obj == nullptr)) { in AllocObjectWithAllocator()
144 obj = AllocateInternalWithGc(self, in AllocObjectWithAllocator()
152 if (obj == nullptr) { in AllocObjectWithAllocator()
170 obj->SetClass(klass); in AllocObjectWithAllocator()
172 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
179 WriteBarrier::ForFieldWrite(obj, mirror::Object::ClassOffset(), klass); in AllocObjectWithAllocator()
181 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
202 CHECK_LE(obj->SizeOf(), usable_size); in AllocObjectWithAllocator()
222 allocation_records_->RecordAllocation(self, &obj, bytes_allocated); in AllocObjectWithAllocator()
228 l->ObjectAllocated(self, &obj, bytes_allocated); in AllocObjectWithAllocator()
234 PushOnAllocationStack(self, &obj); in AllocObjectWithAllocator()
238 CheckGcStressMode(self, &obj); in AllocObjectWithAllocator()
250 CheckConcurrentGCForJava(self, new_num_bytes_allocated, &obj); in AllocObjectWithAllocator()
252 VerifyObject(obj); in AllocObjectWithAllocator()
254 return obj.Ptr(); in AllocObjectWithAllocator()
260 inline void Heap::PushOnAllocationStack(Thread* self, ObjPtr<mirror::Object>* obj) { in PushOnAllocationStack() argument
262 if (UNLIKELY(!self->PushOnThreadLocalAllocationStack(obj->Ptr()))) { in PushOnAllocationStack()
263 PushOnThreadLocalAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
265 } else if (UNLIKELY(!allocation_stack_->AtomicPushBack(obj->Ptr()))) { in PushOnAllocationStack()
266 PushOnAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
468 ObjPtr<mirror::Object>* obj) { in CheckConcurrentGCForJava() argument
470 RequestConcurrentGCAndSaveObject(self, false /* force_full */, obj); in CheckConcurrentGCForJava()