RFR: 8340801: Disable ubsan checks in some awt/2d coding

Julian Waters jwaters at openjdk.org
Thu Sep 26 10:43:34 UTC 2024


On Wed, 25 Sep 2024 12:17:59 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> There is some old awt/2d coding where warnings occur when running with ubsan enabled binaries.
> However at most of these locations the coding should work (at least on our supported platform set) so the warnings can be disabled at least for now.
> 
> The change adds a macro ATTRIBUTE_NO_UBSAN  similar to what we already use in Hotspot coding.

jni_md.h seems like a pretty big sledgehammer for something that seems to only be in one file, for just java.desktop. Is this macro planned to be used outside of java.desktop?

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

PR Comment: https://git.openjdk.org/jdk/pull/21184#issuecomment-2376587585


More information about the core-libs-dev mailing list