[8u] Request for approval for 8172053: (ppc64) Downport of 8170153 breaks build on linux/ppc64 (big endian)
volker.simonis at gmail.com
Tue Dec 27 17:17:44 UTC 2016
can I please have a review and approval for pushing the following
small, ppc64-only fix to jdk8u-dev:
The problem is that the recent downport of "8170153:
PPC64/s390x/aarch64: Poor StrictMath performance due to non-optimized
compilation" breaks the build of jdk8u with the original gcc 4.3 on
linux/ppc64. We should however ensure, that an update-release will not
break the original tool chain used for a released version of Java.
Notice, that this change won't go to jdk9 because it only fixes an
issue caused by the downport of another fix to jdk8u which doesn't
exist in jdk9.
JDK-8170153 increased the optimization level for the compilation of
fdlibm on both linux/ppc64 and linux/ppc64le. This only worked by
using the option '-ffp-contract=off' which guaranteed correct IEEE
floating point behavior.
Unfortunately, '-ffp-contract' is only available since gcc 4.6. For
ppc64le that's no problem since ppc64le support only appeared in gcc
4.8.3. But on ppc64 (big endian) we traditionally compiled with gcc
4.3 which only knows '-mno-fused-madd'. However, that's still not
enough to get the float computations right - we additionally have to
I've tested the new configuration (i.e. '-mno-fused-madd
-fno-strict-aliasing') with the corresponding jtreg and JCK tests and
couldn't find any issue.
Thank you and best regards,
More information about the jdk8u-dev