RFR [XS]: 8240603: Windows 32bit compile error after 8238676

Baesken, Matthias matthias.baesken at sap.com
Thu Mar 5 12:25:08 UTC 2020


Hello ,  please look into the following small change .
We noticed that the Windows 32 bit builds fail  now  in jdk/jdk .

Error :
libatExit.c(107): error C2373: 'JNI_OnLoad': redefinition; different type modifiers
d:\output-jdk-dev\support\modules_include\java.base\jni.h(1970): note: see declaration of 'JNI_OnLoad'

Looks like the recent change  "8238676: jni crashes on accessing it from process exit hook"
caused this; we need on Windows 32 bit

JNIEXPORT jint JNICALL
JNI_OnLoad(JavaVM *jvm, void *reserved) {  ... }


to avoid this .

Bug/webrev :

https://bugs.openjdk.java.net/browse/JDK-8240603

http://cr.openjdk.java.net/~mbaesken/webrevs/8240603.0/


Thanks, Matthias


More information about the hotspot-dev mailing list