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

12

/art/runtime/gc/
H A Dreference_queue_test.cc42 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference()));
44 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference()));
81 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference()));
83 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference()));
H A Dheap-inl.h126 // AllocObject will pick up the new allocator type, and instrumented as true is the safe
128 return AllocObject</*kInstrumented*/true>(self,
/art/runtime/mirror/
H A Dcall_site.cc30 hs.NewHandle(ObjPtr<CallSite>::DownCast(StaticClass()->AllocObject(self))));
H A Dmethod_handles_lookup.cc51 hs.NewHandle(ObjPtr<MethodHandlesLookup>::DownCast(StaticClass()->AllocObject(self))));
H A Dstack_trace_element.cc48 ObjPtr<StackTraceElement>::DownCast(GetStackTraceElement()->AllocObject(self));
H A Dmethod.cc57 ObjPtr<Method> ret = ObjPtr<Method>::DownCast(StaticClass()->AllocObject(self));
109 ObjPtr<Constructor> ret = ObjPtr<Constructor>::DownCast(StaticClass()->AllocObject(self));
H A Dfield-inl.h51 auto ret = hs.NewHandle(ObjPtr<Field>::DownCast(StaticClass()->AllocObject(self)));
H A Dmethod_handle_impl.cc71 hs.NewHandle(ObjPtr<MethodHandleImpl>::DownCast(StaticClass()->AllocObject(self))));
H A Dclass_ext.cc106 return down_cast<ClassExt*>(dalvik_system_ClassExt_.Read()->AllocObject(self).Ptr());
H A Dmethod_type.cc33 hs.NewHandle(ObjPtr<MethodType>::DownCast(StaticClass()->AllocObject(self))));
H A Dobject.cc153 // Object::SizeOf gets the right size even if we're an array. Using c->AllocObject() here would
162 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor);
H A Demulated_stack_frame.cc197 ObjPtr<EmulatedStackFrame>::DownCast(StaticClass()->AllocObject(self))));
/art/runtime/
H A Dindirect_reference_table_test.cc66 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self()));
68 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self()));
70 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self()));
72 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self()));
284 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(soa.Self()));
286 Handle<mirror::Object> obj1 = hs.NewHandle(c->AllocObject(soa.Self()));
288 Handle<mirror::Object> obj2 = hs.NewHandle(c->AllocObject(soa.Self()));
290 Handle<mirror::Object> obj3 = hs.NewHandle(c->AllocObject(soa.Self()));
292 Handle<mirror::Object> obj4 = hs.NewHandle(c->AllocObject(soa.Self()));
493 Handle<mirror::Object> obj0 = hs.NewHandle(c->AllocObject(so
[all...]
H A Dhandle_scope_test.cc99 inner.NewHandle(c->AllocObject(soa.Self()));
105 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self());
H A Dtransaction_test.cc102 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
119 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
236 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
284 Handle<mirror::Object> h_instance(hs.NewHandle(h_klass->AllocObject(soa.Self())));
338 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
455 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
H A Dclass_table_test.cc82 Handle<mirror::Object> obj_X = hs.NewHandle(h_X->AllocObject(soa.Self()));
H A Dreference_table_test.cc56 h_ref_class->AllocObject(self)));
H A Dmonitor_test.cc97 MutableHandle<mirror::Object> h = (*hsp)->NewHandle<mirror::Object>(c->AllocObject(self));
H A Druntime_callbacks_test.cc160 ScopedLocalRef<jobject> thread(env, env->AllocObject(WellKnownClasses::java_lang_Thread));
H A Djni_internal_test.cc676 TEST_F(JniInternalTest, AllocObject) {
679 jobject o = env_->AllocObject(c);
938 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c));
1795 jobject o = env_->AllocObject(c);
1824 jobject o = env_->AllocObject(c);
2080 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class));
2169 jobject object = env_->AllocObject(object_class);
2284 jobject object = env_->AllocObject(object_class);
/art/runtime/native/
H A Djava_lang_reflect_Constructor.cc109 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self());
H A Djava_lang_reflect_Executable.cc156 parameter.Assign(parameter_class->AllocObject(self));
/art/test/931-agent-thread/
H A Dagent_thread.cc104 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get()));
/art/test/004-JniTest/
H A Djni_test.cc605 // Test AllocObject and Call(Nonvirtual)VoidMethod
606 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c));
608 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c));
610 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c));
612 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c));
631 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c));
634 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c));
/art/runtime/arch/
H A Dstub_test.cc835 Handle<mirror::Object> obj(hs.NewHandle(klass_obj->AllocObject(soa.Self())));
838 Handle<mirror::Object> array_list(hs.NewHandle(klass_array_list->AllocObject(soa.Self())));
911 TEST_F(StubTest, AllocObject) {
1005 Handle<mirror::Object> h = hsp->NewHandle(c->AllocObject(soa.Self()));
1679 jobject o = env->AllocObject(jc);
2059 Handle<mirror::Object> obj(hs.NewHandle(c->AllocObject(soa.Self())));

Completed in 307 milliseconds

12