annotate make/solaris/build.sh @ 2013:ec8c74742417

7005241: C1: SEGV in java.util.concurrent.LinkedTransferQueue.xfer() with compressed oops Summary: Implementation of the CAS primitive for x64 compressed oops was incorrect. It kills rscratch2 register (r11), which is allocatable in C1. Also, we don't need to restore cmpval as it's never used after that, so we need only one temporary register, which can be scratch1. Reviewed-by: kvn, never
author iveresov
date Wed, 08 Dec 2010 02:36:36 -0800
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #! /bin/sh
a61af66fc99e Initial load
duke
parents:
diff changeset
2 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
3 # Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
5 #
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
8 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
9 #
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
14 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
15 #
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
19 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
21 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 196
diff changeset
22 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24 #
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # Make sure the variable JAVA_HOME is set before running this script.
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28 set -u
a61af66fc99e Initial load
duke
parents:
diff changeset
29
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 usage() {
a61af66fc99e Initial load
duke
parents:
diff changeset
32 (
a61af66fc99e Initial load
duke
parents:
diff changeset
33 echo "Usage : $0 [-sb | -sbfast] config ws_path"
a61af66fc99e Initial load
duke
parents:
diff changeset
34 echo ""
a61af66fc99e Initial load
duke
parents:
diff changeset
35 echo "Where:"
a61af66fc99e Initial load
duke
parents:
diff changeset
36 echo " -sb ::= enable source browser info generation for"
a61af66fc99e Initial load
duke
parents:
diff changeset
37 echo " all configs during compilation"
a61af66fc99e Initial load
duke
parents:
diff changeset
38 echo ""
a61af66fc99e Initial load
duke
parents:
diff changeset
39 echo " -sbfast ::= enable source browser info generation for"
a61af66fc99e Initial load
duke
parents:
diff changeset
40 echo " all configs without compilation"
a61af66fc99e Initial load
duke
parents:
diff changeset
41 echo ""
a61af66fc99e Initial load
duke
parents:
diff changeset
42 echo " config ::= debug | debug1 | debugcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
43 echo " fastdebug | fastdebug1 | fastdebugcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
44 echo " jvmg | jvmg1 | jvmgcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
45 echo " optimized | optimized1 | optimizedcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
46 echo " profiled | profiled1 | profiledcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
47 echo " product | product1 | productcore"
a61af66fc99e Initial load
duke
parents:
diff changeset
48 echo ""
a61af66fc99e Initial load
duke
parents:
diff changeset
49 echo " ws_path ::= path to HotSpot workspace"
a61af66fc99e Initial load
duke
parents:
diff changeset
50 ) >&2
a61af66fc99e Initial load
duke
parents:
diff changeset
51 exit 1
a61af66fc99e Initial load
duke
parents:
diff changeset
52 }
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 # extract possible options
a61af66fc99e Initial load
duke
parents:
diff changeset
55 options=""
a61af66fc99e Initial load
duke
parents:
diff changeset
56 if [ $# -gt 2 ]; then
a61af66fc99e Initial load
duke
parents:
diff changeset
57 case "$1" in
a61af66fc99e Initial load
duke
parents:
diff changeset
58 -sb)
a61af66fc99e Initial load
duke
parents:
diff changeset
59 options="CFLAGS_BROWSE=-xsb"
a61af66fc99e Initial load
duke
parents:
diff changeset
60 shift
a61af66fc99e Initial load
duke
parents:
diff changeset
61 ;;
a61af66fc99e Initial load
duke
parents:
diff changeset
62 -sbfast)
a61af66fc99e Initial load
duke
parents:
diff changeset
63 options="CFLAGS_BROWSE=-xsbfast"
a61af66fc99e Initial load
duke
parents:
diff changeset
64 shift
a61af66fc99e Initial load
duke
parents:
diff changeset
65 ;;
a61af66fc99e Initial load
duke
parents:
diff changeset
66 *)
a61af66fc99e Initial load
duke
parents:
diff changeset
67 echo "Unknown option: '$1'" >&2
a61af66fc99e Initial load
duke
parents:
diff changeset
68 usage
a61af66fc99e Initial load
duke
parents:
diff changeset
69 ;;
a61af66fc99e Initial load
duke
parents:
diff changeset
70 esac
a61af66fc99e Initial load
duke
parents:
diff changeset
71 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 # should be just two args left at this point
a61af66fc99e Initial load
duke
parents:
diff changeset
74 if [ $# != 2 ]; then
a61af66fc99e Initial load
duke
parents:
diff changeset
75 usage
a61af66fc99e Initial load
duke
parents:
diff changeset
76 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 # Just in case:
a61af66fc99e Initial load
duke
parents:
diff changeset
79 case ${JAVA_HOME} in
a61af66fc99e Initial load
duke
parents:
diff changeset
80 /*) true;;
a61af66fc99e Initial load
duke
parents:
diff changeset
81 ?*) JAVA_HOME=`( cd $JAVA_HOME; pwd )`;;
a61af66fc99e Initial load
duke
parents:
diff changeset
82 esac
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 if [ "${JAVA_HOME}" = "" -o ! -d "${JAVA_HOME}" -o ! -d ${JAVA_HOME}/jre/lib/`uname -p` ]; then
a61af66fc99e Initial load
duke
parents:
diff changeset
85 echo "JAVA_HOME needs to be set to a valid JDK path"
a61af66fc99e Initial load
duke
parents:
diff changeset
86 echo "ksh : export JAVA_HOME=/net/tetrasparc/export/gobi/JDK1.2_fcs_V/solaris"
a61af66fc99e Initial load
duke
parents:
diff changeset
87 echo "csh : setenv JAVA_HOME /net/tetrasparc/export/gobi/JDK1.2_fcs_V/solaris"
a61af66fc99e Initial load
duke
parents:
diff changeset
88 exit 1
a61af66fc99e Initial load
duke
parents:
diff changeset
89 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 LD_LIBRARY_PATH=${JAVA_HOME}/jre/lib/`uname -p`:\
a61af66fc99e Initial load
duke
parents:
diff changeset
93 ${JAVA_HOME}/jre/lib/`uname -p`/native_threads:${LD_LIBRARY_PATH-.}
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 # This is necessary as long as we are using the old launcher
a61af66fc99e Initial load
duke
parents:
diff changeset
96 # with the new distribution format:
a61af66fc99e Initial load
duke
parents:
diff changeset
97 CLASSPATH=${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH-.}
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 for gm in gmake gnumake
a61af66fc99e Initial load
duke
parents:
diff changeset
101 do
a61af66fc99e Initial load
duke
parents:
diff changeset
102 if [ "${GNUMAKE-}" != "" ]; then break; fi
a61af66fc99e Initial load
duke
parents:
diff changeset
103 ($gm --version >/dev/null) 2>/dev/null && GNUMAKE=$gm
a61af66fc99e Initial load
duke
parents:
diff changeset
104 done
a61af66fc99e Initial load
duke
parents:
diff changeset
105 : ${GNUMAKE:?'Cannot locate the gnumake program. Stop.'}
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107
a61af66fc99e Initial load
duke
parents:
diff changeset
108 echo "### ENVIRONMENT SETTINGS:"
a61af66fc99e Initial load
duke
parents:
diff changeset
109 export JAVA_HOME ; echo "JAVA_HOME=$JAVA_HOME"
a61af66fc99e Initial load
duke
parents:
diff changeset
110 export LD_LIBRARY_PATH ; echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
a61af66fc99e Initial load
duke
parents:
diff changeset
111 export CLASSPATH ; echo "CLASSPATH=$CLASSPATH"
a61af66fc99e Initial load
duke
parents:
diff changeset
112 export GNUMAKE ; echo "GNUMAKE=$GNUMAKE"
a61af66fc99e Initial load
duke
parents:
diff changeset
113 echo "###"
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 config=$1
a61af66fc99e Initial load
duke
parents:
diff changeset
116 ws_path=$2
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 case ${ws_path} in
a61af66fc99e Initial load
duke
parents:
diff changeset
119 /*) true;;
a61af66fc99e Initial load
duke
parents:
diff changeset
120 ?*) ws_path=`(cd ${ws_path}; pwd)`;;
a61af66fc99e Initial load
duke
parents:
diff changeset
121 esac
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 echo \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
124 ${GNUMAKE} -f ${ws_path}/make/solaris/Makefile \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
125 $config GAMMADIR=${ws_path} $options
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
126 ${GNUMAKE} -f ${ws_path}/make/solaris/Makefile \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
127 $config GAMMADIR=${ws_path} $options