Skip to content
Permalink
Browse files
8244615: build-performance.m4 is not always parsing /proc/cpuinfo cor…
…rectly

Reviewed-by: erikj
  • Loading branch information
magicus committed May 7, 2020
1 parent 54b49db commit 74132fe7e11c9331367c45e5715fdfa3b1109aae
Showing with 6 additions and 1 deletion.
  1. +6 −1 make/autoconf/build-performance.m4
@@ -32,7 +32,12 @@ AC_DEFUN([BPERF_CHECK_CORES],
if test -f /proc/cpuinfo; then
# Looks like a Linux (or cygwin) system
NUM_CORES=`cat /proc/cpuinfo | grep -c processor`
FOUND_CORES=yes
if test "$NUM_CORES" -eq "0"; then
NUM_CORES=`cat /proc/cpuinfo | grep -c ^CPU`
fi
if test "$NUM_CORES" -ne "0"; then
FOUND_CORES=yes
fi
elif test -x /usr/sbin/psrinfo; then
# Looks like a Solaris system
NUM_CORES=`/usr/sbin/psrinfo -v | grep -c on-line`

0 comments on commit 74132fe

Please sign in to comment.