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

David Holmes dholmes at openjdk.org
Wed Oct 2 20:31:36 UTC 2024


On Tue, 1 Oct 2024 13:45:56 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.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove ubsan changes from jni_md.h

jni_util.h is used across all modules but it is located in `java.base/share/native/libjava` not `java.base/unix/native/libjava`. 

I think you could probably place ub.h along-side jni_util.h in that directory.

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

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


More information about the client-libs-dev mailing list