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