Skip to content

Commit 53242cd

Browse files
committedJul 1, 2024
8335283: Build failure due to 'no_sanitize' attribute directive ignored
Reviewed-by: shade, tschatzl, kbarrett, jwaters
1 parent d9bcf06 commit 53242cd

File tree

1 file changed

+2
-0
lines changed
  • src/hotspot/share/sanitizers

1 file changed

+2
-0
lines changed
 

‎src/hotspot/share/sanitizers/ub.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232
// following function or method.
3333
// Useful if the function or method is known to do something special or even 'dangerous', for
3434
// example causing desired signals/crashes.
35+
#ifdef UNDEFINED_BEHAVIOR_SANITIZER
3536
#if defined(__clang__) || defined(__GNUC__)
3637
#define ATTRIBUTE_NO_UBSAN __attribute__((no_sanitize("undefined")))
3738
#endif
39+
#endif
3840

3941
#ifndef ATTRIBUTE_NO_UBSAN
4042
#define ATTRIBUTE_NO_UBSAN

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jul 1, 2024

@openjdk-notifier[bot]
Please sign in to comment.