RFR: JDK-8200178 Remove mapfiles for JDK native libraries (original) (raw)

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 decades. 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 attribute((externally_visible,visibility("default"))) #define JNIIMPORT attribute((externally_visible,visibility("default"))) #else #define JNIEXPORT attribute((visibility("default"))) #define JNIIMPORT attribute((visibility("default"))) #endif -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20180328/2f38583c/attachment.html>



More information about the serviceability-dev mailing list