RFR: 8301697: [s390] Optimized-build is broken
Aleksey Shipilev
shade at openjdk.org
Thu Feb 9 18:27:35 UTC 2023
On Fri, 3 Feb 2023 04:47:32 GMT, Amit Kumar <duke at openjdk.org> wrote:
> As title states optimized build is broken with GCC-9.4.0 and After my code changes build is now again successful. I've done testing for optimised, release, fastdebug, slowdebug on s390 and they're successful with these code changes.
I was confused a bit about this, because my own S390X optimized builds build fine:
https://builds.shipilev.net/openjdk-jdk/build-logs/build-openjdk-jdk-linux-s390x-server-optimized-gcc10-glibc2.31.log
So, current code is supposed to build fine. I think it is arguably correct to protect the asserts with `ASSERT`/`DEBUG` rather than `PRODUCT`, which would hide them in the optimized builds. But I look at the original issue, and the optimized build is actually failing on the assert, which is why my (cross-compiled) builds are fine! See:
A fatal error has been detected by the Java Runtime Environment:
Internal Error (src/hotspot/cpu/s390/macroAssembler_s390.cpp:5498), pid=3076078, tid=3076083
guarantee(false) failed: Z assembly code requires stop: killed Z_R14
So, this change only hides the issue, not fixes it? If so, I don't think this is a good way to solve the issue.
I suggest you `git bisect` and identify which change introduced this failure, and work from there.
-------------
PR: https://git.openjdk.org/jdk/pull/12400
More information about the hotspot-dev
mailing list