| 47 | // especially now that we use many more threads. |
| 48 | |
| 49 | static void init_thread() { |
| 50 | if (env) { |
| 51 | // thread never detached! just keep using... |
| 52 | return; |
| 53 | } |
| 54 | |
| 55 | java_vm->AttachCurrentThread(&env, nullptr); |
| 56 | } |
| 57 | |
| 58 | static void term_thread() { |
| 59 | java_vm->DetachCurrentThread(); |
no outgoing calls
no test coverage detected