When using JNI, does the JNI binary use its own memory, or use part of the memory allocated to the JVM?
Details
When you specify -Xmx1024m
as a JVM option, does the JVM allocate all 1024 mb of memory to Java objects?
Does it use part of this for Java objects and part of this for the JNI binary, or does the JNI binary have to use memory in addition to this amount? How does the JVM allocate/ partition/ manage memory use in this scenario?