MCPcopy Create free account
hub / github.com/cretz/stackparam / get_this

Function get_this

src/native.rs:515–519  ·  view source on GitHub ↗
(thread: jthread, depth: jint)

Source from the content-addressed store, hash-verified

513}
514
515unsafe fn get_this(thread: jthread, depth: jint) -> Result<jobject, String> {
516 let mut obj: jobject = ptr::null_mut();
517 let inst_res = (**JVMTI_ENV).GetLocalInstance.unwrap()(JVMTI_ENV, thread, depth, &mut obj);
518 return util::result_or_jvmti_err(obj, inst_res);
519}
520
521unsafe fn get_local_var(jni_env: *mut JNIEnv, thread: jthread, depth: jint, slot: jint, typ: &str) -> Result<jobject, String> {
522 return match typ {

Callers 1

get_frame_paramsFunction · 0.85

Calls 1

result_or_jvmti_errFunction · 0.85

Tested by

no test coverage detected