author | coleenp |
Wed, 28 Oct 2015 09:47:23 -0400 | |
changeset 33611 | 9abd65805e19 |
parent 33160 | c59f1676d27e |
child 37199 | 74703ea13069 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
2 |
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
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" |
7397 | 30 |
#include "utilities/top.hpp" |
31 |
||
1 | 32 |
// Construct enum of Flag_<cmdline-arg> constants. |
33 |
||
22551 | 34 |
// Parenthesis left off in the following for the enum decl below. |
1 | 35 |
#define FLAG_MEMBER(flag) Flag_##flag |
36 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
37 |
#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
|
38 |
#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
|
39 |
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
40 |
#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
|
41 |
#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
|
42 |
#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
|
43 |
#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
|
44 |
#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
|
45 |
#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
|
46 |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
47 |
#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
|
48 |
#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
|
49 |
#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
|
50 |
#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
|
51 |
#define JVMCI_DIAGNOSTIC_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
52 |
#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
|
53 |
#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
|
54 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
55 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
56 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 57 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
58 |
#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
|
59 |
#endif // _LP64 |
1 | 60 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
61 |
#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
|
62 |
#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
|
63 |
#define C1_DIAGNOSTIC_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
|
64 |
#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
|
65 |
#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
|
66 |
#define C1_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 67 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
68 |
#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
|
69 |
#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
|
70 |
#define C2_DIAGNOSTIC_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
|
71 |
#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
|
72 |
#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
|
73 |
#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
|
74 |
#define C2_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 75 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
76 |
#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
|
77 |
#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
|
78 |
#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
|
79 |
#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
|
80 |
#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
|
81 |
|
1 | 82 |
typedef enum { |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
83 |
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
84 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
85 |
RUNTIME_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
86 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
87 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
88 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
89 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
90 |
RUNTIME_MANAGEABLE_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
91 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
92 |
RUNTIME_LP64_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
93 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
94 |
IGNORE_CONSTRAINT) |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
95 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
96 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
97 |
RUNTIME_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
98 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
99 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
100 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
101 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
102 |
IGNORE_CONSTRAINT) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
103 |
#if INCLUDE_ALL_GCS |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
104 |
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
105 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
106 |
RUNTIME_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
107 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
108 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
109 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
110 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
111 |
RUNTIME_MANAGEABLE_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
112 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
113 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
114 |
IGNORE_CONSTRAINT) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
115 |
#endif // INCLUDE_ALL_GCS |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
116 |
#if INCLUDE_JVMCI |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
117 |
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
118 |
JVMCI_PD_DEVELOP_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
119 |
JVMCI_PRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
120 |
JVMCI_PD_PRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
121 |
JVMCI_DIAGNOSTIC_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
122 |
JVMCI_EXPERIMENTAL_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
123 |
JVMCI_NOTPRODUCT_FLAG_MEMBER, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
124 |
IGNORE_RANGE, \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
125 |
IGNORE_CONSTRAINT) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
126 |
#endif // INCLUDE_JVMCI |
1 | 127 |
#ifdef COMPILER1 |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
128 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
129 |
C1_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
130 |
C1_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
131 |
C1_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
132 |
C1_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
133 |
C1_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
134 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
135 |
IGNORE_CONSTRAINT) |
1 | 136 |
#endif |
137 |
#ifdef COMPILER2 |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
138 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
139 |
C2_PD_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
140 |
C2_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
141 |
C2_PD_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
142 |
C2_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
143 |
C2_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
144 |
C2_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
145 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
146 |
IGNORE_CONSTRAINT) |
1 | 147 |
#endif |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
148 |
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
149 |
ARCH_PRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
150 |
ARCH_DIAGNOSTIC_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
151 |
ARCH_EXPERIMENTAL_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
152 |
ARCH_NOTPRODUCT_FLAG_MEMBER, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
153 |
IGNORE_RANGE, \ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
154 |
IGNORE_CONSTRAINT) |
11183
a81bb5c041d3
7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
11167
diff
changeset
|
155 |
COMMANDLINEFLAG_EXT |
1 | 156 |
NUM_CommandLineFlag |
157 |
} CommandLineFlag; |
|
158 |
||
159 |
// Construct enum of Flag_<cmdline-arg>_<type> constants. |
|
160 |
||
161 |
#define FLAG_MEMBER_WITH_TYPE(flag,type) Flag_##flag##_##type |
|
162 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
163 |
#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
|
164 |
#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
|
165 |
#define RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
166 |
#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
|
167 |
#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
|
168 |
#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
|
169 |
#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
|
170 |
#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
|
171 |
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 172 |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
173 |
#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
|
174 |
#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
|
175 |
#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
|
176 |
#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
|
177 |
#define JVMCI_DIAGNOSTIC_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
|
178 |
#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
|
179 |
#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
|
180 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
181 |
#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
|
182 |
#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
|
183 |
#define C1_DIAGNOSTIC_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
|
184 |
#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
|
185 |
#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
|
186 |
#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
|
187 |
|
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
188 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
189 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 190 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
191 |
#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
|
192 |
#endif // _LP64 |
1 | 193 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
194 |
#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
|
195 |
#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
|
196 |
#define C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
197 |
#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
|
198 |
#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
|
199 |
#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
|
200 |
#define C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 201 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
202 |
#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
|
203 |
#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
|
204 |
#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
|
205 |
#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
|
206 |
#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
|
207 |
|
1 | 208 |
typedef enum { |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
209 |
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
210 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
211 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
212 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
1 | 213 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
214 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
1 | 215 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
216 |
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
|
217 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
218 |
RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
219 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
220 |
IGNORE_CONSTRAINT) |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
221 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
222 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
223 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
224 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
225 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
226 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
227 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
228 |
IGNORE_CONSTRAINT) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
229 |
#if INCLUDE_ALL_GCS |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
230 |
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
231 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
232 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
233 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
234 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
235 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
236 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
237 |
RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
238 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
239 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
240 |
IGNORE_CONSTRAINT) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
241 |
#endif // INCLUDE_ALL_GCS |
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
242 |
#if INCLUDE_JVMCI |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
243 |
JVMCI_FLAGS(JVMCI_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
244 |
JVMCI_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
245 |
JVMCI_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
246 |
JVMCI_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
247 |
JVMCI_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
248 |
JVMCI_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
249 |
JVMCI_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
250 |
IGNORE_RANGE, |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
251 |
IGNORE_CONSTRAINT) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
31371
diff
changeset
|
252 |
#endif // INCLUDE_JVMCI |
1 | 253 |
#ifdef COMPILER1 |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
254 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
255 |
C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
256 |
C1_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
257 |
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
|
258 |
C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
259 |
C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
260 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
261 |
IGNORE_CONSTRAINT) |
1 | 262 |
#endif |
263 |
#ifdef COMPILER2 |
|
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
264 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
265 |
C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
266 |
C2_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
267 |
C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
268 |
C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
269 |
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
270 |
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
271 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
272 |
IGNORE_CONSTRAINT) |
1 | 273 |
#endif |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
274 |
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
|
275 |
ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
276 |
ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
277 |
ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
278 |
ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
279 |
IGNORE_RANGE, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
280 |
IGNORE_CONSTRAINT) |
11183
a81bb5c041d3
7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
11167
diff
changeset
|
281 |
COMMANDLINEFLAGWITHTYPE_EXT |
1 | 282 |
NUM_CommandLineFlagWithType |
283 |
} CommandLineFlagWithType; |
|
284 |
||
285 |
#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
|
286 |
#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
|
287 |
#define FLAG_IS_CMDLINE(name) (CommandLineFlagsEx::is_cmdline(FLAG_MEMBER(name))) |
1 | 288 |
|
289 |
#define FLAG_SET_DEFAULT(name, value) ((name) = (value)) |
|
290 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
291 |
#define FLAG_SET_CMDLINE(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::COMMAND_LINE)) |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
292 |
#define FLAG_SET_ERGO(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::ERGONOMIC)) |
1 | 293 |
|
294 |
// Can't put the following in CommandLineFlags because |
|
295 |
// of a circular dependency on the enum definition. |
|
296 |
class CommandLineFlagsEx : CommandLineFlags { |
|
297 |
public: |
|
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
298 |
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
|
299 |
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
|
300 |
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
|
301 |
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
|
302 |
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
|
303 |
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
|
304 |
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
|
305 |
static Flag::Error doubleAtPut(CommandLineFlagWithType flag, double value, Flag::Flags origin); |
22194 | 306 |
// 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
|
307 |
static Flag::Error ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin); |
1 | 308 |
|
309 |
static bool is_default(CommandLineFlag flag); |
|
186
32e6c95f8d9b
6557851: CMS: ergonomics defaults are not set with FLAG_SET_ERGO
jmasa
parents:
1
diff
changeset
|
310 |
static bool is_ergo(CommandLineFlag flag); |
32e6c95f8d9b
6557851: CMS: ergonomics defaults are not set with FLAG_SET_ERGO
jmasa
parents:
1
diff
changeset
|
311 |
static bool is_cmdline(CommandLineFlag flag); |
1 | 312 |
}; |
7397 | 313 |
|
314 |
#endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP |