Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dreference_queue_test.cc43 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
45 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
82 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference())); in TEST_F()
84 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference())); in TEST_F()
/art/runtime/mirror/
Dmethod.cc31 ObjPtr<Method> ret = ObjPtr<Method>::DownCast(GetClassRoot<Method>()->AllocObject(self)); in CreateFromArtMethod()
47 ObjPtr<Constructor>::DownCast(GetClassRoot<Constructor>()->AllocObject(self)); in CreateFromArtMethod()
Dstack_trace_element.cc36 ObjPtr<StackTraceElement>::DownCast(GetClassRoot<StackTraceElement>()->AllocObject(self)); in Alloc()
Dclass-alloc-inl.h77 inline ObjPtr<Object> Class::AllocObject(Thread* self) { in AllocObject() function
Dmethod_handles_lookup.cc38 GetClassRoot<MethodHandlesLookup>()->AllocObject(self)); in Create()
Dmethod_handle_impl.cc52 GetClassRoot<MethodHandleImpl>()->AllocObject(self)))); in Create()
Dfield.cc77 auto ret = hs.NewHandle(ObjPtr<Field>::DownCast(GetClassRoot<Field>()->AllocObject(self))); in CreateFromArtField()
Dclass_ext.cc118 return ObjPtr<ClassExt>::DownCast(GetClassRoot<ClassExt>()->AllocObject(self)); in Alloc()
Dmethod_type.cc44 hs.NewHandle(ObjPtr<MethodType>::DownCast(GetClassRoot<MethodType>()->AllocObject(self)))); in Create()
Dobject.cc162 ? heap->AllocObject(self, h_this->GetClass(), num_bytes, visitor) in Clone()
Demulated_stack_frame.cc198 ObjPtr<EmulatedStackFrame>::DownCast(GetClassRoot<EmulatedStackFrame>()->AllocObject(self)))); in CreateFromShadowFrameAndArgs()
/art/runtime/
Dindirect_reference_table_test.cc68 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
70 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
72 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
74 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
285 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
287 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
289 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
291 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
293 Handle<mirror::Object> obj4 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
495 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
Dhandle_scope_test.cc100 inner.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
106 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self()); in TEST_F()
Dtransaction_test.cc105 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
120 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
234 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
280 Handle<mirror::Object> h_instance(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
334 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
457 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.cc61 h_ref_class->AllocObject(self))); in CreateWeakReference()
Druntime_callbacks_test.cc178 ScopedLocalRef<jobject> thread(env, env->AllocObject(WellKnownClasses::java_lang_Thread)); in TEST_F()
/art/test/004-JniTest/
Djni_test.cc646 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
648 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
650 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
652 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
671 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
674 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
/art/runtime/native/
Djava_lang_reflect_Constructor.cc112 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance0()
Djava_lang_reflect_Executable.cc227 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/test/1919-vminit-thread-start-timing/
Dvminit.cc89 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in CreateAgentThread()
/art/runtime/arch/
Dstub_test.cc707 Handle<mirror::Object> obj(hs.NewHandle(klass_obj->AllocObject(soa.Self()))); in TEST_F()
710 Handle<mirror::Object> array_list(hs.NewHandle(klass_array_list->AllocObject(soa.Self()))); in TEST_F()
783 TEST_F(StubTest, AllocObject) { in TEST_F() argument
877 Handle<mirror::Object> h = hsp->NewHandle(c->AllocObject(soa.Self())); in TEST_F()
1556 jobject o = env->AllocObject(jc); in TestFields()
1936 Handle<mirror::Object> obj(hs.NewHandle(c->AllocObject(soa.Self()))); in TEST_F()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc244 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in CbVmInit()
/art/runtime/jni/
Djni_internal_test.cc676 TEST_F(JniInternalTest, AllocObject) { in TEST_F() argument
679 jobject o = env_->AllocObject(c); in TEST_F()
1005 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F()
1979 jobject o = env_->AllocObject(c); \
2050 jobject o = env_->AllocObject(c); \
2318 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2426 jobject object = env_->AllocObject(object_class); in TEST_F()
2541 jobject object = env_->AllocObject(object_class); in TEST_F()

12