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

12

/art/runtime/gc/
H A Dreference_queue_test.cc40 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference()));
42 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference()));
74 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference()));
76 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference()));
H A Dheap-inl.h120 return AllocObject<kInstrumented>(self, klass, byte_count, pre_fence_visitor);
H A Dheap.h192 mirror::Object* AllocObject(Thread* self, mirror::Class* klass, size_t num_bytes,
/art/runtime/mirror/
H A Dmethod.cc56 auto* ret = down_cast<Method*>(StaticClass()->AllocObject(self));
97 auto* ret = down_cast<Constructor*>(StaticClass()->AllocObject(self));
H A Dfield-inl.h52 auto ret = hs.NewHandle(static_cast<Field*>(StaticClass()->AllocObject(self)));
H A Dstack_trace_element.cc46 down_cast<StackTraceElement*>(GetStackTraceElement()->AllocObject(self));
H A Dobject.cc123 // Object::SizeOf gets the right size even if we're an array. Using c->AllocObject() here would
132 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor);
H A Dobject_test.cc553 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self())));
554 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self())));
H A Dclass-inl.h611 inline Object* Class::AllocObject(Thread* self) { function in class:art::mirror::Class
H A Dclass.cc868 heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) :
/art/runtime/
H A Dindirect_reference_table_test.cc57 mirror::Object* obj0 = c->AllocObject(soa.Self());
59 mirror::Object* obj1 = c->AllocObject(soa.Self());
61 mirror::Object* obj2 = c->AllocObject(soa.Self());
63 mirror::Object* obj3 = c->AllocObject(soa.Self());
H A Dtransaction_test.cc101 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
118 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
235 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
283 Handle<mirror::Object> h_instance(hs.NewHandle(h_klass->AllocObject(soa.Self())));
337 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
454 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
H A Dclass_linker-inl.h158 inline mirror::Object* ClassLinker::AllocObject(Thread* self) { function in class:art::ClassLinker
H A Dmonitor_test.cc96 MutableHandle<mirror::Object> h = (*hsp)->NewHandle<mirror::Object>(c->AllocObject(self));
H A Djni_internal_test.cc617 TEST_F(JniInternalTest, AllocObject) {
620 jobject o = env_->AllocObject(c);
858 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c));
1687 jobject o = env_->AllocObject(c);
1716 jobject o = env_->AllocObject(c);
1972 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class));
2062 jobject object = env_->AllocObject(object_class);
H A Djni_internal.cc587 static jobject AllocObject(JNIEnv* env, jclass java_class) { function in class:art::JNI
600 return soa.AddLocalReference<jobject>(c->AllocObject(soa.Self()));
626 mirror::Object* result = c->AllocObject(soa.Self());
651 mirror::Object* result = c->AllocObject(soa.Self());
2514 JNI::AllocObject,
H A Dclass_linker.h346 mirror::Object* AllocObject(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
H A Dreflection_test.cc122 *receiver = c->AllocObject(self);
/art/runtime/native/
H A Djava_lang_reflect_Constructor.cc81 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self());
H A Djava_lang_Class.cc472 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self()));
/art/test/004-JniTest/
H A Djni_test.cc588 // Test AllocObject and Call(Nonvirtual)VoidMethod
589 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c));
591 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c));
593 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c));
595 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c));
614 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c));
617 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c));
/art/runtime/entrypoints/quick/
H A Dquick_entrypoints_list.h26 V(AllocObject, void*, uint32_t, ArtMethod*) \
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc134 env->AllocObject(WellKnownClasses::java_lang_StackOverflowError));
/art/runtime/interpreter/
H A Dunstarted_runtime.cc205 Handle<mirror::Object> h_obj(hs.NewHandle(klass->AllocObject(self)));
439 h_real_to_string_class->AllocObject(self)));
722 Handle<mirror::Object> h_obj(hs.NewHandle(h_class->AllocObject(self)));
/art/runtime/arch/
H A Dstub_test.cc1156 Handle<mirror::Object> obj_obj(hs.NewHandle(c->AllocObject(soa.Self())));
1260 TEST_F(StubTest, AllocObject) {
1364 Handle<mirror::Object> h = hsp->NewHandle(c->AllocObject(soa.Self()));
2061 jobject o = env->AllocObject(jc);

Completed in 1402 milliseconds

12