Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit 6e66ee1

Browse files
committed
8331298: avoid alignment checks in UBSAN enabled build
Backport-of: 60b61e588c1252b4b1fbc64d0f818a85670f7146
1 parent 9e3344e commit 6e66ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/autoconf/jdk-options.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
502502
[
503503
# GCC reports lots of likely false positives for stringop-truncation and format-overflow.
504504
# Silence them for now.
505-
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base"
505+
UBSAN_CHECKS="-fsanitize=undefined -fsanitize=float-divide-by-zero -fno-sanitize=shift-base -fno-sanitize=alignment"
506506
UBSAN_CFLAGS="$UBSAN_CHECKS -Wno-stringop-truncation -Wno-format-overflow -fno-omit-frame-pointer -DUNDEFINED_BEHAVIOR_SANITIZER"
507507
UBSAN_LDFLAGS="$UBSAN_CHECKS"
508508
UTIL_ARG_ENABLE(NAME: ubsan, DEFAULT: false, RESULT: UBSAN_ENABLED,

0 commit comments

Comments
 (0)