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

Matthias Baesken mbaesken at openjdk.org
Wed Jun 19 09:02:34 UTC 2024


> 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:

  whitespace adjustments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19722/files
  - new: https://git.openjdk.org/jdk/pull/19722/files/c07f9324..1b451500

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19722&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19722&range=02-03

  Stats: 4 lines in 1 file changed: 1 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19722.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19722/head:pull/19722

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


More information about the hotspot-dev mailing list