Mercurial > hg > truffle
annotate src/share/vm/c1/c1_globals.hpp @ 2066:02895c6a2f82
7007769: VM crashes with SIGBUS writing PerfData if tmp space is full
Summary: Fill perfdata file with zeros to verify available disk space
Reviewed-by: coleenp, kamg
author | bobv |
---|---|
date | Mon, 20 Dec 2010 14:30:24 -0500 |
parents | f95d63e2154a |
children | 06f017f7daa7 b92c45f2bc75 |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
diff
changeset
|
2 * Copyright (c) 2000, 2010, 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:
1397
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1397
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:
1397
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
1972 | 25 #ifndef SHARE_VM_C1_C1_GLOBALS_HPP |
26 #define SHARE_VM_C1_C1_GLOBALS_HPP | |
27 | |
28 #include "runtime/globals.hpp" | |
29 #ifdef TARGET_ARCH_x86 | |
30 # include "c1_globals_x86.hpp" | |
31 #endif | |
32 #ifdef TARGET_ARCH_sparc | |
33 # include "c1_globals_sparc.hpp" | |
34 #endif | |
35 #ifdef TARGET_OS_FAMILY_linux | |
36 # include "c1_globals_linux.hpp" | |
37 #endif | |
38 #ifdef TARGET_OS_FAMILY_solaris | |
39 # include "c1_globals_solaris.hpp" | |
40 #endif | |
41 #ifdef TARGET_OS_FAMILY_windows | |
42 # include "c1_globals_windows.hpp" | |
43 #endif | |
44 | |
0 | 45 // |
46 // Defines all global flags used by the client compiler. | |
47 // | |
48 #define C1_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
49 \ | |
50 /* Printing */ \ | |
51 notproduct(bool, PrintC1Statistics, false, \ | |
52 "Print Compiler1 statistics" ) \ | |
53 \ | |
54 notproduct(bool, PrintInitialBlockList, false, \ | |
55 "Print block list of BlockListBuilder") \ | |
56 \ | |
57 notproduct(bool, PrintCFG, false, \ | |
58 "Print control flow graph after each change") \ | |
59 \ | |
60 notproduct(bool, PrintCFG0, false, \ | |
61 "Print control flow graph after construction") \ | |
62 \ | |
63 notproduct(bool, PrintCFG1, false, \ | |
64 "Print control flow graph after optimizations") \ | |
65 \ | |
66 notproduct(bool, PrintCFG2, false, \ | |
67 "Print control flow graph before code generation") \ | |
68 \ | |
69 notproduct(bool, PrintIRDuringConstruction, false, \ | |
70 "Print IR as it's being constructed (helpful for debugging frontend)")\ | |
71 \ | |
1783 | 72 notproduct(bool, PrintPhiFunctions, false, \ |
0 | 73 "Print phi functions when they are created and simplified") \ |
74 \ | |
75 notproduct(bool, PrintIR, false, \ | |
76 "Print full intermediate representation after each change") \ | |
77 \ | |
78 notproduct(bool, PrintIR0, false, \ | |
79 "Print full intermediate representation after construction") \ | |
80 \ | |
81 notproduct(bool, PrintIR1, false, \ | |
82 "Print full intermediate representation after optimizations") \ | |
83 \ | |
84 notproduct(bool, PrintIR2, false, \ | |
85 "Print full intermediate representation before code generation") \ | |
86 \ | |
87 notproduct(bool, PrintSimpleStubs, false, \ | |
88 "Print SimpleStubs") \ | |
89 \ | |
90 /* C1 optimizations */ \ | |
91 \ | |
92 develop(bool, UseC1Optimizations, true, \ | |
93 "Turn on C1 optimizations") \ | |
94 \ | |
95 develop(bool, SelectivePhiFunctions, true, \ | |
96 "create phi functions at loop headers only when necessary") \ | |
97 \ | |
1899 | 98 develop(bool, OptimizeIfOps, true, \ |
99 "Optimize multiple IfOps") \ | |
100 \ | |
0 | 101 develop(bool, DoCEE, true, \ |
102 "Do Conditional Expression Elimination to simplify CFG") \ | |
103 \ | |
104 develop(bool, PrintCEE, false, \ | |
105 "Print Conditional Expression Elimination") \ | |
106 \ | |
107 develop(bool, UseLocalValueNumbering, true, \ | |
108 "Use Local Value Numbering (embedded in GraphBuilder)") \ | |
109 \ | |
110 develop(bool, UseGlobalValueNumbering, true, \ | |
111 "Use Global Value Numbering (separate phase)") \ | |
112 \ | |
113 develop(bool, PrintValueNumbering, false, \ | |
114 "Print Value Numbering") \ | |
115 \ | |
116 product(intx, ValueMapInitialSize, 11, \ | |
117 "Initial size of a value map") \ | |
118 \ | |
119 product(intx, ValueMapMaxLoopSize, 8, \ | |
120 "maximum size of a loop optimized by global value numbering") \ | |
121 \ | |
122 develop(bool, EliminateBlocks, true, \ | |
123 "Eliminate unneccessary basic blocks") \ | |
124 \ | |
125 develop(bool, PrintBlockElimination, false, \ | |
126 "Print basic block elimination") \ | |
127 \ | |
128 develop(bool, EliminateNullChecks, true, \ | |
129 "Eliminate unneccessary null checks") \ | |
130 \ | |
131 develop(bool, PrintNullCheckElimination, false, \ | |
132 "Print null check elimination") \ | |
133 \ | |
134 develop(bool, EliminateFieldAccess, true, \ | |
135 "Optimize field loads and stores") \ | |
136 \ | |
137 develop(bool, InlineMethodsWithExceptionHandlers, true, \ | |
138 "Inline methods containing exception handlers " \ | |
139 "(NOTE: does not work with current backend)") \ | |
140 \ | |
141 develop(bool, InlineSynchronizedMethods, true, \ | |
142 "Inline synchronized methods") \ | |
143 \ | |
144 develop(bool, InlineNIOCheckIndex, true, \ | |
145 "Intrinsify java.nio.Buffer.checkIndex") \ | |
146 \ | |
147 develop(bool, CanonicalizeNodes, true, \ | |
148 "Canonicalize graph nodes") \ | |
149 \ | |
150 develop(bool, CanonicalizeExperimental, false, \ | |
151 "Canonicalize graph nodes, experimental code") \ | |
152 \ | |
153 develop(bool, PrintCanonicalization, false, \ | |
154 "Print graph node canonicalization") \ | |
155 \ | |
156 develop(bool, UseTableRanges, true, \ | |
157 "Faster versions of lookup table using ranges") \ | |
158 \ | |
159 develop(bool, UseFastExceptionHandling, true, \ | |
160 "Faster handling of exceptions") \ | |
161 \ | |
162 develop_pd(bool, RoundFPResults, \ | |
163 "Indicates whether rounding is needed for floating point results")\ | |
164 \ | |
165 develop(intx, NestedInliningSizeRatio, 90, \ | |
166 "Percentage of prev. allowed inline size in recursive inlining") \ | |
167 \ | |
168 notproduct(bool, PrintIRWithLIR, false, \ | |
169 "Print IR instructions with generated LIR") \ | |
170 \ | |
171 notproduct(bool, PrintLIRWithAssembly, false, \ | |
172 "Show LIR instruction with generated assembly") \ | |
173 \ | |
174 develop(bool, CommentedAssembly, trueInDebug, \ | |
175 "Show extra info in PrintNMethods output") \ | |
176 \ | |
177 develop(bool, LIRTracePeephole, false, \ | |
178 "Trace peephole optimizer") \ | |
179 \ | |
180 develop(bool, LIRTraceExecution, false, \ | |
181 "add LIR code which logs the execution of blocks") \ | |
182 \ | |
183 product_pd(bool, LIRFillDelaySlots, \ | |
184 "fill delays on on SPARC with LIR") \ | |
185 \ | |
186 develop_pd(bool, CSEArrayLength, \ | |
187 "Create separate nodes for length in array accesses") \ | |
188 \ | |
189 develop_pd(bool, TwoOperandLIRForm, \ | |
190 "true if LIR requires src1 and dst to match in binary LIR ops") \ | |
191 \ | |
192 develop(intx, TraceLinearScanLevel, 0, \ | |
193 "Debug levels for the linear scan allocator") \ | |
194 \ | |
195 develop(bool, StressLinearScan, false, \ | |
196 "scramble block order used by LinearScan (stress test)") \ | |
197 \ | |
198 product(bool, TimeLinearScan, false, \ | |
199 "detailed timing of LinearScan phases") \ | |
200 \ | |
201 develop(bool, TimeEachLinearScan, false, \ | |
202 "print detailed timing of each LinearScan run") \ | |
203 \ | |
204 develop(bool, CountLinearScan, false, \ | |
205 "collect statistic counters during LinearScan") \ | |
206 \ | |
207 /* C1 variable */ \ | |
208 \ | |
209 develop(bool, C1Breakpoint, false, \ | |
210 "Sets a breakpoint at entry of each compiled method") \ | |
211 \ | |
212 develop(bool, ImplicitDiv0Checks, true, \ | |
213 "Use implicit division by zero checks") \ | |
214 \ | |
215 develop(bool, PinAllInstructions, false, \ | |
216 "All instructions are pinned") \ | |
217 \ | |
218 develop(bool, ValueStackPinStackAll, true, \ | |
219 "Pinning in ValueStack pin everything") \ | |
220 \ | |
221 develop(bool, UseFastNewInstance, true, \ | |
222 "Use fast inlined instance allocation") \ | |
223 \ | |
224 develop(bool, UseFastNewTypeArray, true, \ | |
225 "Use fast inlined type array allocation") \ | |
226 \ | |
227 develop(bool, UseFastNewObjectArray, true, \ | |
228 "Use fast inlined object array allocation") \ | |
229 \ | |
230 develop(bool, UseFastLocking, true, \ | |
231 "Use fast inlined locking code") \ | |
232 \ | |
233 develop(bool, UseSlowPath, false, \ | |
234 "For debugging: test slow cases by always using them") \ | |
235 \ | |
236 develop(bool, GenerateArrayStoreCheck, true, \ | |
237 "Generates code for array store checks") \ | |
238 \ | |
239 develop(bool, DeoptC1, true, \ | |
240 "Use deoptimization in C1") \ | |
241 \ | |
242 develop(bool, PrintBailouts, false, \ | |
243 "Print bailout and its reason") \ | |
244 \ | |
245 develop(bool, TracePatching, false, \ | |
246 "Trace patching of field access on uninitialized classes") \ | |
247 \ | |
248 develop(bool, PatchALot, false, \ | |
249 "Marks all fields as having unloaded classes") \ | |
250 \ | |
251 develop(bool, PrintNotLoaded, false, \ | |
252 "Prints where classes are not loaded during code generation") \ | |
253 \ | |
254 notproduct(bool, VerifyOopMaps, false, \ | |
255 "Adds oopmap verification code to the generated code") \ | |
256 \ | |
257 develop(bool, PrintLIR, false, \ | |
258 "print low-level IR") \ | |
259 \ | |
260 develop(bool, BailoutAfterHIR, false, \ | |
261 "bailout of compilation after building of HIR") \ | |
262 \ | |
263 develop(bool, BailoutAfterLIR, false, \ | |
264 "bailout of compilation after building of LIR") \ | |
265 \ | |
266 develop(bool, BailoutOnExceptionHandlers, false, \ | |
267 "bailout of compilation for methods with exception handlers") \ | |
268 \ | |
269 develop(bool, InstallMethods, true, \ | |
270 "Install methods at the end of successful compilations") \ | |
271 \ | |
272 product(intx, CompilationRepeat, 0, \ | |
273 "Number of times to recompile method before returning result") \ | |
274 \ | |
275 develop(intx, NMethodSizeLimit, (32*K)*wordSize, \ | |
276 "Maximum size of a compiled method.") \ | |
277 \ | |
278 develop(bool, TraceFPUStack, false, \ | |
279 "Trace emulation of the FPU stack (intel only)") \ | |
280 \ | |
281 develop(bool, TraceFPURegisterUsage, false, \ | |
282 "Trace usage of FPU registers at start of blocks (intel only)") \ | |
283 \ | |
284 develop(bool, OptimizeUnsafes, true, \ | |
285 "Optimize raw unsafe ops") \ | |
286 \ | |
287 develop(bool, PrintUnsafeOptimization, false, \ | |
288 "Print optimization of raw unsafe ops") \ | |
289 \ | |
290 develop(intx, InstructionCountCutoff, 37000, \ | |
291 "If GraphBuilder adds this many instructions, bails out") \ | |
292 \ | |
293 product_pd(intx, SafepointPollOffset, \ | |
294 "Offset added to polling address (Intel only)") \ | |
295 \ | |
296 develop(bool, ComputeExactFPURegisterUsage, true, \ | |
297 "Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ | |
298 \ | |
1783 | 299 product(bool, C1ProfileCalls, true, \ |
0 | 300 "Profile calls when generating code for updating MDOs") \ |
301 \ | |
1783 | 302 product(bool, C1ProfileVirtualCalls, true, \ |
0 | 303 "Profile virtual calls when generating code for updating MDOs") \ |
304 \ | |
1783 | 305 product(bool, C1ProfileInlinedCalls, true, \ |
0 | 306 "Profile inlined calls when generating code for updating MDOs") \ |
307 \ | |
1783 | 308 product(bool, C1ProfileBranches, true, \ |
0 | 309 "Profile branches when generating code for updating MDOs") \ |
310 \ | |
1783 | 311 product(bool, C1ProfileCheckcasts, true, \ |
0 | 312 "Profile checkcasts when generating code for updating MDOs") \ |
313 \ | |
1783 | 314 product(bool, C1OptimizeVirtualCallProfiling, true, \ |
315 "Use CHA and exact type results at call sites when updating MDOs")\ | |
0 | 316 \ |
1783 | 317 product(bool, C1UpdateMethodData, trueInTiered, \ |
318 "Update methodDataOops in Tier1-generated code") \ | |
0 | 319 \ |
320 develop(bool, PrintCFGToFile, false, \ | |
321 "print control flow graph to a separate file during compilation") \ | |
322 \ | |
323 | |
324 | |
325 // Read default values for c1 globals | |
326 | |
327 C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
1972 | 328 |
329 #endif // SHARE_VM_C1_C1_GLOBALS_HPP |