RFR: 8321688: Build on linux with GCC 7.5.0 fails after 8319577

Guoxiong Li gli at openjdk.org
Wed Dec 13 01:53:44 UTC 2023


On Tue, 12 Dec 2023 15:40:19 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:

> Somehow the JDK compiled with 7.5 for the author of that patch, but fails for the author of this patch. I don't understand how this both can be true.

I noticed my previous build is `slowdebug`. Today, I tested the `release` and `fastdebug` locally. These builds succeeded. 
So only the `slowdebug` build fails. What's the difference between `fastdebug` and `slowdebug`?
It seems that `slow-debug` disables some optimizations, such as constant propagation, which may cause this issue.
Should we adjust the concrete code (like this PR) or revise the build system to avoid the potential problem in the future?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17047#issuecomment-1853142192


More information about the core-libs-dev mailing list