8007398: Peformance improvements to Integer and Long string formatting.
Reviewed-by: mduigou, martin, darcy, briangoetz
Contributed-by: Steven Schlansker <stevenschlansker@gmail.com>, Mike Duigou <mike.duigou@oracle.com>
#! /bin/sh## Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.## This code is free software; you can redistribute it and/or modify it# under the terms of the GNU General Public License version 2 only, as# published by the Free Software Foundation.## This code is distributed in the hope that it will be useful, but WITHOUT# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License# version 2 for more details (a copy is included in the LICENSE file that# accompanied this code).## You should have received a copy of the GNU General Public License version# 2 along with this work; if not, write to the Free Software Foundation,# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.## Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA# or visit www.oracle.com if you need additional information or have any# questions.# ## Make sure the variable JAVA_HOME is set before running this script.set -uif [ $# -lt 1 ]; then echo "Usage : $0 BuildTarget [LP64=1] [BuildOptions]" echo " Server VM | Client VM" echo "BuildTarget : debug | debug1" echo " fastdebug | fastdebug1" echo " jvmg | jvmg1" echo " optimized | optimized1" echo " profiled | profiled1" echo " product | product1" exit 1fiif [ "${JAVA_HOME-}" = "" -o ! -d "${JAVA_HOME-}" -o ! -d ${JAVA_HOME-}/jre/lib/ ]; then echo "JAVA_HOME needs to be set to a valid JDK path" echo "JAVA_HOME: ${JAVA_HOME-}" exit 1fi# Just in case:JAVA_HOME=`( cd $JAVA_HOME; pwd )`if [ "${ALT_BOOTDIR-}" = "" -o ! -d "${ALT_BOOTDIR-}" -o ! -d ${ALT_BOOTDIR-}/jre/lib/ ]; then ALT_BOOTDIR=${JAVA_HOME}fi# build in current directory by defaultif [ "${ALT_OUTPUTDIR-}" = "" -o ! -d "${ALT_OUTPUTDIR-}" ]; then ALT_OUTPUTDIR=`(pwd)`fiHOTSPOT_SRC=`(dirname $0)`/..HOTSPOT_SRC=`(cd ${HOTSPOT_SRC}; pwd)`for gm in gmake gnumakedo if [ "${GNUMAKE-}" != "" ]; then break; fi ($gm --version >/dev/null) 2>/dev/null && GNUMAKE=$gmdone: ${GNUMAKE:?'Cannot locate the gnumake program. Stop.'}# quiet build by defaultQuiet="MAKE_VERBOSE="# no debug info by defaultNoDebugInfo="ENABLE_FULL_DEBUG_SYMBOLS="LANG=Cecho "### ENVIRONMENT SETTINGS:"export HOTSPOT_SRC ; echo "HOTSPOT_SRC=$HOTSPOT_SRC"export JAVA_HOME ; echo "JAVA_HOME=$JAVA_HOME"export ALT_BOOTDIR ; echo "ALT_BOOTDIR=$ALT_BOOTDIR"export ALT_OUTPUTDIR ; echo "ALT_OUTPUTDIR=$ALT_OUTPUTDIR"export GNUMAKE ; echo "GNUMAKE=$GNUMAKE"export LANG ; echo "LANG=$LANG"echo "###"BuildOptions="$Quiet $NoDebugInfo $*"echo \${GNUMAKE} -f ${HOTSPOT_SRC}/make/Makefile $BuildOptions GAMMADIR=${HOTSPOT_SRC}${GNUMAKE} -f ${HOTSPOT_SRC}/make/Makefile $BuildOptions GAMMADIR=${HOTSPOT_SRC}