annotate agent/make/Makefile @ 12250:9044964f9163

8024669: Native OOME when allocating after changes to maximum heap supporting Coops sizing on sparcv9 Summary: After changes in 8010722 the ergonomics for calculating the size of the heap that supports zero based compressed oops changed. This lead to the VM actually using zero based compressed oops. Due to low default HeapBaseMinAddress, the OS mapping in the application image at the same address, and limitations of the malloc implementation on Solaris this resulted in very little C heap available for the VM. So the VM immediately gives a native OOME when the machine has lots of physical memory (>=32G). The solution is to increase the HeapBaseMinAddress so that the VM has enough C heap. Reviewed-by: kvn, brutisso
author tschatzl
date Wed, 18 Sep 2013 13:18:52 +0200
parents 5ed317b25e23
children de6a9e811145
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
6782
5a98bf7d847b 6879063: SA should use hsdis for disassembly
minqi
parents: 3987
diff changeset
2 # Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 258
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 258
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 258
diff changeset
21 # questions.
8103
5ed317b25e23 7165259: Remove BugSpot
sla
parents: 6972
diff changeset
22 #
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 # This guards against adding broken .java files to the directory
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # hierarchy, but may be a pain to keep in sync
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28 # Generated using the build-pkglist script
a61af66fc99e Initial load
duke
parents:
diff changeset
29 ifeq "x$(GAMMADIR)" "x"
a61af66fc99e Initial load
duke
parents:
diff changeset
30 include ../../make/defs.make
a61af66fc99e Initial load
duke
parents:
diff changeset
31 else
a61af66fc99e Initial load
duke
parents:
diff changeset
32 include $(GAMMADIR)/make/defs.make
a61af66fc99e Initial load
duke
parents:
diff changeset
33 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
34
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
35 ifeq "x$(HOTSPOT_BUILD_VERSION)" "x"
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
36 SA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
37 else
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
38 SA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
39 endif
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
40
0
a61af66fc99e Initial load
duke
parents:
diff changeset
41 PKGLIST = \
a61af66fc99e Initial load
duke
parents:
diff changeset
42 sun.jvm.hotspot \
a61af66fc99e Initial load
duke
parents:
diff changeset
43 sun.jvm.hotspot.asm \
a61af66fc99e Initial load
duke
parents:
diff changeset
44 sun.jvm.hotspot.asm.sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
45 sun.jvm.hotspot.c1 \
3939
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
46 sun.jvm.hotspot.ci \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
47 sun.jvm.hotspot.code \
a61af66fc99e Initial load
duke
parents:
diff changeset
48 sun.jvm.hotspot.compiler \
a61af66fc99e Initial load
duke
parents:
diff changeset
49 sun.jvm.hotspot.debugger \
a61af66fc99e Initial load
duke
parents:
diff changeset
50 sun.jvm.hotspot.debugger.amd64 \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
51 sun.jvm.hotspot.debugger.bsd \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
52 sun.jvm.hotspot.debugger.bsd.amd64 \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
53 sun.jvm.hotspot.debugger.bsd.x86 \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
54 sun.jvm.hotspot.debugger.cdbg \
a61af66fc99e Initial load
duke
parents:
diff changeset
55 sun.jvm.hotspot.debugger.cdbg.basic \
a61af66fc99e Initial load
duke
parents:
diff changeset
56 sun.jvm.hotspot.debugger.cdbg.basic.amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
57 sun.jvm.hotspot.debugger.cdbg.basic.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
58 sun.jvm.hotspot.debugger.dummy \
a61af66fc99e Initial load
duke
parents:
diff changeset
59 sun.jvm.hotspot.debugger.linux \
a61af66fc99e Initial load
duke
parents:
diff changeset
60 sun.jvm.hotspot.debugger.linux.amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
61 sun.jvm.hotspot.debugger.linux.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
62 sun.jvm.hotspot.debugger.posix \
a61af66fc99e Initial load
duke
parents:
diff changeset
63 sun.jvm.hotspot.debugger.posix.elf \
a61af66fc99e Initial load
duke
parents:
diff changeset
64 sun.jvm.hotspot.debugger.proc \
a61af66fc99e Initial load
duke
parents:
diff changeset
65 sun.jvm.hotspot.debugger.proc.amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
66 sun.jvm.hotspot.debugger.proc.sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
67 sun.jvm.hotspot.debugger.proc.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
68 sun.jvm.hotspot.debugger.remote \
a61af66fc99e Initial load
duke
parents:
diff changeset
69 sun.jvm.hotspot.debugger.remote.amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
70 sun.jvm.hotspot.debugger.remote.sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
71 sun.jvm.hotspot.debugger.remote.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
72 sun.jvm.hotspot.debugger.sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
73 sun.jvm.hotspot.debugger.win32.coff \
a61af66fc99e Initial load
duke
parents:
diff changeset
74 sun.jvm.hotspot.debugger.windbg \
a61af66fc99e Initial load
duke
parents:
diff changeset
75 sun.jvm.hotspot.debugger.windbg.amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
76 sun.jvm.hotspot.debugger.windbg.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
77 sun.jvm.hotspot.debugger.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
78 sun.jvm.hotspot.gc_implementation \
3972
4f93f0d00802 7059019: G1: add G1 support to the SA
tonyp
parents: 3939
diff changeset
79 sun.jvm.hotspot.gc_implementation.g1 \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
80 sun.jvm.hotspot.gc_implementation.parallelScavenge \
a61af66fc99e Initial load
duke
parents:
diff changeset
81 sun.jvm.hotspot.gc_implementation.shared \
a61af66fc99e Initial load
duke
parents:
diff changeset
82 sun.jvm.hotspot.gc_interface \
a61af66fc99e Initial load
duke
parents:
diff changeset
83 sun.jvm.hotspot.interpreter \
a61af66fc99e Initial load
duke
parents:
diff changeset
84 sun.jvm.hotspot.jdi \
a61af66fc99e Initial load
duke
parents:
diff changeset
85 sun.jvm.hotspot.memory \
3939
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
86 sun.jvm.hotspot.opto \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
87 sun.jvm.hotspot.oops \
3939
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
88 sun.jvm.hotspot.prims \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
89 sun.jvm.hotspot.runtime \
a61af66fc99e Initial load
duke
parents:
diff changeset
90 sun.jvm.hotspot.runtime.amd64 \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
91 sun.jvm.hotspot.runtime.bsd \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
92 sun.jvm.hotspot.runtime.bsd_amd64 \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
93 sun.jvm.hotspot.runtime.bsd_x86 \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
94 sun.jvm.hotspot.runtime.linux \
a61af66fc99e Initial load
duke
parents:
diff changeset
95 sun.jvm.hotspot.runtime.linux_amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
96 sun.jvm.hotspot.runtime.linux_sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
97 sun.jvm.hotspot.runtime.linux_x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
98 sun.jvm.hotspot.runtime.posix \
a61af66fc99e Initial load
duke
parents:
diff changeset
99 sun.jvm.hotspot.runtime.solaris_amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
100 sun.jvm.hotspot.runtime.solaris_sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
101 sun.jvm.hotspot.runtime.solaris_x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
102 sun.jvm.hotspot.runtime.sparc \
a61af66fc99e Initial load
duke
parents:
diff changeset
103 sun.jvm.hotspot.runtime.win32_amd64 \
a61af66fc99e Initial load
duke
parents:
diff changeset
104 sun.jvm.hotspot.runtime.win32_x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
105 sun.jvm.hotspot.runtime.x86 \
a61af66fc99e Initial load
duke
parents:
diff changeset
106 sun.jvm.hotspot.tools \
a61af66fc99e Initial load
duke
parents:
diff changeset
107 sun.jvm.hotspot.tools.jcore \
a61af66fc99e Initial load
duke
parents:
diff changeset
108 sun.jvm.hotspot.tools.soql \
a61af66fc99e Initial load
duke
parents:
diff changeset
109 sun.jvm.hotspot.types \
a61af66fc99e Initial load
duke
parents:
diff changeset
110 sun.jvm.hotspot.types.basic \
a61af66fc99e Initial load
duke
parents:
diff changeset
111 sun.jvm.hotspot.ui \
a61af66fc99e Initial load
duke
parents:
diff changeset
112 sun.jvm.hotspot.ui.action \
a61af66fc99e Initial load
duke
parents:
diff changeset
113 sun.jvm.hotspot.ui.classbrowser \
a61af66fc99e Initial load
duke
parents:
diff changeset
114 sun.jvm.hotspot.ui.resources \
a61af66fc99e Initial load
duke
parents:
diff changeset
115 sun.jvm.hotspot.ui.table \
a61af66fc99e Initial load
duke
parents:
diff changeset
116 sun.jvm.hotspot.ui.tree \
a61af66fc99e Initial load
duke
parents:
diff changeset
117 sun.jvm.hotspot.ui.treetable \
a61af66fc99e Initial load
duke
parents:
diff changeset
118 sun.jvm.hotspot.utilities \
a61af66fc99e Initial load
duke
parents:
diff changeset
119 sun.jvm.hotspot.utilities.memo \
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
120 sun.jvm.hotspot.utilities.soql \
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
121 com.sun.java.swing.action \
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
122 com.sun.java.swing.ui
0
a61af66fc99e Initial load
duke
parents:
diff changeset
123 #END PKGLIST
a61af66fc99e Initial load
duke
parents:
diff changeset
124
a61af66fc99e Initial load
duke
parents:
diff changeset
125 # Generated using the build-filelist script
a61af66fc99e Initial load
duke
parents:
diff changeset
126 FILELIST = \
a61af66fc99e Initial load
duke
parents:
diff changeset
127 sun/jvm/hotspot/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
128 sun/jvm/hotspot/asm/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
129 sun/jvm/hotspot/asm/sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
130 sun/jvm/hotspot/c1/*.java \
3939
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
131 sun/jvm/hotspot/ci/*.java \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
132 sun/jvm/hotspot/code/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
133 sun/jvm/hotspot/compiler/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
134 sun/jvm/hotspot/debugger/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
135 sun/jvm/hotspot/debugger/amd64/*.java \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
136 sun/jvm/hotspot/debugger/bsd/*.java \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
137 sun/jvm/hotspot/debugger/bsd/amd64/*.java \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
138 sun/jvm/hotspot/debugger/bsd/x86/*.java \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
139 sun/jvm/hotspot/debugger/cdbg/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
140 sun/jvm/hotspot/debugger/cdbg/basic/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
141 sun/jvm/hotspot/debugger/cdbg/basic/amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
142 sun/jvm/hotspot/debugger/cdbg/basic/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
143 sun/jvm/hotspot/debugger/dummy/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
144 sun/jvm/hotspot/debugger/linux/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
145 sun/jvm/hotspot/debugger/linux/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
146 sun/jvm/hotspot/debugger/posix/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
147 sun/jvm/hotspot/debugger/posix/elf/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
148 sun/jvm/hotspot/debugger/proc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
149 sun/jvm/hotspot/debugger/proc/amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
150 sun/jvm/hotspot/debugger/proc/sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
151 sun/jvm/hotspot/debugger/proc/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
152 sun/jvm/hotspot/debugger/remote/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
153 sun/jvm/hotspot/debugger/remote/amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
154 sun/jvm/hotspot/debugger/remote/sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
155 sun/jvm/hotspot/debugger/remote/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
156 sun/jvm/hotspot/debugger/sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
157 sun/jvm/hotspot/debugger/win32/coff/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
158 sun/jvm/hotspot/debugger/windbg/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
159 sun/jvm/hotspot/debugger/windbg/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
160 sun/jvm/hotspot/debugger/x86/*.java \
3972
4f93f0d00802 7059019: G1: add G1 support to the SA
tonyp
parents: 3939
diff changeset
161 sun/jvm/hotspot/gc_implementation/g1/*.java \
4f93f0d00802 7059019: G1: add G1 support to the SA
tonyp
parents: 3939
diff changeset
162 sun/jvm/hotspot/gc_implementation/parallelScavenge/*.java \
4f93f0d00802 7059019: G1: add G1 support to the SA
tonyp
parents: 3939
diff changeset
163 sun/jvm/hotspot/gc_implementation/shared/*.java \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
164 sun/jvm/hotspot/interpreter/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
165 sun/jvm/hotspot/jdi/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
166 sun/jvm/hotspot/memory/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
167 sun/jvm/hotspot/oops/*.java \
3939
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
168 sun/jvm/hotspot/opto/*.java \
f6f3bb0ee072 7088955: add C2 IR support to the SA
never
parents: 3340
diff changeset
169 sun/jvm/hotspot/prims/*.java \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
170 sun/jvm/hotspot/runtime/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
171 sun/jvm/hotspot/runtime/amd64/*.java \
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
172 sun/jvm/hotspot/runtime/bsd/*.java \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
173 sun/jvm/hotspot/runtime/bsd_amd64/*.java \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents: 3939
diff changeset
174 sun/jvm/hotspot/runtime/bsd_x86/*.java \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
175 sun/jvm/hotspot/runtime/linux/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
176 sun/jvm/hotspot/runtime/linux_amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
177 sun/jvm/hotspot/runtime/linux_sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
178 sun/jvm/hotspot/runtime/linux_x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
179 sun/jvm/hotspot/runtime/posix/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
180 sun/jvm/hotspot/runtime/solaris_amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
181 sun/jvm/hotspot/runtime/solaris_sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
182 sun/jvm/hotspot/runtime/solaris_x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
183 sun/jvm/hotspot/runtime/sparc/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
184 sun/jvm/hotspot/runtime/win32_amd64/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
185 sun/jvm/hotspot/runtime/win32_x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
186 sun/jvm/hotspot/runtime/x86/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
187 sun/jvm/hotspot/tools/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
188 sun/jvm/hotspot/tools/jcore/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
189 sun/jvm/hotspot/tools/soql/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
190 sun/jvm/hotspot/types/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
191 sun/jvm/hotspot/types/basic/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
192 sun/jvm/hotspot/ui/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
193 sun/jvm/hotspot/ui/action/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
194 sun/jvm/hotspot/ui/classbrowser/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
195 sun/jvm/hotspot/ui/table/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
196 sun/jvm/hotspot/ui/tree/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
197 sun/jvm/hotspot/ui/treetable/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
198 sun/jvm/hotspot/utilities/*.java \
a61af66fc99e Initial load
duke
parents:
diff changeset
199 sun/jvm/hotspot/utilities/memo/*.java \
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
200 sun/jvm/hotspot/utilities/soql/*.java \
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
201 com/sun/java/swing/action/*.java \
8103
5ed317b25e23 7165259: Remove BugSpot
sla
parents: 6972
diff changeset
202 com/sun/java/swing/ui/*.java
0
a61af66fc99e Initial load
duke
parents:
diff changeset
203 #END FILELIST
a61af66fc99e Initial load
duke
parents:
diff changeset
204
a61af66fc99e Initial load
duke
parents:
diff changeset
205 ifneq "x$(ALT_BOOTDIR)" "x"
a61af66fc99e Initial load
duke
parents:
diff changeset
206 BOOTDIR := $(ALT_BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
207 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
208
a61af66fc99e Initial load
duke
parents:
diff changeset
209 ifeq "x$(BOOTDIR)" "x"
a61af66fc99e Initial load
duke
parents:
diff changeset
210 JDK_HOME := $(shell dirname $(shell which java))/..
a61af66fc99e Initial load
duke
parents:
diff changeset
211 else
a61af66fc99e Initial load
duke
parents:
diff changeset
212 JDK_HOME := $(BOOTDIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
213 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
214
a61af66fc99e Initial load
duke
parents:
diff changeset
215 isUnix := $(shell test -r c:/; echo $$?)
a61af66fc99e Initial load
duke
parents:
diff changeset
216
a61af66fc99e Initial load
duke
parents:
diff changeset
217 ifeq "$(isUnix)" "1"
a61af66fc99e Initial load
duke
parents:
diff changeset
218 CPS := :
a61af66fc99e Initial load
duke
parents:
diff changeset
219 else
a61af66fc99e Initial load
duke
parents:
diff changeset
220 CPS := ";"
a61af66fc99e Initial load
duke
parents:
diff changeset
221 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
222
a61af66fc99e Initial load
duke
parents:
diff changeset
223 SRC_DIR = ../src/share/classes
a61af66fc99e Initial load
duke
parents:
diff changeset
224 BUILD_DIR = ../build
a61af66fc99e Initial load
duke
parents:
diff changeset
225 OUTPUT_DIR = $(BUILD_DIR)/classes
a61af66fc99e Initial load
duke
parents:
diff changeset
226 DOC_DIR = $(BUILD_DIR)/doc
a61af66fc99e Initial load
duke
parents:
diff changeset
227
8103
5ed317b25e23 7165259: Remove BugSpot
sla
parents: 6972
diff changeset
228 # gnumake 3.78.1 does not accept the *s,
0
a61af66fc99e Initial load
duke
parents:
diff changeset
229 # so use the shell to expand them
a61af66fc99e Initial load
duke
parents:
diff changeset
230 ALLFILES := $(patsubst %,$(SRC_DIR)/%,$(FILELIST))
a61af66fc99e Initial load
duke
parents:
diff changeset
231 ALLFILES := $(shell /bin/ls $(ALLFILES))
a61af66fc99e Initial load
duke
parents:
diff changeset
232
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
233 # tools.jar is used by the sa-jdi binding
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
234 CLASSPATH = $(JDK_HOME)/lib/tools.jar
0
a61af66fc99e Initial load
duke
parents:
diff changeset
235
a61af66fc99e Initial load
duke
parents:
diff changeset
236 CLASSPATH := $(subst \,/,$(CLASSPATH))
a61af66fc99e Initial load
duke
parents:
diff changeset
237
a61af66fc99e Initial load
duke
parents:
diff changeset
238 # FIXME: autogenerate call to rmic
a61af66fc99e Initial load
duke
parents:
diff changeset
239
a61af66fc99e Initial load
duke
parents:
diff changeset
240 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
a61af66fc99e Initial load
duke
parents:
diff changeset
241
a61af66fc99e Initial load
duke
parents:
diff changeset
242 SA_PROPERTIES = $(OUTPUT_DIR)/sa.properties
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
243 JAVAC = $(JDK_HOME)/bin/javac
6972
bd7a7ce2e264 6830717: replay of compilations would help with debugging
minqi
parents: 6782
diff changeset
244 JAVA = $(JDK_HOME)/bin/java
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
245 JAVADOC = $(JDK_HOME)/bin/javadoc
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
246 RMIC = $(JDK_HOME)/bin/rmic
0
a61af66fc99e Initial load
duke
parents:
diff changeset
247
a61af66fc99e Initial load
duke
parents:
diff changeset
248 # Tagging it on because there's no reason not to run it
a61af66fc99e Initial load
duke
parents:
diff changeset
249 all: filelist
a61af66fc99e Initial load
duke
parents:
diff changeset
250 @mkdir -p $(OUTPUT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
251 @echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
3340
eae35325e5e1 7041603: standalone SA doesn't build after 7010849
never
parents: 1552
diff changeset
252 $(JAVAC) -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
253 $(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
0
a61af66fc99e Initial load
duke
parents:
diff changeset
254 rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
a61af66fc99e Initial load
duke
parents:
diff changeset
255 cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
256 mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
257 rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
258 cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
259 cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
0
a61af66fc99e Initial load
duke
parents:
diff changeset
260
a61af66fc99e Initial load
duke
parents:
diff changeset
261 allprof: filelist
a61af66fc99e Initial load
duke
parents:
diff changeset
262 @mkdir -p $(OUTPUT_DIR)
a61af66fc99e Initial load
duke
parents:
diff changeset
263 @echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
3340
eae35325e5e1 7041603: standalone SA doesn't build after 7010849
never
parents: 1552
diff changeset
264 $(JAVAC) -J-Xprof -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
265 $(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
0
a61af66fc99e Initial load
duke
parents:
diff changeset
266 rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
a61af66fc99e Initial load
duke
parents:
diff changeset
267 cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
268 mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
269 rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
270 cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
271 cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
0
a61af66fc99e Initial load
duke
parents:
diff changeset
272
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
273 .PHONY: filelist
0
a61af66fc99e Initial load
duke
parents:
diff changeset
274 filelist: $(ALLFILES)
a61af66fc99e Initial load
duke
parents:
diff changeset
275 @if [ ! -f $(JDK_HOME)/lib/tools.jar ] ; then \
a61af66fc99e Initial load
duke
parents:
diff changeset
276 echo "Missing $(JDK_HOME)/lib/tools.jar file. Use 1.6.0 or later version jdk to build SA."; \
a61af66fc99e Initial load
duke
parents:
diff changeset
277 echo ""; \
a61af66fc99e Initial load
duke
parents:
diff changeset
278 exit 1; \
a61af66fc99e Initial load
duke
parents:
diff changeset
279 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
280 @rm -f $@
a61af66fc99e Initial load
duke
parents:
diff changeset
281 @echo $(ALLFILES) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
282
a61af66fc99e Initial load
duke
parents:
diff changeset
283 .PHONY: natives
a61af66fc99e Initial load
duke
parents:
diff changeset
284 natives:
6972
bd7a7ce2e264 6830717: replay of compilations would help with debugging
minqi
parents: 6782
diff changeset
285 cd ../src/os/`$(JAVA) -classpath $(OUTPUT_DIR) sun.jvm.hotspot.utilities.PlatformInfo`; $(MAKE) all
0
a61af66fc99e Initial load
duke
parents:
diff changeset
286
a61af66fc99e Initial load
duke
parents:
diff changeset
287 .PHONY: sa-jdi.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
288 sa-jdi.jar:
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
289 echo "sa-jdi.jar is built by a hotspot build."
0
a61af66fc99e Initial load
duke
parents:
diff changeset
290
a61af66fc99e Initial load
duke
parents:
diff changeset
291 docs:
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
292 @$(JAVADOC) -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
293
a61af66fc99e Initial load
duke
parents:
diff changeset
294 sizes: $(ALLFILES)
a61af66fc99e Initial load
duke
parents:
diff changeset
295 wc -l $(ALLFILES)
a61af66fc99e Initial load
duke
parents:
diff changeset
296
a61af66fc99e Initial load
duke
parents:
diff changeset
297 cscope: $(ALLFILES)
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
298 rm -f java.files
0
a61af66fc99e Initial load
duke
parents:
diff changeset
299 echo $(ALLFILES) > java.files
8103
5ed317b25e23 7165259: Remove BugSpot
sla
parents: 6972
diff changeset
300 cscope -b -i java.files -f java.out
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 196
diff changeset
301 rm -f java.files
0
a61af66fc99e Initial load
duke
parents:
diff changeset
302
a61af66fc99e Initial load
duke
parents:
diff changeset
303 .PHONY: sa.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
304 sa.jar:
a61af66fc99e Initial load
duke
parents:
diff changeset
305 rm -f $(BUILD_DIR)/sa.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
306 cd $(OUTPUT_DIR) ; jar cvf ../sa.jar *
a61af66fc99e Initial load
duke
parents:
diff changeset
307
a61af66fc99e Initial load
duke
parents:
diff changeset
308 clean::
a61af66fc99e Initial load
duke
parents:
diff changeset
309 rm -rf filelist
6972
bd7a7ce2e264 6830717: replay of compilations would help with debugging
minqi
parents: 6782
diff changeset
310 cd ../src/os/`$(JAVA) -classpath $(OUTPUT_DIR) sun.jvm.hotspot.utilities.PlatformInfo`; $(MAKE) clean
0
a61af66fc99e Initial load
duke
parents:
diff changeset
311 rm -rf $(BUILD_DIR)/*