Currently, native methods are being exported in the dynamic table even if they are not being used on Java side. This restricts the compiler to perform potential optimizations. By using visibility feature along with JNIEXPORT and JNICALL macros on shared functions, a much better binary can be produced.
Currently, native methods are being exported in the dynamic table even if they are not being used on Java side. This restricts the compiler to perform potential optimizations. By using visibility feature along with
JNIEXPORT
andJNICALL
macros on shared functions, a much better binary can be produced.