author | mr |
Tue, 29 Oct 2019 13:52:04 -0700 | |
changeset 58850 | f4290bf1cc21 |
parent 58044 | 3277a7454dc5 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
49163
580bb0b85f63
8198554: Add fuzzy matching for log levels and tags when parsing -Xlog
mlarsson
parents:
47765
diff
changeset
|
2 |
* Copyright (c) 1997, 2018, 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:
4579
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4579
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:
4579
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
7397 | 25 |
#include "precompiled.hpp" |
50113 | 26 |
#include "jfr/jfrEvents.hpp" |
47765
b7c7428eaab9
8189610: Reconcile jvm.h and all jvm_md.h between java.base and hotspot
coleenp
parents:
47687
diff
changeset
|
27 |
#include "jvm.h" |
7397 | 28 |
#include "memory/allocation.inline.hpp" |
29 |
#include "oops/oop.inline.hpp" |
|
30 |
#include "runtime/arguments.hpp" |
|
31 |
#include "runtime/globals.hpp" |
|
32 |
#include "runtime/globals_extension.hpp" |
|
54982 | 33 |
#include "runtime/globals_shared.hpp" |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
34 |
#include "runtime/flags/jvmFlagConstraintList.hpp" |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
35 |
#include "runtime/flags/jvmFlagWriteableList.hpp" |
27471 | 36 |
#include "runtime/os.hpp" |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
31236
diff
changeset
|
37 |
#include "runtime/sharedRuntime.hpp" |
38273
2634194d7555
8073500: Prevent certain commercial flags from being changed at runtime
gziemski
parents:
37491
diff
changeset
|
38 |
#include "utilities/defaultStream.hpp" |
30764 | 39 |
#include "utilities/macros.hpp" |
7397 | 40 |
#include "utilities/ostream.hpp" |
49163
580bb0b85f63
8198554: Add fuzzy matching for log levels and tags when parsing -Xlog
mlarsson
parents:
47765
diff
changeset
|
41 |
#include "utilities/stringUtils.hpp" |
1 | 42 |
|
54982 | 43 |
// Implementation macros |
44 |
#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; |
|
45 |
#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; |
|
46 |
#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; |
|
47 |
#define MATERIALIZE_PD_DIAGNOSTIC_FLAG(type, name, doc) type name = pd_##name; |
|
48 |
#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; |
|
49 |
#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; |
|
50 |
#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; |
|
51 |
#ifdef PRODUCT |
|
52 |
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) |
|
53 |
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) |
|
54 |
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) |
|
55 |
#else |
|
56 |
#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; |
|
57 |
#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; |
|
58 |
#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; |
|
59 |
#endif // PRODUCT |
|
60 |
#ifdef _LP64 |
|
61 |
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; |
|
62 |
#else |
|
63 |
#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ |
|
64 |
#endif // _LP64 |
|
1 | 65 |
|
66 |
||
54982 | 67 |
ALL_FLAGS(MATERIALIZE_DEVELOPER_FLAG, \ |
68 |
MATERIALIZE_PD_DEVELOPER_FLAG, \ |
|
69 |
MATERIALIZE_PRODUCT_FLAG, \ |
|
70 |
MATERIALIZE_PD_PRODUCT_FLAG, \ |
|
71 |
MATERIALIZE_DIAGNOSTIC_FLAG, \ |
|
72 |
MATERIALIZE_PD_DIAGNOSTIC_FLAG, \ |
|
73 |
MATERIALIZE_EXPERIMENTAL_FLAG, \ |
|
74 |
MATERIALIZE_NOTPRODUCT_FLAG, \ |
|
75 |
MATERIALIZE_MANAGEABLE_FLAG, \ |
|
76 |
MATERIALIZE_PRODUCT_RW_FLAG, \ |
|
77 |
MATERIALIZE_LP64_PRODUCT_FLAG, \ |
|
78 |
IGNORE_RANGE, \ |
|
79 |
IGNORE_CONSTRAINT, \ |
|
80 |
IGNORE_WRITEABLE) |