comparison src/share/vm/jvmci/jvmci_globals.hpp @ 22495:740feb10d15a

rename jvmciGlobals to be consistent with c1_globals and c2_globals
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Mon, 31 Aug 2015 11:13:32 -0700
parents src/share/vm/jvmci/jvmciGlobals.hpp@da68ca58b271
children 8750eddf726f
comparison
equal deleted inserted replaced
22494:88ab6f037ef2 22495:740feb10d15a
1 /*
2 * Copyright (c) 2000, 2012, 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_JVMCI_JVMCI_GLOBALS_HPP
26 #define SHARE_VM_JVMCI_JVMCI_GLOBALS_HPP
27
28 #include "runtime/globals.hpp"
29 #ifdef TARGET_ARCH_x86
30 # include "jvmci_globals_x86.hpp"
31 #endif
32 #ifdef TARGET_ARCH_sparc
33 # include "jvmci_globals_sparc.hpp"
34 #endif
35 #ifdef TARGET_ARCH_arm
36 # include "jvmci_globals_arm.hpp"
37 #endif
38 #ifdef TARGET_ARCH_ppc
39 # include "jvmci_globals_ppc.hpp"
40 #endif
41
42 //
43 // Defines all global flags used by the JVMCI compiler. Only flags that need
44 // to be accessible to the JVMCI C++ code should be defined here. All other
45 // JVMCI flags should be defined in JVMCIOptions.java.
46 //
47 #define JVMCI_FLAGS(develop, develop_pd, product, product_pd, notproduct) \
48 \
49 product(bool, DebugJVMCI, true, \
50 "Enable JVMTI for the compiler thread") \
51 \
52 product(bool, UseJVMCIClassLoader, true, \
53 "Load JVMCI classes with separate class loader") \
54 \
55 product(ccstr, JVMCIServicesDir, NULL, \
56 "Alternate directory to use for JVMCI services") \
57 \
58 COMPILERJVMCI_PRESENT(product(bool, BootstrapJVMCI, false, \
59 "Bootstrap JVMCI before running Java main method")) \
60 \
61 COMPILERJVMCI_PRESENT(product(bool, PrintBootstrap, true, \
62 "Print JVMCI bootstrap progress and summary")) \
63 \
64 COMPILERJVMCI_PRESENT(product(intx, JVMCIThreads, 1, \
65 "Force number of JVMCI compiler threads to use")) \
66 \
67 COMPILERJVMCI_PRESENT(product(intx, JVMCIHostThreads, 1, \
68 "Force number of compiler threads for JVMCI host compiler")) \
69 \
70 JVMCI_ONLY(product(bool, CodeInstallSafepointChecks, true, \
71 "Perform explicit safepoint checks while installing code")) \
72 \
73 NOT_COMPILER2(product_pd(intx, MaxVectorSize, \
74 "Max vector size in bytes, " \
75 "actual size could be less depending on elements type")) \
76 \
77 NOT_COMPILER2(product(bool, ReduceInitialCardMarks, true, \
78 "Defer write barriers of young objects")) \
79 \
80 product(intx, TraceJVMCI, 0, \
81 "Trace level for JVMCI: " \
82 "1 means emit messages for each CompilerToVM call," \
83 "levels greater than one provide progressively greater detail") \
84 \
85 product(intx, JVMCICounterSize, 0, \
86 "Reserved size for benchmark counters") \
87 \
88 product(bool, JVMCICountersExcludeCompiler, true, \
89 "Exclude JVMCI compiler threads from benchmark counters") \
90 \
91 product(bool, JVMCIHProfEnabled, false, \
92 "Is Heap Profiler enabled") \
93 \
94 product(bool, JVMCICompileWithC1Only, true, \
95 "Only compile JVMCI classes with C1") \
96 \
97 product(bool, JVMCICompileAppFirst, false, \
98 "Prioritize application compilations over JVMCI compilations") \
99 \
100 develop(bool, JVMCIUseFastLocking, true, \
101 "Use fast inlined locking code") \
102 \
103 develop(bool, JVMCIUseFastNewTypeArray, true, \
104 "Use fast inlined type array allocation") \
105 \
106 develop(bool, JVMCIUseFastNewObjectArray, true, \
107 "Use fast inlined object array allocation") \
108 \
109 product(intx, JVMCINMethodSizeLimit, (80*K)*wordSize, \
110 "Maximum size of a compiled method.") \
111 \
112 notproduct(bool, JVMCIPrintSimpleStubs, false, \
113 "Print simple JVMCI stubs") \
114 \
115 develop(bool, TraceUncollectedSpeculations, false, \
116 "Print message when a failed speculation was not collected") \
117
118
119 // Read default values for JVMCI globals
120
121 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG)
122
123 #endif // SHARE_VM_JVMCI_JVMCI_GLOBALS_HPP