Home
last modified time | relevance | path

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

12345678910>>...13

/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/test/2242-checker-lse-acquire-release-operations/src/
DMain.java184 static int $noinline$testVolatileLoadRedundantStore(TestClass obj) { in $noinline$testVolatileLoadRedundantStore() argument
185 int unused = obj.vi; in $noinline$testVolatileLoadRedundantStore()
186 obj.j = 1; in $noinline$testVolatileLoadRedundantStore()
187 obj.j = 2; in $noinline$testVolatileLoadRedundantStore()
188 return obj.j; in $noinline$testVolatileLoadRedundantStore()
204 static int $noinline$testVolatileLoadRedundantStoreBlocking(TestClass obj) { in $noinline$testVolatileLoadRedundantStoreBlocking() argument
206 obj.j = 1; in $noinline$testVolatileLoadRedundantStoreBlocking()
207 int unused = obj.vi; in $noinline$testVolatileLoadRedundantStoreBlocking()
208 obj.j = 2; in $noinline$testVolatileLoadRedundantStoreBlocking()
209 return obj.j; in $noinline$testVolatileLoadRedundantStoreBlocking()
[all …]
/art/test/530-checker-lse/src/
DMain.java163 static int test2(TestClass obj) { in test2() argument
164 obj.j = 1; in test2()
165 obj.j = 1; in test2()
166 return obj.j; in test2()
195 static int test3(TestClass obj) { in test3() argument
198 obj.next = obj2; // Make obj2 a non-singleton. in test3()
200 obj.i = 1; in test3()
205 return obj.i + obj1.j + obj2.i + obj2.j; in test3()
226 static int test4(TestClass obj, boolean b) { in test4() argument
228 obj.i = 1; in test4()
[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.h34 inline bool SpaceBitmap<kAlignment>::AtomicTestAndSet(const mirror::Object* obj) { in AtomicTestAndSet() argument
35 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in AtomicTestAndSet()
47 DCHECK(Test(obj)); in AtomicTestAndSet()
51 DCHECK(Test(obj)); in AtomicTestAndSet()
56 inline bool SpaceBitmap<kAlignment>::Test(const mirror::Object* obj) const { in Test() argument
57 uintptr_t addr = reinterpret_cast<uintptr_t>(obj); in Test()
58 DCHECK(HasAddress(obj)) << obj; in Test()
111 mirror::Object* obj = reinterpret_cast<mirror::Object*>(i); in VisitMarkedRange()
112 if (Test(obj)) { in VisitMarkedRange()
113 visitor(obj); in VisitMarkedRange()
[all …]
/art/test/838-override/src/
DMain.java30 pkg2.PublicFoo obj = new pkg2.PublicFoo(); in main() local
31 assertEquals(pkg1.Pkg1Foo.class, pkg1.Pkg1Foo.callFoo(obj)); in main()
32 assertEquals(pkg2.PublicFoo.class, pkg2.Pkg2Foo.callFoo(obj)); in main()
33 assertEquals(pkg2.PublicFoo.class, pkg3.Pkg3Foo.callFoo(obj)); in main()
34 assertEquals(pkg2.PublicFoo.class, obj.foo()); in main()
41 pkg1.PublicFoo obj = new pkg1.PublicFoo(); in main() local
42 assertEquals(pkg1.PublicFoo.class, pkg1.Pkg1Foo.callFoo(obj)); in main()
43 assertEquals(pkg1.PublicFoo.class, pkg2.Pkg2Foo.callFoo(obj)); in main()
44 assertEquals(pkg1.PublicFoo.class, pkg3.Pkg3Foo.callFoo(obj)); in main()
45 assertEquals(pkg1.PublicFoo.class, obj.foo()); in main()
[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()
43 mirror::Object* obj = obj_ptr->AsMirrorPtr(); in MarkObject() local
44 if (obj == nullptr) { in MarkObject()
47 if (from_space_->HasAddress(obj)) { in MarkObject()
48 mirror::Object* forward_address = GetForwardingAddressInFromSpace(obj); in MarkObject()
51 forward_address = MarkNonForwardedObject(obj); in MarkObject()
55 obj->SetLockWord( in MarkObject()
61 } else if (!immune_spaces_.IsInImmuneRegion(obj)) { in MarkObject()
[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/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/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/runtime/gc/space/
Dbump_pointer_space-walk-inl.h47 auto no_thread_safety_analysis_visit = [&](mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS { in Walk()
48 visitor(obj); in Walk()
70 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk() local
72 if (obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() == nullptr) { in Walk()
78 no_thread_safety_analysis_visit(obj); in Walk()
79 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj)); in Walk()
85 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); in Walk() local
91 … while (obj < end_obj && obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() != nullptr) { in Walk()
92 no_thread_safety_analysis_visit(obj); in Walk()
93 obj = GetNextObject(obj); in Walk()
Dlarge_object_space_test.cc63 mirror::Object* obj = los->Alloc(self, request_size, &allocation_size, nullptr, in LargeObjectTest() local
65 ASSERT_TRUE(obj != nullptr); in LargeObjectTest()
66 ASSERT_EQ(allocation_size, los->AllocationSize(obj, nullptr)); in LargeObjectTest()
71 memset(obj, magic, request_size); in LargeObjectTest()
72 requests.push_back(std::make_pair(obj, request_size)); in LargeObjectTest()
85 mirror::Object* obj = pair.first; in LargeObjectTest() local
86 ASSERT_FALSE(los->IsZygoteLargeObject(self, obj)); in LargeObjectTest()
90 mirror::Object* obj = pair.first; in LargeObjectTest() local
91 ASSERT_TRUE(los->IsZygoteLargeObject(self, obj)); in LargeObjectTest()
98 mirror::Object* obj = requests.back().first; in LargeObjectTest() local
[all …]
/art/runtime/gc/
Dheap-inl.h79 ObjPtr<mirror::Object> obj; in AllocObjectWithAllocator() local
98 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
100 if (obj != nullptr) { in AllocObjectWithAllocator()
101 return obj.Ptr(); in AllocObjectWithAllocator()
120 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
121 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
122 obj->SetClass(klass); in AllocObjectWithAllocator()
124 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
128 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
132 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
[all …]
/art/runtime/native/
Djdk_internal_misc_Unsafe.cc58 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetInt() local
60 bool success = obj->CasField32<false>(MemberOffset(offset), in Unsafe_compareAndSetInt()
68 static jboolean Unsafe_compareAndSwapInt(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapInt() argument
73 return Unsafe_compareAndSetInt(env, obj, javaObj, offset, expectedValue, newValue); in Unsafe_compareAndSwapInt()
79 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetLong() local
81 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSetLong()
87 static jboolean Unsafe_compareAndSwapLong(JNIEnv* env, jobject obj, jobject javaObj, jlong offset, in Unsafe_compareAndSwapLong() argument
92 return Unsafe_compareAndSetLong(env, obj, javaObj, offset, expectedValue, newValue); in Unsafe_compareAndSwapLong()
102 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetReference() local
112 reinterpret_cast<uint8_t*>(obj.Ptr()) + static_cast<size_t>(offset)); in Unsafe_compareAndSetReference()
[all …]
/art/test/2009-structural-local-ref/
Dlocal-ref.cc35 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalCallStatic() argument
36 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalCallStatic()
49 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalCallVirtual() argument
50 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalCallVirtual()
57 return reinterpret_cast<jstring>(env->CallObjectMethod(obj, new_method)); in Java_art_Test2009_NativeLocalCallVirtual()
61 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetIField() argument
62 jclass obj_klass = env->GetObjectClass(obj); in Java_art_Test2009_NativeLocalGetIField()
69 env->SetObjectField(obj, new_field, env->NewStringUTF("VirtualString")); in Java_art_Test2009_NativeLocalGetIField()
70 return reinterpret_cast<jstring>(env->GetObjectField(obj, new_field)); in Java_art_Test2009_NativeLocalGetIField()
74 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jobject thnk) { in Java_art_Test2009_NativeLocalGetSField() argument
[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/test/530-checker-lse-try-catch/src/
DMain.java110 Point obj, boolean boolean_throw, boolean boolean_other_throw) { in $noinline$testRedundantStore() argument
118 obj.y = 1; in $noinline$testRedundantStore()
119 obj.y = 1; in $noinline$testRedundantStore()
127 return obj.y; in $noinline$testRedundantStore()
143 private static int $noinline$testTryCatchBlocking(Point obj, boolean boolean_throw) { in $noinline$testTryCatchBlocking() argument
144 obj.y = 1; in $noinline$testTryCatchBlocking()
151 return obj.y; in $noinline$testTryCatchBlocking()
172 private static int $noinline$testTryCatchPhi(Point obj, boolean boolean_throw) { in $noinline$testTryCatchPhi() argument
173 obj.y = 1; in $noinline$testTryCatchPhi()
179 obj.y = 2; in $noinline$testTryCatchPhi()
[all …]
/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
26 Foo.class.getClassLoader(), interfaces, new DebugProxy(obj)); in newInstance()
29 private DebugProxy(Object obj) { in DebugProxy() argument
30 this.obj = obj; in DebugProxy()
35 if (obj == null) { in invoke()
40 result = m.invoke(obj, args); in invoke()
/art/runtime/entrypoints/quick/
Dquick_field_entrypoints.cc78 mirror::Object** obj, in FindInstanceField() argument
83 HandleWrapper<mirror::Object> h(hs.NewHandleWrapper(obj)); in FindInstanceField()
131 mirror::Object* obj, \
138 if (LIKELY(field != nullptr) && obj != nullptr) { \
139 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
142 field_idx, referrer, self, &obj); \
144 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \
185 mirror::Object* obj, \
197 if (UNLIKELY(field == nullptr || obj == nullptr)) { \
206 &obj, \
[all …]
/art/runtime/
Dcommon_dex_operations.h121 ObjPtr<mirror::Object> obj, in DoFieldGetCommon() argument
133 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(&obj)); in DoFieldGetCommon()
137 this_object = obj; in DoFieldGetCommon()
151 result->SetZ(field->GetBoolean(obj)); in DoFieldGetCommon()
154 result->SetB(field->GetByte(obj)); in DoFieldGetCommon()
157 result->SetC(field->GetChar(obj)); in DoFieldGetCommon()
160 result->SetS(field->GetShort(obj)); in DoFieldGetCommon()
163 result->SetI(field->GetInt(obj)); in DoFieldGetCommon()
166 result->SetJ(field->GetLong(obj)); in DoFieldGetCommon()
169 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/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>>...13