Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/share/vm/c1/c1_globals.hpp
32285 views
1
/*
2
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*
23
*/
24
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_aarch32
33
# include "c1_globals_aarch32.hpp"
34
#endif
35
#ifdef TARGET_ARCH_aarch64
36
# include "c1_globals_aarch64.hpp"
37
#endif
38
#ifdef TARGET_ARCH_sparc
39
# include "c1_globals_sparc.hpp"
40
#endif
41
#ifdef TARGET_ARCH_arm
42
# include "c1_globals_arm.hpp"
43
#endif
44
#ifdef TARGET_ARCH_ppc
45
# include "c1_globals_ppc.hpp"
46
#endif
47
#ifdef TARGET_OS_FAMILY_linux
48
# include "c1_globals_linux.hpp"
49
#endif
50
#ifdef TARGET_OS_FAMILY_solaris
51
# include "c1_globals_solaris.hpp"
52
#endif
53
#ifdef TARGET_OS_FAMILY_windows
54
# include "c1_globals_windows.hpp"
55
#endif
56
#ifdef TARGET_OS_FAMILY_aix
57
# include "c1_globals_aix.hpp"
58
#endif
59
#ifdef TARGET_OS_FAMILY_bsd
60
# include "c1_globals_bsd.hpp"
61
#endif
62
63
//
64
// Defines all global flags used by the client compiler.
65
//
66
#define C1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \
67
\
68
/* Printing */ \
69
notproduct(bool, PrintC1Statistics, false, \
70
"Print Compiler1 statistics" ) \
71
\
72
notproduct(bool, PrintInitialBlockList, false, \
73
"Print block list of BlockListBuilder") \
74
\
75
notproduct(bool, PrintCFG, false, \
76
"Print control flow graph after each change") \
77
\
78
notproduct(bool, PrintCFG0, false, \
79
"Print control flow graph after construction") \
80
\
81
notproduct(bool, PrintCFG1, false, \
82
"Print control flow graph after optimizations") \
83
\
84
notproduct(bool, PrintCFG2, false, \
85
"Print control flow graph before code generation") \
86
\
87
notproduct(bool, PrintIRDuringConstruction, false, \
88
"Print IR as it's being constructed (helpful for debugging frontend)")\
89
\
90
notproduct(bool, PrintPhiFunctions, false, \
91
"Print phi functions when they are created and simplified") \
92
\
93
notproduct(bool, PrintIR, false, \
94
"Print full intermediate representation after each change") \
95
\
96
notproduct(bool, PrintIR0, false, \
97
"Print full intermediate representation after construction") \
98
\
99
notproduct(bool, PrintIR1, false, \
100
"Print full intermediate representation after optimizations") \
101
\
102
notproduct(bool, PrintIR2, false, \
103
"Print full intermediate representation before code generation") \
104
\
105
notproduct(bool, PrintSimpleStubs, false, \
106
"Print SimpleStubs") \
107
\
108
/* C1 optimizations */ \
109
\
110
develop(bool, UseC1Optimizations, true, \
111
"Turn on C1 optimizations") \
112
\
113
develop(bool, SelectivePhiFunctions, true, \
114
"create phi functions at loop headers only when necessary") \
115
\
116
develop(bool, OptimizeIfOps, true, \
117
"Optimize multiple IfOps") \
118
\
119
develop(bool, DoCEE, true, \
120
"Do Conditional Expression Elimination to simplify CFG") \
121
\
122
develop(bool, PrintCEE, false, \
123
"Print Conditional Expression Elimination") \
124
\
125
develop(bool, UseLocalValueNumbering, true, \
126
"Use Local Value Numbering (embedded in GraphBuilder)") \
127
\
128
develop(bool, UseGlobalValueNumbering, true, \
129
"Use Global Value Numbering (separate phase)") \
130
\
131
product(bool, UseLoopInvariantCodeMotion, true, \
132
"Simple loop invariant code motion for short loops during GVN") \
133
\
134
develop(bool, TracePredicateFailedTraps, false, \
135
"trace runtime traps caused by predicate failure") \
136
\
137
develop(bool, StressLoopInvariantCodeMotion, false, \
138
"stress loop invariant code motion") \
139
\
140
develop(bool, TraceRangeCheckElimination, false, \
141
"Trace Range Check Elimination") \
142
\
143
develop(bool, AssertRangeCheckElimination, false, \
144
"Assert Range Check Elimination") \
145
\
146
develop(bool, StressRangeCheckElimination, false, \
147
"stress Range Check Elimination") \
148
\
149
develop(bool, PrintValueNumbering, false, \
150
"Print Value Numbering") \
151
\
152
product(intx, ValueMapInitialSize, 11, \
153
"Initial size of a value map") \
154
\
155
product(intx, ValueMapMaxLoopSize, 8, \
156
"maximum size of a loop optimized by global value numbering") \
157
\
158
develop(bool, EliminateBlocks, true, \
159
"Eliminate unneccessary basic blocks") \
160
\
161
develop(bool, PrintBlockElimination, false, \
162
"Print basic block elimination") \
163
\
164
develop(bool, EliminateNullChecks, true, \
165
"Eliminate unneccessary null checks") \
166
\
167
develop(bool, PrintNullCheckElimination, false, \
168
"Print null check elimination") \
169
\
170
develop(bool, EliminateFieldAccess, true, \
171
"Optimize field loads and stores") \
172
\
173
develop(bool, InlineMethodsWithExceptionHandlers, true, \
174
"Inline methods containing exception handlers " \
175
"(NOTE: does not work with current backend)") \
176
\
177
product(bool, InlineSynchronizedMethods, true, \
178
"Inline synchronized methods") \
179
\
180
develop(bool, InlineNIOCheckIndex, true, \
181
"Intrinsify java.nio.Buffer.checkIndex") \
182
\
183
develop(bool, CanonicalizeNodes, true, \
184
"Canonicalize graph nodes") \
185
\
186
develop(bool, PrintCanonicalization, false, \
187
"Print graph node canonicalization") \
188
\
189
develop(bool, UseTableRanges, true, \
190
"Faster versions of lookup table using ranges") \
191
\
192
develop_pd(bool, RoundFPResults, \
193
"Indicates whether rounding is needed for floating point results")\
194
\
195
develop(intx, NestedInliningSizeRatio, 90, \
196
"Percentage of prev. allowed inline size in recursive inlining") \
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") \
224
\
225
develop(bool, StressLinearScan, false, \
226
"scramble block order used by LinearScan (stress test)") \
227
\
228
product(bool, TimeLinearScan, false, \
229
"detailed timing of LinearScan phases") \
230
\
231
develop(bool, TimeEachLinearScan, false, \
232
"print detailed timing of each LinearScan run") \
233
\
234
develop(bool, CountLinearScan, false, \
235
"collect statistic counters during LinearScan") \
236
\
237
/* C1 variable */ \
238
\
239
develop(bool, C1Breakpoint, false, \
240
"Sets a breakpoint at entry of each compiled method") \
241
\
242
develop(bool, ImplicitDiv0Checks, true, \
243
"Use implicit division by zero checks") \
244
\
245
develop(bool, PinAllInstructions, false, \
246
"All instructions are pinned") \
247
\
248
develop(bool, UseFastNewInstance, true, \
249
"Use fast inlined instance allocation") \
250
\
251
develop(bool, UseFastNewTypeArray, true, \
252
"Use fast inlined type array allocation") \
253
\
254
develop(bool, UseFastNewObjectArray, true, \
255
"Use fast inlined object array allocation") \
256
\
257
develop(bool, UseFastLocking, true, \
258
"Use fast inlined locking code") \
259
\
260
develop(bool, UseSlowPath, false, \
261
"For debugging: test slow cases by always using them") \
262
\
263
develop(bool, GenerateArrayStoreCheck, true, \
264
"Generates code for array store checks") \
265
\
266
develop(bool, DeoptC1, true, \
267
"Use deoptimization in C1") \
268
\
269
develop(bool, PrintBailouts, false, \
270
"Print bailout and its reason") \
271
\
272
develop(bool, TracePatching, false, \
273
"Trace patching of field access on uninitialized classes") \
274
\
275
develop(bool, PatchALot, false, \
276
"Marks all fields as having unloaded classes") \
277
\
278
develop(bool, PrintNotLoaded, false, \
279
"Prints where classes are not loaded during code generation") \
280
\
281
develop(bool, PrintLIR, false, \
282
"print low-level IR") \
283
\
284
develop(bool, BailoutAfterHIR, false, \
285
"bailout of compilation after building of HIR") \
286
\
287
develop(bool, BailoutAfterLIR, false, \
288
"bailout of compilation after building of LIR") \
289
\
290
develop(bool, BailoutOnExceptionHandlers, false, \
291
"bailout of compilation for methods with exception handlers") \
292
\
293
develop(bool, InstallMethods, true, \
294
"Install methods at the end of successful compilations") \
295
\
296
develop(intx, NMethodSizeLimit, (64*K)*wordSize, \
297
"Maximum size of a compiled method.") \
298
\
299
develop(bool, TraceFPUStack, false, \
300
"Trace emulation of the FPU stack (intel only)") \
301
\
302
develop(bool, TraceFPURegisterUsage, false, \
303
"Trace usage of FPU registers at start of blocks (intel only)") \
304
\
305
develop(bool, OptimizeUnsafes, true, \
306
"Optimize raw unsafe ops") \
307
\
308
develop(bool, PrintUnsafeOptimization, false, \
309
"Print optimization of raw unsafe ops") \
310
\
311
develop(intx, InstructionCountCutoff, 37000, \
312
"If GraphBuilder adds this many instructions, bails out") \
313
\
314
product_pd(intx, SafepointPollOffset, \
315
"Offset added to polling address (Intel only)") \
316
\
317
develop(bool, ComputeExactFPURegisterUsage, true, \
318
"Compute additional live set for fpu registers to simplify fpu stack merge (Intel only)") \
319
\
320
product(bool, C1ProfileCalls, true, \
321
"Profile calls when generating code for updating MDOs") \
322
\
323
product(bool, C1ProfileVirtualCalls, true, \
324
"Profile virtual calls when generating code for updating MDOs") \
325
\
326
product(bool, C1ProfileInlinedCalls, true, \
327
"Profile inlined calls when generating code for updating MDOs") \
328
\
329
product(bool, C1ProfileBranches, true, \
330
"Profile branches when generating code for updating MDOs") \
331
\
332
product(bool, C1ProfileCheckcasts, true, \
333
"Profile checkcasts when generating code for updating MDOs") \
334
\
335
product(bool, C1OptimizeVirtualCallProfiling, true, \
336
"Use CHA and exact type results at call sites when updating MDOs")\
337
\
338
product(bool, C1UpdateMethodData, trueInTiered, \
339
"Update MethodData*s in Tier1-generated code") \
340
\
341
develop(bool, PrintCFGToFile, false, \
342
"print control flow graph to a separate file during compilation") \
343
\
344
diagnostic(bool, C1PatchInvokeDynamic, true, \
345
"Patch invokedynamic appendix not known at compile time") \
346
\
347
348
349
// Read default values for c1 globals
350
351
C1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
352
353
#endif // SHARE_VM_C1_C1_GLOBALS_HPP
354
355