RFR: JDK-8200178 Remove mapfiles for JDK native libraries

Martin Buchholz martinrb at google.com
Wed Mar 28 21:53:10 UTC 2018

I can't find any documentation for what JNIEXPORT and friends actually do.
People including myself have been cargo-culting JNIEXPORT and JNICALL for
Why aren't they in the JNI spec?


It's fishy that the attribute externally_visible (which seems very
interesting!) is ARM specific.

  #ifdef ARM
    #define JNIEXPORT
    #define JNIIMPORT
    #define JNIEXPORT     __attribute__((visibility("default")))
    #define JNIIMPORT     __attribute__((visibility("default")))

More information about the core-libs-dev mailing list