Home
last modified time | relevance | path

Searched refs:jvmti_env (Results 1 – 25 of 73) sorted by relevance

123

/art/test/1934-jvmti-signal-thread/
Dsignal_threads.cc47 jvmti_env, in Java_art_Test1934_allocNativeMonitor()
48 jvmti_env->Allocate(sizeof(NativeMonitor), in Java_art_Test1934_allocNativeMonitor()
53 jvmti_env, in Java_art_Test1934_allocNativeMonitor()
54 jvmti_env->CreateRawMonitor("test-1934 start", in Java_art_Test1934_allocNativeMonitor()
59 jvmti_env, in Java_art_Test1934_allocNativeMonitor()
60 jvmti_env->CreateRawMonitor("test-1934 continue", in Java_art_Test1934_allocNativeMonitor()
74 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon->start_monitor))) { in Java_art_Test1934_nativeWaitForOtherThread()
79 jvmti_env, in Java_art_Test1934_nativeWaitForOtherThread()
80 jvmti_env->RawMonitorNotifyAll(mon->start_monitor))) { in Java_art_Test1934_nativeWaitForOtherThread()
81 JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon->start_monitor)); in Java_art_Test1934_nativeWaitForOtherThread()
[all …]
/art/test/1943-suspend-raw-monitor-wait/
Dnative_suspend_monitor.cc38 env, jvmti_env, jvmti_env->CreateRawMonitor("Test1943 monitor", &mon))) { in Java_art_Test1943_nativeRun()
42 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1943_nativeRun()
46 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorWait(mon, 0))) { in Java_art_Test1943_nativeRun()
49 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1943_nativeRun()
61 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1943_nativeNotify()
64 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorNotifyAll(mon))) { in Java_art_Test1943_nativeNotify()
67 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1943_nativeNotify()
73 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1943_grabRawMonitor()
76 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1943_grabRawMonitor()
/art/test/ti-agent/
Dlocals_helper.cc31 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(vars[i].name)); in DeallocateContents()
32 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(vars[i].signature)); in DeallocateContents()
33 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(vars[i].generic_signature)); in DeallocateContents()
39 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetCapabilities(&caps))) { in Java_art_Locals_EnableLocalVariableAccess()
43 JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps)); in Java_art_Locals_EnableLocalVariableAccess()
52 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetLocalObject(t, depth, slot, val)); in Java_art_Locals_SetLocalVariableObject()
61 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetLocalDouble(t, depth, slot, val)); in Java_art_Locals_SetLocalVariableDouble()
70 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetLocalFloat(t, depth, slot, val)); in Java_art_Locals_SetLocalVariableFloat()
79 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetLocalLong(t, depth, slot, val)); in Java_art_Locals_SetLocalVariableLong()
88 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetLocalInt(t, depth, slot, val)); in Java_art_Locals_SetLocalVariableInt()
[all …]
Dstack_trace_helper.cc33 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetFrameCount(thr, &ret)); in Java_art_StackTrace_GetStackDepth()
50 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetFrameCount(thr, &depth))) { in Java_art_StackTrace_nativeGetStackTrace()
57 env, jvmti_env, jvmti_env->Allocate(depth * sizeof(jvmtiFrameInfo), in Java_art_StackTrace_nativeGetStackTrace()
63 env, jvmti_env, jvmti_env->GetStackTrace(thr, 0, depth, frames, &nframes))) { in Java_art_StackTrace_nativeGetStackTrace()
64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace()
69 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace()
73 jobject jmethod = GetJavaMethod(jvmti_env, env, frames[i].method); in Java_art_StackTrace_nativeGetStackTrace()
75 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace()
85 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace()
90 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace()
[all …]
Dbreakpoint_helper.cc71 if (JvmtiErrorToException(env, jvmti_env, in Java_art_Breakpoint_getLineNumberTableNative()
72 jvmti_env->GetLineNumberTable(method, &nlines, &lines))) { in Java_art_Breakpoint_getLineNumberTableNative()
77 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(lines)); in Java_art_Breakpoint_getLineNumberTableNative()
82 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(lines)); in Java_art_Breakpoint_getLineNumberTableNative()
87 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(lines)); in Java_art_Breakpoint_getLineNumberTableNative()
92 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(lines)); in Java_art_Breakpoint_getLineNumberTableNative()
105 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(lines)); in Java_art_Breakpoint_getLineNumberTableNative()
118 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetMethodLocation(method, &start, &end)); in Java_art_Breakpoint_getStartLocation()
130 JvmtiErrorToException(env, jvmti_env, jvmti_env->ClearBreakpoint(method, location)); in Java_art_Breakpoint_clearBreakpoint()
141 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetBreakpoint(method, location)); in Java_art_Breakpoint_setBreakpoint()
[all …]
Dmonitors_helper.cc33 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetCurrentContendedMonitor(thr, &out)); in Java_art_Monitors_getCurrentContendedMonitor()
51 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetObjectMonitorUsage(obj, &usage))) { in Java_art_Monitors_getObjectMonitorUsage()
57 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(usage.waiters)); in Java_art_Monitors_getObjectMonitorUsage()
58 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(usage.notify_waiters)); in Java_art_Monitors_getObjectMonitorUsage()
64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(usage.waiters)); in Java_art_Monitors_getObjectMonitorUsage()
65 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(usage.notify_waiters)); in Java_art_Monitors_getObjectMonitorUsage()
152 jvmti_env, in Java_art_Monitors_setupMonitorEvents()
153 jvmti_env->Allocate(sizeof(MonitorsData), in Java_art_Monitors_setupMonitorEvents()
160 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Monitors_setupMonitorEvents()
172 if (JvmtiErrorToException(env, jvmti_env, in Java_art_Monitors_setupMonitorEvents()
[all …]
Djni_binder.cc78 static void BindMethod(jvmtiEnv* jvmti_env, JNIEnv* env, jclass klass, jmethodID method) { in BindMethod() argument
85 jvmtiError name_result = jvmti_env->GetMethodName(method, &name_cstr, &sig_cstr, nullptr); in BindMethod()
86 CheckJvmtiError(jvmti_env, name_result); in BindMethod()
93 jvmtiError klass_result = jvmti_env->GetClassSignature(klass, &klass_name, nullptr); in BindMethod()
94 CheckJvmtiError(jvmti_env, klass_result); in BindMethod()
99 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, name_cstr)); in BindMethod()
100 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, sig_cstr)); in BindMethod()
101 CheckJvmtiError(jvmti_env, Deallocate(jvmti_env, klass_name)); in BindMethod()
177 jclass FindClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in FindClass() argument
199 CheckJvmtiError(jvmti_env, jvmti_env->GetAllThreads(&thread_count, &threads)); in FindClass()
[all …]
Dtrace_helper.cc337 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Trace_watchAllFieldAccesses()
343 jvmti_env, in Java_art_Trace_watchAllFieldAccesses()
344 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_Trace_watchAllFieldAccesses()
351 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetLoadedClasses(&nklasses, &klasses))) { in Java_art_Trace_watchAllFieldAccesses()
359 jvmtiError err = jvmti_env->GetClassFields(k, &nfields, &fields); in Java_art_Trace_watchAllFieldAccesses()
362 } else if (JvmtiErrorToException(env, jvmti_env, err)) { in Java_art_Trace_watchAllFieldAccesses()
363 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(klasses)); in Java_art_Trace_watchAllFieldAccesses()
367 jvmti_env->SetFieldAccessWatch(k, fields[j]); in Java_art_Trace_watchAllFieldAccesses()
369 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(fields)); in Java_art_Trace_watchAllFieldAccesses()
371 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(klasses)); in Java_art_Trace_watchAllFieldAccesses()
[all …]
Dframe_pop_helper.cc65 jvmti_env, in Java_art_FramePop_enableFramePopEvent()
66 jvmti_env->Allocate(sizeof(FramePopData), in Java_art_FramePop_enableFramePopEvent()
77 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(&old_data))) { in Java_art_FramePop_enableFramePopEvent()
84 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data))) { in Java_art_FramePop_enableFramePopEvent()
90 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_FramePop_enableFramePopEvent()
95 jvmti_env, in Java_art_FramePop_enableFramePopEvent()
96 jvmti_env->SetEventCallbacks(&current_callbacks, in Java_art_FramePop_enableFramePopEvent()
101 jvmti_env, in Java_art_FramePop_enableFramePopEvent()
102 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_FramePop_enableFramePopEvent()
126 JvmtiErrorToException(env, jvmti_env, jvmti_env->NotifyFramePop(thr, depth)); in Java_art_FramePop_notifyFramePop()
Dexceptions_helper.cc117 jvmti_env, in Java_art_Exceptions_setupExceptionTracing()
118 jvmti_env->Allocate(sizeof(ExceptionsData), in Java_art_Exceptions_setupExceptionTracing()
125 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Exceptions_setupExceptionTracing()
137 if (JvmtiErrorToException(env, jvmti_env, in Java_art_Exceptions_setupExceptionTracing()
138 jvmti_env->GetEnvironmentLocalStorage( in Java_art_Exceptions_setupExceptionTracing()
146 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data))) { in Java_art_Exceptions_setupExceptionTracing()
153 jvmti_env, in Java_art_Exceptions_setupExceptionTracing()
154 jvmti_env->SetEventCallbacks(&current_callbacks, in Java_art_Exceptions_setupExceptionTracing()
163 jvmti_env, in Java_art_Exceptions_enableExceptionCatchEvent()
164 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_art_Exceptions_enableExceptionCatchEvent()
[all …]
/art/test/918-fields/
Dfields.cc39 jvmtiError result = jvmti_env->GetFieldName(klass, id, &name, &sig, &gen); in Java_art_Test918_getFieldName()
42 jvmti_env->GetErrorName(result, &err); in Java_art_Test918_getFieldName()
44 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); in Java_art_Test918_getFieldName()
61 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in Java_art_Test918_getFieldName()
64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); in Java_art_Test918_getFieldName()
67 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); in Java_art_Test918_getFieldName()
71 jvmtiError result2 = jvmti_env->GetFieldName(klass, id, nullptr, nullptr, nullptr); in Java_art_Test918_getFieldName()
74 jvmti_env->GetErrorName(result2, &err); in Java_art_Test918_getFieldName()
76 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(err)); in Java_art_Test918_getFieldName()
88 jvmtiError result = jvmti_env->GetFieldDeclaringClass(klass, id, &declaring_class); in Java_art_Test918_getFieldDeclaringClass()
[all …]
/art/test/924-threads/
Dthreads.cc47 jvmti_env, in Java_art_Test924_nativeWaiterStructAlloc()
48 jvmti_env->Allocate(sizeof(WaiterStruct), in Java_art_Test924_nativeWaiterStructAlloc()
75 JvmtiErrorToException(env, jvmti_env, jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(s))); in Java_art_Test924_nativeLoop()
84 jvmtiError result = jvmti_env->GetCurrentThread(&thread); in Java_art_Test924_getCurrentThread()
85 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getCurrentThread()
96 jvmtiError result = jvmti_env->GetThreadInfo(thread, &info); in Java_art_Test924_getThreadInfo()
97 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getThreadInfo()
128 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(info.name)); in Java_art_Test924_getThreadInfo()
142 jvmtiError result = jvmti_env->GetThreadState(thread, &state); in Java_art_Test924_getThreadState()
143 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test924_getThreadState()
[all …]
/art/test/923-monitors/
Dmonitors.cc43 jvmtiError result = jvmti_env->CreateRawMonitor("dummy", &id); in Java_art_Test923_createRawMonitor()
44 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test923_createRawMonitor()
52 jvmtiError result = jvmti_env->DestroyRawMonitor(LongToMonitor(l)); in Java_art_Test923_destroyRawMonitor()
53 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_destroyRawMonitor()
58 jvmtiError result = jvmti_env->RawMonitorEnter(LongToMonitor(l)); in Java_art_Test923_rawMonitorEnter()
59 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorEnter()
64 jvmtiError result = jvmti_env->RawMonitorExit(LongToMonitor(l)); in Java_art_Test923_rawMonitorExit()
65 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorExit()
70 jvmtiError result = jvmti_env->RawMonitorWait(LongToMonitor(l), millis); in Java_art_Test923_rawMonitorWait()
71 JvmtiErrorToException(env, jvmti_env, result); in Java_art_Test923_rawMonitorWait()
[all …]
/art/test/910-methods/
Dmethods.cc40 jvmtiError result = jvmti_env->GetMethodName(id, &name, &sig, &gen); in Java_art_Test910_getMethodName()
41 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test910_getMethodName()
58 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in Java_art_Test910_getMethodName()
61 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); in Java_art_Test910_getMethodName()
64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); in Java_art_Test910_getMethodName()
68 jvmtiError result2 = jvmti_env->GetMethodName(id, nullptr, nullptr, nullptr); in Java_art_Test910_getMethodName()
69 if (JvmtiErrorToException(env, jvmti_env, result2)) { in Java_art_Test910_getMethodName()
81 jvmtiError result = jvmti_env->GetMethodDeclaringClass(id, &declaring_class); in Java_art_Test910_getMethodDeclaringClass()
82 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test910_getMethodDeclaringClass()
94 jvmtiError result = jvmti_env->GetMethodModifiers(id, &modifiers); in Java_art_Test910_getMethodModifiers()
[all …]
/art/test/1942-suspend-raw-monitor-exit/
Dnative_suspend_monitor.cc41 env, jvmti_env, jvmti_env->CreateRawMonitor("Test1942 monitor", &mon))) { in Java_art_Test1942_nativeRun()
44 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1942_nativeRun()
52 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1942_nativeRun()
71 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1942_grabRawMonitor()
74 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1942_grabRawMonitor()
/art/test/912-classes/
Dclasses_art.cc43 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, ret);
[all …]
/art/test/928-jni-table/
Djni_table.cc45 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); in Java_art_Test928_doJNITableTest()
46 if (JvmtiErrorToException(env, jvmti_env, getorig_result)) { in Java_art_Test928_doJNITableTest()
52 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); in Java_art_Test928_doJNITableTest()
53 if (JvmtiErrorToException(env, jvmti_env, getoverride_result)) { in Java_art_Test928_doJNITableTest()
61 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); in Java_art_Test928_doJNITableTest()
62 if (JvmtiErrorToException(env, jvmti_env, setoverride_result)) { in Java_art_Test928_doJNITableTest()
71 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); in Java_art_Test928_doJNITableTest()
72 if (JvmtiErrorToException(env, jvmti_env, setoverride2_result)) { in Java_art_Test928_doJNITableTest()
81 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); in Java_art_Test928_doJNITableTest()
86 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(env_override)); in Java_art_Test928_doJNITableTest()
/art/test/1921-suspend-native-recursive-monitor/
Dnative_suspend_recursive_monitor.cc41 env, jvmti_env, jvmti_env->CreateRawMonitor("Test1921 monitor", &mon))) { in Java_art_Test1921_nativeSpin()
44 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1921_nativeSpin()
52 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(mon))) { in Java_art_Test1921_nativeSpin()
56 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1921_nativeSpin()
60 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(mon))) { in Java_art_Test1921_nativeSpin()
/art/test/996-breakpoint-obsolete/
Dobsolete_breakpoints.cc41 static jmethodID GetFirstObsoleteMethod(JNIEnv* env, jvmtiEnv* jvmti_env) { in GetFirstObsoleteMethod() argument
44 if (JvmtiErrorToException(env, jvmti_env, in GetFirstObsoleteMethod()
45 jvmti_env->GetStackTrace(nullptr, // current thread in GetFirstObsoleteMethod()
54 if (JvmtiErrorToException(env, jvmti_env, in GetFirstObsoleteMethod()
55 jvmti_env->IsMethodObsolete(frames[i].method, &is_obsolete))) { in GetFirstObsoleteMethod()
69 jmethodID method = GetFirstObsoleteMethod(env, jvmti_env); in Java_art_Test996_setBreakpointOnObsoleteMethod()
73 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetBreakpoint(method, loc)); in Java_art_Test996_setBreakpointOnObsoleteMethod()
/art/test/911-get-stack-trace/
Dstack_trace.cc66 jvmtiError result2 = jvmti_env->GetMethodName(frames[method_index].method, &name, &sig, &gen); in TranslateJvmtiFrameInfoArray()
67 if (JvmtiErrorToException(env, jvmti_env, result2)) { in TranslateJvmtiFrameInfoArray()
75 jvmtiError line_result = jvmti_env->GetLineNumberTable(frames[method_index].method, in TranslateJvmtiFrameInfoArray()
82 JvmtiErrorToException(env, jvmti_env, line_result); in TranslateJvmtiFrameInfoArray()
111 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(name)); in TranslateJvmtiFrameInfoArray()
114 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(sig)); in TranslateJvmtiFrameInfoArray()
117 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(gen)); in TranslateJvmtiFrameInfoArray()
120 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(line_number_table)); in TranslateJvmtiFrameInfoArray()
134 jvmtiError result = jvmti_env->GetStackTrace(thread, start, max, frames.get(), &count); in Java_art_PrintThread_getStackTrace()
135 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_PrintThread_getStackTrace()
[all …]
/art/test/1900-track-alloc/
Dalloc.cc35 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(t)); in Dealloc()
68 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1900_getAmountAllocated()
77 JvmtiErrorToException(env, jvmti_env, data->get_global_state(jvmti_env, &allocated)); in Java_art_Test1900_getAmountAllocated()
88 return static_cast<jlong>(reinterpret_cast<intptr_t>(jvmti_env)); in Java_art_Test1900_getDefaultJvmtiEnv()
95 jvmti_env, in Java_art_Test1900_destroyJvmtiEnv()
117 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(&old_data))) { in Java_art_Test1900_initializeTest()
126 jvmti_env, in Java_art_Test1900_initializeTest()
127 jvmti_env->Allocate(sizeof(AllocTrackingData), in Java_art_Test1900_initializeTest()
135 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetExtensionFunctions(&n_ext, &infos))) { in Java_art_Test1900_initializeTest()
154 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data)); in Java_art_Test1900_initializeTest()
/art/test/992-source-data/
Dsource_file.cc44 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetSourceFileName(target, &file))) { in Java_art_Test992_getSourceFileName()
48 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(file)); in Java_art_Test992_getSourceFileName()
57 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetSourceDebugExtension(target, &ext))) { in Java_art_Test992_getSourceDebugExtension()
61 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(ext)); in Java_art_Test992_getSourceDebugExtension()
/art/test/922-properties/
Dproperties.cc36 jvmtiError result = jvmti_env->GetSystemProperties(&count, &properties); in Java_art_Test922_getSystemProperties()
37 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test922_getSystemProperties()
47 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(data)); in Java_art_Test922_getSystemProperties()
52 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(properties)); in Java_art_Test922_getSystemProperties()
65 jvmtiError result = jvmti_env->GetSystemProperty(string.c_str(), &value); in Java_art_Test922_getSystemProperty()
66 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test922_getSystemProperty()
72 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(value)); in Java_art_Test922_getSystemProperty()
88 jvmtiError result = jvmti_env->SetSystemProperty(key_string.c_str(), value_string.c_str()); in Java_art_Test922_setSystemProperty()
89 if (JvmtiErrorToException(env, jvmti_env, result)) { in Java_art_Test922_setSystemProperty()
/art/test/931-agent-thread/
Dagent_thread.cc36 jvmti_env(nullptr), in AgentData()
41 jvmtiEnv* jvmti_env; member
112 jvmtiError info_result = jvmti_env->GetThreadInfo(nullptr, &cur_thread_info); in Java_art_Test931_testAgentThread()
113 if (JvmtiErrorToException(env, jvmti_env, info_result)) { in Java_art_Test931_testAgentThread()
116 CheckJvmtiError(jvmti_env, in Java_art_Test931_testAgentThread()
117 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(cur_thread_info.name))); in Java_art_Test931_testAgentThread()
141 jvmtiError main_thread_result = jvmti_env->GetCurrentThread(&main_thread); in Java_art_Test931_testAgentThread()
142 if (JvmtiErrorToException(env, jvmti_env, main_thread_result)) { in Java_art_Test931_testAgentThread()
148 data.jvmti_env = jvmti_env; in Java_art_Test931_testAgentThread()
152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread()
[all …]
/art/test/1946-list-descriptors/
Ddescriptors.cc35 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(t)); in Dealloc()
55 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1946_getClassloaderDescriptors()
65 if (JvmtiErrorToException(env, jvmti_env, data->get_descriptor_list(jvmti_env, in Java_art_Test1946_getClassloaderDescriptors()
98 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(&old_data))) { in Java_art_Test1946_initializeTest()
107 jvmti_env, in Java_art_Test1946_initializeTest()
108 jvmti_env->Allocate(sizeof(DescriptorData), in Java_art_Test1946_initializeTest()
116 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetExtensionFunctions(&n_ext, &infos))) { in Java_art_Test1946_initializeTest()
135 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data)); in Java_art_Test1946_initializeTest()

123