|
| 1 | +use jni::sys::{jint, jmethodID}; |
| 2 | +use jvmti::env::JvmtiEnv; |
| 3 | +use jvmti::error::JvmtiError; |
| 4 | +use jvmti::objects::JThread; |
| 5 | +use jvmti::sys::{jlocation, jthread, jvmtiFrameInfo, jvmtiStackInfo}; |
| 6 | +use native_macros::jvmti_call; |
| 7 | + |
| 8 | +#[jvmti_call] |
| 9 | +pub extern "system" fn GetStackTrace( |
| 10 | + _env: JvmtiEnv, |
| 11 | + _thread: JThread, |
| 12 | + _start_depth: jint, |
| 13 | + _max_frame_count: jint, |
| 14 | + _frame_buffer: *mut jvmtiFrameInfo, |
| 15 | + _count_ptr: *mut jint, |
| 16 | +) -> JvmtiError { |
| 17 | + unimplemented!("jvmtiEnv::GetStackTrace") |
| 18 | +} |
| 19 | + |
| 20 | +#[jvmti_call] |
| 21 | +pub extern "system" fn GetAllStackTraces( |
| 22 | + _env: JvmtiEnv, |
| 23 | + _max_frame_count: jint, |
| 24 | + _stack_info_ptr: *mut jvmtiStackInfo, |
| 25 | + _thread_count_ptr: *mut jint, |
| 26 | +) -> JvmtiError { |
| 27 | + unimplemented!("jvmtiEnv::GetAllStackTraces") |
| 28 | +} |
| 29 | + |
| 30 | +#[jvmti_call] |
| 31 | +pub extern "system" fn GetThreadListStackTraces( |
| 32 | + _env: JvmtiEnv, |
| 33 | + _thread_count: jint, |
| 34 | + _thread_list: *const jthread, |
| 35 | + _max_frame_count: jint, |
| 36 | + _stack_info_ptr: *mut *mut jvmtiStackInfo, |
| 37 | +) -> JvmtiError { |
| 38 | + unimplemented!("jvmtiEnv::GetThreadListStackTraces") |
| 39 | +} |
| 40 | + |
| 41 | +#[jvmti_call] |
| 42 | +pub extern "system" fn GetFrameCount( |
| 43 | + _env: JvmtiEnv, |
| 44 | + _thread: JThread, |
| 45 | + _count_ptr: *mut jint, |
| 46 | +) -> JvmtiError { |
| 47 | + unimplemented!("jvmtiEnv::GetFrameCount") |
| 48 | +} |
| 49 | + |
| 50 | +#[jvmti_call] |
| 51 | +pub extern "system" fn PopFrame(_env: JvmtiEnv, _thread: JThread) -> JvmtiError { |
| 52 | + unimplemented!("jvmtiEnv::PopFrame") |
| 53 | +} |
| 54 | + |
| 55 | +#[jvmti_call] |
| 56 | +pub extern "system" fn GetFrameLocation( |
| 57 | + _env: JvmtiEnv, |
| 58 | + _thread: JThread, |
| 59 | + _depth: jint, |
| 60 | + _method_ptr: *mut jmethodID, |
| 61 | + _location_ptr: *mut jlocation, |
| 62 | +) -> JvmtiError { |
| 63 | + unimplemented!("jvmtiEnv::GetFrameLocation") |
| 64 | +} |
| 65 | + |
| 66 | +#[jvmti_call] |
| 67 | +pub extern "system" fn NotifyFramePop( |
| 68 | + _env: JvmtiEnv, |
| 69 | + _thread: JThread, |
| 70 | + _depth: jint, |
| 71 | +) -> JvmtiError { |
| 72 | + unimplemented!("jvmtiEnv::NotifyFramePop") |
| 73 | +} |
0 commit comments