author | mdoerr |
Wed, 23 Mar 2016 15:35:38 -0700 | |
changeset 36817 | 57ce0a76b6b0 |
parent 35543 | 0961315f4016 |
child 36834 | fc007081f4f1 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
2 |
* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5353
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5353
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
5353
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 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 |
|
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
35 |
#ifdef TARGET_ARCH_arm |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
36 |
# include "c1_globals_arm.hpp" |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
37 |
#endif |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
38 |
#ifdef TARGET_ARCH_ppc |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
39 |
# include "c1_globals_ppc.hpp" |
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7397
diff
changeset
|
40 |
#endif |
29180 | 41 |
#ifdef TARGET_ARCH_aarch64 |
42 |
# include "c1_globals_aarch64.hpp" |
|
43 |
#endif |
|
7397 | 44 |
#ifdef TARGET_OS_FAMILY_linux |
45 |
# include "c1_globals_linux.hpp" |
|
46 |
#endif |
|
47 |
#ifdef TARGET_OS_FAMILY_solaris |
|
48 |
# include "c1_globals_solaris.hpp" |
|
49 |
#endif |
|
50 |
#ifdef TARGET_OS_FAMILY_windows |
|
51 |
# include "c1_globals_windows.hpp" |
|
52 |
#endif |
|
22827 | 53 |
#ifdef TARGET_OS_FAMILY_aix |
54 |
# include "c1_globals_aix.hpp" |
|
55 |
#endif |
|
10565 | 56 |
#ifdef TARGET_OS_FAMILY_bsd |
57 |
# include "c1_globals_bsd.hpp" |
|
58 |
#endif |
|
7397 | 59 |
|
1 | 60 |
// |
61 |
// Defines all global flags used by the client compiler. |
|
62 |
// |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
63 |
#define C1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, range, constraint) \ |
1 | 64 |
\ |
65 |
/* Printing */ \ |
|
66 |
notproduct(bool, PrintC1Statistics, false, \ |
|
67 |
"Print Compiler1 statistics" ) \ |
|
68 |
\ |
|
69 |
notproduct(bool, PrintInitialBlockList, false, \ |
|
70 |
"Print block list of BlockListBuilder") \ |
|
71 |
\ |
|
72 |
notproduct(bool, PrintCFG, false, \ |
|
73 |
"Print control flow graph after each change") \ |
|
74 |
\ |
|
75 |
notproduct(bool, PrintCFG0, false, \ |
|
76 |
"Print control flow graph after construction") \ |
|
77 |
\ |
|
78 |
notproduct(bool, PrintCFG1, false, \ |
|
79 |
"Print control flow graph after optimizations") \ |
|
80 |
\ |
|
81 |
notproduct(bool, PrintCFG2, false, \ |
|
82 |
"Print control flow graph before code generation") \ |
|
83 |
\ |
|
84 |
notproduct(bool, PrintIRDuringConstruction, false, \ |
|
85 |
"Print IR as it's being constructed (helpful for debugging frontend)")\ |
|
86 |
\ |
|
6453 | 87 |
notproduct(bool, PrintPhiFunctions, false, \ |
1 | 88 |
"Print phi functions when they are created and simplified") \ |
89 |
\ |
|
90 |
notproduct(bool, PrintIR, false, \ |
|
91 |
"Print full intermediate representation after each change") \ |
|
92 |
\ |
|
93 |
notproduct(bool, PrintIR0, false, \ |
|
94 |
"Print full intermediate representation after construction") \ |
|
95 |
\ |
|
96 |
notproduct(bool, PrintIR1, false, \ |
|
97 |
"Print full intermediate representation after optimizations") \ |
|
98 |
\ |
|
99 |
notproduct(bool, PrintIR2, false, \ |
|
100 |
"Print full intermediate representation before code generation") \ |
|
101 |
\ |
|
102 |
notproduct(bool, PrintSimpleStubs, false, \ |
|
103 |
"Print SimpleStubs") \ |
|
104 |
\ |
|
105 |
/* C1 optimizations */ \ |
|
106 |
\ |
|
107 |
develop(bool, UseC1Optimizations, true, \ |
|
108 |
"Turn on C1 optimizations") \ |
|
109 |
\ |
|
110 |
develop(bool, SelectivePhiFunctions, true, \ |
|
111 |
"create phi functions at loop headers only when necessary") \ |
|
112 |
\ |
|
7100 | 113 |
develop(bool, OptimizeIfOps, true, \ |
114 |
"Optimize multiple IfOps") \ |
|
115 |
\ |
|
1 | 116 |
develop(bool, DoCEE, true, \ |
117 |
"Do Conditional Expression Elimination to simplify CFG") \ |
|
118 |
\ |
|
119 |
develop(bool, PrintCEE, false, \ |
|
120 |
"Print Conditional Expression Elimination") \ |
|
121 |
\ |
|
122 |
develop(bool, UseLocalValueNumbering, true, \ |
|
123 |
"Use Local Value Numbering (embedded in GraphBuilder)") \ |
|
124 |
\ |
|
125 |
develop(bool, UseGlobalValueNumbering, true, \ |
|
126 |
"Use Global Value Numbering (separate phase)") \ |
|
127 |
\ |
|
16611 | 128 |
product(bool, UseLoopInvariantCodeMotion, true, \ |
129 |
"Simple loop invariant code motion for short loops during GVN") \ |
|
130 |
\ |
|
131 |
develop(bool, TracePredicateFailedTraps, false, \ |
|
132 |
"trace runtime traps caused by predicate failure") \ |
|
133 |
\ |
|
134 |
develop(bool, StressLoopInvariantCodeMotion, false, \ |
|
135 |
"stress loop invariant code motion") \ |
|
136 |
\ |
|
137 |
develop(bool, TraceRangeCheckElimination, false, \ |
|
138 |
"Trace Range Check Elimination") \ |
|
139 |
\ |
|
140 |
develop(bool, AssertRangeCheckElimination, false, \ |
|
141 |
"Assert Range Check Elimination") \ |
|
142 |
\ |
|
143 |
develop(bool, StressRangeCheckElimination, false, \ |
|
144 |
"stress Range Check Elimination") \ |
|
145 |
\ |
|
1 | 146 |
develop(bool, PrintValueNumbering, false, \ |
147 |
"Print Value Numbering") \ |
|
148 |
\ |
|
149 |
product(intx, ValueMapInitialSize, 11, \ |
|
150 |
"Initial size of a value map") \ |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
151 |
range(1, NOT_LP64(1*K) LP64_ONLY(32*K)) \ |
1 | 152 |
\ |
153 |
product(intx, ValueMapMaxLoopSize, 8, \ |
|
154 |
"maximum size of a loop optimized by global value numbering") \ |
|
33163
9e128b399e48
8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents:
31371
diff
changeset
|
155 |
range(0, 128) \ |
1 | 156 |
\ |
157 |
develop(bool, EliminateBlocks, true, \ |
|
158 |
"Eliminate unneccessary basic blocks") \ |
|
159 |
\ |
|
160 |
develop(bool, PrintBlockElimination, false, \ |
|
161 |
"Print basic block elimination") \ |
|
162 |
\ |
|
163 |
develop(bool, EliminateNullChecks, true, \ |
|
164 |
"Eliminate unneccessary null checks") \ |
|
165 |
\ |
|
166 |
develop(bool, PrintNullCheckElimination, false, \ |
|
167 |
"Print null check elimination") \ |
|
168 |
\ |
|
169 |
develop(bool, EliminateFieldAccess, true, \ |
|
170 |
"Optimize field loads and stores") \ |
|
171 |
\ |
|
172 |
develop(bool, InlineMethodsWithExceptionHandlers, true, \ |
|
173 |
"Inline methods containing exception handlers " \ |
|
174 |
"(NOTE: does not work with current backend)") \ |
|
175 |
\ |
|
15200
73bac1831823
8005639: Move InlineSynchronizedMethods flag from develop to product
vladidan
parents:
13728
diff
changeset
|
176 |
product(bool, InlineSynchronizedMethods, true, \ |
1 | 177 |
"Inline synchronized methods") \ |
178 |
\ |
|
179 |
develop(bool, InlineNIOCheckIndex, true, \ |
|
180 |
"Intrinsify java.nio.Buffer.checkIndex") \ |
|
181 |
\ |
|
182 |
develop(bool, CanonicalizeNodes, true, \ |
|
183 |
"Canonicalize graph nodes") \ |
|
184 |
\ |
|
185 |
develop(bool, PrintCanonicalization, false, \ |
|
186 |
"Print graph node canonicalization") \ |
|
187 |
\ |
|
188 |
develop(bool, UseTableRanges, true, \ |
|
189 |
"Faster versions of lookup table using ranges") \ |
|
190 |
\ |
|
191 |
develop_pd(bool, RoundFPResults, \ |
|
192 |
"Indicates whether rounding is needed for floating point results")\ |
|
193 |
\ |
|
194 |
develop(intx, NestedInliningSizeRatio, 90, \ |
|
195 |
"Percentage of prev. allowed inline size in recursive inlining") \ |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
196 |
range(0, 100) \ |
1 | 197 |
\ |
198 |
notproduct(bool, PrintIRWithLIR, false, \ |
|
199 |
"Print IR instructions with generated LIR") \ |
|
200 |
\ |
|
201 |
notproduct(bool, PrintLIRWithAssembly, false, \ |
|
202 |
"Show LIR instruction with generated assembly") \ |
|
203 |
\ |
|
204 |
develop(bool, CommentedAssembly, trueInDebug, \ |
|
205 |
"Show extra info in PrintNMethods output") \ |
|
206 |
\ |
|
207 |
develop(bool, LIRTracePeephole, false, \ |
|
208 |
"Trace peephole optimizer") \ |
|
209 |
\ |
|
210 |
develop(bool, LIRTraceExecution, false, \ |
|
211 |
"add LIR code which logs the execution of blocks") \ |
|
212 |
\ |
|
213 |
product_pd(bool, LIRFillDelaySlots, \ |
|
214 |
"fill delays on on SPARC with LIR") \ |
|
215 |
\ |
|
216 |
develop_pd(bool, CSEArrayLength, \ |
|
217 |
"Create separate nodes for length in array accesses") \ |
|
218 |
\ |
|
219 |
develop_pd(bool, TwoOperandLIRForm, \ |
|
220 |
"true if LIR requires src1 and dst to match in binary LIR ops") \ |
|
221 |
\ |
|
222 |
develop(intx, TraceLinearScanLevel, 0, \ |
|
223 |
"Debug levels for the linear scan allocator") \ |
|
33163
9e128b399e48
8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents:
31371
diff
changeset
|
224 |
range(0, 4) \ |
1 | 225 |
\ |
226 |
develop(bool, StressLinearScan, false, \ |
|
227 |
"scramble block order used by LinearScan (stress test)") \ |
|
228 |
\ |
|
229 |
product(bool, TimeLinearScan, false, \ |
|
230 |
"detailed timing of LinearScan phases") \ |
|
231 |
\ |
|
232 |
develop(bool, TimeEachLinearScan, false, \ |
|
233 |
"print detailed timing of each LinearScan run") \ |
|
234 |
\ |
|
235 |
develop(bool, CountLinearScan, false, \ |
|
236 |
"collect statistic counters during LinearScan") \ |
|
237 |
\ |
|
238 |
/* C1 variable */ \ |
|
239 |
\ |
|
240 |
develop(bool, C1Breakpoint, false, \ |
|
241 |
"Sets a breakpoint at entry of each compiled method") \ |
|
242 |
\ |
|
243 |
develop(bool, ImplicitDiv0Checks, true, \ |
|
244 |
"Use implicit division by zero checks") \ |
|
245 |
\ |
|
246 |
develop(bool, PinAllInstructions, false, \ |
|
247 |
"All instructions are pinned") \ |
|
248 |
\ |
|
249 |
develop(bool, UseFastNewInstance, true, \ |
|
250 |
"Use fast inlined instance allocation") \ |
|
251 |
\ |
|
252 |
develop(bool, UseFastNewTypeArray, true, \ |
|
253 |
"Use fast inlined type array allocation") \ |
|
254 |
\ |
|
255 |
develop(bool, UseFastNewObjectArray, true, \ |
|
256 |
"Use fast inlined object array allocation") \ |
|
257 |
\ |
|
258 |
develop(bool, UseFastLocking, true, \ |
|
259 |
"Use fast inlined locking code") \ |
|
260 |
\ |
|
261 |
develop(bool, UseSlowPath, false, \ |
|
262 |
"For debugging: test slow cases by always using them") \ |
|
263 |
\ |
|
264 |
develop(bool, GenerateArrayStoreCheck, true, \ |
|
265 |
"Generates code for array store checks") \ |
|
266 |
\ |
|
267 |
develop(bool, DeoptC1, true, \ |
|
268 |
"Use deoptimization in C1") \ |
|
269 |
\ |
|
270 |
develop(bool, PrintBailouts, false, \ |
|
271 |
"Print bailout and its reason") \ |
|
272 |
\ |
|
273 |
develop(bool, TracePatching, false, \ |
|
274 |
"Trace patching of field access on uninitialized classes") \ |
|
275 |
\ |
|
276 |
develop(bool, PatchALot, false, \ |
|
277 |
"Marks all fields as having unloaded classes") \ |
|
278 |
\ |
|
279 |
develop(bool, PrintNotLoaded, false, \ |
|
280 |
"Prints where classes are not loaded during code generation") \ |
|
281 |
\ |
|
282 |
develop(bool, PrintLIR, false, \ |
|
283 |
"print low-level IR") \ |
|
284 |
\ |
|
285 |
develop(bool, BailoutAfterHIR, false, \ |
|
286 |
"bailout of compilation after building of HIR") \ |
|
287 |
\ |
|
288 |
develop(bool, BailoutAfterLIR, false, \ |
|
289 |
"bailout of compilation after building of LIR") \ |
|
290 |
\ |
|
291 |
develop(bool, BailoutOnExceptionHandlers, false, \ |
|
292 |
"bailout of compilation for methods with exception handlers") \ |
|
293 |
\ |
|
294 |
develop(bool, InstallMethods, true, \ |
|
295 |
"Install methods at the end of successful compilations") \ |
|
296 |
\ |
|
10505
df3cc194efc5
7085279: C1 overflows code buffer with VerifyOops and CompressedOops
iveresov
parents:
8921
diff
changeset
|
297 |
develop(intx, NMethodSizeLimit, (64*K)*wordSize, \ |
1 | 298 |
"Maximum size of a compiled method.") \ |
33163
9e128b399e48
8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents:
31371
diff
changeset
|
299 |
range(0, max_jint) \ |
1 | 300 |
\ |
301 |
develop(bool, TraceFPUStack, false, \ |
|
302 |
"Trace emulation of the FPU stack (intel only)") \ |
|
303 |
\ |
|
304 |
develop(bool, TraceFPURegisterUsage, false, \ |
|
305 |
"Trace usage of FPU registers at start of blocks (intel only)") \ |
|
306 |
\ |
|
307 |
develop(bool, OptimizeUnsafes, true, \ |
|
308 |
"Optimize raw unsafe ops") \ |
|
309 |
\ |
|
310 |
develop(bool, PrintUnsafeOptimization, false, \ |
|
311 |
"Print optimization of raw unsafe ops") \ |
|
312 |
\ |
|
313 |
develop(intx, InstructionCountCutoff, 37000, \ |
|
314 |
"If GraphBuilder adds this many instructions, bails out") \ |
|
33163
9e128b399e48
8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
zmajo
parents:
31371
diff
changeset
|
315 |
range(0, max_jint) \ |
1 | 316 |
\ |
317 |
develop(bool, ComputeExactFPURegisterUsage, true, \ |
|
318 |
"Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \ |
|
319 |
\ |
|
6453 | 320 |
product(bool, C1ProfileCalls, true, \ |
1 | 321 |
"Profile calls when generating code for updating MDOs") \ |
322 |
\ |
|
6453 | 323 |
product(bool, C1ProfileVirtualCalls, true, \ |
1 | 324 |
"Profile virtual calls when generating code for updating MDOs") \ |
325 |
\ |
|
6453 | 326 |
product(bool, C1ProfileInlinedCalls, true, \ |
1 | 327 |
"Profile inlined calls when generating code for updating MDOs") \ |
328 |
\ |
|
6453 | 329 |
product(bool, C1ProfileBranches, true, \ |
1 | 330 |
"Profile branches when generating code for updating MDOs") \ |
331 |
\ |
|
6453 | 332 |
product(bool, C1ProfileCheckcasts, true, \ |
1 | 333 |
"Profile checkcasts when generating code for updating MDOs") \ |
334 |
\ |
|
6453 | 335 |
product(bool, C1OptimizeVirtualCallProfiling, true, \ |
336 |
"Use CHA and exact type results at call sites when updating MDOs")\ |
|
1 | 337 |
\ |
6453 | 338 |
product(bool, C1UpdateMethodData, trueInTiered, \ |
19710
2f8ca425504e
7199175: JSR 292: C1 needs patching when invokedynamic/invokehandle call site is not linked
roland
parents:
16611
diff
changeset
|
339 |
"Update MethodData*s in Tier1-generated code") \ |
1 | 340 |
\ |
341 |
develop(bool, PrintCFGToFile, false, \ |
|
342 |
"print control flow graph to a separate file during compilation") \ |
|
343 |
\ |
|
344 |
// Read default values for c1 globals |
|
345 |
||
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
346 |
C1_FLAGS(DECLARE_DEVELOPER_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
347 |
DECLARE_PD_DEVELOPER_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
348 |
DECLARE_PRODUCT_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
349 |
DECLARE_PD_PRODUCT_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
350 |
DECLARE_DIAGNOSTIC_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
351 |
DECLARE_NOTPRODUCT_FLAG, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
352 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
29180
diff
changeset
|
353 |
IGNORE_CONSTRAINT) |
7397 | 354 |
|
355 |
#endif // SHARE_VM_C1_C1_GLOBALS_HPP |