55767
|
1 |
/*
|
56350
|
2 |
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
|
55767
|
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 |
*
|
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
20 |
* or visit www.oracle.com if you need additional information or have any
|
|
21 |
* questions.
|
|
22 |
*
|
|
23 |
*/
|
|
24 |
|
|
25 |
#ifndef SHARE_VM_GC_EPSILON_GLOBALS_HPP
|
|
26 |
#define SHARE_VM_GC_EPSILON_GLOBALS_HPP
|
|
27 |
|
|
28 |
#include "runtime/globals.hpp"
|
|
29 |
//
|
|
30 |
// Defines all globals flags used by the Epsilon GC.
|
|
31 |
//
|
|
32 |
|
|
33 |
#define EPSILON_FLAGS(develop, \
|
|
34 |
develop_pd, \
|
|
35 |
product, \
|
|
36 |
product_pd, \
|
|
37 |
diagnostic, \
|
|
38 |
diagnostic_pd, \
|
|
39 |
experimental, \
|
|
40 |
notproduct, \
|
|
41 |
manageable, \
|
|
42 |
product_rw, \
|
|
43 |
range, \
|
|
44 |
constraint, \
|
|
45 |
writeable) \
|
|
46 |
\
|
55979
|
47 |
experimental(size_t, EpsilonPrintHeapStep, 100, \
|
|
48 |
"Print heap occupancy stats with this number of steps. " \
|
|
49 |
"0 turns the printing off. ") \
|
|
50 |
range(0, max_intx) \
|
|
51 |
\
|
|
52 |
experimental(size_t, EpsilonUpdateCountersStep, 1 * M, \
|
|
53 |
"Update heap heap occupancy counters after allocating this much " \
|
|
54 |
"memory. Higher values would make allocations faster at " \
|
|
55 |
"the expense of lower resolution in heap counters. ") \
|
|
56 |
range(1, max_intx) \
|
|
57 |
\
|
55767
|
58 |
experimental(size_t, EpsilonMaxTLABSize, 4 * M, \
|
|
59 |
"Max TLAB size to use with Epsilon GC. Larger value improves " \
|
|
60 |
"performance at the expense of per-thread memory waste. This " \
|
|
61 |
"asks TLAB machinery to cap TLAB sizes at this value") \
|
|
62 |
range(1, max_intx) \
|
|
63 |
\
|
|
64 |
experimental(size_t, EpsilonMinHeapExpand, 128 * M, \
|
|
65 |
"Min expansion step for heap. Larger value improves performance " \
|
|
66 |
"at the potential expense of memory waste.") \
|
|
67 |
range(1, max_intx)
|
|
68 |
|
|
69 |
EPSILON_FLAGS(DECLARE_DEVELOPER_FLAG, \
|
|
70 |
DECLARE_PD_DEVELOPER_FLAG, \
|
|
71 |
DECLARE_PRODUCT_FLAG, \
|
|
72 |
DECLARE_PD_PRODUCT_FLAG, \
|
|
73 |
DECLARE_DIAGNOSTIC_FLAG, \
|
|
74 |
DECLARE_PD_DIAGNOSTIC_FLAG, \
|
|
75 |
DECLARE_EXPERIMENTAL_FLAG, \
|
|
76 |
DECLARE_NOTPRODUCT_FLAG, \
|
|
77 |
DECLARE_MANAGEABLE_FLAG, \
|
|
78 |
DECLARE_PRODUCT_RW_FLAG, \
|
|
79 |
IGNORE_RANGE, \
|
|
80 |
IGNORE_CONSTRAINT, \
|
|
81 |
IGNORE_WRITEABLE)
|
|
82 |
|
|
83 |
#endif // SHARE_VM_GC_EPSILON_GLOBALS_HPP
|