Skip to content

Commit

Permalink
JDK-8335283
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaesken committed Jun 28, 2024
1 parent c798316 commit edd296f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotspot/share/sanitizers/ub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
// following function or method.
// Useful if the function or method is known to do something special or even 'dangerous', for
// example causing desired signals/crashes.
#ifdef UNDEFINED_BEHAVIOR_SANITIZER
#if defined(__clang__) || defined(__GNUC__)
#define ATTRIBUTE_NO_UBSAN __attribute__((no_sanitize("undefined")))
#endif
#endif

#ifndef ATTRIBUTE_NO_UBSAN
#define ATTRIBUTE_NO_UBSAN
Expand Down

0 comments on commit edd296f

Please sign in to comment.