I have a Java application with lots of JNI calls, in different C++ libraries.
Sometimes there libraries call/link to other shared libraries.
I was thinking of attaching “libgc” the garbage collector on Solaris to the “Native” side of the code.
How do I do it?
- Is it enough if I link libgc with the C/C++ library?
- How do I know the garbage collection is working?
- Do I need to link libgc to all native libraries or is any one enough?
OS:Solaris
libgcto all libraries that are using it. Link it dynamically if the platform supports it.