/art/test/ti-agent/ |
H A D | test_env.h | 24 extern jvmtiEnv* jvmti_env;
|
H A D | jni_binder.h | 27 jclass FindClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader); 33 void BindFunctions(jvmtiEnv* jvmti_env, 38 void BindFunctionsOnClass(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass);
|
H A D | agent_common.cc | 29 jvmtiError ret = jvmti_env->SetTag(obj, tag); 30 JvmtiErrorToException(env, jvmti_env, ret); 35 jvmtiError ret = jvmti_env->GetTag(obj, &tag); 36 if (JvmtiErrorToException(env, jvmti_env, ret)) {
|
H A D | test_env.cc | 21 jvmtiEnv* jvmti_env = nullptr; member in namespace:art
|
H A D | agent_startup.cc | 31 BindFunctions(jvmti_env, env, name.c_str(), classLoader); 36 BindFunctionsOnClass(jvmti_env, env, bindClass);
|
H A D | jni_binder.cc | 78 static void BindMethod(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass, jmethodID method) { argument 85 jvmtiError name_result = jvmti_env->GetMethodName(method, &name_cstr, &sig_cstr, nullptr); 86 CheckJvmtiError(jvmti_env, name_result); 93 jvmtiError klass_result = jvmti_env->GetClassSignature(klass, &klass_name, nullptr); 94 CheckJvmtiError(jvmti_env, klass_result); 99 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, name_cstr)); 100 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, sig_cstr)); 101 CheckJvmtiError(jvmti_env, Deallocat 177 FindClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) argument 231 BindFunctionsOnClass(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass) argument 252 BindFunctions(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) argument [all...] |
/art/test/923-monitors/ |
H A D | monitors.cc | 43 jvmtiError result = jvmti_env->CreateRawMonitor("dummy", &id); 44 if (JvmtiErrorToException(env, jvmti_env, result)) { 52 jvmtiError result = jvmti_env->DestroyRawMonitor(LongToMonitor(l)); 53 JvmtiErrorToException(env, jvmti_env, result); 58 jvmtiError result = jvmti_env->RawMonitorEnter(LongToMonitor(l)); 59 JvmtiErrorToException(env, jvmti_env, result); 64 jvmtiError result = jvmti_env->RawMonitorExit(LongToMonitor(l)); 65 JvmtiErrorToException(env, jvmti_env, result); 70 jvmtiError result = jvmti_env->RawMonitorWait(LongToMonitor(l), millis); 71 JvmtiErrorToException(env, jvmti_env, resul [all...] |
/art/test/918-fields/ |
H A D | fields.cc | 39 jvmtiError result = jvmti_env->GetFieldName(klass, id, &name, &sig, &gen); 42 jvmti_env->GetErrorName(result, &err); 44 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); 61 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); 64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); 67 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); 71 jvmtiError result2 = jvmti_env->GetFieldName(klass, id, nullptr, nullptr, nullptr); 74 jvmti_env->GetErrorName(result2, &err); 76 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); 88 jvmtiError result = jvmti_env [all...] |
/art/test/928-jni-table/ |
H A D | jni_table.cc | 45 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); 46 if (JvmtiErrorToException(env, jvmti_env, getorig_result)) { 52 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); 53 if (JvmtiErrorToException(env, jvmti_env, getoverride_result)) { 61 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); 62 if (JvmtiErrorToException(env, jvmti_env, setoverride_result)) { 71 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); 72 if (JvmtiErrorToException(env, jvmti_env, setoverride2_result)) { 81 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); 86 jvmti_env [all...] |
/art/test/920-objects/ |
H A D | objects.cc | 34 jvmtiError result = jvmti_env->GetObjectSize(object, &size); 37 jvmti_env->GetErrorName(result, &err); 39 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); 50 jvmtiError result = jvmti_env->GetObjectHashCode(object, &hash); 53 jvmti_env->GetErrorName(result, &err); 55 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err));
|
/art/test/933-misc-events/ |
H A D | misc_events.cc | 45 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); 46 if (JvmtiErrorToException(env, jvmti_env, ret)) { 50 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, 53 if (JvmtiErrorToException(env, jvmti_env, ret)) { 68 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_DATA_DUMP_REQUEST, nullptr); 69 JvmtiErrorToException(env, jvmti_env, ret);
|
/art/test/984-obsolete-invoke/ |
H A D | obsolete_invoke.cc | 38 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetCurrentThread(&cur))) { 42 if (JvmtiErrorToException(env, jvmti_env, 43 jvmti_env->GetStackTrace(cur, 54 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->IsMethodObsolete(method, &is_obsolete))) {
|
/art/test/936-search-onload/ |
H A D | search_onload.cc | 38 if (vm->GetEnv(reinterpret_cast<void**>(&jvmti_env), JVMTI_VERSION_1_0)) { 42 SetAllCapabilities(jvmti_env); 48 jvmtiError result = jvmti_env->AddToBootstrapClassLoaderSearch(dex1.c_str()); 54 result = jvmti_env->AddToSystemClassLoaderSearch(dex2.c_str());
|
/art/test/924-threads/ |
H A D | threads.cc | 44 jvmtiError result = jvmti_env->GetCurrentThread(&thread); 45 if (JvmtiErrorToException(env, jvmti_env, result)) { 56 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); 57 if (JvmtiErrorToException(env, jvmti_env, result)) { 88 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(info.name)); 102 jvmtiError result = jvmti_env->GetThreadState(thread, &state); 103 if (JvmtiErrorToException(env, jvmti_env, result)) { 114 jvmtiError result = jvmti_env->GetAllThreads(&thread_count, &threads); 115 if (JvmtiErrorToException(env, jvmti_env, result)) { 124 jvmti_env 149 ThreadEvent(jvmtiEnv* jvmti_env, JNIEnv* jni_env, jthread thread, bool is_start) argument 173 ThreadStart(jvmtiEnv* jvmti_env, JNIEnv* jni_env, jthread thread) argument 179 ThreadEnd(jvmtiEnv* jvmti_env, JNIEnv* jni_env, jthread thread) argument [all...] |
/art/test/912-classes/ |
H A D | classes_art.cc | 43 jvmtiError ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, 46 if (JvmtiErrorToException(env, jvmti_env, ret)) { 49 ret = jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, 52 JvmtiErrorToException(env, jvmti_env, ret); 60 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); 61 if (JvmtiErrorToException(env, jvmti_env, ret)) { 65 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, 68 if (JvmtiErrorToException(env, jvmti_env, ret)) { 71 ret = jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, 74 JvmtiErrorToException(env, jvmti_env, re [all...] |
H A D | classes.cc | 41 jvmtiError result = jvmti_env->IsModifiableClass(klass, &res); 42 JvmtiErrorToException(env, jvmti_env, result); 50 jvmtiError result = jvmti_env->GetClassSignature(klass, &sig, &gen); 51 if (JvmtiErrorToException(env, jvmti_env, result)) { 66 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); 69 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); 78 jvmtiError result = jvmti_env->IsInterface(klass, &is_interface); 79 JvmtiErrorToException(env, jvmti_env, result); 86 jvmtiError result = jvmti_env->IsArrayClass(klass, &is_array_class); 87 JvmtiErrorToException(env, jvmti_env, resul [all...] |
/art/test/922-properties/ |
H A D | properties.cc | 36 jvmtiError result = jvmti_env->GetSystemProperties(&count, &properties); 37 if (JvmtiErrorToException(env, jvmti_env, result)) { 47 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(data)); 52 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(properties)); 65 jvmtiError result = jvmti_env->GetSystemProperty(string.c_str(), &value); 66 if (JvmtiErrorToException(env, jvmti_env, result)) { 72 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(value)); 88 jvmtiError result = jvmti_env->SetSystemProperty(key_string.c_str(), value_string.c_str()); 89 if (JvmtiErrorToException(env, jvmti_env, result)) {
|
/art/test/910-methods/ |
H A D | methods.cc | 40 jvmtiError result = jvmti_env->GetMethodName(id, &name, &sig, &gen); 41 if (JvmtiErrorToException(env, jvmti_env, result)) { 58 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); 61 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); 64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); 68 jvmtiError result2 = jvmti_env->GetMethodName(id, nullptr, nullptr, nullptr); 69 if (JvmtiErrorToException(env, jvmti_env, result2)) { 81 jvmtiError result = jvmti_env->GetMethodDeclaringClass(id, &declaring_class); 82 if (JvmtiErrorToException(env, jvmti_env, result)) { 94 jvmtiError result = jvmti_env [all...] |
/art/test/929-search/ |
H A D | search.cc | 39 jvmtiError result = jvmti_env->AddToBootstrapClassLoaderSearch(utf.c_str()); 40 JvmtiErrorToException(env, jvmti_env, result); 49 jvmtiError result = jvmti_env->AddToSystemClassLoaderSearch(utf.c_str()); 50 JvmtiErrorToException(env, jvmti_env, result);
|
/art/test/908-gc-start-finish/ |
H A D | gc_callbacks.cc | 50 jvmtiError ret = jvmti_env->SetEventCallbacks(&callbacks, sizeof(callbacks)); 51 JvmtiErrorToException(env, jvmti_env, ret); 57 jvmtiError ret = jvmti_env->SetEventNotificationMode( 61 if (JvmtiErrorToException(env, jvmti_env, ret)) { 64 ret = jvmti_env->SetEventNotificationMode( 68 if (JvmtiErrorToException(env, jvmti_env, ret)) {
|
/art/test/911-get-stack-trace/ |
H A D | stack_trace.cc | 65 jvmtiError result2 = jvmti_env->GetMethodName(frames[method_index].method, &name, &sig, &gen); 66 if (JvmtiErrorToException(env, jvmti_env, result2)) { 74 jvmtiError line_result = jvmti_env->GetLineNumberTable(frames[method_index].method, 81 JvmtiErrorToException(env, jvmti_env, line_result); 110 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); 113 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); 116 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); 119 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(line_number_table)); 133 jvmtiError result = jvmti_env->GetStackTrace(thread, start, max, frames.get(), &count); 134 if (JvmtiErrorToException(env, jvmti_env, resul [all...] |
/art/test/927-timers/ |
H A D | timers.cc | 37 jvmtiError result = jvmti_env->GetAvailableProcessors(&count); 38 if (JvmtiErrorToException(env, jvmti_env, result)) { 47 jvmtiError result = jvmti_env->GetTime(&time); 48 if (JvmtiErrorToException(env, jvmti_env, result)) { 57 jvmtiError result = jvmti_env->GetTimerInfo(&info); 58 if (JvmtiErrorToException(env, jvmti_env, result)) {
|
/art/test/931-agent-thread/ |
H A D | agent_thread.cc | 36 jvmti_env(nullptr), 41 jvmtiEnv* jvmti_env; member in struct:art::Test930AgentThread::AgentData 112 jvmtiError info_result = jvmti_env->GetThreadInfo(nullptr, &cur_thread_info); 113 if (JvmtiErrorToException(env, jvmti_env, info_result)) { 116 CheckJvmtiError(jvmti_env, 117 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(cur_thread_info.name))); 141 jvmtiError main_thread_result = jvmti_env->GetCurrentThread(&main_thread); 142 if (JvmtiErrorToException(env, jvmti_env, main_thread_result)) { 148 data.jvmti_env = jvmti_env; [all...] |
/art/test/925-threadgroups/ |
H A D | threadgroups.cc | 42 jvmtiError result = jvmti_env->GetTopThreadGroups(&group_count, &groups); 43 if (JvmtiErrorToException(env, jvmti_env, result)) { 52 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(groups)); 60 jvmtiError result = jvmti_env->GetThreadGroupInfo(group, &info); 61 if (JvmtiErrorToException(env, jvmti_env, result)) { 96 jvmtiError result = jvmti_env->GetThreadGroupChildren(group, 101 if (JvmtiErrorToException(env, jvmti_env, result)) { 122 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(threads)); 123 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(groups));
|
/art/test/907-get-loaded-classes/ |
H A D | get_loaded_classes.cc | 46 jvmtiError result = jvmti_env->GetLoadedClasses(&count, &classes); 49 jvmti_env->GetErrorName(result, &err); 51 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); 63 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(classes));
|