src/hotspot/share/gc/g1/jvmFlagConstraintsG1.hpp
author tschatzl
Wed, 17 Jul 2019 16:33:19 +0200
changeset 55722 5ee183a90e65
parent 53244 9807daeb47c4
child 58044 3277a7454dc5
permissions -rw-r--r--
8227084: Add timing information for merge heap root preparation Reviewed-by: sangheki, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49731
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49857
diff changeset
     2
 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
49731
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     4
 *
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     7
 * published by the Free Software Foundation.
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     8
 *
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    13
 * accompanied this code).
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    14
 *
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    18
 *
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    21
 * questions.
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    22
 *
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    23
 */
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    24
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49857
diff changeset
    25
#ifndef SHARE_GC_G1_JVMFLAGCONSTRAINTSG1_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49857
diff changeset
    26
#define SHARE_GC_G1_JVMFLAGCONSTRAINTSG1_HPP
49731
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    27
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    28
#include "runtime/globals.hpp"
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    29
#include "utilities/globalDefinitions.hpp"
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    30
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    31
// G1 Flag Constraints
49857
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    32
JVMFlag::Error G1RSetRegionEntriesConstraintFunc(intx value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    33
JVMFlag::Error G1RSetSparseRegionEntriesConstraintFunc(intx value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    34
JVMFlag::Error G1HeapRegionSizeConstraintFunc(size_t value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    35
JVMFlag::Error G1NewSizePercentConstraintFunc(uintx value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    36
JVMFlag::Error G1MaxNewSizePercentConstraintFunc(uintx value, bool verbose);
49731
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    37
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    38
// G1 Subconstraints
49857
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    39
JVMFlag::Error MaxGCPauseMillisConstraintFuncG1(uintx value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    40
JVMFlag::Error GCPauseIntervalMillisConstraintFuncG1(uintx value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    41
JVMFlag::Error MaxSizeForHeapAlignmentG1(const char* name, size_t value, bool verbose);
31e07291ae29 8081519: Split globals.hpp to factor out the Flag class
gziemski
parents: 49731
diff changeset
    42
JVMFlag::Error NewSizeConstraintFuncG1(size_t value, bool verbose);
49731
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    43
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    44
size_t MaxSizeForHeapAlignmentG1();
635838cb8b3a 8201168: Move GC command line constraint functions to GC specific files
stefank
parents:
diff changeset
    45
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49857
diff changeset
    46
#endif // SHARE_GC_G1_JVMFLAGCONSTRAINTSG1_HPP