• Home
  • Raw
  • Download

Lines Matching refs:obj

55   mirror::Object* obj;  in AllocObjectWithAllocator()  local
57 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
59 if (obj != nullptr) { in AllocObjectWithAllocator()
60 return obj; in AllocObjectWithAllocator()
79 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
80 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
81 obj->SetClass(klass); in AllocObjectWithAllocator()
84 obj->SetReadBarrierPointer(obj); in AllocObjectWithAllocator()
86 obj->AssertReadBarrierPointer(); in AllocObjectWithAllocator()
90 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
93 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) && in AllocObjectWithAllocator()
94 LIKELY(obj != nullptr)) { in AllocObjectWithAllocator()
96 obj->SetClass(klass); in AllocObjectWithAllocator()
99 obj->SetReadBarrierPointer(obj); in AllocObjectWithAllocator()
101 obj->AssertReadBarrierPointer(); in AllocObjectWithAllocator()
104 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
109 obj = TryToAllocate<kInstrumented, false>(self, allocator, byte_count, &bytes_allocated, in AllocObjectWithAllocator()
111 if (UNLIKELY(obj == nullptr)) { in AllocObjectWithAllocator()
114 obj = AllocateInternalWithGc(self, in AllocObjectWithAllocator()
121 if (obj == nullptr) { in AllocObjectWithAllocator()
137 obj->SetClass(klass); in AllocObjectWithAllocator()
140 obj->SetReadBarrierPointer(obj); in AllocObjectWithAllocator()
142 obj->AssertReadBarrierPointer(); in AllocObjectWithAllocator()
154 WriteBarrierField(obj, mirror::Object::ClassOffset(), klass); in AllocObjectWithAllocator()
156 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
162 CHECK_LE(obj->SizeOf(), usable_size); in AllocObjectWithAllocator()
182 allocation_records_->RecordAllocation(self, &obj, bytes_allocated); in AllocObjectWithAllocator()
188 PushOnAllocationStack(self, &obj); in AllocObjectWithAllocator()
192 CheckGcStressMode(self, &obj); in AllocObjectWithAllocator()
202 CheckConcurrentGC(self, new_num_bytes_allocated, &obj); in AllocObjectWithAllocator()
204 VerifyObject(obj); in AllocObjectWithAllocator()
206 return obj; in AllocObjectWithAllocator()
212 inline void Heap::PushOnAllocationStack(Thread* self, mirror::Object** obj) { in PushOnAllocationStack() argument
214 if (UNLIKELY(!self->PushOnThreadLocalAllocationStack(*obj))) { in PushOnAllocationStack()
215 PushOnThreadLocalAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
217 } else if (UNLIKELY(!allocation_stack_->AtomicPushBack(*obj))) { in PushOnAllocationStack()
218 PushOnAllocationStackWithInternalGC(self, obj); in PushOnAllocationStack()
428 mirror::Object** obj) { in CheckConcurrentGC() argument
430 RequestConcurrentGCAndSaveObject(self, false, obj); in CheckConcurrentGC()