Skip to content

Commit eb27d62

Browse files
committed
8360869: jcstress is able to crash jdk8 on aarch64 with jfr on
1 parent fad33c7 commit eb27d62

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

common/autoconf/toolchain.m4

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,17 @@ AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
846846
# This is later checked when setting flags.
847847
fi
848848
849+
if test "x$TOOLCHAIN_TYPE" = xgcc; then
850+
if test "x$OPENJDK_TARGET_CPU_ARCH" = "xaarch64" ; then
851+
AC_MSG_CHECKING([for broken aarch64 gcc 4.x])
852+
COMPILER_VERSION_NUMBER_MAJOR=`$ECHO "$COMPILER_VERSION_NUMBER" | $SED "s/@<:@^0-9@:>@.*//"`
853+
if test $COMPILER_VERSION_NUMBER_MAJOR -lt 5; then
854+
AC_MSG_ERROR([GCC < 5 is known to be compiling incorrectly on aarch64. See JDK-8360869. Gcc $COMPILER_VERSION_NUMBER_MAJOR.x detected])
855+
fi
856+
AC_MSG_RESULT([ok ($COMPILER_VERSION_NUMBER_MAJOR.x)])
857+
fi
858+
fi
859+
849860
# Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed
850861
# in executable.'
851862
USING_BROKEN_SUSE_LD=no

0 commit comments

Comments
 (0)