Searched refs:obj (Results 1 - 25 of 292) sorted by relevance

1234567891011>>

/art/test/616-cha-proxy-method-inline/src-multidex/
H A DFoo.java18 public Object bar(Object obj); argument
/art/test/003-omnibus-opcodes/src/
H A DMonitor.java25 Object obj = new Object();
26 synchronized (obj) {
28 obj = null; // does NOT cause a failure on exit
29 Main.assertTrue(obj == null);
37 Object obj = null;
40 synchronized (obj) {
48 obj = new Object();
49 synchronized (obj) {
/art/test/132-daemon-locks-shutdown/src/
H A DMain.java35 private Object obj; field in class:Main.Wait
37 public Wait(Object obj) { argument
38 this.obj = obj;
43 synchronized(obj) {
45 obj.wait(1);
/art/test/024-illegal-access/src/
H A DCheckInstanceof.java21 public static void main(Object obj) { argument
22 if (obj instanceof otherpkg.Package)
/art/test/091-override-package-private-method/src/
H A DOverridePackagePrivateMethodTest.java18 public void test(Object obj) { argument
19 if (obj == null) {
/art/test/615-checker-arm64-store-zero/src/
H A DMain.java426 Main obj = new Main();
427 obj.array_byte = new byte[1];
428 obj.array_char = new char[1];
429 obj.array_short = new short[1];
430 obj.array_int = new int[1];
431 obj.array_long = new long[1];
432 obj.array_float = new float[1];
433 obj.array_double = new double[1];
435 obj.bar();
436 obj
[all...]
/art/runtime/gc/accounting/
H A Dheap_bitmap-inl.h38 inline bool HeapBitmap::Test(const mirror::Object* obj) { argument
39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj);
41 return bitmap->Test(obj);
44 if (LIKELY(lo_bitmap->HasAddress(obj))) {
45 return lo_bitmap->Test(obj);
48 LOG(FATAL) << "Invalid object " << obj;
52 inline void HeapBitmap::Clear(const mirror::Object* obj) { argument
53 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj);
55 bitmap->Clear(obj);
59 if (LIKELY(lo_bitmap->HasAddress(obj))) {
67 Set(const mirror::Object* obj, const LargeObjectSetVisitor& visitor) argument
83 AtomicTestAndSet(const mirror::Object* obj, const LargeObjectSetVisitor& visitor) argument
[all...]
/art/test/023-many-interfaces/src/
H A DManyInterfaces.java190 ManyInterfaces obj = new ManyInterfaces();
206 testIface001(obj, iter);
211 testIface049(obj, iter);
216 testIface099(obj, iter);
221 testVirt001(obj, iter);
226 testVirt049(obj, iter);
231 testVirt099(obj, iter);
236 testInstance001(obj, iter);
241 testInstance049(obj, iter);
246 testInstance099(obj, ite
329 testVirt001(ManyInterfaces obj, int count) argument
338 testVirt049(ManyInterfaces obj, int count) argument
347 testVirt099(ManyInterfaces obj, int count) argument
356 testInstance001(Object obj, int count) argument
380 testInstance049(Object obj, int count) argument
404 testInstance099(Object obj, int count) argument
[all...]
/art/test/064-field-access/src/
H A DGetNonexistent.java19 Object obj = Holder.mObject;
/art/runtime/entrypoints/quick/
H A Dquick_lock_entrypoints.cc23 extern "C" int artLockObjectFromCode(mirror::Object* obj, Thread* self)
28 if (UNLIKELY(obj == nullptr)) {
32 obj = obj->MonitorEnter(self); // May block
33 DCHECK(self->HoldsLock(obj));
41 bool unlocked = obj->MonitorExit(self);
45 DCHECK(self->HoldsLock(obj));
51 extern "C" int artUnlockObjectFromCode(mirror::Object* obj, Thread* self)
56 if (UNLIKELY(obj == nullptr)) {
61 return obj
[all...]
H A Dquick_cast_entrypoints.cc31 extern "C" size_t artInstanceOfFromCode(mirror::Object* obj, mirror::Class* ref_class)
33 DCHECK(obj != nullptr);
35 return obj->InstanceOf(ref_class) ? 1 : 0;
/art/runtime/
H A Dverify_object.cc28 void VerifyObjectImpl(ObjPtr<mirror::Object> obj) { argument
31 Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
35 bool failed = !IsAligned<kObjectAlignment>(obj.Ptr());
37 mirror::Class* c = obj->GetClass<kVerifyNone>();
42 Runtime::Current()->GetHeap()->VerifyObjectBody(obj);
H A Dscoped_thread_state_change.cc32 ObjPtr<mirror::Object> obj) {
33 DCHECK_NE(obj, Runtime::Current()->GetClearedJniWeakGlobal());
31 DCheckObjIsNotClearedJniWeakGlobal( ObjPtr<mirror::Object> obj) argument
/art/test/603-checker-instanceof/src/
H A DMain.java36 Object obj = new ChildClass();
39 // of 'obj' below, so create a loop that updates the type of 'obj'.
41 obj = new Object();
44 if (obj instanceof SuperClass) {
45 // We used to wrongly type obj as an exact SuperClass from this point,
48 if (!(obj instanceof ChildClass)) {
49 throw new Error("Expected a ChildClass, got " + obj.getClass());
/art/runtime/gc/collector/
H A Dsemi_space-inl.h29 inline mirror::Object* SemiSpace::GetForwardingAddressInFromSpace(mirror::Object* obj) const {
30 DCHECK(from_space_->HasAddress(obj));
31 LockWord lock_word = obj->GetLockWord(false);
43 mirror::Object* obj = obj_ptr->AsMirrorPtr(); local
44 if (obj == nullptr) {
47 if (from_space_->HasAddress(obj)) {
48 mirror::Object* forward_address = GetForwardingAddressInFromSpace(obj);
51 forward_address = MarkNonForwardedObject(obj);
55 obj->SetLockWord(
61 } else if (!collect_from_space_only_ && !immune_spaces_.IsInImmuneRegion(obj)) {
[all...]
/art/test/537-checker-arraycopy/src/
H A DMain.java60 Object[] obj = new Object[4];
61 System.arraycopy(obj, 1, obj, 0, 1);
64 public static void arraycopy(Object obj) { argument
65 System.arraycopy(obj, 1, obj, 0, 1);
73 public static void arraycopy(Object[] obj, int pos) { argument
74 System.arraycopy(obj, pos, obj, 0, obj
83 arraycopy2(Object[] obj, int pos) argument
[all...]
/art/runtime/gc/space/
H A Dbump_pointer_space-walk-inl.h44 auto no_thread_safety_analysis_visit = [&](mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS {
45 visitor(obj);
65 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); local
66 // No read barrier because obj may not be a valid object.
67 if (obj->GetClass<kDefaultVerifyFlags, kWithoutReadBarrier>() == nullptr) {
73 no_thread_safety_analysis_visit(obj);
74 pos = reinterpret_cast<uint8_t*>(GetNextObject(obj));
82 mirror::Object* obj = reinterpret_cast<mirror::Object*>(pos); local
87 // No read barrier because obj may not be a valid object.
88 while (obj < end_ob
[all...]
/art/runtime/interpreter/
H A Dlock_count_data.cc28 void LockCountData::AddMonitor(Thread* self, mirror::Object* obj) { argument
29 if (obj == nullptr) {
42 monitors_->push_back(obj);
45 void LockCountData::RemoveMonitorOrThrow(Thread* self, const mirror::Object* obj) { argument
46 if (obj == nullptr) {
53 auto it = std::find(monitors_->begin(), monitors_->end(), obj);
66 const_cast<mirror::Object*>(obj)->PrettyTypeOf().c_str());
72 void MonitorExitHelper(Thread* self, mirror::Object* obj) NO_THREAD_SAFETY_ANALYSIS {
74 DCHECK(obj != nullptr);
75 obj
[all...]
/art/test/596-monitor-inflation/src-art/
H A DMain.java25 Object obj = new Object();
26 synchronized(obj) {
28 all.put(obj, obj.hashCode());
57 for (Object obj: all.keySet()) {
59 if (obj.hashCode() != all.get(obj)) {
64 for (Object obj: all.keySet()) {
66 synchronized(obj) {
67 if (obj
[all...]
/art/openjdkjvmti/
H A Dobject_tagging.cc45 bool ObjectTagTable::Set(art::mirror::Object* obj, jlong new_tag) { argument
48 return Remove(obj, &tmp);
50 return JvmtiWeakTable<jlong>::Set(obj, new_tag);
52 bool ObjectTagTable::SetLocked(art::mirror::Object* obj, jlong new_tag) { argument
55 return RemoveLocked(obj, &tmp);
57 return JvmtiWeakTable<jlong>::SetLocked(obj, new_tag);
/art/test/ti-agent/
H A Dagent_common.cc28 JNIEnv* env, jclass, jobject obj, jlong tag) {
29 jvmtiError ret = jvmti_env->SetTag(obj, tag);
33 extern "C" JNIEXPORT jlong JNICALL Java_art_Main_getTag(JNIEnv* env, jclass, jobject obj) { argument
35 jvmtiError ret = jvmti_env->GetTag(obj, &tag);
27 Java_art_Main_setTag( JNIEnv* env, jclass, jobject obj, jlong tag) argument
/art/test/530-checker-lse/src/
H A DMain.java128 static int test2(TestClass obj) { argument
129 obj.j = 1;
130 obj.j = 1;
131 return obj.j;
157 static int test3(TestClass obj) { argument
159 TestClass obj2 = new TestClass(); // Cannot alias with obj or obj1 which pre-exist.
160 obj.next = obj2; // Make obj2 a non-singleton.
161 // All stores below need to stay since obj/obj1/obj2 are not singletons.
162 obj.i = 1;
164 // Following stores won't kill values of obj
184 test4(TestClass obj, boolean b) argument
206 test5(TestClass obj, boolean b) argument
249 test7(TestClass obj) argument
289 test9(TestClass obj) argument
311 test10(TestClass obj) argument
327 test11(TestClass obj) argument
457 test18(TestClass obj) argument
786 testStoreStore2(TestClass2 obj) argument
805 testStoreStore3(TestClass2 obj, boolean flag) argument
891 testThrow(TestClass2 obj, Exception e) argument
[all...]
/art/benchmark/jobject-benchmark/
H A Djobject_benchmark.cc29 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
30 CHECK(obj != nullptr);
32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj);
40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
41 CHECK(obj != nullptr);
42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj);
44 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj);
52 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
53 CHECK(obj != nullptr);
55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj);
63 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
75 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
86 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); local
[all...]
/art/test/469-condition-materialization/src/
H A DMain.java22 private static Object obj; field in class:Main
36 obj = new Object();
/art/test/521-checker-array-set-null/src/
H A DMain.java32 public static void testWithUnknown(Object[] o, Object obj) { argument
33 o[0] = obj;

Completed in 593 milliseconds

1234567891011>>