Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 283) 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.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()
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/530-checker-lse/src/
DMain.java129 static int test2(TestClass obj) { in test2() argument
130 obj.j = 1; in test2()
131 obj.j = 1; in test2()
132 return obj.j; in test2()
158 static int test3(TestClass obj) { in test3() argument
161 obj.next = obj2; // Make obj2 a non-singleton. in test3()
163 obj.i = 1; in test3()
168 return obj.i + obj1.j + obj2.i + obj2.j; in test3()
191 static int test4(TestClass obj, boolean b) { in test4() argument
193 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()
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/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/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()
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/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.h79 ObjPtr<mirror::Object> obj; in AllocObjectWithAllocator() local
94 obj = AllocLargeObject<kInstrumented, PreFenceVisitor>(self, &klass, byte_count, in AllocObjectWithAllocator()
96 if (obj != nullptr) { in AllocObjectWithAllocator()
97 return obj.Ptr(); in AllocObjectWithAllocator()
112 obj = self->AllocTlab(byte_count); in AllocObjectWithAllocator()
113 DCHECK(obj != nullptr) << "AllocTlab can't fail"; in AllocObjectWithAllocator()
114 obj->SetClass(klass); in AllocObjectWithAllocator()
116 obj->AssertReadBarrierState(); in AllocObjectWithAllocator()
120 no_suspend_pre_fence_visitor(obj, usable_size); in AllocObjectWithAllocator()
124 (obj = rosalloc_space_->AllocThreadLocal(self, byte_count, &bytes_allocated)) != nullptr && in AllocObjectWithAllocator()
[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/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/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/
Dcommon_dex_operations.h95 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 …]
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()
Dindirect_reference_table-inl.h95 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()
/art/test/603-checker-instanceof/src/
DMain.java36 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/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()
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()
Dquick_field_entrypoints.cc39 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 …]
/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