RFR: 8334239: Introduce macro for ubsan method/function exclusions [v6]

David Holmes dholmes at openjdk.org
Mon Jun 24 05:24:28 UTC 2024


On Wed, 19 Jun 2024 13:50:40 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> A number of functions/methods have to be excluded from ubsan detection (e.g. because they do things that ubsan warns about, however it is still valid what is done there).
>> We can simplify this by introducing a macro (similar to asan-related ATTRIBUTE_NO_ASAN, see sanitizers/address.hpp).
>> Currently something like this is used :
>> 
>> #if defined(__clang__) || defined(__GNUC__)
>> __attribute__((no_sanitize("undefined")))
>> #endif
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add blank line

Apologies - my review of your updates in response to my comments never got submitted.

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

PR Review: https://git.openjdk.org/jdk/pull/19722#pullrequestreview-2134658908


More information about the hotspot-dev mailing list