3645 |
3645 |
3646 |
3646 |
3647 |
3647 |
3648 |
3648 |
3649 # |
3649 # |
3650 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3650 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3651 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3651 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3652 # |
3652 # |
3653 # This code is free software; you can redistribute it and/or modify it |
3653 # This code is free software; you can redistribute it and/or modify it |
3654 # under the terms of the GNU General Public License version 2 only, as |
3654 # under the terms of the GNU General Public License version 2 only, as |
3655 # published by the Free Software Foundation. Oracle designates this |
3655 # published by the Free Software Foundation. Oracle designates this |
4374 # definitions. It is replaced with custom functionality when building |
4374 # definitions. It is replaced with custom functionality when building |
4375 # custom sources. |
4375 # custom sources. |
4376 #CUSTOM_AUTOCONF_INCLUDE |
4376 #CUSTOM_AUTOCONF_INCLUDE |
4377 |
4377 |
4378 # Do not change or remove the following line, it is needed for consistency checks: |
4378 # Do not change or remove the following line, it is needed for consistency checks: |
4379 DATE_WHEN_GENERATED=1560366811 |
4379 DATE_WHEN_GENERATED=1565358475 |
4380 |
4380 |
4381 ############################################################################### |
4381 ############################################################################### |
4382 # |
4382 # |
4383 # Initialization / Boot-strapping |
4383 # Initialization / Boot-strapping |
4384 # |
4384 # |
51976 elif test -x /usr/sbin/system_profiler; then |
51976 elif test -x /usr/sbin/system_profiler; then |
51977 # Looks like a MacOSX system |
51977 # Looks like a MacOSX system |
51978 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` |
51978 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` |
51979 FOUND_CORES=yes |
51979 FOUND_CORES=yes |
51980 elif test "x$OPENJDK_BUILD_OS" = xaix ; then |
51980 elif test "x$OPENJDK_BUILD_OS" = xaix ; then |
51981 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` |
51981 NUM_LCPU=`lparstat -m 2> /dev/null | $GREP -o "lcpu=[0-9]*" | $CUT -d "=" -f 2` |
51982 FOUND_CORES=yes |
51982 if test -n "$NUM_LCPU"; then |
|
51983 NUM_CORES=$NUM_LCPU |
|
51984 FOUND_CORES=yes |
|
51985 fi |
51983 elif test -n "$NUMBER_OF_PROCESSORS"; then |
51986 elif test -n "$NUMBER_OF_PROCESSORS"; then |
51984 # On windows, look in the env |
51987 # On windows, look in the env |
51985 NUM_CORES=$NUMBER_OF_PROCESSORS |
51988 NUM_CORES=$NUMBER_OF_PROCESSORS |
51986 FOUND_CORES=yes |
51989 FOUND_CORES=yes |
51987 fi |
51990 fi |