Home
last modified time | relevance | path

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

12

/art/runtime/gc/
Dreference_queue_test.cc40 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
42 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F()
74 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference())); in TEST_F()
76 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference())); in TEST_F()
Dheap-inl.h120 return AllocObject<kInstrumented>(self, klass, byte_count, pre_fence_visitor); in AllocObjectWithAllocator()
/art/runtime/
Dindirect_reference_table_test.cc57 mirror::Object* obj0 = c->AllocObject(soa.Self()); in TEST_F()
59 mirror::Object* obj1 = c->AllocObject(soa.Self()); in TEST_F()
61 mirror::Object* obj2 = c->AllocObject(soa.Self()); in TEST_F()
63 mirror::Object* obj3 = c->AllocObject(soa.Self()); in TEST_F()
Dtransaction_test.cc101 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
118 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
235 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
283 Handle<mirror::Object> h_instance(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
337 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
454 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
Dclass_linker-inl.h158 inline mirror::Object* ClassLinker::AllocObject(Thread* self) { in AllocObject() function
Djni_internal_test.cc617 TEST_F(JniInternalTest, AllocObject) { in TEST_F() argument
620 jobject o = env_->AllocObject(c); in TEST_F()
858 jstring s = reinterpret_cast<jstring>(env_->AllocObject(c)); in TEST_F()
1687 jobject o = env_->AllocObject(c); in TEST_F()
1716 jobject o = env_->AllocObject(c); in TEST_F()
1972 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F()
2062 jobject object = env_->AllocObject(object_class); in TEST_F()
Dmonitor_test.cc96 MutableHandle<mirror::Object> h = (*hsp)->NewHandle<mirror::Object>(c->AllocObject(self)); in FillHeap()
Djni_internal.cc587 static jobject AllocObject(JNIEnv* env, jclass java_class) { in AllocObject() function in art::JNI
600 return soa.AddLocalReference<jobject>(c->AllocObject(soa.Self())); in AllocObject()
626 mirror::Object* result = c->AllocObject(soa.Self()); in NewObjectV()
651 mirror::Object* result = c->AllocObject(soa.Self()); in NewObjectA()
2514 JNI::AllocObject,
Dreflection_test.cc122 *receiver = c->AllocObject(self); in ReflectionTestMakeExecutable()
Dclass_linker.cc1470 GetClassRoot(kJavaLangDexCache)->AllocObject(self)))); in AllocDexCache()
1511 heap->AllocObject<true>(self, java_lang_Class, class_size, visitor) : in AllocClass()
5838 cookie_field->GetDeclaringClass()->AllocObject(self)); in CreatePathClassLoader()
5842 Handle<mirror::Object> h_element = hs2.NewHandle(h_dex_element_class->AllocObject(self)); in CreatePathClassLoader()
5853 dex_elements_field->GetDeclaringClass()->AllocObject(self)); in CreatePathClassLoader()
5862 h_path_class_class->AllocObject(self)); in CreatePathClassLoader()
5877 soa.Decode<mirror::Class*>(WellKnownClasses::java_lang_BootClassLoader)->AllocObject(self); in CreatePathClassLoader()
Dclass_linker.h346 mirror::Object* AllocObject(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
/art/runtime/mirror/
Dmethod.cc56 auto* ret = down_cast<Method*>(StaticClass()->AllocObject(self)); in CreateFromArtMethod()
97 auto* ret = down_cast<Constructor*>(StaticClass()->AllocObject(self)); in CreateFromArtMethod()
Dstack_trace_element.cc46 down_cast<StackTraceElement*>(GetStackTraceElement()->AllocObject(self)); in Alloc()
Dfield-inl.h52 auto ret = hs.NewHandle(static_cast<Field*>(StaticClass()->AllocObject(self))); in CreateFromArtField()
Dobject.cc132 copy = heap->AllocObject<true>(self, GetClass(), num_bytes, visitor); in Clone()
Dobject_test.cc553 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
554 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
Dclass-inl.h611 inline Object* Class::AllocObject(Thread* self) { in AllocObject() function
Dclass.cc868 heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) : in CopyOf()
/art/test/004-JniTest/
Djni_test.cc589 jstring s1 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
591 jstring s2 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
593 jstring s3 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
595 jstring s4 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
614 jstring s5 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
617 jstring s6 = reinterpret_cast<jstring>(env->AllocObject(c)); in Java_Main_testNewStringObject()
/art/runtime/native/
Djava_lang_reflect_Constructor.cc81 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance()
Djava_lang_Class.cc472 auto receiver = hs.NewHandle(klass->AllocObject(soa.Self())); in Class_newInstance()
/art/runtime/entrypoints/quick/
Dquick_entrypoints_list.h26 V(AllocObject, void*, uint32_t, ArtMethod*) \
/art/runtime/entrypoints/
Dentrypoint_utils.cc134 env->AllocObject(WellKnownClasses::java_lang_StackOverflowError)); in ThrowStackOverflowError()
/art/runtime/interpreter/
Dunstarted_runtime.cc205 Handle<mirror::Object> h_obj(hs.NewHandle(klass->AllocObject(self))); in UnstartedClassNewInstance()
439 h_real_to_string_class->AllocObject(self))); in UnstartedThreadLocalGet()
722 Handle<mirror::Object> h_obj(hs.NewHandle(h_class->AllocObject(self))); in UnstartedSecurityGetSecurityPropertiesReader()
/art/runtime/arch/
Dstub_test.cc1156 Handle<mirror::Object> obj_obj(hs.NewHandle(c->AllocObject(soa.Self()))); in TEST_F()
1260 TEST_F(StubTest, AllocObject) { in TEST_F() argument
1364 Handle<mirror::Object> h = hsp->NewHandle(c->AllocObject(soa.Self())); in TEST_F()
2061 jobject o = env->AllocObject(jc); in TestFields()

12