RFR: 8239563 - Reduce public exports in dynamic libraries built from static JDK libraries

Andrew Dinn adinn at redhat.com
Wed Feb 26 12:36:23 UTC 2020

Hi Bob,

On 25/02/2020 20:37, Bob Vandette wrote:
> Please review this RFE that alters the visibility of JNI entrypoints to hidden when a shared library
> is created using static JDK libraries.
As David Holmes mentions in his ocmment on the JIRA it is possible to
control re-export of the JNI entrypoints in the shared library using a
linker map. Indeed, OpenJDK does this to limit visibility of entrypoints
to libjvm.

Is there a reason why this is not a viable alternative to changing the
definition of the JNIEXPORT macros?


Andrew Dinn

More information about the core-libs-dev mailing list