Home
last modified time | relevance | path

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

12

/art/test/928-jni-table/
Djni_table.cc39 return gOriginalEnv->NewGlobalRef(env, o); in CountNewGlobalRef()
56 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doOtherThreadTest()
76 env_override->NewGlobalRef = CountNewGlobalRef; in Java_art_Test928_doJNITableTest()
86 jobject global = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
103 jobject global2 = env->NewGlobalRef(klass); in Java_art_Test928_doJNITableTest()
/art/test/1919-vminit-thread-start-timing/
Dvminit.cc62 list->events.push_back({ "ThreadStart", env->NewGlobalRef(thread) }); in ThreadStartCallback()
74 list->events.push_back({ "Test1919AgentThread", env->NewGlobalRef(cur) }); in Test1919AgentThread()
99 the_thread = static_cast<jthread>(env->NewGlobalRef(thread.get())); in CreateAgentThread()
112 list->events.push_back({ "VMInit", env->NewGlobalRef(thread) }); in VMInitCallback()
/art/runtime/
Dnon_debuggable_classes.cc39 non_debuggable_classes.push_back(reinterpret_cast<jclass>(env->NewGlobalRef(klass))); in AddNonDebuggableClass()
Dreflection_test.cc50 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp()
54 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp()
59 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp()
Druntime.cc810 return env->NewGlobalRef(system_class_loader.get()); in CreateSystemClassLoader()
1932 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
1937 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
Dwell_known_classes.cc178 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass()
/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/runtime/jni/
Djava_vm_ext_test.cc156 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
169 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
Djni_internal_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()
1456 jobject global = env_->NewGlobalRef(local); in TEST_F()
1488 jobject new_global_ref = env_->NewGlobalRef(weak_global); in TEST_F()
2101 EXPECT_EQ(env_->NewGlobalRef(nullptr), nullptr); in TEST_F()
2104 TEST_F(JniInternalTest, NewGlobalRef) { in TEST_F() argument
2107 jobject o = env_->NewGlobalRef(s); in TEST_F()
2125 jobject o = env_->NewGlobalRef(s); in TEST_F()
2144 jobject o1 = env_->NewGlobalRef(s); in TEST_F()
[all …]
/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()
Dsuspend_event_helper.cc65 target_klass(reinterpret_cast<jclass>(env->NewGlobalRef(klass))), in TestData()
/art/test/904-object-allocation/
Dtracking.cc52 ScopedGlobalRef(JNIEnv* env, T obj) : obj_(env->NewGlobalRef(obj)) {} in ScopedGlobalRef()
54 : obj_(GetEnv()->NewGlobalRef(src.obj_)) {} in ScopedGlobalRef()
/art/test/1962-multi-thread-events/
Dmulti_thread_events.cc79 data->events = env->NewGlobalRef(events); in Java_art_Test1962_setupThread()
/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()
604 gRunnableGlobal = env->NewGlobalRef(runnable); in Java_art_Test912_runRecursiveClassPrepareEvents()
/art/test/931-agent-thread/
Dagent_thread.cc147 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread()
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc54 env->NewGlobalRef(env->FindClass(class_name.substr(1, class_name.size() - 2).c_str()))); in SplitField()
/art/test/1974-resize-array/
Dresize_array.cc141 return static_cast<jlong>(reinterpret_cast<intptr_t>(env->NewGlobalRef(r))); in Java_art_Test1974_GetGlobalJniRef()
/art/tools/jvmti-agents/field-counts/
Dfieldcount.cc56 env->NewGlobalRef(env->FindClass(class_name.substr(1, class_name.size() - 2).c_str()))); in SplitField()
/art/adbconnection/
Dadbconnection.cc278 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()

12