author | jwilhelm |
Thu, 23 Jan 2014 14:47:23 +0100 | |
changeset 22551 | 9bf46d16dcc6 |
parent 22248 | 34f19df648a2 |
child 25959 | 6c11a6272b60 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
22234
da823d78ad65
8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents:
20288
diff
changeset
|
2 |
* Copyright (c) 2003, 2013, 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 |
|
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
47 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
48 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 49 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
50 |
#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
|
51 |
#endif // _LP64 |
1 | 52 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
53 |
#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
|
54 |
#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
|
55 |
#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
|
56 |
#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
|
57 |
#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
|
58 |
#define C1_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 59 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
60 |
#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
|
61 |
#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
|
62 |
#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
|
63 |
#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
|
64 |
#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
|
65 |
#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
|
66 |
#define C2_NOTPRODUCT_FLAG_MEMBER(type, name, value, doc) FLAG_MEMBER(name), |
1 | 67 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
68 |
#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
|
69 |
#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
|
70 |
#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
|
71 |
#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
|
72 |
#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
|
73 |
|
1 | 74 |
typedef enum { |
11167
3931428f62ae
7116730: Revert 7116481: Commercial features in Hotspot must be gated by a switch
phh
parents:
11166
diff
changeset
|
75 |
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, RUNTIME_PD_DEVELOP_FLAG_MEMBER, RUNTIME_PRODUCT_FLAG_MEMBER, RUNTIME_PD_PRODUCT_FLAG_MEMBER, RUNTIME_DIAGNOSTIC_FLAG_MEMBER, RUNTIME_EXPERIMENTAL_FLAG_MEMBER, RUNTIME_NOTPRODUCT_FLAG_MEMBER, RUNTIME_MANAGEABLE_FLAG_MEMBER, RUNTIME_PRODUCT_RW_FLAG_MEMBER, RUNTIME_LP64_PRODUCT_FLAG_MEMBER) |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
76 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, RUNTIME_PD_DEVELOP_FLAG_MEMBER, RUNTIME_PRODUCT_FLAG_MEMBER, RUNTIME_PD_PRODUCT_FLAG_MEMBER, RUNTIME_DIAGNOSTIC_FLAG_MEMBER, RUNTIME_NOTPRODUCT_FLAG_MEMBER) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
77 |
#if INCLUDE_ALL_GCS |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
78 |
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER, RUNTIME_PD_DEVELOP_FLAG_MEMBER, RUNTIME_PRODUCT_FLAG_MEMBER, RUNTIME_PD_PRODUCT_FLAG_MEMBER, RUNTIME_DIAGNOSTIC_FLAG_MEMBER, RUNTIME_EXPERIMENTAL_FLAG_MEMBER, RUNTIME_NOTPRODUCT_FLAG_MEMBER, RUNTIME_MANAGEABLE_FLAG_MEMBER, RUNTIME_PRODUCT_RW_FLAG_MEMBER) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
79 |
#endif // INCLUDE_ALL_GCS |
1 | 80 |
#ifdef COMPILER1 |
19710
2f8ca425504e
7199175: JSR 292: C1 needs patching when invokedynamic/invokehandle call site is not linked
roland
parents:
15482
diff
changeset
|
81 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER, C1_PD_DEVELOP_FLAG_MEMBER, C1_PRODUCT_FLAG_MEMBER, C1_PD_PRODUCT_FLAG_MEMBER, C1_DIAGNOSTIC_FLAG_MEMBER, C1_NOTPRODUCT_FLAG_MEMBER) |
1 | 82 |
#endif |
83 |
#ifdef COMPILER2 |
|
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
84 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER, C2_PD_DEVELOP_FLAG_MEMBER, C2_PRODUCT_FLAG_MEMBER, C2_PD_PRODUCT_FLAG_MEMBER, C2_DIAGNOSTIC_FLAG_MEMBER, C2_EXPERIMENTAL_FLAG_MEMBER, C2_NOTPRODUCT_FLAG_MEMBER) |
1 | 85 |
#endif |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
86 |
ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER, ARCH_PRODUCT_FLAG_MEMBER, ARCH_DIAGNOSTIC_FLAG_MEMBER, ARCH_EXPERIMENTAL_FLAG_MEMBER, ARCH_NOTPRODUCT_FLAG_MEMBER) |
11183
a81bb5c041d3
7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
11167
diff
changeset
|
87 |
COMMANDLINEFLAG_EXT |
1 | 88 |
NUM_CommandLineFlag |
89 |
} CommandLineFlag; |
|
90 |
||
91 |
// Construct enum of Flag_<cmdline-arg>_<type> constants. |
|
92 |
||
93 |
#define FLAG_MEMBER_WITH_TYPE(flag,type) Flag_##flag##_##type |
|
94 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
95 |
#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
|
96 |
#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
|
97 |
#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
|
98 |
#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
|
99 |
#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
|
100 |
#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
|
101 |
#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
|
102 |
#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
|
103 |
#define RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 104 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
105 |
#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
|
106 |
#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
|
107 |
#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
|
108 |
#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
|
109 |
#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
|
110 |
#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
|
111 |
|
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
112 |
#ifdef _LP64 |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
113 |
#define RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 114 |
#else |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
115 |
#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
|
116 |
#endif // _LP64 |
1 | 117 |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
118 |
#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
|
119 |
#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
|
120 |
#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
|
121 |
#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
|
122 |
#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
|
123 |
#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
|
124 |
#define C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE(type, name, value, doc) FLAG_MEMBER_WITH_TYPE(name,type), |
1 | 125 |
|
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
126 |
#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
|
127 |
#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
|
128 |
#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
|
129 |
#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
|
130 |
#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
|
131 |
|
1 | 132 |
typedef enum { |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
133 |
RUNTIME_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
134 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
135 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
136 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
1 | 137 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
138 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
1 | 139 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
140 |
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
|
141 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE, |
21d113ecbf6a
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
186
diff
changeset
|
142 |
RUNTIME_LP64_PRODUCT_FLAG_MEMBER_WITH_TYPE) |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
143 |
RUNTIME_OS_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
144 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
145 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
146 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
147 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
148 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
149 |
#if INCLUDE_ALL_GCS |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
150 |
G1_FLAGS(RUNTIME_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
151 |
RUNTIME_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
152 |
RUNTIME_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
153 |
RUNTIME_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
154 |
RUNTIME_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
1382
fa3de4068282
6618726: Introduce -XX:+UnlockExperimentalVMOptions flag
ysr
parents:
1374
diff
changeset
|
155 |
RUNTIME_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
156 |
RUNTIME_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
157 |
RUNTIME_MANAGEABLE_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
158 |
RUNTIME_PRODUCT_RW_FLAG_MEMBER_WITH_TYPE) |
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
13975
diff
changeset
|
159 |
#endif // INCLUDE_ALL_GCS |
1 | 160 |
#ifdef COMPILER1 |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
161 |
C1_FLAGS(C1_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
162 |
C1_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
163 |
C1_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
164 |
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
|
165 |
C1_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
166 |
C1_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE) |
1 | 167 |
#endif |
168 |
#ifdef COMPILER2 |
|
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
169 |
C2_FLAGS(C2_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
170 |
C2_PD_DEVELOP_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
171 |
C2_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
172 |
C2_PD_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
173 |
C2_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
4450
6d700b859b3e
6892658: C2 should optimize some stringbuilder patterns
never
parents:
4434
diff
changeset
|
174 |
C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
1374
4c24294029a9
6711316: Open source the Garbage-First garbage collector
ysr
parents:
360
diff
changeset
|
175 |
C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE) |
1 | 176 |
#endif |
13521
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
177 |
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
|
178 |
ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
179 |
ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
180 |
ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE, |
97a23be06f4e
6677625: Move platform specific flags from globals.hpp to globals_<arch>.hpp
twisti
parents:
11183
diff
changeset
|
181 |
ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE) |
11183
a81bb5c041d3
7117389: Add a framework for vendor-specific command line switch extensions to Hotspot
phh
parents:
11167
diff
changeset
|
182 |
COMMANDLINEFLAGWITHTYPE_EXT |
1 | 183 |
NUM_CommandLineFlagWithType |
184 |
} CommandLineFlagWithType; |
|
185 |
||
186 |
#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
|
187 |
#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
|
188 |
#define FLAG_IS_CMDLINE(name) (CommandLineFlagsEx::is_cmdline(FLAG_MEMBER(name))) |
1 | 189 |
|
190 |
#define FLAG_SET_DEFAULT(name, value) ((name) = (value)) |
|
191 |
||
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
192 |
#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
|
193 |
#define FLAG_SET_ERGO(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::ERGONOMIC)) |
1 | 194 |
|
195 |
// Can't put the following in CommandLineFlags because |
|
196 |
// of a circular dependency on the enum definition. |
|
197 |
class CommandLineFlagsEx : CommandLineFlags { |
|
198 |
public: |
|
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
199 |
static void boolAtPut(CommandLineFlagWithType flag, bool value, Flag::Flags origin); |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
200 |
static void intxAtPut(CommandLineFlagWithType flag, intx value, Flag::Flags origin); |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
201 |
static void uintxAtPut(CommandLineFlagWithType flag, uintx value, Flag::Flags origin); |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
202 |
static void uint64_tAtPut(CommandLineFlagWithType flag, uint64_t value, Flag::Flags origin); |
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
203 |
static void doubleAtPut(CommandLineFlagWithType flag, double value, Flag::Flags origin); |
22194 | 204 |
// Contract: Flag will make private copy of the incoming value |
20288
e2d549f40de9
8024545: make develop and notproduct flag values available in product builds
twisti
parents:
19710
diff
changeset
|
205 |
static void ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin); |
1 | 206 |
|
207 |
static bool is_default(CommandLineFlag flag); |
|
186
32e6c95f8d9b
6557851: CMS: ergonomics defaults are not set with FLAG_SET_ERGO
jmasa
parents:
1
diff
changeset
|
208 |
static bool is_ergo(CommandLineFlag flag); |
32e6c95f8d9b
6557851: CMS: ergonomics defaults are not set with FLAG_SET_ERGO
jmasa
parents:
1
diff
changeset
|
209 |
static bool is_cmdline(CommandLineFlag flag); |
1 | 210 |
}; |
7397 | 211 |
|
212 |
#endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP |