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

Function Java_java_lang_Throwable_getOurStackTrace

src/native.rs:25–37  ·  view source on GitHub ↗
(jni_env: *mut JNIEnv,
                                                                   this: jobject)

Source from the content-addressed store, hash-verified

23#[no_mangle]
24#[allow(non_snake_case)]
25pub unsafe extern "C" fn Java_java_lang_Throwable_getOurStackTrace(jni_env: *mut JNIEnv,
26 this: jobject) -> jobject {
27 if log_enabled!(Debug) {
28 debug!("Asking for trace from {}", class_sig_from_obj(jni_env, this).unwrap_or("<unknown>".to_string()));
29 }
30 return match populate_trace_elements(jni_env, this) {
31 Result::Err(err_str) => {
32 debug!("Stack elem populate err: {}", err_str);
33 ptr::null_mut()
34 },
35 Result::Ok(ret) => ret
36 };
37}
38
39#[no_mangle]
40#[allow(non_snake_case)]

Callers

nothing calls this directly

Calls 1

populate_trace_elementsFunction · 0.85

Tested by

no test coverage detected