/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/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 (!collect_from_space_only_ && !immune_spaces_.IsInImmuneRegion(obj)) { in MarkObject() [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/test/530-checker-lse/src/ |
D | Main.java | 130 static int test2(TestClass obj) { in test2() argument 131 obj.j = 1; in test2() 132 obj.j = 1; in test2() 133 return obj.j; in test2() 159 static int test3(TestClass obj) { in test3() argument 162 obj.next = obj2; // Make obj2 a non-singleton. in test3() 164 obj.i = 1; in test3() 169 return obj.i + obj1.j + obj2.i + obj2.j; in test3() 206 static int test7(TestClass obj) { in test7() argument 207 obj.i = 1; in test7() [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/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 | dlmalloc_space-inl.h | 32 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()
|
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 …]
|
/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/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/runtime/gc/ |
D | heap-inl.h | 64 ObjPtr<mirror::Object> obj; in AllocObjectWithAllocator() local 66 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator() 68 if (obj != nullptr) { in AllocObjectWithAllocator() 69 return obj.Ptr(); in AllocObjectWithAllocator() 87 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator() 88 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator() 89 obj->SetClass(klass); in AllocObjectWithAllocator() 91 obj->AssertReadBarrierState(); in AllocObjectWithAllocator() 95 pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator() 99 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator() [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/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 */ \ 143 mirror::Object* obj, \ 152 if (LIKELY(field != nullptr && obj != nullptr)) { \ 153 field->Set ## Kind <false>(obj, new_value); \ [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/runtime/ |
D | common_dex_operations.h | 93 ObjPtr<mirror::Object> obj, in DoFieldGetCommon() argument 104 HandleWrapperObjPtr<mirror::Object> h(hs.NewHandleWrapper(&obj)); in DoFieldGetCommon() 107 this_object = obj; in DoFieldGetCommon() 121 result->SetZ(field->GetBoolean(obj)); in DoFieldGetCommon() 124 result->SetB(field->GetByte(obj)); in DoFieldGetCommon() 127 result->SetC(field->GetChar(obj)); in DoFieldGetCommon() 130 result->SetS(field->GetShort(obj)); in DoFieldGetCommon() 133 result->SetI(field->GetInt(obj)); in DoFieldGetCommon() 136 result->SetJ(field->GetLong(obj)); in DoFieldGetCommon() 139 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()
|
D | indirect_reference_table-inl.h | 95 ObjPtr<mirror::Object> obj = table_[idx].GetReference()->Read<kReadBarrierOption>(); in Get() local 96 VerifyObject(obj); in Get() 97 return obj; in Get() 100 inline void IndirectReferenceTable::Update(IndirectRef iref, ObjPtr<mirror::Object> obj) { in Update() argument 106 table_[idx].SetReference(obj); in Update() 109 inline void IrtEntry::Add(ObjPtr<mirror::Object> obj) { in Add() argument 114 references_[serial_] = GcRoot<mirror::Object>(obj); in Add() 117 inline void IrtEntry::SetReference(ObjPtr<mirror::Object> obj) { in SetReference() argument 119 references_[serial_] = GcRoot<mirror::Object>(obj); in SetReference()
|
D | transaction.cc | 124 bool Transaction::WriteConstraint(mirror::Object* obj, ArtField* field) { in WriteConstraint() argument 128 && obj != root_) { // modifying other classes' static field, fail in WriteConstraint() 134 bool Transaction::ReadConstraint(mirror::Object* obj, ArtField* field) { in ReadConstraint() argument 136 DCHECK(obj->IsClass()); in ReadConstraint() 139 obj == root_) { // self-updating, pass in ReadConstraint() 145 void Transaction::RecordWriteFieldBoolean(mirror::Object* obj, in RecordWriteFieldBoolean() argument 149 DCHECK(obj != nullptr); in RecordWriteFieldBoolean() 151 ObjectLog& object_log = object_logs_[obj]; in RecordWriteFieldBoolean() 155 void Transaction::RecordWriteFieldByte(mirror::Object* obj, in RecordWriteFieldByte() argument 159 DCHECK(obj != nullptr); in RecordWriteFieldByte() [all …]
|
/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/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()
|