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

Method drop

rust/src/api/mod.rs:1681–1688  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1679
1680impl Drop for Jvm {
1681 fn drop(&mut self) {
1682 if cache::remove_active_jvm() <= 0 {
1683 if self.detach_thread_on_drop {
1684 self.detach_current_thread();
1685 }
1686 cache::set_thread_local_env(None);
1687 }
1688 }
1689}
1690
1691/// A builder for Jvm

Callers

nothing calls this directly

Calls 3

remove_active_jvmFunction · 0.85
set_thread_local_envFunction · 0.85
detach_current_threadMethod · 0.80

Tested by

no test coverage detected