RFR: 8335283: Build failure due to 'no_sanitize' attribute directive ignored

Kim Barrett kbarrett at openjdk.org
Sun Jun 30 03:20:17 UTC 2024


On Sat, 29 Jun 2024 05:57:49 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Wouldn't this result in an undefined macro if UBSAN is off? At least, that's what I suspect might happen sometimes

This pre-existing code already deals with ensuring ATTRIBUTE_NO_UBSAN is defined:
https://github.com/openjdk/jdk/blob/d9bcf061450ebfb7fe02b5a50c855db1d9178e5d/src/hotspot/share/sanitizers/ub.hpp#L39-L41

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

PR Comment: https://git.openjdk.org/jdk/pull/19937#issuecomment-2198418304


More information about the hotspot-dev mailing list