Integrated: 8334239: Introduce macro for ubsan method/function exclusions

Matthias Baesken mbaesken at openjdk.org
Thu Jun 20 06:18:17 UTC 2024


On Fri, 14 Jun 2024 13:39:14 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

This pull request has now been integrated.

Changeset: ff302409
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ff30240926224b2f98e173bcd606c157af788919
Stats:     55 lines in 4 files changed: 46 ins; 6 del; 3 mod

8334239: Introduce macro for ubsan method/function exclusions

Reviewed-by: stefank, stuefe, kbarrett

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

PR: https://git.openjdk.org/jdk/pull/19722


More information about the hotspot-dev mailing list