Mercurial > hg > graal-compiler
annotate make/windows/makefiles/vm.make @ 364:919e7959392a
6742641: G1: NullPointerException during GCOld
Summary: An update buffer is not processed correctly, which causes roots into the collection set not to be scanned and, hence, for the heap to be corrupted. The cause is that an object is accessed after it has been explicitly deleted, which causes a race.
Reviewed-by: jcoomes, ysr
author | tonyp |
---|---|
date | Mon, 22 Sep 2008 09:56:49 -0400 |
parents | 1ee8caae33af |
children | 67a2f5ba5582 |
rev | line source |
---|---|
0 | 1 # |
196 | 2 # Copyright 1997-2008 Sun Microsystems, Inc. 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 # | |
19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 # CA 95054 USA or visit www.sun.com if you need additional information or | |
21 # have any questions. | |
22 # | |
23 # | |
24 | |
25 # Resource file containing VERSIONINFO | |
26 Res_Files=.\version.res | |
27 | |
28 !ifdef RELEASE | |
29 !ifdef DEVELOP | |
30 CPP_FLAGS=$(CPP_FLAGS) /D "DEBUG" | |
31 !else | |
32 CPP_FLAGS=$(CPP_FLAGS) /D "PRODUCT" | |
33 !endif | |
34 !else | |
35 CPP_FLAGS=$(CPP_FLAGS) /D "ASSERT" | |
36 !endif | |
37 | |
38 !if "$(Variant)" == "core" | |
39 # No need to define anything, CORE is defined as !COMPILER1 && !COMPILER2 | |
40 !endif | |
41 | |
42 !if "$(Variant)" == "kernel" | |
43 CPP_FLAGS=$(CPP_FLAGS) /D "KERNEL" | |
44 !endif | |
45 | |
46 !if "$(Variant)" == "compiler1" | |
47 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" | |
48 !endif | |
49 | |
50 !if "$(Variant)" == "compiler2" | |
51 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER2" | |
52 !endif | |
53 | |
54 !if "$(Variant)" == "tiered" | |
55 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" /D "COMPILER2" | |
56 !endif | |
57 | |
58 # The following variables are defined in the generated local.make file. | |
59 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\"" | |
60 CPP_FLAGS=$(CPP_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\"" | |
100
c7c777385a15
6667042: PrintAssembly option does not work without special plugin
jrose
parents:
0
diff
changeset
|
61 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(BUILDARCH)\"" |
0 | 62 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\"" |
63 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\"" | |
64 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\"" | |
65 | |
66 CPP_FLAGS=$(CPP_FLAGS) /D "WIN32" /D "_WINDOWS" $(CPP_INCLUDE_DIRS) | |
67 | |
68 # Must specify this for sharedRuntimeTrig.cpp | |
69 CPP_FLAGS=$(CPP_FLAGS) /D "VM_LITTLE_ENDIAN" | |
70 | |
71 # Define that so jni.h is on correct side | |
72 CPP_FLAGS=$(CPP_FLAGS) /D "_JNI_IMPLEMENTATION_" | |
73 | |
74 !if "$(BUILDARCH)" == "ia64" | |
75 STACK_SIZE="/STACK:1048576,262144" | |
76 !else | |
77 STACK_SIZE= | |
78 !endif | |
79 | |
80 !if "$(BUILDARCH)" == "ia64" | |
81 # AsyncGetCallTrace is not supported on IA64 yet | |
82 AGCT_EXPORT= | |
83 !else | |
84 !if "$(Variant)" == "kernel" | |
85 AGCT_EXPORT= | |
86 !else | |
87 AGCT_EXPORT=/export:AsyncGetCallTrace | |
88 !endif | |
89 !endif | |
90 | |
226
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
91 LINK_FLAGS=$(LINK_FLAGS) $(STACK_SIZE) /subsystem:windows /dll /base:0x8000000 \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
92 /export:JNI_GetDefaultJavaVMInitArgs \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
93 /export:JNI_CreateJavaVM \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
94 /export:JVM_FindClassFromBootLoader \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
95 /export:JNI_GetCreatedJavaVMs \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
96 /export:jio_snprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
97 /export:jio_printf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
98 /export:jio_fprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
99 /export:jio_vfprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
100 /export:jio_vsnprintf \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
101 $(AGCT_EXPORT) \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
102 /export:JVM_GetVersionInfo \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
103 /export:JVM_GetThreadStateNames \ |
d5ba4f8aa38a
6714758: hotspot: provide an entry point to the BootStrap Class loader[dholmes,acorn]
ksrini
parents:
110
diff
changeset
|
104 /export:JVM_GetThreadStateValues \ |
0 | 105 /export:JVM_InitAgentProperties |
106 | |
107 CPP_INCLUDE_DIRS=\ | |
108 /I "..\generated" \ | |
109 /I "..\generated\jvmtifiles" \ | |
110 /I "$(WorkSpace)\src\share\vm\c1" \ | |
111 /I "$(WorkSpace)\src\share\vm\compiler" \ | |
112 /I "$(WorkSpace)\src\share\vm\code" \ | |
113 /I "$(WorkSpace)\src\share\vm\interpreter" \ | |
114 /I "$(WorkSpace)\src\share\vm\ci" \ | |
115 /I "$(WorkSpace)\src\share\vm\classfile" \ | |
116 /I "$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge"\ | |
117 /I "$(WorkSpace)\src\share\vm\gc_implementation\shared"\ | |
118 /I "$(WorkSpace)\src\share\vm\gc_implementation\parNew"\ | |
119 /I "$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep"\ | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
120 /I "$(WorkSpace)\src\share\vm\gc_implementation\g1"\ |
0 | 121 /I "$(WorkSpace)\src\share\vm\gc_interface"\ |
122 /I "$(WorkSpace)\src\share\vm\asm" \ | |
123 /I "$(WorkSpace)\src\share\vm\memory" \ | |
124 /I "$(WorkSpace)\src\share\vm\oops" \ | |
125 /I "$(WorkSpace)\src\share\vm\prims" \ | |
126 /I "$(WorkSpace)\src\share\vm\runtime" \ | |
127 /I "$(WorkSpace)\src\share\vm\services" \ | |
128 /I "$(WorkSpace)\src\share\vm\utilities" \ | |
129 /I "$(WorkSpace)\src\share\vm\libadt" \ | |
130 /I "$(WorkSpace)\src\share\vm\opto" \ | |
131 /I "$(WorkSpace)\src\os\windows\vm" \ | |
132 /I "$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm" \ | |
133 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" | |
134 | |
135 CPP_USE_PCH=/Fp"vm.pch" /Yu"incls/_precompiled.incl" | |
136 | |
137 # Where to find the source code for the virtual machine | |
138 VM_PATH=../generated/incls | |
139 VM_PATH=$(VM_PATH);../generated/jvmtifiles | |
140 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1 | |
141 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler | |
142 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code | |
143 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter | |
144 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci | |
145 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile | |
146 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge | |
147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared | |
148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew | |
149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1 |
0 | 151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface |
152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm | |
153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory | |
154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops | |
155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims | |
156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime | |
157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services | |
158 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities | |
159 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt | |
160 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm | |
161 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm | |
162 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm | |
163 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto | |
164 | |
165 VM_PATH={$(VM_PATH)} | |
166 | |
167 # Special case files not using precompiled header files. | |
168 | |
169 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp | |
170 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp | |
171 | |
172 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp | |
173 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp | |
174 | |
175 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp | |
176 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp | |
177 | |
178 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp | |
179 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp | |
180 | |
181 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp | |
182 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp | |
183 | |
184 getThread_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp | |
185 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp | |
186 | |
187 opcodes.obj: $(WorkSpace)\src\share\vm\opto\opcodes.cpp | |
188 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\opto\opcodes.cpp | |
189 | |
190 bytecodeInterpreter.obj: $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp | |
191 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp | |
192 | |
193 bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp | |
194 $(CPP) $(CPP_FLAGS) /c ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp | |
195 | |
196 # Default rules for the Virtual Machine | |
197 {$(WorkSpace)\src\share\vm\c1}.cpp.obj:: | |
198 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
199 | |
200 {$(WorkSpace)\src\share\vm\compiler}.cpp.obj:: | |
201 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
202 | |
203 {$(WorkSpace)\src\share\vm\code}.cpp.obj:: | |
204 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
205 | |
206 {$(WorkSpace)\src\share\vm\interpreter}.cpp.obj:: | |
207 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
208 | |
209 {$(WorkSpace)\src\share\vm\ci}.cpp.obj:: | |
210 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
211 | |
212 {$(WorkSpace)\src\share\vm\classfile}.cpp.obj:: | |
213 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
214 | |
215 {$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge}.cpp.obj:: | |
216 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
217 | |
218 {$(WorkSpace)\src\share\vm\gc_implementation\shared}.cpp.obj:: | |
219 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
220 | |
221 {$(WorkSpace)\src\share\vm\gc_implementation\parNew}.cpp.obj:: | |
222 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
223 | |
224 {$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj:: | |
225 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
226 | |
342
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
227 {$(WorkSpace)\src\share\vm\gc_implementation\g1}.cpp.obj:: |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
228 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< |
37f87013dfd8
6711316: Open source the Garbage-First garbage collector
ysr
parents:
110
diff
changeset
|
229 |
0 | 230 {$(WorkSpace)\src\share\vm\gc_interface}.cpp.obj:: |
231 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
232 | |
233 {$(WorkSpace)\src\share\vm\asm}.cpp.obj:: | |
234 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
235 | |
236 {$(WorkSpace)\src\share\vm\memory}.cpp.obj:: | |
237 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
238 | |
239 {$(WorkSpace)\src\share\vm\oops}.cpp.obj:: | |
240 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
241 | |
242 {$(WorkSpace)\src\share\vm\prims}.cpp.obj:: | |
243 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
244 | |
245 {$(WorkSpace)\src\share\vm\runtime}.cpp.obj:: | |
246 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
247 | |
248 {$(WorkSpace)\src\share\vm\services}.cpp.obj:: | |
249 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
250 | |
251 {$(WorkSpace)\src\share\vm\utilities}.cpp.obj:: | |
252 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
253 | |
254 {$(WorkSpace)\src\share\vm\libadt}.cpp.obj:: | |
255 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
256 | |
257 {$(WorkSpace)\src\share\vm\opto}.cpp.obj:: | |
258 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
259 | |
260 {$(WorkSpace)\src\os\windows\vm}.cpp.obj:: | |
261 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
262 | |
263 # This guy should remain a single colon rule because | |
264 # otherwise we can't specify the output filename. | |
265 {$(WorkSpace)\src\os\windows\vm}.rc.res: | |
266 @$(RC) $(RC_FLAGS) /fo"$@" $< | |
267 | |
268 {$(WorkSpace)\src\cpu\$(Platform_arch)\vm}.cpp.obj:: | |
269 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
270 | |
271 {$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj:: | |
272 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
273 | |
274 {..\generated\incls}.cpp.obj:: | |
275 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
276 | |
277 {..\generated\jvmtifiles}.cpp.obj:: | |
278 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $< | |
279 | |
280 default:: | |
281 | |
282 _build_pch_file.obj: | |
283 @echo #include "incls/_precompiled.incl" > ../generated/_build_pch_file.cpp | |
284 $(CPP) $(CPP_FLAGS) /Fp"vm.pch" /Yc"incls/_precompiled.incl" /c ../generated/_build_pch_file.cpp |