Home
last modified time | relevance | path

Searched refs:NewGlobalRef (Results 1 – 25 of 28) sorted by relevance

12

/art/test/928-jni-table/
Djni_table.cc39 return gOriginalEnv->NewGlobalRef(env, o); in CountNewGlobalRef()
57 env_override->NewGlobalRef = CountNewGlobalRef; in Java_art_Test928_doJNITableTest()
66 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
76 jobject global2 = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
/art/runtime/
Dnon_debuggable_classes.cc38 non_debuggable_classes.push_back(reinterpret_cast<jclass>(env->NewGlobalRef(klass))); in AddNonDebuggableClass()
Djava_vm_ext_test.cc155 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
168 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
Dreflection_test.cc49 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp()
53 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp()
58 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp()
Druntime.cc711 return env->NewGlobalRef(system_class_loader.get()); in CreateSystemClassLoader()
1736 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
1741 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
Dwell_known_classes.cc171 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass()
Dcheck_jni.cc2076 static jobject NewGlobalRef(JNIEnv* env, jobject obj) { in NewGlobalRef() function in art::__anona2e1a4fa0111::CheckJNI
2772 result.L = baseEnv(env)->NewGlobalRef(env, obj); in NewRef()
3787 CheckJNI::NewGlobalRef,
Dthread.cc664 child_thread->tlsPtr_.jpeer = env->NewGlobalRef(java_peer); in CreateNativeThread()
2441 tlsPtr_.class_loader_override = GetJniEnv()->NewGlobalRef(class_loader_override); in SetClassLoaderOverride()
/art/test/1919-vminit-thread-start-timing/
Dvminit.cc60 list->events.push_back({ "ThreadStart", env->NewGlobalRef(thread) }); in ThreadStartCallback()
72 list->events.push_back({ "Test1919AgentThread", env->NewGlobalRef(cur) }); in Test1919AgentThread()
107 list->events.push_back({ "VMInit", env->NewGlobalRef(thread) }); in VMInitCallback()
/art/test/1950-unprepared-transform/
Dunprepared_transform.cc57 kMainClass = reinterpret_cast<jclass>(env->NewGlobalRef(main)); in Java_Main_setupClassLoadHook()
/art/test/169-threadgroup-jni/
Djni_daemon_thread.cc54 jobject global_thread_group = env->NewGlobalRef(thread_group); in Java_Main_testNativeThread()
/art/test/ti-agent/
Dexceptions_helper.cc129 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Exceptions_setupExceptionTracing()
130 data->exception_klass = reinterpret_cast<jclass>(env->NewGlobalRef(except)); in Java_art_Exceptions_setupExceptionTracing()
Dmonitors_helper.cc165 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(test_klass)); in Java_art_Monitors_setupMonitorEvents()
170 data->monitor_klass = reinterpret_cast<jclass>(env->NewGlobalRef(monitor_klass)); in Java_art_Monitors_setupMonitorEvents()
Dframe_pop_helper.cc71 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_FramePop_enableFramePopEvent()
Dbreakpoint_helper.cc159 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Breakpoint_startBreakpointWatch()
Dtrace_helper.cc493 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Trace_enableTracing2()
/art/test/931-agent-thread/
Dagent_thread.cc147 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread()
/art/test/912-classes/
Dclasses.cc457 stored_class_ = jni_env->NewGlobalRef(klass); in ClassLoadCallback()
460 agent_thread_ = static_cast<jthread>(jni_env->NewGlobalRef(RunEventThread<jobject>( in ClassLoadCallback()
582 reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Test912_setEqualityEventStorageClass()
/art/test/1940-ddms-ext/
Dddm_ext.cc145 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Test1940_initializeTest()
/art/runtime/jdwp/
Dobject_registry.cc236 entry.jni_reference = env->NewGlobalRef(entry.jni_reference); in Promote()
/art/adbconnection/
Dadbconnection.cc255 std::unique_ptr<CallbackData> data(new CallbackData { this, soa.Env()->NewGlobalRef(thr.get()) }); in StartDebuggerThreads()
/art/test/004-JniTest/
Djni_test.cc644 s5 = reinterpret_cast<jstring>(env->NewGlobalRef(s5)); in Java_Main_testNewStringObject()
/art/test/913-heaps/
Dheaps.cc534 jni_global_ref = env->NewGlobalRef(jniRef); in Java_art_Test913_followReferences()
/art/openjdkjvmti/
Dti_thread.cc783 data->thread = env->NewGlobalRef(thread); in RunAgentThread()
Dti_class.cc320 jclass global_klass = reinterpret_cast<jclass>(self->GetJniEnv()->NewGlobalRef(klass)); in AddTempClass()

12