equal
deleted
inserted
replaced
38 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` |
38 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` |
39 FOUND_CORES=yes |
39 FOUND_CORES=yes |
40 elif test -x /usr/sbin/system_profiler; then |
40 elif test -x /usr/sbin/system_profiler; then |
41 # Looks like a MacOSX system |
41 # Looks like a MacOSX system |
42 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print [$]5}'` |
42 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print [$]5}'` |
|
43 FOUND_CORES=yes |
|
44 elif test "x$OPENJDK_BUILD_OS" = xaix ; then |
|
45 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print [$]4 }'` |
43 FOUND_CORES=yes |
46 FOUND_CORES=yes |
44 elif test -n "$NUMBER_OF_PROCESSORS"; then |
47 elif test -n "$NUMBER_OF_PROCESSORS"; then |
45 # On windows, look in the env |
48 # On windows, look in the env |
46 NUM_CORES=$NUMBER_OF_PROCESSORS |
49 NUM_CORES=$NUMBER_OF_PROCESSORS |
47 FOUND_CORES=yes |
50 FOUND_CORES=yes |
67 # Looks like a Linux (or cygwin) system |
70 # Looks like a Linux (or cygwin) system |
68 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print [$]2}'` |
71 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print [$]2}'` |
69 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` |
72 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` |
70 FOUND_MEM=yes |
73 FOUND_MEM=yes |
71 elif test -x /usr/sbin/prtconf; then |
74 elif test -x /usr/sbin/prtconf; then |
72 # Looks like a Solaris system |
75 # Looks like a Solaris or AIX system |
73 MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print [$]3 }'` |
76 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [[Ss]]ize" | awk '{ print [$]3 }'` |
74 FOUND_MEM=yes |
77 FOUND_MEM=yes |
75 elif test -x /usr/sbin/system_profiler; then |
78 elif test -x /usr/sbin/system_profiler; then |
76 # Looks like a MacOSX system |
79 # Looks like a MacOSX system |
77 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print [$]2}'` |
80 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print [$]2}'` |
78 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` |
81 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` |