[8u] RFR 8238225: Issues reported after replacing symlink at Contents/MacOS/libjli.dylib with binary

Andrew Hughes gnu.andrew at redhat.com
Mon Jun 8 00:05:38 UTC 2020


On 17/04/2020 13:57, Dmitry Cherepanov wrote:
> JBS: https://bugs.openjdk.java.net/browse/JDK-8238225
> original review:
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2020-January/064561.html
> 
> patch for 11u:
> https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/128739be82b6
> 
> webrev for 8u:
> http://cr.openjdk.java.net/~dcherepanov/openjdk8u/8238225/webrev.v0/
> 
> 1) src/macosx/bin/java_md_macosx.c
> 
> This part applies cleanly but needs refinement. The logic has been
> expanded to cover 8u-specifics: if the libjli.dylib library was loaded
> from MacOS bundle (i.e. realPathToSelf ends with “/MacOS/libjli.dylib”),
> then check if it’s a JDK bundle (private JRE is in ../Home/jre) and then
> check if it’s a JRE bundle (public JRE is in ../Home)
> 
> 2) testing part
> 
> Given that support for building native part of jtpeg tests is currently
> missing in 8u (8072842), new shell script was created and used for
> testing.  The java part of the test also includes additional changes
> relative to 11u version
> (http://cr.openjdk.java.net/~dcherepanov/openjdk8u/8238225/JliLaunchTest.java.diff.v0).
> The test fails without a fix and passes from the fixes (for JRE/JDK
> bundles)
> 
> Thanks,
> 
> Dmitry
> 

The patch:

https://cr.openjdk.java.net/~dcherepanov/openjdk8u/8238225/webrev.v0/jdk.changeset

appears to contain both 8235687 & 8238225. Which of these is actually
being submitted for review?

Thanks,
-- 
Andrew :)

Senior Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222



More information about the jdk8u-dev mailing list