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()
Dheap-inl.h160 return AllocObject</*kInstrumented=*/true>(self, in AllocObjectWithAllocator()
/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()
Dmethod_handles_lookup.cc38 GetClassRoot<MethodHandlesLookup>()->AllocObject(self)); in Create()
Dclass-alloc-inl.h77 inline ObjPtr<Object> Class::AllocObject(Thread* self) { in AllocObject() function
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()
Dvar_handle_test.cc49 ObjPtr<FieldVarHandle>::DownCast(GetClassRoot<FieldVarHandle>()->AllocObject(self))); in CreateFieldVarHandle()
73 GetClassRoot<ArrayElementVarHandle>()->AllocObject(self))); in CreateArrayElementVarHandle()
92 GetClassRoot<ByteArrayViewVarHandle>()->AllocObject(self))); in CreateByteArrayViewVarHandle()
113 GetClassRoot<ByteArrayViewVarHandle>()->AllocObject(self))); in CreateByteBufferViewVarHandle()
/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()
287 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
289 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
291 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
293 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
295 Handle<mirror::Object> obj4 = hs.NewHandle(c->AllocObject(soa.Self())); in TEST_F()
497 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()
/art/test/004-JniTest/
Djni_test.cc617 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
619 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
621 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
623 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
642 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
645 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()
/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.cc675 TEST_F(JniInternalTest, AllocObject) { in TEST_F() argument
678 jobject o = env_->AllocObject(c); in TEST_F()
1004 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F()
1861 jobject o = env_->AllocObject(c); \
1932 jobject o = env_->AllocObject(c); \
2215 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2323 jobject object = env_->AllocObject(object_class); in TEST_F()
2438 jobject object = env_->AllocObject(object_class); in TEST_F()

12