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