Mercurial > hg > truffle
annotate make/Makefile @ 4756:abcceac2f7cd
7119730: Tiered: SIGSEGV in AdvancedThresholdPolicy::is_method_profiled(methodOop)
Summary: Added handles for references to methods in select_task()
Reviewed-by: twisti, kvn
author | iveresov |
---|---|
date | Mon, 12 Dec 2011 12:44:08 -0800 |
parents | 436b4a3231bf |
children | 04b9a2566eec 94ec88ca68e2 |
rev | line source |
---|---|
0 | 1 # |
2237
b76d12f4ab2d
7018429: JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
dholmes
parents:
2199
diff
changeset
|
2 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
0 | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | |
5 # This code is free software; you can redistribute it and/or modify it | |
6 # under the terms of the GNU General Public License version 2 only, as | |
7 # published by the Free Software Foundation. | |
8 # | |
9 # This code is distributed in the hope that it will be useful, but WITHOUT | |
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 # version 2 for more details (a copy is included in the LICENSE file that | |
13 # accompanied this code). | |
14 # | |
15 # You should have received a copy of the GNU General Public License version | |
16 # 2 along with this work; if not, write to the Free Software Foundation, | |
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1185
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1185
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:
1185
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
25 # Top level gnumake file for hotspot builds | |
26 # | |
27 # Default is to build the both product images and construct an export dir. | |
28 # The default export directory name is `pwd`/export-$(PLATFORM). | |
29 # | |
30 # Use: 'gnumake help' for more information. | |
31 # | |
32 # This makefile uses the default settings for where to find compilers and | |
33 # tools, and obeys the ALT_* variable settings used by the other JDK | |
34 # workspaces. | |
35 # | |
36 | |
37 # Expected/optional make variables defined on make command line: | |
38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build | |
39 # | |
40 # Expected/optional make variables or environment variables: | |
41 # ALT_SLASH_JAVA Location of /java or J: | |
42 # ALT_BOOTDIR Previous JDK home directory for javac compiler | |
43 # ALT_OUTPUTDIR Output directory to use for hotspot build | |
44 # ALT_EXPORT_PATH Directory to export hotspot build to | |
45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules) | |
2237
b76d12f4ab2d
7018429: JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
dholmes
parents:
2199
diff
changeset
|
46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling |
0 | 47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default. |
48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on | |
49 # Windows. | |
50 # Version strings and numbers: | |
51 # JDK_VERSION Current JDK version (e.g. 1.6.0) | |
52 # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0) | |
53 # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42") | |
54 # | |
55 # Version strings and numbers especially needed on Windows: | |
56 # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02) | |
57 # COOKED_BUILD_NUMBER Just the build number (e.g. 42) | |
58 # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0) | |
59 # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1? | |
60 # JDK_MINOR_VERSION Minor number for version (e.g. 6) | |
61 # JDK_MICRO_VERSION Micro number for version (e.g. 0) | |
62 # | |
63 | |
64 # Default is build both product fastdebug and create export area | |
65 | |
66 # Allow to build HotSpot in local directory from sources specified by GAMMADIR. | |
67 # After make/defs.make GAMMADIR is defined. | |
68 ifdef GAMMADIR | |
69 ifndef ALT_OUTPUTDIR | |
70 ALT_OUTPUTDIR := $(shell pwd) | |
71 endif | |
72 include $(GAMMADIR)/make/defs.make | |
73 else | |
74 include defs.make | |
75 endif | |
76 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
77 include $(GAMMADIR)/make/altsrc.make |
0 | 78 |
79 ifneq ($(ALT_OUTPUTDIR),) | |
80 ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR) | |
81 else | |
82 ALT_OUT= | |
83 endif | |
84 | |
85 # Typical C1/C2 targets made available with this Makefile | |
86 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1 | |
87 C2_VM_TARGETS=product fastdebug optimized jvmg | |
88 KERNEL_VM_TARGETS=productkernel fastdebugkernel optimizedkernel jvmgkernel | |
1010 | 89 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero jvmgzero |
1692 | 90 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark jvmgshark |
0 | 91 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
92 # JDK directory list |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
93 JDK_DIRS=bin include jre lib demo |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
94 |
0 | 95 all: all_product all_fastdebug |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
96 ifndef BUILD_CLIENT_ONLY |
0 | 97 all_product: product product1 productkernel docs export_product |
98 all_fastdebug: fastdebug fastdebug1 fastdebugkernel docs export_fastdebug | |
99 all_debug: jvmg jvmg1 jvmgkernel docs export_debug | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
100 else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
101 all_product: product1 docs export_product |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
102 all_fastdebug: fastdebug1 docs export_fastdebug |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
103 all_debug: jvmg1 docs export_debug |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
104 endif |
0 | 105 all_optimized: optimized optimized1 optimizedkernel docs export_optimized |
106 | |
1010 | 107 allzero: all_productzero all_fastdebugzero |
108 all_productzero: productzero docs export_product | |
109 all_fastdebugzero: fastdebugzero docs export_fastdebug | |
110 all_debugzero: jvmgzero docs export_debug | |
111 all_optimizedzero: optimizedzero docs export_optimized | |
112 | |
1692 | 113 allshark: all_productshark all_fastdebugshark |
114 all_productshark: productshark docs export_product | |
115 all_fastdebugshark: fastdebugshark docs export_fastdebug | |
116 all_debugshark: jvmgshark docs export_debug | |
117 all_optimizedshark: optimizedshark docs export_optimized | |
118 | |
0 | 119 # Do everything |
120 world: all create_jdk | |
121 | |
122 # Build or export docs | |
123 docs: | |
124 ifeq ($(OSNAME),windows) | |
125 @$(ECHO) "No docs ($(VM_TARGET)) for windows" | |
126 else | |
127 $(CD) $(OUTPUTDIR); \ | |
128 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
129 $(MAKE_ARGS) docs | |
130 endif | |
131 | |
132 # Build variation of hotspot | |
133 $(C1_VM_TARGETS): | |
134 $(CD) $(GAMMADIR)/make; \ | |
135 $(MAKE) VM_TARGET=$@ generic_build1 $(ALT_OUT) | |
136 | |
137 $(C2_VM_TARGETS): | |
138 $(CD) $(GAMMADIR)/make; \ | |
139 $(MAKE) VM_TARGET=$@ generic_build2 $(ALT_OUT) | |
140 | |
141 $(KERNEL_VM_TARGETS): | |
142 $(CD) $(GAMMADIR)/make; \ | |
143 $(MAKE) VM_TARGET=$@ generic_buildkernel $(ALT_OUT) | |
144 | |
1010 | 145 $(ZERO_VM_TARGETS): |
146 $(CD) $(GAMMADIR)/make; \ | |
147 $(MAKE) VM_TARGET=$@ generic_buildzero $(ALT_OUT) | |
148 | |
1692 | 149 $(SHARK_VM_TARGETS): |
150 $(CD) $(GAMMADIR)/make; \ | |
151 $(MAKE) VM_TARGET=$@ generic_buildshark $(ALT_OUT) | |
152 | |
0 | 153 # Build compiler1 (client) rule, different for platforms |
154 generic_build1: | |
155 $(MKDIR) -p $(OUTPUTDIR) | |
156 ifeq ($(OSNAME),windows) | |
157 ifeq ($(ARCH_DATA_MODEL), 32) | |
158 $(CD) $(OUTPUTDIR); \ | |
159 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
160 Variant=compiler1 \ | |
161 WorkSpace=$(ABS_GAMMADIR) \ | |
162 BootStrapDir=$(ABS_BOOTDIR) \ | |
163 BuildUser=$(USERNAME) \ | |
164 $(MAKE_ARGS) $(VM_TARGET:%1=%) | |
165 else | |
166 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
167 endif | |
168 else | |
169 ifeq ($(ARCH_DATA_MODEL), 32) | |
170 $(CD) $(OUTPUTDIR); \ | |
171 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
172 $(MAKE_ARGS) $(VM_TARGET) | |
173 else | |
174 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
175 endif | |
176 endif | |
177 | |
178 # Build compiler2 (server) rule, different for platforms | |
179 generic_build2: | |
180 $(MKDIR) -p $(OUTPUTDIR) | |
181 ifeq ($(OSNAME),windows) | |
182 $(CD) $(OUTPUTDIR); \ | |
183 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
184 Variant=compiler2 \ | |
185 WorkSpace=$(ABS_GAMMADIR) \ | |
186 BootStrapDir=$(ABS_BOOTDIR) \ | |
187 BuildUser=$(USERNAME) \ | |
188 $(MAKE_ARGS) $(VM_TARGET) | |
189 else | |
190 $(CD) $(OUTPUTDIR); \ | |
191 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
192 $(MAKE_ARGS) $(VM_TARGET) | |
193 endif | |
194 | |
195 generic_buildkernel: | |
196 $(MKDIR) -p $(OUTPUTDIR) | |
197 ifeq ($(OSNAME),windows) | |
198 ifeq ($(ARCH_DATA_MODEL), 32) | |
199 $(CD) $(OUTPUTDIR); \ | |
200 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
201 Variant=kernel \ | |
202 WorkSpace=$(ABS_GAMMADIR) \ | |
203 BootStrapDir=$(ABS_BOOTDIR) \ | |
204 BuildUser=$(USERNAME) \ | |
205 $(MAKE_ARGS) $(VM_TARGET:%kernel=%) | |
206 else | |
207 @$(ECHO) "No kernel ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
208 endif | |
209 else | |
210 @$(ECHO) "No kernel ($(VM_TARGET)) for OS_NAME=$(OSNAME)" | |
211 endif | |
212 | |
1010 | 213 generic_buildzero: |
214 $(MKDIR) -p $(OUTPUTDIR) | |
215 $(CD) $(OUTPUTDIR); \ | |
216 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
217 $(MAKE_ARGS) $(VM_TARGET) | |
218 | |
1692 | 219 generic_buildshark: |
220 $(MKDIR) -p $(OUTPUTDIR) | |
221 $(CD) $(OUTPUTDIR); \ | |
222 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
223 $(MAKE_ARGS) $(VM_TARGET) | |
224 | |
0 | 225 # Export file rule |
226 generic_export: $(EXPORT_LIST) | |
227 export_product: | |
228 $(MAKE) VM_SUBDIR=product generic_export | |
229 export_fastdebug: | |
230 $(MAKE) VM_SUBDIR=fastdebug EXPORT_SUBDIR=/fastdebug generic_export | |
231 export_debug: | |
232 $(MAKE) VM_SUBDIR=${VM_DEBUG} EXPORT_SUBDIR=/debug generic_export | |
233 export_optimized: | |
234 $(MAKE) VM_SUBDIR=optimized EXPORT_SUBDIR=/optimized generic_export | |
235 export_product_jdk: | |
236 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ | |
237 VM_SUBDIR=product generic_export | |
238 export_optimized_jdk: | |
239 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ | |
240 VM_SUBDIR=optimized generic_export | |
241 export_fastdebug_jdk: | |
242 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/fastdebug \ | |
243 VM_SUBDIR=fastdebug generic_export | |
244 export_debug_jdk: | |
245 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/debug \ | |
246 VM_SUBDIR=${VM_DEBUG} generic_export | |
247 | |
248 | |
249 # Export file copy rules | |
250 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt | |
251 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs | |
252 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 | |
253 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 | |
254 KERNEL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_kernel | |
1010 | 255 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero |
1692 | 256 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark |
0 | 257 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR) |
258 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR) | |
259 KERNEL_DIR=$(KERNEL_BASE_DIR)/$(VM_SUBDIR) | |
1010 | 260 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR) |
1692 | 261 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR) |
0 | 262 |
263 # Misc files and generated files need to come from C1 or C2 area | |
1010 | 264 ifeq ($(ZERO_BUILD), true) |
1692 | 265 ifeq ($(SHARK_BUILD), true) |
266 MISC_DIR=$(SHARK_DIR) | |
267 GEN_DIR=$(SHARK_BASE_DIR)/generated | |
268 else | |
1010 | 269 MISC_DIR=$(ZERO_DIR) |
270 GEN_DIR=$(ZERO_BASE_DIR)/generated | |
1692 | 271 endif |
1010 | 272 else |
0 | 273 ifeq ($(ARCH_DATA_MODEL), 32) |
274 MISC_DIR=$(C1_DIR) | |
275 GEN_DIR=$(C1_BASE_DIR)/generated | |
276 else | |
277 MISC_DIR=$(C2_DIR) | |
278 GEN_DIR=$(C2_BASE_DIR)/generated | |
279 endif | |
1010 | 280 endif |
0 | 281 |
282 # Bin files (windows) | |
283 ifeq ($(OSNAME),windows) | |
284 | |
285 # Get jvm.lib | |
286 $(EXPORT_LIB_DIR)/%.lib: $(MISC_DIR)/%.lib | |
287 $(install-file) | |
288 | |
289 # Other libraries (like SA) | |
290 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll | |
291 $(install-file) | |
292 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb | |
293 $(install-file) | |
294 $(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map | |
295 $(install-file) | |
296 | |
297 # Client files always come from C1 area | |
298 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll | |
299 $(install-file) | |
300 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb | |
301 $(install-file) | |
302 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map | |
303 $(install-file) | |
304 | |
305 # Server files always come from C2 area | |
306 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll | |
307 $(install-file) | |
308 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb | |
309 $(install-file) | |
310 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map | |
311 $(install-file) | |
312 | |
313 # Kernel files always come from kernel area | |
314 $(EXPORT_KERNEL_DIR)/%.dll: $(KERNEL_DIR)/%.dll | |
315 $(install-file) | |
316 $(EXPORT_KERNEL_DIR)/%.pdb: $(KERNEL_DIR)/%.pdb | |
317 $(install-file) | |
318 $(EXPORT_KERNEL_DIR)/%.map: $(KERNEL_DIR)/%.map | |
319 $(install-file) | |
320 endif | |
321 | |
322 # Shared Library | |
323 ifneq ($(OSNAME),windows) | |
1010 | 324 ifeq ($(ZERO_BUILD), true) |
1692 | 325 ifeq ($(SHARK_BUILD), true) |
3960 | 326 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 327 $(install-file) |
3960 | 328 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 329 $(install-file) |
330 else | |
3960 | 331 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 332 $(install-file) |
3960 | 333 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 334 $(install-file) |
1692 | 335 endif |
1010 | 336 else |
3960 | 337 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
338 $(install-file) |
3960 | 339 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 340 $(install-file) |
3960 | 341 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 342 $(install-file) |
3960 | 343 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 344 $(install-file) |
3960 | 345 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 346 $(install-file) |
3960 | 347 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 348 $(install-file) |
3954 | 349 |
350 # Debug info for shared library | |
351 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
352 $(install-file) | |
353 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
354 $(install-file) | |
355 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
356 $(install-file) | |
357 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo | |
358 $(install-file) | |
359 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
360 $(install-file) | |
361 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo | |
362 $(install-file) | |
1010 | 363 endif |
0 | 364 endif |
365 | |
366 # Jar file (sa-jdi.jar) | |
367 $(EXPORT_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar | |
368 $(install-file) | |
369 | |
1184
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
370 # Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h) |
0 | 371 $(EXPORT_INCLUDE_DIR)/%: $(GEN_DIR)/jvmtifiles/% |
372 $(install-file) | |
373 | |
1184
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
374 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/% |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
375 $(install-file) |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
376 |
0 | 377 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/% |
378 $(install-file) | |
379 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
380 HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h) |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
381 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC) |
0 | 382 $(install-file) |
383 | |
384 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/% | |
385 $(install-file) | |
386 | |
387 # Doc files (jvmti.html) | |
388 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% | |
389 $(install-file) | |
390 | |
391 # Xusage file | |
392 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_KERNEL_DIR)/Xusage.txt: $(XUSAGE) | |
393 $(prep-target) | |
394 $(RM) $@.temp | |
395 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp | |
396 $(MV) $@.temp $@ | |
397 | |
398 # | |
399 # Clean rules | |
400 # | |
401 clobber clean: clean_build clean_export clean_jdk | |
402 clean_build: | |
403 $(RM) -r $(C1_DIR) | |
404 $(RM) -r $(C2_DIR) | |
405 $(RM) -r $(KERNEL_DIR) | |
1010 | 406 $(RM) -r $(ZERO_DIR) |
1692 | 407 $(RM) -r $(SHARK_DIR) |
0 | 408 clean_export: |
409 $(RM) -r $(EXPORT_PATH) | |
410 clean_jdk: | |
411 $(RM) -r $(JDK_IMAGE_DIR) | |
412 | |
413 # | |
414 # Create JDK and place this build into it | |
415 # | |
416 create_jdk: copy_jdk update_jdk | |
417 | |
418 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk | |
419 | |
420 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar | |
421 | |
422 $(JDK_IMAGE_DIR)/jre/lib/rt.jar: | |
423 $(RM) -r $(JDK_IMAGE_DIR) | |
424 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
425 ($(CD) $(JDK_IMPORT_PATH) && \ | |
426 $(TAR) -cf - *) | \ | |
427 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) | |
428 | |
429 test_jdk: | |
1010 | 430 ifneq ($(ZERO_BUILD), true) |
431 ifeq ($(ARCH_DATA_MODEL), 32) | |
0 | 432 $(JDK_IMAGE_DIR)/bin/java -client -version |
1010 | 433 endif |
0 | 434 endif |
435 $(JDK_IMAGE_DIR)/bin/java -server -version | |
436 | |
437 copy_product_jdk: | |
438 $(RM) -r $(JDK_IMAGE_DIR) | |
439 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
440 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
441 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 442 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) |
443 | |
444 copy_fastdebug_jdk: | |
445 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug | |
446 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug | |
447 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
448 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
449 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 450 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
451 else \ | |
452 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
453 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 454 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
455 fi | |
456 | |
457 copy_debug_jdk: | |
458 $(RM) -r $(JDK_IMAGE_DIR)/debug | |
459 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug | |
460 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \ | |
461 ($(CD) $(JDK_IMPORT_PATH)/debug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
462 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 463 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
464 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
465 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
466 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 467 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
468 else \ | |
469 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
470 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 471 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
472 fi | |
473 | |
4006 | 474 # macosx universal builds |
475 | |
476 ifeq ($(MACOSX_UNIVERSAL), true) | |
477 $(UNIVERSAL_LIPO_LIST): | |
478 lipo -create -output $@ $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) | |
479 | |
480 $(UNIVERSAL_COPY_LIST): | |
481 $(CP) $(EXPORT_JRE_LIB_DIR)/i386/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) $@ | |
482 | |
483 universalize: $(UNIVERSAL_LIPO_LIST) $(UNIVERSAL_COPY_LIST) | |
484 endif | |
485 | |
486 universal_product: | |
487 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_product | |
488 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_product | |
489 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
490 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
491 | |
492 universal_fastdebug: | |
493 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_fastdebug | |
494 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_fastdebug | |
495 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
496 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
497 | |
498 universal_debug: | |
499 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_debug | |
500 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_debug | |
501 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
502 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
503 | |
0 | 504 # |
505 # Check target | |
506 # | |
507 check: variable_check | |
508 | |
509 # | |
510 # Help target | |
511 # | |
512 help: intro_help target_help variable_help notes_help examples_help | |
513 | |
514 # Intro help message | |
515 intro_help: | |
516 @$(ECHO) \ | |
517 "Makefile for the Hotspot workspace." | |
518 @$(ECHO) \ | |
519 "Default behavior is to build and create an export area for the j2se builds." | |
520 | |
521 # Target help | |
522 target_help: | |
523 @$(ECHO) "help: This help message" | |
524 @$(ECHO) "all: Same as: all_product all_fastdebug" | |
525 @$(ECHO) "world: Same as: all create_jdk" | |
526 @$(ECHO) "all_product: Same as: product product1 export_product" | |
527 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug" | |
528 @$(ECHO) "all_debug: Same as: jvmg jvmg1 export_debug" | |
529 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized" | |
530 @$(ECHO) "clean: Clean all areas" | |
531 @$(ECHO) "export_product: Export product files to EXPORT_PATH" | |
532 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH" | |
533 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH" | |
534 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH" | |
535 @$(ECHO) "create_jdk: Create JDK image, export all files into it" | |
536 @$(ECHO) "update_jdk: Update JDK image with fresh exported files" | |
537 @$(ECHO) " " | |
538 @$(ECHO) "Others targets are:" | |
539 @$(ECHO) " $(C1_VM_TARGETS)" | |
540 @$(ECHO) " $(C2_VM_TARGETS)" | |
541 @$(ECHO) " $(KERNEL_VM_TARGETS)" | |
542 | |
543 # Variable help (only common ones used by this workspace) | |
544 variable_help: variable_help_intro variable_list variable_help_end | |
545 variable_help_intro: | |
546 @$(ECHO) "--- Common Variables ---" | |
547 variable_help_end: | |
548 @$(ECHO) " " | |
549 @$(ECHO) "--- Make Arguments ---" | |
550 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)" | |
551 | |
552 # One line descriptions for the variables | |
553 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: | |
554 OUTPUTDIR.desc = Output directory, default is build/<osname> | |
555 BOOTDIR.desc = JDK used to compile agent java source and test with | |
556 JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk' | |
557 EXPORT_PATH.desc = Directory to place files to export for JDK build | |
558 | |
559 # Make variables to print out (description and value) | |
560 VARIABLE_PRINTVAL_LIST += \ | |
561 SLASH_JAVA \ | |
562 OUTPUTDIR \ | |
563 BOOTDIR \ | |
564 JDK_IMPORT_PATH \ | |
565 EXPORT_PATH | |
566 | |
567 # Make variables that should refer to directories that exist | |
568 VARIABLE_CHECKDIR_LIST += \ | |
569 SLASH_JAVA \ | |
570 BOOTDIR \ | |
571 JDK_IMPORT_PATH | |
572 | |
573 # For pattern rules below, so all are treated the same | |
574 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) | |
575 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) | |
576 | |
577 # Complete variable check | |
578 variable_check: $(DO_CHECKDIR_LIST) | |
579 variable_list: $(DO_PRINTVAL_LIST) variable_check | |
580 | |
581 # Pattern rule for printing out a variable | |
582 %.printval: | |
583 @$(ECHO) " ALT_$* - $($*.desc)" | |
584 @$(ECHO) " $*=$($*)" | |
585 | |
586 # Pattern rule for checking to see if a variable with a directory exists | |
587 %.checkdir: | |
588 @if [ ! -d $($*) ] ; then \ | |
589 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
590 fi | |
591 | |
592 # Pattern rule for checking to see if a variable with a file exists | |
593 %.checkfil: | |
594 @if [ ! -f $($*) ] ; then \ | |
595 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
596 fi | |
597 | |
598 # Misc notes on help | |
599 notes_help: | |
600 @$(ECHO) \ | |
601 "--- Notes --- " | |
602 @$(ECHO) \ | |
603 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted" | |
604 @$(ECHO) \ | |
605 " builds or previous release JDK builds will work." | |
606 @$(ECHO) \ | |
607 "- The fastest builds have been when the workspace and the BOOTDIR are on" | |
608 @$(ECHO) \ | |
609 " local disk." | |
610 | |
611 examples_help: | |
612 @$(ECHO) \ | |
613 "--- Examples --- " | |
614 @$(ECHO) \ | |
615 " $(MAKE) all" | |
616 @$(ECHO) \ | |
617 " $(MAKE) world" | |
618 @$(ECHO) \ | |
619 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" | |
620 @$(ECHO) \ | |
621 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)" | |
622 | |
623 # JPRT rule to build this workspace | |
624 include $(GAMMADIR)/make/jprt.gmk | |
625 | |
626 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \ | |
627 $(KERNEL_VM_TARGETS) \ | |
628 generic_build1 generic_build2 generic_buildkernel generic_export \ | |
629 export_product export_fastdebug export_debug export_optimized \ | |
630 export_jdk_product export_jdk_fastdebug export_jdk_debug \ | |
631 create_jdk copy_jdk update_jdk test_jdk \ | |
4006 | 632 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk universalize \ |
633 universal_product | |
0 | 634 |