author | gziemski |
Mon, 23 Apr 2018 10:59:39 -0500 | |
changeset 49857 | 31e07291ae29 |
parent 47881 | src/hotspot/share/runtime/commandLineFlagConstraintsRuntime.hpp@0ce0ac68ace7 |
permissions | -rw-r--r-- |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
1 |
/* |
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
4 |
* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
8 |
* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
13 |
* accompanied this code). |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
14 |
* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
18 |
* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
21 |
* questions. |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
22 |
* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
23 |
*/ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
24 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
25 |
#ifndef SHARE_VM_RUNTIME_JVMFLAGCONSTRAINTSRUNTIME_HPP |
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
26 |
#define SHARE_VM_RUNTIME_JVMFLAGCONSTRAINTSRUNTIME_HPP |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
27 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
28 |
#include "runtime/flags/jvmFlag.hpp" |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
29 |
|
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
30 |
/* |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
31 |
* Here we have runtime arguments constraints functions, which are called automatically |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
32 |
* whenever flag's value changes. If the constraint fails the function should return |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
33 |
* an appropriate error value. |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
34 |
*/ |
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
35 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
36 |
JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(intx value, bool verbose); |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
37 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
38 |
JVMFlag::Error ContendedPaddingWidthConstraintFunc(intx value, bool verbose); |
31371
311143309e73
8122937: [JEP 245] Validate JVM Command-Line Flag Arguments.
gziemski
parents:
diff
changeset
|
39 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
40 |
JVMFlag::Error BiasedLockingBulkRebiasThresholdFunc(intx value, bool verbose); |
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
41 |
JVMFlag::Error BiasedLockingStartupDelayFunc(intx value, bool verbose); |
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
42 |
JVMFlag::Error BiasedLockingBulkRevokeThresholdFunc(intx value, bool verbose); |
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
43 |
JVMFlag::Error BiasedLockingDecayTimeFunc(intx value, bool verbose); |
33222
e0a340f4ab6e
8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents:
32351
diff
changeset
|
44 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
45 |
JVMFlag::Error PerfDataSamplingIntervalFunc(intx value, bool verbose); |
33222
e0a340f4ab6e
8078556: Runtime: implement ranges (optionally constraints) for those flags that have them missing.
gziemski
parents:
32351
diff
changeset
|
46 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
47 |
JVMFlag::Error ThreadLocalHandshakesConstraintFunc(bool value, bool verbose); |
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
48 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
49 |
|
49857
31e07291ae29
8081519: Split globals.hpp to factor out the Flag class
gziemski
parents:
47881
diff
changeset
|
50 |
#endif /* SHARE_VM_RUNTIME_JVMFLAGCONSTRAINTSRUNTIME_HPP */ |