Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 224) sorted by relevance

123456789

/art/test/023-many-interfaces/src/
DManyInterfaces.java190 ManyInterfaces obj = new ManyInterfaces(); in run() local
206 testIface001(obj, iter); in run()
211 testIface049(obj, iter); in run()
216 testIface099(obj, iter); in run()
221 testVirt001(obj, iter); in run()
226 testVirt049(obj, iter); in run()
231 testVirt099(obj, iter); in run()
236 testInstance001(obj, iter); in run()
241 testInstance049(obj, iter); in run()
246 testInstance099(obj, iter); in run()
[all …]
/art/runtime/gc/accounting/
Dheap_bitmap-inl.h38 inline bool HeapBitmap::Test(const mirror::Object* obj) { in Test() argument
39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); in Test()
41 return bitmap->Test(obj); in Test()
44 if (LIKELY(lo_bitmap->HasAddress(obj))) { in Test()
45 return lo_bitmap->Test(obj); in Test()
48 LOG(FATAL) << "Invalid object " << obj; in Test()
52 inline void HeapBitmap::Clear(const mirror::Object* obj) { in Clear() argument
53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); in Clear()
55 bitmap->Clear(obj); in Clear()
59 if (LIKELY(lo_bitmap->HasAddress(obj))) { in Clear()
[all …]
Dspace_bitmap-inl.h33 inline bool SpaceBitmap<kAlignment>::AtomicTestAndSet(const mirror::Object* obj) { in AtomicTestAndSet() argument
34 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in AtomicTestAndSet()
46 DCHECK(Test(obj)); in AtomicTestAndSet()
50 DCHECK(Test(obj)); in AtomicTestAndSet()
55 inline bool SpaceBitmap<kAlignment>::Test(const mirror::Object* obj) const { in Test() argument
56 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Test()
57 DCHECK(HasAddress(obj)) << obj; in Test()
70 mirror::Object* obj = reinterpret_cast<mirror::Object*>(i); in VisitMarkedRange()
71 if (Test(obj)) { in VisitMarkedRange()
72 visitor(obj); in VisitMarkedRange()
[all …]
Dspace_bitmap.h44 typedef void ScanCallback(mirror::Object* obj, void* finger, void* arg);
76 bool Set(const mirror::Object* obj) ALWAYS_INLINE { in Set() argument
77 return Modify<true>(obj); in Set()
80 bool Clear(const mirror::Object* obj) ALWAYS_INLINE { in Clear() argument
81 return Modify<false>(obj); in Clear()
85 bool AtomicTestAndSet(const mirror::Object* obj);
90 bool Test(const mirror::Object* obj) const;
94 bool HasAddress(const void* obj) const { in HasAddress() argument
97 const uintptr_t offset = reinterpret_cast<uintptr_t>(obj) - heap_begin_; in HasAddress()
110 void operator()(mirror::Object* obj) const { in operator()
[all …]
/art/test/530-checker-lse/src/
DMain.java120 static int test2(TestClass obj) { in test2() argument
121 obj.j = 1; in test2()
122 obj.j = 1; in test2()
123 return obj.j; in test2()
151 static int test3(TestClass obj) { in test3() argument
157 obj.next = obj2; // Make obj2 a non-singleton. in test3()
159 obj.i = 1; in test3()
164 return obj.i + obj1.j + obj2.i + obj2.j; in test3()
181 static int test4(TestClass obj, boolean b) { in test4() argument
183 obj.i = 1; in test4()
[all …]
/art/runtime/gc/collector/
Dsemi_space-inl.h29 inline mirror::Object* SemiSpace::GetForwardingAddressInFromSpace(mirror::Object* obj) const { in GetForwardingAddressInFromSpace() argument
30 DCHECK(from_space_->HasAddress(obj)); in GetForwardingAddressInFromSpace()
31 LockWord lock_word = obj->GetLockWord(false); in GetForwardingAddressInFromSpace()
44 mirror::Object* obj = obj_ptr->AsMirrorPtr(); in MarkObject() local
45 if (obj == nullptr) { in MarkObject()
48 if (from_space_->HasAddress(obj)) { in MarkObject()
49 mirror::Object* forward_address = GetForwardingAddressInFromSpace(obj); in MarkObject()
52 forward_address = MarkNonForwardedObject(obj); in MarkObject()
56 obj->SetLockWord( in MarkObject()
62 } else if (!collect_from_space_only_ && !immune_spaces_.IsInImmuneRegion(obj)) { in MarkObject()
[all …]
Dmark_compact.cc74 void MarkCompact::ForwardObject(mirror::Object* obj) { in ForwardObject() argument
75 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject()
76 LockWord lock_word = obj->GetLockWord(false); in ForwardObject()
80 objects_with_lockword_->Set(obj); in ForwardObject()
83 obj->SetLockWord(LockWord::FromForwardingAddress(reinterpret_cast<size_t>(bump_pointer_)), in ForwardObject()
97 [this](mirror::Object* obj) in CalculateObjectForwardingAddresses()
99 DCHECK_ALIGNED(obj, space::BumpPointerSpace::kAlignment); in CalculateObjectForwardingAddresses()
100 DCHECK(IsMarked(obj) != nullptr); in CalculateObjectForwardingAddresses()
101 ForwardObject(obj); in CalculateObjectForwardingAddresses()
123 inline mirror::Object* MarkCompact::MarkObject(mirror::Object* obj) { in MarkObject() argument
[all …]
Dsemi_space.cc291 void operator()(Object* obj, MemberOffset offset, bool /* is_static */) const in operator ()() argument
293 mirror::Object* ref = obj->GetFieldObject<mirror::Object>(offset); in operator ()()
295 Runtime::Current()->GetHeap()->DumpObject(LOG(INFO), obj); in operator ()()
321 void SemiSpace::VerifyNoFromSpaceReferences(Object* obj) { in VerifyNoFromSpaceReferences() argument
322 DCHECK(!from_space_->HasAddress(obj)) << "Scanning object " << obj << " in from space"; in VerifyNoFromSpaceReferences()
324 obj->VisitReferences(visitor, VoidFunctor()); in VerifyNoFromSpaceReferences()
371 [this](mirror::Object* obj) in MarkReachableObjects()
373 ScanObject(obj); in MarkReachableObjects()
384 [this](Object* obj) in MarkReachableObjects()
386 DCHECK(obj != nullptr); in MarkReachableObjects()
[all …]
/art/test/537-checker-arraycopy/src/
DMain.java60 Object[] obj = new Object[4]; in arraycopy() local
61 System.arraycopy(obj, 1, obj, 0, 1); in arraycopy()
64 public static void arraycopy(Object obj) { in arraycopy() argument
65 System.arraycopy(obj, 1, obj, 0, 1); in arraycopy()
68 public static void arraycopy(Object[] obj, int pos) { in arraycopy() argument
69 System.arraycopy(obj, pos, obj, 0, obj.length); in arraycopy()
/art/runtime/gc/
Dheap-inl.h55 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()
[all …]
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc28 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); in Java_JObjectBenchmark_timeAddRemoveLocal() local
29 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeAddRemoveLocal()
31 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal()
39 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); in Java_JObjectBenchmark_timeDecodeLocal() local
40 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeDecodeLocal()
41 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal()
43 CHECK_EQ(soa.Decode<mirror::Object*>(ref), obj); in Java_JObjectBenchmark_timeDecodeLocal()
51 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); in Java_JObjectBenchmark_timeAddRemoveGlobal() local
52 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeAddRemoveGlobal()
54 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal()
[all …]
/art/test/003-omnibus-opcodes/src/
DMonitor.java25 Object obj = new Object(); in subTest() local
26 synchronized (obj) { in subTest()
28 obj = null; // does NOT cause a failure on exit in subTest()
29 Main.assertTrue(obj == null); in subTest()
37 Object obj = null; in run() local
40 synchronized (obj) { in run()
48 obj = new Object(); in run()
49 synchronized (obj) { in run()
/art/runtime/entrypoints/quick/
Dquick_lock_entrypoints.cc23 extern "C" int artLockObjectFromCode(mirror::Object* obj, Thread* self) in artLockObjectFromCode() argument
28 if (UNLIKELY(obj == nullptr)) { in artLockObjectFromCode()
33 obj = obj->MonitorEnter(self); // May block in artLockObjectFromCode()
34 CHECK(self->HoldsLock(obj)); in artLockObjectFromCode()
37 obj->MonitorEnter(self); // May block in artLockObjectFromCode()
44 extern "C" int artUnlockObjectFromCode(mirror::Object* obj, Thread* self) in artUnlockObjectFromCode() argument
49 if (UNLIKELY(obj == nullptr)) { in artUnlockObjectFromCode()
54 return obj->MonitorExit(self) ? 0 /* Success */ : -1 /* Failure */; in artUnlockObjectFromCode()
Dquick_field_entrypoints.cc45 mirror::Object** obj) in FindInstanceField() argument
49 HandleWrapper<mirror::Object> h(hs.NewHandleWrapper(obj)); in FindInstanceField()
177 mirror::Object* obj, in artGetByteInstanceFromCode() argument
183 if (LIKELY(field != nullptr && obj != nullptr)) { in artGetByteInstanceFromCode()
184 return field->GetByte(obj); in artGetByteInstanceFromCode()
190 &obj); in artGetByteInstanceFromCode()
192 return field->GetByte(obj); in artGetByteInstanceFromCode()
198 mirror::Object* obj, in artGetBooleanInstanceFromCode() argument
204 if (LIKELY(field != nullptr && obj != nullptr)) { in artGetBooleanInstanceFromCode()
205 return field->GetBoolean(obj); in artGetBooleanInstanceFromCode()
[all …]
/art/runtime/gc/space/
Dregion_space-inl.h47 mirror::Object* obj; in AllocNonvirtual() local
51 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
55 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
58 if (LIKELY(obj != nullptr)) { in AllocNonvirtual()
59 return obj; in AllocNonvirtual()
64 obj = current_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
67 obj = evac_region_->Alloc(num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
70 if (LIKELY(obj != nullptr)) { in AllocNonvirtual()
71 return obj; in AllocNonvirtual()
84 obj = r->Alloc(num_bytes, bytes_allocated, usable_size, bytes_tl_bulk_allocated); in AllocNonvirtual()
[all …]
Dlarge_object_space_test.cc55 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, in LargeObjectTest() local
57 ASSERT_TRUE(obj != nullptr); in LargeObjectTest()
58 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr)); in LargeObjectTest()
63 memset(obj, magic, request_size); in LargeObjectTest()
64 requests.push_back(std::make_pair(obj, request_size)); in LargeObjectTest()
77 mirror::Object* obj = pair.first; in LargeObjectTest() local
78 ASSERT_FALSE(los->IsZygoteLargeObject(self, obj)); in LargeObjectTest()
82 mirror::Object* obj = pair.first; in LargeObjectTest() local
83 ASSERT_TRUE(los->IsZygoteLargeObject(self, obj)); in LargeObjectTest()
90 mirror::Object* obj = requests.back().first; in LargeObjectTest() local
[all …]
Ddlmalloc_space-inl.h32 mirror::Object* obj; in AllocNonvirtual() local
35 obj = AllocWithoutGrowthLocked(self, num_bytes, bytes_allocated, usable_size, in AllocNonvirtual()
38 if (LIKELY(obj != nullptr)) { in AllocNonvirtual()
40 memset(obj, 0, num_bytes); in AllocNonvirtual()
42 return obj; in AllocNonvirtual()
45 inline size_t DlMallocSpace::AllocationSizeNonvirtual(mirror::Object* obj, size_t* usable_size) { in AllocationSizeNonvirtual() argument
46 void* obj_ptr = const_cast<void*>(reinterpret_cast<const void*>(obj)); in AllocationSizeNonvirtual()
Dlarge_object_space.cc55 mirror::Object* obj = in Alloc() local
59 reinterpret_cast<uintptr_t>(obj) + kMemoryToolRedZoneBytes); in Alloc()
60 MEMORY_TOOL_MAKE_NOACCESS(reinterpret_cast<void*>(obj), kMemoryToolRedZoneBytes); in Alloc()
70 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) OVERRIDE { in AllocationSize() argument
71 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize()
74 bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const OVERRIDE { in IsZygoteLargeObject()
75 return LargeObjectMapSpace::IsZygoteLargeObject(self, ObjectWithRedzone(obj)); in IsZygoteLargeObject()
78 size_t Free(Thread* self, mirror::Object* obj) OVERRIDE { in Free() argument
79 mirror::Object* object_with_rdz = ObjectWithRedzone(obj); in Free()
80 MEMORY_TOOL_MAKE_UNDEFINED(object_with_rdz, AllocationSize(obj, nullptr)); in Free()
[all …]
/art/test/132-daemon-locks-shutdown/src/
DMain.java35 private Object obj; field in Main.Wait
37 public Wait(Object obj) { in Wait() argument
38 this.obj = obj; in Wait()
43 synchronized(obj) { in run()
45 obj.wait(1); in run()
/art/runtime/native/
Dsun_misc_Unsafe.cc36 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapInt() local
38 bool success = obj->CasFieldStrongSequentiallyConsistent32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt()
46 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapLong() local
48 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong()
56 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_compareAndSwapObject() local
65 reinterpret_cast<uint8_t*>(obj) + static_cast<size_t>(offset)); in Unsafe_compareAndSwapObject()
67 obj, in Unsafe_compareAndSwapObject()
71 bool success = obj->CasFieldStrongSequentiallyConsistentObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject()
78 mirror::Object* obj = soa.Decode<mirror::Object*>(javaObj); in Unsafe_getInt() local
79 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt()
[all …]
/art/test/603-checker-instanceof/src/
DMain.java31 Object obj = new ChildClass(); in main() local
36 obj = new Object(); in main()
39 if (obj instanceof SuperClass) { in main()
43 if (!(obj instanceof ChildClass)) { in main()
44 throw new Error("Expected a ChildClass, got " + obj.getClass()); in main()
/art/patchoat/
Dpatchoat.h100 static void BitmapCallback(mirror::Object* obj, void* arg) in BitmapCallback() argument
102 reinterpret_cast<PatchOat*>(arg)->VisitObject(obj); in BitmapCallback()
105 void VisitObject(mirror::Object* obj)
134 T* RelocatedCopyOf(T* obj) const { in RelocatedCopyOf() argument
135 if (obj == nullptr) { in RelocatedCopyOf()
138 DCHECK_GT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->Begin())); in RelocatedCopyOf()
139 DCHECK_LT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->End())); in RelocatedCopyOf()
141 reinterpret_cast<uintptr_t>(obj) - reinterpret_cast<uintptr_t>(heap_->Begin()); in RelocatedCopyOf()
147 T* RelocatedCopyOfFollowImages(T* obj) const { in RelocatedCopyOfFollowImages() argument
148 if (obj == nullptr) { in RelocatedCopyOfFollowImages()
[all …]
/art/runtime/
Dverify_object-inl.h27 inline void VerifyObject(mirror::Object* obj) { in VerifyObject() argument
28 if (kVerifyObjectSupport > kVerifyObjectModeDisabled && obj != nullptr) { in VerifyObject()
31 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObject()
35 bool failed = !IsAligned<kObjectAlignment>(obj); in VerifyObject()
37 mirror::Class* c = obj->GetClass<kVerifyNone>(); in VerifyObject()
42 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObject()
Djni_internal.cc425 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); in IsInstanceOf() local
427 return obj->InstanceOf(c) ? JNI_TRUE : JNI_FALSE; in IsInstanceOf()
518 static jobject NewGlobalRef(JNIEnv* env, jobject obj) { in NewGlobalRef() argument
520 mirror::Object* decoded_obj = soa.Decode<mirror::Object*>(obj); in NewGlobalRef()
524 static void DeleteGlobalRef(JNIEnv* env, jobject obj) { in DeleteGlobalRef() argument
527 vm->DeleteGlobalRef(self, obj); in DeleteGlobalRef()
530 static jweak NewWeakGlobalRef(JNIEnv* env, jobject obj) { in NewWeakGlobalRef() argument
532 mirror::Object* decoded_obj = soa.Decode<mirror::Object*>(obj); in NewWeakGlobalRef()
536 static void DeleteWeakGlobalRef(JNIEnv* env, jweak obj) { in DeleteWeakGlobalRef() argument
539 vm->DeleteWeakGlobalRef(self, obj); in DeleteWeakGlobalRef()
[all …]
Dtransaction.cc101 void Transaction::RecordWriteFieldBoolean(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldBoolean() argument
103 DCHECK(obj != nullptr); in RecordWriteFieldBoolean()
105 ObjectLog& object_log = object_logs_[obj]; in RecordWriteFieldBoolean()
109 void Transaction::RecordWriteFieldByte(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldByte() argument
111 DCHECK(obj != nullptr); in RecordWriteFieldByte()
113 ObjectLog& object_log = object_logs_[obj]; in RecordWriteFieldByte()
117 void Transaction::RecordWriteFieldChar(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldChar() argument
119 DCHECK(obj != nullptr); in RecordWriteFieldChar()
121 ObjectLog& object_log = object_logs_[obj]; in RecordWriteFieldChar()
126 void Transaction::RecordWriteFieldShort(mirror::Object* obj, MemberOffset field_offset, in RecordWriteFieldShort() argument
[all …]

123456789