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

Reduce public exports in dynamic libraries built from JDK static libraries

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs
    • Resolved In Build:
      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

              • Assignee:
                bobv Bob Vandette
                Reporter:
                bobv Bob Vandette
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: