MCPcopy Create free account
hub / github.com/astonbitecode/j4rs / remove_active_jvm

Function remove_active_jvm

rust/src/cache.rs:370–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368}
369
370pub(crate) fn remove_active_jvm() -> i32 {
371 ACTIVE_JVMS.with(|active_jvms| {
372 let active_number = { *active_jvms.borrow() - 1 };
373 *active_jvms.borrow_mut() = active_number;
374 active_number
375 })
376}
377
378pub(crate) fn get_thread_local_env_opt() -> Option<*mut JNIEnv> {
379 JNI_ENV.with(

Callers 1

dropMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected