Lines Matching refs:data
31 void* data; in IsInCallback() local
34 jvmti->GetThreadLocalStorage(thr, &data); in IsInCallback()
38 if (data == nullptr) { in IsInCallback()
101 TraceData* data = nullptr; in threadStartCB() local
103 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in threadStartCB()
106 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadStartCB()
110 CHECK(data->thread_start != nullptr); in threadStartCB()
111 jnienv->CallStaticVoidMethod(klass.get(), data->thread_start, thread); in threadStartCB()
116 TraceData* data = nullptr; in threadEndCB() local
118 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in threadEndCB()
121 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadEndCB()
125 CHECK(data->thread_end != nullptr); in threadEndCB()
126 jnienv->CallStaticVoidMethod(klass.get(), data->thread_end, thread); in threadEndCB()
134 TraceData* data = nullptr; in singleStepCB() local
136 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in singleStepCB()
142 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in singleStepCB()
146 CHECK(data->single_step != nullptr); in singleStepCB()
150 data->single_step, in singleStepCB()
165 TraceData* data = nullptr; in fieldAccessCB() local
167 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in fieldAccessCB()
174 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldAccessCB()
178 CHECK(data->field_access != nullptr); in fieldAccessCB()
183 data->field_access, in fieldAccessCB()
203 TraceData* data = nullptr; in fieldModificationCB() local
205 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in fieldModificationCB()
212 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldModificationCB()
216 CHECK(data->field_modify != nullptr); in fieldModificationCB()
227 data->field_modify, in fieldModificationCB()
244 TraceData* data = nullptr; in methodExitCB() local
246 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in methodExitCB()
249 if (method == data->exit_method || in methodExitCB()
250 method == data->enter_method || in methodExitCB()
255 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodExitCB()
259 CHECK(data->exit_method != nullptr); in methodExitCB()
268 data->exit_method, in methodExitCB()
279 TraceData* data = nullptr; in methodEntryCB() local
281 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in methodEntryCB()
284 CHECK(data->enter_method != nullptr); in methodEntryCB()
285 if (method == data->exit_method || in methodEntryCB()
286 method == data->enter_method || in methodEntryCB()
291 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodEntryCB()
300 jnienv->CallStaticVoidMethod(klass.get(), data->enter_method, method_arg); in methodEntryCB()
308 TraceData* data = nullptr; in classPrepareCB() local
310 jvmti->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in classPrepareCB()
313 if (data->access_watch_on_load || data->modify_watch_on_load) { in classPrepareCB()
322 if (data->access_watch_on_load) { in classPrepareCB()
326 if (data->modify_watch_on_load) { in classPrepareCB()
335 TraceData* data = nullptr; in Java_art_Trace_watchAllFieldAccesses() local
337 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Trace_watchAllFieldAccesses()
340 data->access_watch_on_load = true; in Java_art_Trace_watchAllFieldAccesses()
375 TraceData* data = nullptr; in Java_art_Trace_watchAllFieldModifications() local
377 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Trace_watchAllFieldModifications()
380 data->modify_watch_on_load = true; in Java_art_Trace_watchAllFieldModifications()
481 TraceData* data = nullptr; in Java_art_Trace_enableTracing2() local
485 reinterpret_cast<unsigned char**>(&data)))) { in Java_art_Trace_enableTracing2()
488 memset(data, 0, sizeof(TraceData)); in Java_art_Trace_enableTracing2()
490 jvmti_env->CreateRawMonitor("Trace monitor", &data->trace_mon))) { in Java_art_Trace_enableTracing2()
493 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(klass)); in Java_art_Trace_enableTracing2()
494 data->enter_method = enter != nullptr ? env->FromReflectedMethod(enter) : nullptr; in Java_art_Trace_enableTracing2()
495 data->exit_method = exit != nullptr ? env->FromReflectedMethod(exit) : nullptr; in Java_art_Trace_enableTracing2()
496 data->field_access = field_access != nullptr ? env->FromReflectedMethod(field_access) : nullptr; in Java_art_Trace_enableTracing2()
497 data->field_modify = field_modify != nullptr ? env->FromReflectedMethod(field_modify) : nullptr; in Java_art_Trace_enableTracing2()
498 data->single_step = single_step != nullptr ? env->FromReflectedMethod(single_step) : nullptr; in Java_art_Trace_enableTracing2()
499 data->thread_start = thread_start != nullptr ? env->FromReflectedMethod(thread_start) : nullptr; in Java_art_Trace_enableTracing2()
500 data->thread_end = thread_end != nullptr ? env->FromReflectedMethod(thread_end) : nullptr; in Java_art_Trace_enableTracing2()
512 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data))) { in Java_art_Trace_enableTracing2()
614 TraceData* data = nullptr; in Java_art_Trace_disableTracing() local
616 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Trace_disableTracing()
620 if (data == nullptr || data->test_klass == nullptr) { in Java_art_Trace_disableTracing()
666 jvmti_env->RawMonitorEnter(data->trace_mon))) { in Java_art_Trace_disableTracing()
670 env->DeleteGlobalRef(data->test_klass); in Java_art_Trace_disableTracing()
671 data->test_klass = nullptr; in Java_art_Trace_disableTracing()
674 jvmti_env->RawMonitorExit(data->trace_mon))) { in Java_art_Trace_disableTracing()