RFR: 8339331: GCC fortify error in vm_version_linux_aarch64.cpp [v2]
Andrew Haley
aph at openjdk.org
Tue Dec 17 17:17:38 UTC 2024
On Tue, 17 Dec 2024 05:10:52 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> We've never been able to reproduce this at Oracle. We're using vanilla builds of gcc. It might be that Fedora is applying a patch that leads to this. In JDK-8316234 it was suggested there might be a gcc bug involved: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87489 Having read through that bug, I'm inclined to agree that's probably involved. Much as I hate warning suppresions, I think a better solution here is to use PRAGMA_NONNULL_IGNORED, along with a comment referring to that gcc bug, and also mentioning that it might require some distro-specific gcc patch, since not seen with vanilla gcc release.
Mmm, I see. Agreed.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22655#issuecomment-2549078461
More information about the hotspot-runtime-dev
mailing list