/art/test/023-many-interfaces/src/ |
D | ManyInterfaces.java | 190 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/ |
D | Main.java | 426 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/530-checker-lse/src/ |
D | Main.java | 163 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() 229 static int test4(TestClass obj, boolean b) { in test4() argument 231 obj.i = 1; in test4() [all …]
|
/art/runtime/gc/accounting/ |
D | heap_bitmap-inl.h | 38 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 …]
|
D | space_bitmap-inl.h | 34 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() 74 mirror::Object* obj = reinterpret_cast<mirror::Object*>(i); in VisitMarkedRange() 75 if (Test(obj)) { in VisitMarkedRange() 76 visitor(obj); in VisitMarkedRange() [all …]
|
/art/test/537-checker-arraycopy/src/ |
D | Main.java | 60 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/ |
D | semi_space-inl.h | 29 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/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 29 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/test/003-omnibus-opcodes/src/ |
D | Monitor.java | 25 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/gc/space/ |
D | bump_pointer_space-walk-inl.h | 44 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()
|
D | large_object_space_test.cc | 63 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 …]
|
D | large_object_space.cc | 57 mirror::Object* obj = in Alloc() local 61 reinterpret_cast<uintptr_t>(obj) + kMemoryToolRedZoneBytes); in Alloc() 62 MEMORY_TOOL_MAKE_NOACCESS(reinterpret_cast<void*>(obj), kMemoryToolRedZoneBytes); in Alloc() 72 size_t AllocationSize(mirror::Object* obj, size_t* usable_size) override { in AllocationSize() argument 73 return LargeObjectMapSpace::AllocationSize(ObjectWithRedzone(obj), usable_size); in AllocationSize() 76 bool IsZygoteLargeObject(Thread* self, mirror::Object* obj) const override { in IsZygoteLargeObject() 77 return LargeObjectMapSpace::IsZygoteLargeObject(self, ObjectWithRedzone(obj)); in IsZygoteLargeObject() 80 size_t Free(Thread* self, mirror::Object* obj) override { in Free() argument 81 mirror::Object* object_with_rdz = ObjectWithRedzone(obj); in Free() 82 MEMORY_TOOL_MAKE_UNDEFINED(object_with_rdz, AllocationSize(obj, nullptr)); in Free() [all …]
|
/art/runtime/interpreter/ |
D | lock_count_data.cc | 28 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/ |
D | Main.java | 25 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/ |
D | heap-inl.h | 79 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/test/2009-structural-local-ref/ |
D | local-ref.cc | 35 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/ |
D | Main.java | 35 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/ |
D | common_dex_operations.h | 95 ObjPtr<mirror::Object> obj, in DoFieldGetCommon() argument 107 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(&obj)); in DoFieldGetCommon() 111 this_object = obj; in DoFieldGetCommon() 125 result->SetZ(field->GetBoolean(obj)); in DoFieldGetCommon() 128 result->SetB(field->GetByte(obj)); in DoFieldGetCommon() 131 result->SetC(field->GetChar(obj)); in DoFieldGetCommon() 134 result->SetS(field->GetShort(obj)); in DoFieldGetCommon() 137 result->SetI(field->GetInt(obj)); in DoFieldGetCommon() 140 result->SetJ(field->GetLong(obj)); in DoFieldGetCommon() 143 result->SetL(field->GetObject(obj)); in DoFieldGetCommon() [all …]
|
D | verify_object.cc | 28 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/616-cha-proxy-method-inline/src/ |
D | Main.java | 21 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/entrypoints/quick/ |
D | quick_field_entrypoints.cc | 39 mirror::Object** obj) in FindInstanceField() argument 43 HandleWrapper<mirror::Object> h(hs.NewHandleWrapper(obj)); in FindInstanceField() 92 mirror::Object* obj, \ 100 if (LIKELY(field != nullptr) && obj != nullptr) { \ 101 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \ 104 field_idx, referrer, self, sizeof(PrimitiveType), &obj); \ 106 return field->Get ## Kind (obj)Ptr; /* NOLINT */ \ 150 mirror::Object* obj, \ 159 if (UNLIKELY(field == nullptr || obj == nullptr)) { \ 170 &obj); \ [all …]
|
D | quick_lock_entrypoints.cc | 23 extern "C" int artLockObjectFromCode(mirror::Object* obj, Thread* self) in artLockObjectFromCode() argument 28 if (UNLIKELY(obj == nullptr)) { in artLockObjectFromCode() 32 ObjPtr<mirror::Object> object = obj->MonitorEnter(self); // May block in artLockObjectFromCode() 51 extern "C" int artUnlockObjectFromCode(mirror::Object* obj, Thread* self) in artUnlockObjectFromCode() argument 56 if (UNLIKELY(obj == nullptr)) { in artUnlockObjectFromCode() 61 return obj->MonitorExit(self) ? 0 /* Success */ : -1 /* Failure */; in artUnlockObjectFromCode()
|
/art/test/903-hello-tagging/src/art/ |
D | Test903.java | 134 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()
|
/art/test/603-checker-instanceof/src/ |
D | Main.java | 36 Object obj = new ChildClass(); in test1() local 41 obj = new Object(); in test1() 44 if (obj instanceof SuperClass) { in test1() 48 if (!(obj instanceof ChildClass)) { in test1() 49 throw new Error("Expected a ChildClass, got " + obj.getClass()); in test1()
|
/art/runtime/native/ |
D | sun_misc_Unsafe.cc | 44 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapInt() local 46 bool success = obj->CasField32<false>(MemberOffset(offset), in Unsafe_compareAndSwapInt() 57 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapLong() local 59 bool success = obj->CasFieldStrongSequentiallyConsistent64<false>(MemberOffset(offset), in Unsafe_compareAndSwapLong() 68 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapObject() local 78 reinterpret_cast<uint8_t*>(obj.Ptr()) + static_cast<size_t>(offset)); in Unsafe_compareAndSwapObject() 81 obj.Ptr(), in Unsafe_compareAndSwapObject() 85 bool success = obj->CasFieldObject<false>(MemberOffset(offset), in Unsafe_compareAndSwapObject() 95 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_getInt() local 96 return obj->GetField32(MemberOffset(offset)); in Unsafe_getInt() [all …]
|