author | dfuchs |
Fri, 27 Apr 2018 12:29:49 +0100 | |
branch | http-client-branch |
changeset 56497 | 598e0c5b6f8c |
parent 56478 | src/hotspot/share/gc/shared/commandLineFlagConstraintsGC.hpp@90df053536e0 |
parent 49902 | src/hotspot/share/gc/shared/commandLineFlagConstraintsGC.hpp@3661f31c6df4 |
child 56532 | a594484f54db |
permissions | -rw-r--r-- |
49860
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
1 |
/* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
2 |
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
4 |
* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
8 |
* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
13 |
* accompanied this code). |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
14 |
* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
18 |
* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
21 |
* questions. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
22 |
* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
23 |
*/ |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
24 |
|
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
25 |
#ifndef SHARE_GC_SHARED_COMMANDLINEFLAGCONSTRAINTSGC_HPP |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
26 |
#define SHARE_GC_SHARED_COMMANDLINEFLAGCONSTRAINTSGC_HPP |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
27 |
|
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
28 |
#include "utilities/globalDefinitions.hpp" |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
29 |
#include "utilities/macros.hpp" |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
30 |
#if INCLUDE_ALL_GCS |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
31 |
#include "gc/cms/jvmFlagConstraintsCMS.hpp" |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
32 |
#include "gc/g1/jvmFlagConstraintsG1.hpp" |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
33 |
#include "gc/parallel/jvmFlagConstraintsParallel.hpp" |
49860
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
34 |
#endif |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
35 |
|
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
36 |
/* |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
37 |
* Here we have GC arguments constraints functions, which are called automatically |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
38 |
* whenever flag's value changes. If the constraint fails the function should return |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
39 |
* an appropriate error value. |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
40 |
*/ |
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
41 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
42 |
JVMFlag::Error ParallelGCThreadsConstraintFunc(uint value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
43 |
JVMFlag::Error ConcGCThreadsConstraintFunc(uint value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
44 |
JVMFlag::Error YoungPLABSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
45 |
JVMFlag::Error OldPLABSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
46 |
JVMFlag::Error MinHeapFreeRatioConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
47 |
JVMFlag::Error MaxHeapFreeRatioConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
48 |
JVMFlag::Error SoftRefLRUPolicyMSPerMBConstraintFunc(intx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
49 |
JVMFlag::Error MarkStackSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
50 |
JVMFlag::Error MinMetaspaceFreeRatioConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
51 |
JVMFlag::Error MaxMetaspaceFreeRatioConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
52 |
JVMFlag::Error InitialTenuringThresholdConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
53 |
JVMFlag::Error MaxTenuringThresholdConstraintFunc(uintx value, bool verbose); |
49860
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
54 |
|
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
55 |
JVMFlag::Error MaxGCPauseMillisConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
56 |
JVMFlag::Error GCPauseIntervalMillisConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
57 |
JVMFlag::Error InitialBootClassLoaderMetaspaceSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
58 |
JVMFlag::Error InitialHeapSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
59 |
JVMFlag::Error MaxHeapSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
60 |
JVMFlag::Error HeapBaseMinAddressConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
61 |
JVMFlag::Error NewSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
62 |
JVMFlag::Error MinTLABSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
63 |
JVMFlag::Error TLABSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
64 |
JVMFlag::Error TLABWasteIncrementConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
65 |
JVMFlag::Error SurvivorRatioConstraintFunc(uintx value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
66 |
JVMFlag::Error MetaspaceSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
67 |
JVMFlag::Error MaxMetaspaceSizeConstraintFunc(size_t value, bool verbose); |
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
68 |
JVMFlag::Error SurvivorAlignmentInBytesConstraintFunc(intx value, bool verbose); |
49860
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
69 |
|
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
70 |
// Internal |
49902
3661f31c6df4
8202150: [REDO] Split globals.hpp to factor out the Flag class
gziemski
parents:
49860
diff
changeset
|
71 |
JVMFlag::Error MaxPLABSizeBounds(const char* name, size_t value, bool verbose); |
49860
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
72 |
|
ca5216a2a2cc
8202151: [BACKOUT] Split globals.hpp to factor out the Flag class
gziemski
parents:
diff
changeset
|
73 |
#endif // SHARE_GC_SHARED_COMMANDLINEFLAGCONSTRAINTSGC_HPP |