- // XXX: we should attach a pool to the VM itself and deallocate this there
- //auto invocation(pool.calloc<JniInvocation$>(1, 1024));
- //_assert(JniInvocation$finalize != NULL);
- //pool.atexit(reinterpret_cast<void (*)(void *)>(JniInvocation$finalize), invocation);
+ if (JniInvocation$$init$ == NULL)
+ dlclose(libnativehelper);
+ else {
+ // XXX: we should attach a pool to the VM itself and deallocate this there
+ //auto invocation(pool.calloc<JniInvocation$>(1, 1024));
+ //_assert(JniInvocation$finalize != NULL);
+ //pool.atexit(reinterpret_cast<void (*)(void *)>(JniInvocation$finalize), invocation);