()
| 368 | } |
| 369 | |
| 370 | pub(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 | |
| 378 | pub(crate) fn get_thread_local_env_opt() -> Option<*mut JNIEnv> { |
| 379 | JNI_ENV.with( |