RFR for JDK-8215123: Crash in runtime image built with jlink --compress=2
alexey.ivanov at oracle.com
Mon Dec 10 12:32:05 UTC 2018
Could you please review the following fix for jdk12?
The problem is that calling convention was changed on ZIP_InflateFully
function in zip.dll. Yet it hasn't been updated in jimage.dll which uses
It could be considered a regression from JDK-8200178  and JDK-8201226
. After the first fix, ZIP_InflateFully was exported with a mangled
name so that function could not be found in zip.dll. After the second
fix, the function uses __cdecl; mismatched calling convention leads to
The fix is to remove JNICALL (__stdcall) from ZIP_InflateFully function
prototype in imageDecompressor.cpp so that the calling convention is the
This issue was brought up by Ali İnce from AdoptOpenJDK:
Thank you in advance.
More information about the core-libs-dev