I have used JNI to call C methods that allocate memory. I have methods to free the memory, but if those methods are not called, what happens to the allocated memory when the JVM is stopped?
What happens to the "leaked" memory if you unload the loaded library (see How to unload library (DLL) from java JVM )?