Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8239563

Reduce public exports in dynamic libraries built from JDK static libraries

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 15
    • core-libs
    • b17

    Description

      All JNI entrypoints that exist in JDK static libraries are by default declared as exported. If a dynamic library is built from these static libraries, we end up with many exported symbols even though we don't want to provide access to these entrypoints.

      This RFE will allow the definition of JNIEXPORT in jni_md.h to be overridden and will change JDK build to override the declaration of JNIEXPORT for libraries built statically in order to inhibit the entrypoints from being exported. This will still allow linking of these functions into native libraries but will not export the JDK symbols outside of the generated libs.

      Attachments

        Issue Links

          Activity

            People

              bobv Bob Vandette (Inactive)
              bobv Bob Vandette (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: