/art/test/928-jni-table/ |
D | jni_table.cc | 39 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/ |
D | vminit.cc | 62 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/ |
D | non_debuggable_classes.cc | 39 non_debuggable_classes.push_back(reinterpret_cast<jclass>(env->NewGlobalRef(klass))); in AddNonDebuggableClass()
|
D | reflection_test.cc | 50 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()
|
D | runtime.cc | 810 return env->NewGlobalRef(system_class_loader.get()); in CreateSystemClassLoader() 1932 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups() 1937 env->NewGlobalRef(env->GetStaticObjectField( in InitThreadGroups()
|
D | well_known_classes.cc | 178 return reinterpret_cast<jclass>(env->NewGlobalRef(c.get())); in CacheClass()
|
/art/test/1950-unprepared-transform/ |
D | unprepared_transform.cc | 57 kMainClass = reinterpret_cast<jclass>(env->NewGlobalRef(main)); in Java_Main_setupClassLoadHook()
|
/art/test/169-threadgroup-jni/ |
D | jni_daemon_thread.cc | 54 jobject global_thread_group = env->NewGlobalRef(thread_group); in Java_Main_testNativeThread()
|
/art/runtime/jni/ |
D | java_vm_ext_test.cc | 156 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F() 169 global_refs_.push_back(env->NewGlobalRef(local_ref)); in TEST_F()
|
D | jni_internal_test.cc | 49 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/ |
D | exceptions_helper.cc | 129 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()
|
D | monitors_helper.cc | 165 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()
|
D | frame_pop_helper.cc | 71 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_FramePop_enableFramePopEvent()
|
D | breakpoint_helper.cc | 159 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Breakpoint_startBreakpointWatch()
|
D | trace_helper.cc | 493 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Trace_enableTracing2()
|
D | suspend_event_helper.cc | 65 target_klass(reinterpret_cast<jclass>(env->NewGlobalRef(klass))), in TestData()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 52 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/ |
D | multi_thread_events.cc | 79 data->events = env->NewGlobalRef(events); in Java_art_Test1962_setupThread()
|
/art/test/912-classes/ |
D | classes.cc | 457 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/ |
D | agent_thread.cc | 147 data.main_thread = env->NewGlobalRef(main_thread); in Java_art_Test931_testAgentThread()
|
/art/tools/jvmti-agents/field-null-percent/ |
D | fieldnull.cc | 54 env->NewGlobalRef(env->FindClass(class_name.substr(1, class_name.size() - 2).c_str()))); in SplitField()
|
/art/test/1974-resize-array/ |
D | resize_array.cc | 141 return static_cast<jlong>(reinterpret_cast<intptr_t>(env->NewGlobalRef(r))); in Java_art_Test1974_GetGlobalJniRef()
|
/art/tools/jvmti-agents/field-counts/ |
D | fieldcount.cc | 56 env->NewGlobalRef(env->FindClass(class_name.substr(1, class_name.size() - 2).c_str()))); in SplitField()
|
/art/adbconnection/ |
D | adbconnection.cc | 278 std::unique_ptr<CallbackData> data(new CallbackData { this, soa.Env()->NewGlobalRef(thr.get()) }); in StartDebuggerThreads()
|
/art/test/004-JniTest/ |
D | jni_test.cc | 644 s5 = reinterpret_cast<jstring>(env->NewGlobalRef(s5)); in Java_Main_testNewStringObject()
|