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
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: <https://mail.openjdk.org/pipermail/security-dev/attachments/20180328/2f38583c/attachment.htm>
More information about the security-dev
mailing list