Home
last modified time | relevance | path

Searched refs:AllocObject (Results 1 – 25 of 41) sorted by relevance

12

/art/runtime/gc/
Dreference_queue_test.cc42 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
44 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
81 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference())); in TEST_F()
83 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference())); in TEST_F()
Dheap-inl.h128 return AllocObject</*kInstrumented*/true>(self, in AllocObjectWithAllocator()
/art/runtime/
Dindirect_reference_table_test.cc66 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
68 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
70 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
72 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
284 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
286 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
288 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
290 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
292 Handle<mirror::Object> obj4 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
493 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
Dhandle_scope_test.cc99 inner.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
105 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self()); in TEST_F()
Dtransaction_test.cc102 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
119 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
236 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
284 Handle<mirror::Object> h_instance(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
338 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
455 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
Dclass_table_test.cc82 Handle<mirror::Object> obj_X = hs.NewHandle(h_X->AllocObject(soa.Self())); in TEST_F()
Dreference_table_test.cc56 h_ref_class->AllocObject(self))); in CreateWeakReference()
Djni_internal_test.cc676 TEST_F(JniInternalTest, AllocObject) { in TEST_F() argument
679 jobject o = env_->AllocObject(c); in TEST_F()
938 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F()
1795 jobject o = env_->AllocObject(c); in TEST_F()
1824 jobject o = env_->AllocObject(c); in TEST_F()
2080 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2169 jobject object = env_->AllocObject(object_class); in TEST_F()
2284 jobject object = env_->AllocObject(object_class); in TEST_F()
Dmonitor_test.cc97 MutableHandle<mirror::Object> h = (*hsp)->NewHandle<mirror::Object>(c->AllocObject(self)); in FillHeap()
Druntime_callbacks_test.cc160 ScopedLocalRef<jobject> thread(env, env->AllocObject(WellKnownClasses::java_lang_Thread)); in TEST_F()
/art/runtime/mirror/
Dcall_site.cc30 hs.NewHandle(ObjPtr<CallSite>::DownCast(StaticClass()->AllocObject(self)))); in Create()
Dmethod.cc57 ObjPtr<Method> ret = ObjPtr<Method>::DownCast(StaticClass()->AllocObject(self)); in CreateFromArtMethod()
109 ObjPtr<Constructor> ret = ObjPtr<Constructor>::DownCast(StaticClass()->AllocObject(self)); in CreateFromArtMethod()
Dmethod_handles_lookup.cc51 hs.NewHandle(ObjPtr<MethodHandlesLookup>::DownCast(StaticClass()->AllocObject(self)))); in Create()
Dstack_trace_element.cc48 ObjPtr<StackTraceElement>::DownCast(GetStackTraceElement()->AllocObject(self)); in Alloc()
Dmethod_handle_impl.cc71 hs.NewHandle(ObjPtr<MethodHandleImpl>::DownCast(StaticClass()->AllocObject(self)))); in Create()
Dfield-inl.h51 auto ret = hs.NewHandle(ObjPtr<Field>::DownCast(StaticClass()->AllocObject(self))); in CreateFromArtField()
Dclass_ext.cc106 return down_cast<ClassExt*>(dalvik_system_ClassExt_.Read()->AllocObject(self).Ptr()); in Alloc()
Dmethod_type.cc33 hs.NewHandle(ObjPtr<MethodType>::DownCast(StaticClass()->AllocObject(self)))); in Create()
Dobject.cc162 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
Demulated_stack_frame.cc197 ObjPtr<EmulatedStackFrame>::DownCast(StaticClass()->AllocObject(self)))); in CreateFromShadowFrameAndArgs()
/art/test/004-JniTest/
Djni_test.cc606 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
608 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
610 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
612 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
631 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
634 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
/art/runtime/native/
Djava_lang_reflect_Constructor.cc109 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance0()
Djava_lang_reflect_Executable.cc156 parameter.Assign(parameter_class->AllocObject(self)); in Executable_getParameters0()
/art/test/931-agent-thread/
Dagent_thread.cc104 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in Java_art_Test931_testAgentThread()
/art/runtime/arch/
Dstub_test.cc835 Handle<mirror::Object> obj(hs.NewHandle(klass_obj->AllocObject(soa.Self()))); in TEST_F()
838 Handle<mirror::Object> array_list(hs.NewHandle(klass_array_list->AllocObject(soa.Self()))); in TEST_F()
911 TEST_F(StubTest, AllocObject) { in TEST_F() argument
1005 Handle<mirror::Object> h = hsp->NewHandle(c->AllocObject(soa.Self())); in TEST_F()
1679 jobject o = env->AllocObject(jc); in TestFields()
2059 Handle<mirror::Object> obj(hs.NewHandle(c->AllocObject(soa.Self()))); in TEST_F()

12