Home
last modified time | relevance | path

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

12345678910>>...12

/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/test/615-checker-arm64-store-zero/src/
DMain.java426 Main obj = new Main(); in main() local
427 obj.array_byte = new byte[1]; in main()
428 obj.array_char = new char[1]; in main()
429 obj.array_short = new short[1]; in main()
430 obj.array_int = new int[1]; in main()
431 obj.array_long = new long[1]; in main()
432 obj.array_float = new float[1]; in main()
433 obj.array_double = new double[1]; in main()
435 obj.bar(); in main()
436 obj.store_zero_to_static_byte_field(); in main()
[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()
71 mirror::Object* obj = reinterpret_cast<mirror::Object*>(i); in VisitMarkedRange()
72 if (Test(obj)) { in VisitMarkedRange()
73 visitor(obj); in VisitMarkedRange()
[all …]
/art/test/530-checker-lse/src/
DMain.java127 static int test2(TestClass obj) { in test2() argument
128 obj.j = 1; in test2()
129 obj.j = 1; in test2()
130 return obj.j; in test2()
156 static int test3(TestClass obj) { in test3() argument
159 obj.next = obj2; // Make obj2 a non-singleton. in test3()
161 obj.i = 1; in test3()
166 return obj.i + obj1.j + obj2.i + obj2.j; in test3()
183 static int test4(TestClass obj, boolean b) { in test4() argument
185 obj.i = 1; in test4()
[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()
73 public static void arraycopy(Object[] obj, int pos) { in arraycopy() argument
74 System.arraycopy(obj, pos, obj, 0, obj.length); in arraycopy()
83 public static int arraycopy2(Object[] obj, int pos) { in arraycopy2() argument
84 System.arraycopy(obj, pos, obj, pos - 1, obj.length); in arraycopy2()
/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.cc79 void MarkCompact::ForwardObject(mirror::Object* obj) { in ForwardObject() argument
80 const size_t alloc_size = RoundUp(obj->SizeOf(), space::BumpPointerSpace::kAlignment); in ForwardObject()
81 LockWord lock_word = obj->GetLockWord(false); in ForwardObject()
85 objects_with_lockword_->Set(obj); in ForwardObject()
88 obj->SetLockWord(LockWord::FromForwardingAddress(reinterpret_cast<size_t>(bump_pointer_)), in ForwardObject()
102 [this](mirror::Object* obj) in CalculateObjectForwardingAddresses()
104 DCHECK_ALIGNED(obj, space::BumpPointerSpace::kAlignment); in CalculateObjectForwardingAddresses()
105 DCHECK(IsMarked(obj) != nullptr); in CalculateObjectForwardingAddresses()
106 ForwardObject(obj); in CalculateObjectForwardingAddresses()
128 inline mirror::Object* MarkCompact::MarkObject(mirror::Object* obj) { in MarkObject() argument
[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.cc46 mirror::Object** obj) in FindInstanceField() argument
50 HandleWrapper<mirror::Object> h(hs.NewHandleWrapper(obj)); in FindInstanceField()
94 mirror::Object* obj, \
102 if (LIKELY(field != nullptr) && obj != nullptr) { \
103 return field->Get ## Kind (obj)Ptr; \
106 field_idx, referrer, self, sizeof(PrimitiveType), &obj); \
108 return field->Get ## Kind (obj)Ptr; \
145 mirror::Object* obj, \
154 if (LIKELY(field != nullptr && obj != nullptr)) { \
155 field->Set ## Kind <false>(obj, new_value); \
[all …]
/art/runtime/gc/space/
Dbump_pointer_space-walk-inl.h44 auto no_thread_safety_analysis_visit = [&](mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS { in Walk()
45 visitor(obj); in Walk()
65 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk() local
67 if (obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() == nullptr) { in Walk()
73 no_thread_safety_analysis_visit(obj); in Walk()
74 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj)); in Walk()
82 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk() local
88 while (obj < end_obj && obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() != nullptr) { in Walk()
89 no_thread_safety_analysis_visit(obj); in Walk()
90 obj = GetNextObject(obj); in Walk()
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()
/art/runtime/interpreter/
Dlock_count_data.cc28 void LockCountData::AddMonitor(Thread* self, mirror::Object* obj) { in AddMonitor() argument
29 if (obj == nullptr) { in AddMonitor()
42 monitors_->push_back(obj); in AddMonitor()
45 void LockCountData::RemoveMonitorOrThrow(Thread* self, const mirror::Object* obj) { in RemoveMonitorOrThrow() argument
46 if (obj == nullptr) { in RemoveMonitorOrThrow()
53 auto it = std::find(monitors_->begin(), monitors_->end(), obj); in RemoveMonitorOrThrow()
66 const_cast<mirror::Object*>(obj)->PrettyTypeOf().c_str()); in RemoveMonitorOrThrow()
72 void MonitorExitHelper(Thread* self, mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS { in MonitorExitHelper() argument
74 DCHECK(obj != nullptr); in MonitorExitHelper()
75 obj->MonitorExit(self); in MonitorExitHelper()
[all …]
/art/test/596-monitor-inflation/src-art/
DMain.java25 Object obj = new Object(); in main() local
26 synchronized(obj) { in main()
28 all.put(obj, obj.hashCode()); in main()
57 for (Object obj: all.keySet()) { in main()
59 if (obj.hashCode() != all.get(obj)) { in main()
64 for (Object obj: all.keySet()) { in main()
66 synchronized(obj) { in main()
67 if (obj.hashCode() != all.get(obj)) { in main()
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc29 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveLocal() local
30 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeAddRemoveLocal()
32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal()
40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeLocal() local
41 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeDecodeLocal()
42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal()
44 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj); in Java_JObjectBenchmark_timeDecodeLocal()
52 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveGlobal() local
53 CHECK(obj != nullptr); in Java_JObjectBenchmark_timeAddRemoveGlobal()
55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal()
[all …]
/art/runtime/gc/
Dheap-inl.h63 ObjPtr<mirror::Object> obj; in AllocObjectWithAllocator() local
65 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
67 if (obj != nullptr) { in AllocObjectWithAllocator()
68 return obj.Ptr(); in AllocObjectWithAllocator()
86 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
87 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
88 obj->SetClass(klass); in AllocObjectWithAllocator()
90 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
94 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
98 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
[all …]
/art/runtime/
Dcommon_dex_operations.h67 ObjPtr<mirror::Object> obj, in DoFieldGetCommon() argument
78 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(&obj)); in DoFieldGetCommon()
81 this_object = obj; in DoFieldGetCommon()
95 result->SetZ(field->GetBoolean(obj)); in DoFieldGetCommon()
98 result->SetB(field->GetByte(obj)); in DoFieldGetCommon()
101 result->SetC(field->GetChar(obj)); in DoFieldGetCommon()
104 result->SetS(field->GetShort(obj)); in DoFieldGetCommon()
107 result->SetI(field->GetInt(obj)); in DoFieldGetCommon()
110 result->SetJ(field->GetLong(obj)); in DoFieldGetCommon()
113 result->SetL(field->GetObject(obj)); in DoFieldGetCommon()
[all …]
Dverify_object.cc28 void VerifyObjectImpl(ObjPtr<mirror::Object> obj) { in VerifyObjectImpl() argument
31 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObjectImpl()
35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr()); in VerifyObjectImpl()
37 mirror::Class* c = obj->GetClass<kVerifyNone>(); in VerifyObjectImpl()
42 Runtime::Current()->GetHeap()->VerifyObjectBody(obj); in VerifyObjectImpl()
/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/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/test/616-cha-proxy-method-inline/src/
DMain.java21 private Object obj; field in DebugProxy
24 public static Object newInstance(Object obj) { in newInstance() argument
28 new DebugProxy(obj)); in newInstance()
31 private DebugProxy(Object obj) { in DebugProxy() argument
32 this.obj = obj; in DebugProxy()
37 if (obj == null) { in invoke()
42 result = m.invoke(obj, args); in invoke()
/art/runtime/openjdkjvmti/
Dobject_tagging.cc45 bool ObjectTagTable::Set(art::mirror::Object* obj, jlong new_tag) { in Set() argument
48 return Remove(obj, &tmp); in Set()
50 return JvmtiWeakTable<jlong>::Set(obj, new_tag); in Set()
52 bool ObjectTagTable::SetLocked(art::mirror::Object* obj, jlong new_tag) { in SetLocked() argument
55 return RemoveLocked(obj, &tmp); in SetLocked()
57 return JvmtiWeakTable<jlong>::SetLocked(obj, new_tag); in SetLocked()
/art/runtime/native/
Dsun_misc_Unsafe.cc40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapInt() local
42 bool success = obj->CasFieldStrongSequentiallyConsistent32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt()
51 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapLong() local
53 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong()
62 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapObject() local
71 reinterpret_cast<uint8_t*>(obj.Ptr()) + static_cast<size_t>(offset)); in Unsafe_compareAndSwapObject()
73 obj.Ptr(), in Unsafe_compareAndSwapObject()
77 bool success = obj->CasFieldStrongSequentiallyConsistentObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject()
85 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_getInt() local
86 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt()
[all …]
/art/test/903-hello-tagging/src/art/
DTest903.java134 Object obj; field in Test903.Pair
137 obj = o; in Pair()
146 if ((obj instanceof Comparable) && (p.obj instanceof Comparable)) { in compareTo()
148 int result = ((Comparable<Object>)obj).compareTo(p.obj); in compareTo()
154 if (obj != null && p.obj != null) { in compareTo()
155 return obj.hashCode() - p.obj.hashCode(); in compareTo()
158 if (obj != null) { in compareTo()
162 if (p.obj != null) { in compareTo()
170 return "<" + obj + ";" + tag + ">"; in toString()

12345678910>>...12