/art/test/1934-jvmti-signal-thread/ |
D | signal_threads.cc | 47 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/ |
D | native_suspend_monitor.cc | 38 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/ |
D | suspend_event_helper.cc | 90 jvmti_env, in PerformSuspension() 301 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_SuspendEvents_setupTest() 318 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb))); in Java_art_SuspendEvents_setupTest() 323 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetThreadLocalStorage(thr, nullptr))) { in DeleteTestData() 327 env, jvmti_env, jvmti_env->Deallocate(reinterpret_cast<uint8_t*>(data))); in DeleteTestData() 342 jvmti_env, in SetupTestData() 343 jvmti_env->Allocate(sizeof(TestData), reinterpret_cast<uint8_t**>(&data_ptr)))) { in SetupTestData() 346 data = new (data_ptr) TestData(jvmti_env, in SetupTestData() 357 jvmti_env->Deallocate(reinterpret_cast<uint8_t*>(data)); in SetupTestData() 394 env, jvmti_env, jvmti_env->GetThreadLocalStorage(thr, reinterpret_cast<void**>(&data)))) { in Java_art_SuspendEvents_setupSuspendClassEvent() [all …]
|
D | locals_helper.cc | 31 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 …]
|
D | stack_trace_helper.cc | 33 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 …]
|
D | early_return_helper.cc | 31 JvmtiErrorToException(env, jvmti_env, jvmti_env->PopFrame(thr)); in Java_art_NonStandardExit_popFrame() 36 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnFloat(thr, val)); in Java_art_NonStandardExit_forceEarlyReturnFloat() 41 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnDouble(thr, val)); in Java_art_NonStandardExit_forceEarlyReturnDouble() 46 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnLong(thr, val)); in Java_art_NonStandardExit_forceEarlyReturnLong() 51 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnInt(thr, val)); in Java_art_NonStandardExit_forceEarlyReturnInt() 56 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnVoid(thr)); in Java_art_NonStandardExit_forceEarlyReturnVoid() 61 JvmtiErrorToException(env, jvmti_env, jvmti_env->ForceEarlyReturnObject(thr, val)); in Java_art_NonStandardExit_forceEarlyReturnObject()
|
D | breakpoint_helper.cc | 71 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 …]
|
D | monitors_helper.cc | 33 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 …]
|
D | jni_binder.cc | 78 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 GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in GetClass() argument 199 CheckJvmtiError(jvmti_env, jvmti_env->GetAllThreads(&thread_count, &threads)); in GetClass() [all …]
|
D | trace_helper.cc | 337 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 …]
|
D | frame_pop_helper.cc | 65 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(¤t_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()
|
/art/test/924-threads/ |
D | threads.cc | 47 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/910-methods/ |
D | methods.cc | 40 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/918-fields/ |
D | fields.cc | 39 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/923-monitors/ |
D | monitors.cc | 43 jvmtiError result = jvmti_env->CreateRawMonitor("placeholder", &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/912-classes/ |
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, ret); [all …]
|
/art/test/1942-suspend-raw-monitor-exit/ |
D | native_suspend_monitor.cc | 41 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/1921-suspend-native-recursive-monitor/ |
D | native_suspend_recursive_monitor.cc | 41 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/911-get-stack-trace/ |
D | stack_trace.cc | 66 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/1940-ddms-ext/ |
D | ddm_ext.cc | 53 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(t)); in Dealloc() 67 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1940_processChunk() 93 if (JvmtiErrorToException(env, jvmti_env, data->send_ddm_chunk(jvmti_env, in Java_art_Test1940_processChunk() 129 env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(reinterpret_cast<void**>(&data)))) { in Java_art_Test1940_publishListen() 134 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorEnter(data->callback_mon))) { in Java_art_Test1940_publishListen() 138 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorWait(data->callback_mon, 0))) { in Java_art_Test1940_publishListen() 139 CHECK_EQ(JVMTI_ERROR_NONE, jvmti_env->RawMonitorExit(data->callback_mon)); in Java_art_Test1940_publishListen() 147 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->RawMonitorExit(data->callback_mon))) { in Java_art_Test1940_publishListen() 170 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(&old_data))) { in Java_art_Test1940_initializeTest() 179 jvmti_env, in Java_art_Test1940_initializeTest() [all …]
|
/art/test/1959-redefine-object-instrument/ |
D | fake_redef_object.cc | 40 static void JNICALL RedefineObjectHook(jvmtiEnv *jvmti_env, in RedefineObjectHook() argument 83 JvmtiAllocator allocator(jvmti_env); in RedefineObjectHook() 104 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_Main_forceRedefine() 108 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_Main_forceRedefine() 112 jvmti_env, in Java_Main_forceRedefine() 113 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_Main_forceRedefine() 119 jvmti_env, in Java_Main_forceRedefine() 120 jvmti_env->RetransformClasses(1, &obj_class))) { in Java_Main_forceRedefine() 124 jvmti_env, in Java_Main_forceRedefine() 125 jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_Main_forceRedefine()
|
/art/test/928-jni-table/ |
D | jni_table.cc | 48 CHECK_EQ(jvmti_env->GetThreadInfo(reinterpret_cast<jthread>(o), &jti), JVMTI_ERROR_NONE); in DoDeleteGlobalRef() 64 jvmtiError getorig_result = jvmti_env->GetJNIFunctionTable(&gOriginalEnv); in Java_art_Test928_doJNITableTest() 65 if (JvmtiErrorToException(env, jvmti_env, getorig_result)) { in Java_art_Test928_doJNITableTest() 71 jvmtiError getoverride_result = jvmti_env->GetJNIFunctionTable(&env_override); in Java_art_Test928_doJNITableTest() 72 if (JvmtiErrorToException(env, jvmti_env, getoverride_result)) { in Java_art_Test928_doJNITableTest() 81 jvmtiError setoverride_result = jvmti_env->SetJNIFunctionTable(env_override); in Java_art_Test928_doJNITableTest() 82 if (JvmtiErrorToException(env, jvmti_env, setoverride_result)) { in Java_art_Test928_doJNITableTest() 98 jvmtiError setoverride2_result = jvmti_env->SetJNIFunctionTable(gOriginalEnv); in Java_art_Test928_doJNITableTest() 99 if (JvmtiErrorToException(env, jvmti_env, setoverride2_result)) { in Java_art_Test928_doJNITableTest() 108 jvmtiError setoverride3_result = jvmti_env->SetJNIFunctionTable(nullptr); in Java_art_Test928_doJNITableTest() [all …]
|
/art/test/1962-multi-thread-events/ |
D | multi_thread_events.cc | 63 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Test1962_setupTest() 69 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb))); in Java_art_Test1962_setupTest() 76 env, jvmti_env, jvmti_env->Allocate(sizeof(*data), reinterpret_cast<uint8_t**>(&data)))) { in Java_art_Test1962_setupThread() 81 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetThreadLocalStorage(thr, data))) { in Java_art_Test1962_setupThread() 86 jvmti_env, in Java_art_Test1962_setupThread() 87 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_METHOD_EXIT, thr)); in Java_art_Test1962_setupThread()
|
/art/test/996-breakpoint-obsolete/ |
D | obsolete_breakpoints.cc | 41 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/980-redefine-object/ |
D | redef_object.cc | 39 static void JNICALL RedefineObjectHook(jvmtiEnv *jvmti_env, in RedefineObjectHook() argument 96 JvmtiAllocator allocator(jvmti_env); in RedefineObjectHook() 113 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_Main_addMemoryTrackingCall() 117 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_Main_addMemoryTrackingCall() 121 jvmti_env, in Java_Main_addMemoryTrackingCall() 122 jvmti_env->SetEventNotificationMode(JVMTI_ENABLE, in Java_Main_addMemoryTrackingCall() 128 jvmti_env, in Java_Main_addMemoryTrackingCall() 129 jvmti_env->RetransformClasses(1, &obj_class))) { in Java_Main_addMemoryTrackingCall() 133 jvmti_env, in Java_Main_addMemoryTrackingCall() 134 jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, in Java_Main_addMemoryTrackingCall()
|