author | dholmes |
Sat, 23 Jun 2018 01:32:41 -0400 | |
changeset 50735 | 2f2af62dfac7 |
parent 49902 | 3661f31c6df4 |
child 53244 | 9807daeb47c4 |
child 56508 | f67f588ebf15 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
37199
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
2 |
* Copyright (c) 2003, 2016, 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:
4450
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4450
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:
4450
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#ifndef SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP |
26 |
#define SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP |
|
27 |
||
28 |
#include "runtime/globals.hpp" |
|
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
29 |
#include "utilities/macros.hpp" |
37466 | 30 |
#if INCLUDE_JVMCI |
31 |
#include "jvmci/jvmci_globals.hpp" |
|
32 |
#endif |
|
33 |
#ifdef COMPILER1 |
|
34 |
#include "c1/c1_globals.hpp" |
|
35 |
#endif |
|
36 |
#ifdef COMPILER2 |
|
37 |
#include "opto/c2_globals.hpp" |
|
38 |
#endif |
|
7397 | 39 |
|
1 | 40 |
// Construct enum of Flag_<cmdline-arg> constants. |
41 |
||
22551 | 42 |
// Parenthesis left off in the following for the enum decl below. |
1 | 43 |
#define FLAG_MEMBER(flag) Flag_##flag |
44 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
45 |
#define RUNTIME_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
46 |
#define RUNTIME_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
47 |
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
39117 | 48 |
#define RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
49 |
#define RUNTIME_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
50 |
#define RUNTIME_MANAGEABLE_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
51 |
#define RUNTIME_PRODUCT_RW_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
52 |
#define RUNTIME_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
53 |
#define RUNTIME_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
54 |
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
55 |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
56 |
#define JVMCI_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
57 |
#define JVMCI_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
58 |
#define JVMCI_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
59 |
#define JVMCI_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
60 |
#define JVMCI_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
39117 | 61 |
#define JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
62 |
#define JVMCI_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
63 |
#define JVMCI_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
64 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
65 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
66 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 67 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
68 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) /* flag is constant */ |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
186
diff
changeset
|
69 |
#endif // _LP64 |
1 | 70 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
71 |
#define C1_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
72 |
#define C1_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
73 |
#define C1_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
39117 | 74 |
#define C1_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
75 |
#define C1_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
76 |
#define C1_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
77 |
#define C1_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 78 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
79 |
#define C2_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
80 |
#define C2_PD_PRODUCT_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
81 |
#define C2_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
39117 | 82 |
#define C2_PD_DIAGNOSTIC_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
83 |
#define C2_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
84 |
#define C2_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
85 |
#define C2_PD_DEVELOP_FLAG_MEMBER(type, name, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
86 |
#define C2_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 87 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
88 |
#define ARCH_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
89 |
#define ARCH_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
90 |
#define ARCH_EXPERIMENTAL_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
91 |
#define ARCH_DEVELOP_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
92 |
#define ARCH_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
93 |
|
1 | 94 |
typedef enum { |
49715
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
95 |
VM_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
96 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
97 |
RUNTIME_PRODUCT_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
98 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
99 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
100 |
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
101 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
102 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
103 |
RUNTIME_MANAGEABLE_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
104 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
105 |
RUNTIME_LP64_PRODUCT_FLAG_MEMBER, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
106 |
IGNORE_RANGE, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
107 |
IGNORE_CONSTRAINT, \ |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
108 |
IGNORE_WRITEABLE) |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
109 |
|
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
110 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \ |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
111 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
112 |
RUNTIME_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
113 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
114 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \ |
39117 | 115 |
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER, \ |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
116 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
117 |
IGNORE_RANGE, \ |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
118 |
IGNORE_CONSTRAINT, \ |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
119 |
IGNORE_WRITEABLE) |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
120 |
#if INCLUDE_JVMCI |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
121 |
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
122 |
JVMCI_PD_DEVELOP_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
123 |
JVMCI_PRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
124 |
JVMCI_PD_PRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
125 |
JVMCI_DIAGNOSTIC_FLAG_MEMBER, \ |
39117 | 126 |
JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER, \ |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
127 |
JVMCI_EXPERIMENTAL_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
128 |
JVMCI_NOTPRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
129 |
IGNORE_RANGE, \ |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
130 |
IGNORE_CONSTRAINT, \ |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
131 |
IGNORE_WRITEABLE) |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
132 |
#endif // INCLUDE_JVMCI |
1 | 133 |
#ifdef COMPILER1 |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
134 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
135 |
C1_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
136 |
C1_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
137 |
C1_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
138 |
C1_DIAGNOSTIC_FLAG_MEMBER, \ |
39117 | 139 |
C1_PD_DIAGNOSTIC_FLAG_MEMBER, \ |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
140 |
C1_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
141 |
IGNORE_RANGE, \ |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
142 |
IGNORE_CONSTRAINT, \ |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
143 |
IGNORE_WRITEABLE) |
1 | 144 |
#endif |
145 |
#ifdef COMPILER2 |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
146 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
147 |
C2_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
148 |
C2_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
149 |
C2_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
150 |
C2_DIAGNOSTIC_FLAG_MEMBER, \ |
39117 | 151 |
C2_PD_DIAGNOSTIC_FLAG_MEMBER, \ |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
152 |
C2_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
153 |
C2_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
154 |
IGNORE_RANGE, \ |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
155 |
IGNORE_CONSTRAINT, \ |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
156 |
IGNORE_WRITEABLE) |
1 | 157 |
#endif |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
158 |
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
159 |
ARCH_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
160 |
ARCH_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
161 |
ARCH_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
162 |
ARCH_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
163 |
IGNORE_RANGE, \ |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
164 |
IGNORE_CONSTRAINT, \ |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
165 |
IGNORE_WRITEABLE) |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
166 |
JVMFLAGS_EXT |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
167 |
NUM_JVMFlags |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
168 |
} JVMFlags; |
1 | 169 |
|
170 |
// Construct enum of Flag_<cmdline-arg>_<type> constants. |
|
171 |
||
172 |
#define FLAG_MEMBER_WITH_TYPE(flag,type) Flag_##flag##_##type |
|
173 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
174 |
#define RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
175 |
#define RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
176 |
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
39117 | 177 |
#define RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
178 |
#define RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
179 |
#define RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
180 |
#define RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
181 |
#define RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
182 |
#define RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
183 |
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 184 |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
185 |
#define JVMCI_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
186 |
#define JVMCI_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
187 |
#define JVMCI_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
188 |
#define JVMCI_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
189 |
#define JVMCI_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
39117 | 190 |
#define JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
191 |
#define JVMCI_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
192 |
#define JVMCI_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
193 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
194 |
#define C1_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
195 |
#define C1_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
196 |
#define C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
39117 | 197 |
#define C1_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
198 |
#define C1_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
199 |
#define C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
200 |
#define C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
201 |
|
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
202 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
203 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 204 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
205 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) /* flag is constant */ |
360
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
186
diff
changeset
|
206 |
#endif // _LP64 |
1 | 207 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
208 |
#define C2_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
209 |
#define C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
210 |
#define C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
39117 | 211 |
#define C2_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
212 |
#define C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
213 |
#define C2_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
214 |
#define C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
215 |
#define C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 216 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
217 |
#define ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
218 |
#define ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
219 |
#define ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
220 |
#define ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
221 |
#define ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
222 |
|
1 | 223 |
typedef enum { |
49715
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
224 |
VM_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
225 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
226 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
227 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
228 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
229 |
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
230 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
231 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
232 |
RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
233 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
234 |
RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
235 |
IGNORE_RANGE, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
236 |
IGNORE_CONSTRAINT, |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
237 |
IGNORE_WRITEABLE) |
947560700a09
8201136: Move GC flags from globals.hpp to GC specific files
stefank
parents:
47216
diff
changeset
|
238 |
|
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
239 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
240 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
241 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
242 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
243 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
39117 | 244 |
RUNTIME_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
245 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
246 |
IGNORE_RANGE, |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
247 |
IGNORE_CONSTRAINT, |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
248 |
IGNORE_WRITEABLE) |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
249 |
#if INCLUDE_JVMCI |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
250 |
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
251 |
JVMCI_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
252 |
JVMCI_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
253 |
JVMCI_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
254 |
JVMCI_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
39117 | 255 |
JVMCI_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
256 |
JVMCI_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
257 |
JVMCI_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
258 |
IGNORE_RANGE, |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
259 |
IGNORE_CONSTRAINT, |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
260 |
IGNORE_WRITEABLE) |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
261 |
#endif // INCLUDE_JVMCI |
1 | 262 |
#ifdef COMPILER1 |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
263 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
264 |
C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
265 |
C1_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
266 |
C1_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
19710
2f8ca425504e
7199175: JSR 292: C1 needs patching when invokedynamic/invokehandle call site is not linked
roland
parents:
15482
diff
changeset
|
267 |
C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
39117 | 268 |
C1_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
269 |
C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
270 |
IGNORE_RANGE, |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
271 |
IGNORE_CONSTRAINT, |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
272 |
IGNORE_WRITEABLE) |
1 | 273 |
#endif |
274 |
#ifdef COMPILER2 |
|
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
275 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
276 |
C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
277 |
C2_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
278 |
C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
279 |
C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
39117 | 280 |
C2_PD_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
281 |
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
282 |
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
283 |
IGNORE_RANGE, |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
284 |
IGNORE_CONSTRAINT, |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
285 |
IGNORE_WRITEABLE) |
1 | 286 |
#endif |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
287 |
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
288 |
ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
289 |
ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
290 |
ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
291 |
ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
292 |
IGNORE_RANGE, |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
293 |
IGNORE_CONSTRAINT, |
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37466
diff
changeset
|
294 |
IGNORE_WRITEABLE) |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
295 |
JVMFLAGSWITHTYPE_EXT |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
296 |
NUM_JVMFlagsWithType |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
297 |
} JVMFlagsWithType; |
1 | 298 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
299 |
#define FLAG_IS_DEFAULT(name) (JVMFlagEx::is_default(FLAG_MEMBER(name))) |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
300 |
#define FLAG_IS_ERGO(name) (JVMFlagEx::is_ergo(FLAG_MEMBER(name))) |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
301 |
#define FLAG_IS_CMDLINE(name) (JVMFlagEx::is_cmdline(FLAG_MEMBER(name))) |
1 | 302 |
|
303 |
#define FLAG_SET_DEFAULT(name, value) ((name) = (value)) |
|
304 |
||
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
305 |
#define FLAG_SET_CMDLINE(type, name, value) (JVMFlagEx::setOnCmdLine(FLAG_MEMBER_WITH_TYPE(name, type)), \ |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
306 |
JVMFlagEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name, type), (type)(value), JVMFlag::COMMAND_LINE)) |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
307 |
#define FLAG_SET_ERGO(type, name, value) (JVMFlagEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name, type), (type)(value), JVMFlag::ERGONOMIC)) |
37199
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
308 |
#define FLAG_SET_ERGO_IF_DEFAULT(type, name, value) \ |
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
309 |
do { \ |
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
310 |
if (FLAG_IS_DEFAULT(name)) { \ |
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
311 |
FLAG_SET_ERGO(type, name, value); \ |
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
312 |
} \ |
74703ea13069
8068579: Running with -XX:-UseParallelGC does not turn ParalleGC off
pliden
parents:
33160
diff
changeset
|
313 |
} while (0) |
1 | 314 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
315 |
// Can't put the following in JVMFlags because |
1 | 316 |
// of a circular dependency on the enum definition. |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
317 |
class JVMFlagEx : JVMFlag { |
1 | 318 |
public: |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
319 |
static JVMFlag::Error boolAtPut(JVMFlagsWithType flag, bool value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
320 |
static JVMFlag::Error intAtPut(JVMFlagsWithType flag, int value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
321 |
static JVMFlag::Error uintAtPut(JVMFlagsWithType flag, uint value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
322 |
static JVMFlag::Error intxAtPut(JVMFlagsWithType flag, intx value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
323 |
static JVMFlag::Error uintxAtPut(JVMFlagsWithType flag, uintx value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
324 |
static JVMFlag::Error uint64_tAtPut(JVMFlagsWithType flag, uint64_t value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
325 |
static JVMFlag::Error size_tAtPut(JVMFlagsWithType flag, size_t value, JVMFlag::Flags origin); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
326 |
static JVMFlag::Error doubleAtPut(JVMFlagsWithType flag, double value, JVMFlag::Flags origin); |
22194 | 327 |
// Contract: Flag will make private copy of the incoming value |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
328 |
static JVMFlag::Error ccstrAtPut(JVMFlagsWithType flag, ccstr value, JVMFlag::Flags origin); |
1 | 329 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
330 |
static bool is_default(JVMFlags flag); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
331 |
static bool is_ergo(JVMFlags flag); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
332 |
static bool is_cmdline(JVMFlags flag); |
39960
ec06b2cf8575
8048093: Explicitly setting := vs = in the -XX:+PrintFlagsFinal output
jwilhelm
parents:
39117
diff
changeset
|
333 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
334 |
static void setOnCmdLine(JVMFlagsWithType flag); |
1 | 335 |
}; |
7397 | 336 |
|
337 |
#endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP |