Lines Matching refs:obj

52     mirror::Object* obj =  in Alloc()  local
56 reinterpret_cast<uintptr_t>(obj) + kValgrindRedZoneBytes); in Alloc()
57 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<void*>(obj), kValgrindRedZoneBytes); in Alloc()
66 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
67 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize()
70 bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const OVERRIDE { in IsZygoteLargeObject()
71 return LargeObjectMapSpace::IsZygoteLargeObject(self, ObjectWithRedzone(obj)); in IsZygoteLargeObject()
74 size_t Free(Thread* self, mirror::Object* obj) OVERRIDE { in Free() argument
75 mirror::Object* object_with_rdz = ObjectWithRedzone(obj); in Free()
76 VALGRIND_MAKE_MEM_UNDEFINED(object_with_rdz, AllocationSize(obj, nullptr)); in Free()
80 bool Contains(const mirror::Object* obj) const OVERRIDE { in Contains()
81 return LargeObjectMapSpace::Contains(ObjectWithRedzone(obj)); in Contains()
85 static const mirror::Object* ObjectWithRedzone(const mirror::Object* obj) { in ObjectWithRedzone() argument
87 reinterpret_cast<uintptr_t>(obj) - kValgrindRedZoneBytes); in ObjectWithRedzone()
90 static mirror::Object* ObjectWithRedzone(mirror::Object* obj) { in ObjectWithRedzone() argument
92 reinterpret_cast<uintptr_t>(obj) - kValgrindRedZoneBytes); in ObjectWithRedzone()
139 mirror::Object* const obj = reinterpret_cast<mirror::Object*>(mem_map->Begin()); in Alloc() local
144 auto* space_bitmap = live_bitmap->GetContinuousSpaceBitmap(obj); in Alloc()
145 CHECK(space_bitmap == nullptr) << obj << " overlaps with bitmap " << *space_bitmap; in Alloc()
151 large_objects_.Put(obj, LargeObject {mem_map, false /* not zygote */}); in Alloc()
154 begin_ = std::min(begin_, reinterpret_cast<uint8_t*>(obj)); in Alloc()
155 uint8_t* obj_end = reinterpret_cast<uint8_t*>(obj) + allocation_size; in Alloc()
169 return obj; in Alloc()
172 bool LargeObjectMapSpace::IsZygoteLargeObject(Thread* self, mirror::Object* obj) const { in IsZygoteLargeObject()
174 auto it = large_objects_.find(obj); in IsZygoteLargeObject()
204 size_t LargeObjectMapSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument
206 auto it = large_objects_.find(obj); in AllocationSize()
235 bool LargeObjectMapSpace::Contains(const mirror::Object* obj) const { in Contains()
239 return large_objects_.find(const_cast<mirror::Object*>(obj)) != large_objects_.end(); in Contains()
242 return large_objects_.find(const_cast<mirror::Object*>(obj)) != large_objects_.end(); in Contains()
404 size_t FreeListSpace::Free(Thread* self, mirror::Object* obj) { in Free() argument
406 DCHECK(Contains(obj)) << reinterpret_cast<void*>(Begin()) << " " << obj << " " in Free()
408 DCHECK_ALIGNED(obj, kAlignment); in Free()
409 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in Free()
455 madvise(obj, allocation_size, MADV_DONTNEED); in Free()
458 mprotect(obj, allocation_size, PROT_READ); in Free()
463 size_t FreeListSpace::AllocationSize(mirror::Object* obj, size_t* usable_size) { in AllocationSize() argument
464 DCHECK(Contains(obj)); in AllocationSize()
465 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in AllocationSize()
520 mirror::Object* obj = reinterpret_cast<mirror::Object*>(GetAddressForAllocationInfo(new_info)); in Alloc() local
524 mprotect(obj, allocation_size, PROT_READ | PROT_WRITE); in Alloc()
528 return obj; in Alloc()
558 bool FreeListSpace::IsZygoteLargeObject(Thread* self ATTRIBUTE_UNUSED, mirror::Object* obj) const { in IsZygoteLargeObject()
559 const AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in IsZygoteLargeObject()