src/share/vm/gc_implementation/g1/g1_globals.hpp

Sat, 07 Nov 2020 10:30:02 +0800

author
aoqi
date
Sat, 07 Nov 2020 10:30:02 +0800
changeset 10026
8c95980d0b66
parent 7994
04ff2f6cd0eb
permissions
-rw-r--r--

Added tag mips-jdk8u275-b01 for changeset d3b4d62f391f

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation.
aoqi@0 8 *
aoqi@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 12 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 13 * accompanied this code).
aoqi@0 14 *
aoqi@0 15 * You should have received a copy of the GNU General Public License version
aoqi@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 18 *
aoqi@0 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 20 * or visit www.oracle.com if you need additional information or have any
aoqi@0 21 * questions.
aoqi@0 22 *
aoqi@0 23 */
aoqi@0 24
aoqi@0 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1_GLOBALS_HPP
aoqi@0 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1_GLOBALS_HPP
aoqi@0 27
aoqi@0 28 #include "runtime/globals.hpp"
aoqi@0 29 //
aoqi@0 30 // Defines all globals flags used by the garbage-first compiler.
aoqi@0 31 //
aoqi@0 32
aoqi@0 33 #define G1_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw) \
aoqi@0 34 \
aoqi@0 35 product(uintx, G1ConfidencePercent, 50, \
aoqi@0 36 "Confidence level for MMU/pause predictions") \
aoqi@0 37 \
aoqi@0 38 develop(intx, G1MarkingOverheadPercent, 0, \
aoqi@0 39 "Overhead of concurrent marking") \
aoqi@0 40 \
aoqi@0 41 develop(intx, G1MarkingVerboseLevel, 0, \
aoqi@0 42 "Level (0-4) of verboseness of the marking code") \
aoqi@0 43 \
aoqi@0 44 develop(bool, G1PrintReachableAtInitialMark, false, \
aoqi@0 45 "Reachable object dump at the initial mark pause") \
aoqi@0 46 \
aoqi@0 47 develop(bool, G1VerifyDuringGCPrintReachable, false, \
aoqi@0 48 "If conc mark verification fails, dump reachable objects") \
aoqi@0 49 \
aoqi@0 50 develop(ccstr, G1PrintReachableBaseFile, NULL, \
aoqi@0 51 "The base file name for the reachable object dumps") \
aoqi@0 52 \
aoqi@0 53 develop(bool, G1TraceMarkStackOverflow, false, \
aoqi@0 54 "If true, extra debugging code for CM restart for ovflw.") \
aoqi@0 55 \
aoqi@0 56 develop(bool, G1TraceHeapRegionRememberedSet, false, \
aoqi@0 57 "Enables heap region remembered set debug logs") \
aoqi@0 58 \
aoqi@0 59 diagnostic(bool, G1SummarizeConcMark, false, \
aoqi@0 60 "Summarize concurrent mark info") \
aoqi@0 61 \
aoqi@0 62 diagnostic(bool, G1SummarizeRSetStats, false, \
aoqi@0 63 "Summarize remembered set processing info") \
aoqi@0 64 \
aoqi@0 65 diagnostic(intx, G1SummarizeRSetStatsPeriod, 0, \
aoqi@0 66 "The period (in number of GCs) at which we will generate " \
aoqi@0 67 "update buffer processing info " \
aoqi@0 68 "(0 means do not periodically generate this info); " \
aoqi@0 69 "it also requires -XX:+G1SummarizeRSetStats") \
aoqi@0 70 \
aoqi@0 71 diagnostic(bool, G1TraceConcRefinement, false, \
aoqi@0 72 "Trace G1 concurrent refinement") \
aoqi@0 73 \
aoqi@0 74 experimental(bool, G1TraceStringSymbolTableScrubbing, false, \
aoqi@0 75 "Trace information string and symbol table scrubbing.") \
aoqi@0 76 \
aoqi@0 77 product(double, G1ConcMarkStepDurationMillis, 10.0, \
aoqi@0 78 "Target duration of individual concurrent marking steps " \
aoqi@0 79 "in milliseconds.") \
aoqi@0 80 \
aoqi@0 81 product(intx, G1RefProcDrainInterval, 10, \
aoqi@0 82 "The number of discovered reference objects to process before " \
aoqi@0 83 "draining concurrent marking work queues.") \
aoqi@0 84 \
aoqi@0 85 experimental(bool, G1UseConcMarkReferenceProcessing, true, \
aoqi@0 86 "If true, enable reference discovery during concurrent " \
aoqi@0 87 "marking and reference processing at the end of remark.") \
aoqi@0 88 \
aoqi@0 89 product(intx, G1SATBBufferSize, 1*K, \
aoqi@0 90 "Number of entries in an SATB log buffer.") \
aoqi@0 91 \
aoqi@0 92 develop(intx, G1SATBProcessCompletedThreshold, 20, \
aoqi@0 93 "Number of completed buffers that triggers log processing.") \
aoqi@0 94 \
aoqi@0 95 product(uintx, G1SATBBufferEnqueueingThresholdPercent, 60, \
aoqi@0 96 "Before enqueueing them, each mutator thread tries to do some " \
aoqi@0 97 "filtering on the SATB buffers it generates. If post-filtering " \
aoqi@0 98 "the percentage of retained entries is over this threshold " \
aoqi@0 99 "the buffer will be enqueued for processing. A value of 0 " \
aoqi@0 100 "specifies that mutator threads should not do such filtering.") \
aoqi@0 101 \
aoqi@0 102 develop(bool, G1SATBPrintStubs, false, \
aoqi@0 103 "If true, print generated stubs for the SATB barrier") \
aoqi@0 104 \
aoqi@0 105 experimental(intx, G1ExpandByPercentOfAvailable, 20, \
aoqi@0 106 "When expanding, % of uncommitted space to claim.") \
aoqi@0 107 \
aoqi@0 108 develop(bool, G1RSBarrierRegionFilter, true, \
aoqi@0 109 "If true, generate region filtering code in RS barrier") \
aoqi@0 110 \
aoqi@0 111 develop(bool, G1RSLogCheckCardTable, false, \
aoqi@0 112 "If true, verify that no dirty cards remain after RS log " \
aoqi@0 113 "processing.") \
aoqi@0 114 \
aoqi@0 115 diagnostic(bool, G1PrintRegionLivenessInfo, false, \
aoqi@0 116 "Prints the liveness information for all regions in the heap " \
aoqi@0 117 "at the end of a marking cycle.") \
aoqi@0 118 \
aoqi@0 119 product(intx, G1UpdateBufferSize, 256, \
aoqi@0 120 "Size of an update buffer") \
aoqi@0 121 \
aoqi@0 122 product(intx, G1ConcRefinementYellowZone, 0, \
aoqi@0 123 "Number of enqueued update buffers that will " \
aoqi@0 124 "trigger concurrent processing. Will be selected ergonomically " \
aoqi@0 125 "by default.") \
aoqi@0 126 \
aoqi@0 127 product(intx, G1ConcRefinementRedZone, 0, \
aoqi@0 128 "Maximum number of enqueued update buffers before mutator " \
aoqi@0 129 "threads start processing new ones instead of enqueueing them. " \
aoqi@0 130 "Will be selected ergonomically by default. Zero will disable " \
aoqi@0 131 "concurrent processing.") \
aoqi@0 132 \
aoqi@0 133 product(intx, G1ConcRefinementGreenZone, 0, \
aoqi@0 134 "The number of update buffers that are left in the queue by the " \
aoqi@0 135 "concurrent processing threads. Will be selected ergonomically " \
aoqi@0 136 "by default.") \
aoqi@0 137 \
aoqi@0 138 product(intx, G1ConcRefinementServiceIntervalMillis, 300, \
aoqi@0 139 "The last concurrent refinement thread wakes up every " \
aoqi@0 140 "specified number of milliseconds to do miscellaneous work.") \
aoqi@0 141 \
aoqi@0 142 product(intx, G1ConcRefinementThresholdStep, 0, \
aoqi@0 143 "Each time the rset update queue increases by this amount " \
aoqi@0 144 "activate the next refinement thread if available. " \
aoqi@0 145 "Will be selected ergonomically by default.") \
aoqi@0 146 \
aoqi@0 147 product(intx, G1RSetUpdatingPauseTimePercent, 10, \
aoqi@0 148 "A target percentage of time that is allowed to be spend on " \
aoqi@0 149 "process RS update buffers during the collection pause.") \
aoqi@0 150 \
aoqi@0 151 product(bool, G1UseAdaptiveConcRefinement, true, \
aoqi@0 152 "Select green, yellow and red zones adaptively to meet the " \
aoqi@0 153 "the pause requirements.") \
aoqi@0 154 \
aoqi@0 155 product(uintx, G1ConcRSLogCacheSize, 10, \
aoqi@0 156 "Log base 2 of the length of conc RS hot-card cache.") \
aoqi@0 157 \
aoqi@0 158 product(uintx, G1ConcRSHotCardLimit, 4, \
aoqi@0 159 "The threshold that defines (>=) a hot card.") \
aoqi@0 160 \
aoqi@0 161 develop(intx, G1RSetRegionEntriesBase, 256, \
aoqi@0 162 "Max number of regions in a fine-grain table per MB.") \
aoqi@0 163 \
aoqi@0 164 product(intx, G1RSetRegionEntries, 0, \
aoqi@0 165 "Max number of regions for which we keep bitmaps." \
aoqi@0 166 "Will be set ergonomically by default") \
aoqi@0 167 \
aoqi@0 168 develop(intx, G1RSetSparseRegionEntriesBase, 4, \
aoqi@0 169 "Max number of entries per region in a sparse table " \
aoqi@0 170 "per MB.") \
aoqi@0 171 \
aoqi@0 172 product(intx, G1RSetSparseRegionEntries, 0, \
aoqi@0 173 "Max number of entries per region in a sparse table." \
aoqi@0 174 "Will be set ergonomically by default.") \
aoqi@0 175 \
aoqi@0 176 develop(bool, G1RecordHRRSOops, false, \
aoqi@0 177 "When true, record recent calls to rem set operations.") \
aoqi@0 178 \
aoqi@0 179 develop(bool, G1RecordHRRSEvents, false, \
aoqi@0 180 "When true, record recent calls to rem set operations.") \
aoqi@0 181 \
aoqi@0 182 develop(intx, G1MaxVerifyFailures, -1, \
aoqi@0 183 "The maximum number of verification failrues to print. " \
aoqi@0 184 "-1 means print all.") \
aoqi@0 185 \
aoqi@0 186 develop(bool, G1ScrubRemSets, true, \
aoqi@0 187 "When true, do RS scrubbing after cleanup.") \
aoqi@0 188 \
aoqi@0 189 develop(bool, G1RSScrubVerbose, false, \
aoqi@0 190 "When true, do RS scrubbing with verbose output.") \
aoqi@0 191 \
aoqi@0 192 develop(bool, G1YoungSurvRateVerbose, false, \
aoqi@0 193 "print out the survival rate of young regions according to age.") \
aoqi@0 194 \
aoqi@0 195 develop(intx, G1YoungSurvRateNumRegionsSummary, 0, \
aoqi@0 196 "the number of regions for which we'll print a surv rate " \
aoqi@0 197 "summary.") \
aoqi@0 198 \
aoqi@0 199 product(uintx, G1ReservePercent, 10, \
aoqi@0 200 "It determines the minimum reserve we should have in the heap " \
aoqi@0 201 "to minimize the probability of promotion failure.") \
aoqi@0 202 \
aoqi@0 203 diagnostic(bool, G1PrintHeapRegions, false, \
aoqi@0 204 "If set G1 will print information on which regions are being " \
aoqi@0 205 "allocated and which are reclaimed.") \
aoqi@0 206 \
aoqi@0 207 develop(bool, G1HRRSUseSparseTable, true, \
aoqi@0 208 "When true, use sparse table to save space.") \
aoqi@0 209 \
aoqi@0 210 develop(bool, G1HRRSFlushLogBuffersOnVerify, false, \
aoqi@0 211 "Forces flushing of log buffers before verification.") \
aoqi@0 212 \
aoqi@0 213 develop(bool, G1FailOnFPError, false, \
aoqi@0 214 "When set, G1 will fail when it encounters an FP 'error', " \
aoqi@0 215 "so as to allow debugging") \
aoqi@0 216 \
aoqi@0 217 product(uintx, G1HeapRegionSize, 0, \
aoqi@0 218 "Size of the G1 regions.") \
aoqi@0 219 \
aoqi@0 220 product(uintx, G1ConcRefinementThreads, 0, \
aoqi@0 221 "If non-0 is the number of parallel rem set update threads, " \
aoqi@0 222 "otherwise the value is determined ergonomically.") \
aoqi@0 223 \
aoqi@0 224 develop(bool, G1VerifyCTCleanup, false, \
aoqi@0 225 "Verify card table cleanup.") \
aoqi@0 226 \
aoqi@0 227 product(uintx, G1RSetScanBlockSize, 64, \
aoqi@0 228 "Size of a work unit of cards claimed by a worker thread" \
aoqi@0 229 "during RSet scanning.") \
aoqi@0 230 \
aoqi@0 231 develop(uintx, G1SecondaryFreeListAppendLength, 5, \
aoqi@0 232 "The number of regions we will add to the secondary free list " \
aoqi@0 233 "at every append operation") \
aoqi@0 234 \
aoqi@0 235 develop(bool, G1ConcRegionFreeingVerbose, false, \
aoqi@0 236 "Enables verboseness during concurrent region freeing") \
aoqi@0 237 \
aoqi@0 238 develop(bool, G1StressConcRegionFreeing, false, \
aoqi@0 239 "It stresses the concurrent region freeing operation") \
aoqi@0 240 \
aoqi@0 241 develop(uintx, G1StressConcRegionFreeingDelayMillis, 0, \
aoqi@0 242 "Artificial delay during concurrent region freeing") \
aoqi@0 243 \
aoqi@0 244 develop(uintx, G1DummyRegionsPerGC, 0, \
aoqi@0 245 "The number of dummy regions G1 will allocate at the end of " \
aoqi@0 246 "each evacuation pause in order to artificially fill up the " \
aoqi@0 247 "heap and stress the marking implementation.") \
aoqi@0 248 \
aoqi@0 249 develop(bool, G1ExitOnExpansionFailure, false, \
aoqi@0 250 "Raise a fatal VM exit out of memory failure in the event " \
aoqi@0 251 " that heap expansion fails due to running out of swap.") \
aoqi@0 252 \
aoqi@0 253 develop(uintx, G1ConcMarkForceOverflow, 0, \
aoqi@0 254 "The number of times we'll force an overflow during " \
aoqi@0 255 "concurrent marking") \
aoqi@0 256 \
aoqi@0 257 experimental(uintx, G1NewSizePercent, 5, \
aoqi@0 258 "Percentage (0-100) of the heap size to use as default " \
aoqi@0 259 "minimum young gen size.") \
aoqi@0 260 \
aoqi@0 261 experimental(uintx, G1MaxNewSizePercent, 60, \
aoqi@0 262 "Percentage (0-100) of the heap size to use as default " \
aoqi@0 263 " maximum young gen size.") \
aoqi@0 264 \
brutisso@7258 265 experimental(uintx, G1MixedGCLiveThresholdPercent, 85, \
aoqi@0 266 "Threshold for regions to be considered for inclusion in the " \
aoqi@0 267 "collection set of mixed GCs. " \
aoqi@0 268 "Regions with live bytes exceeding this will not be collected.") \
aoqi@0 269 \
brutisso@7258 270 product(uintx, G1HeapWastePercent, 5, \
aoqi@0 271 "Amount of space, expressed as a percentage of the heap size, " \
aoqi@0 272 "that G1 is willing not to collect to avoid expensive GCs.") \
aoqi@0 273 \
aoqi@0 274 product(uintx, G1MixedGCCountTarget, 8, \
aoqi@0 275 "The target number of mixed GCs after a marking cycle.") \
aoqi@0 276 \
tschatzl@7828 277 experimental(bool, G1EagerReclaimHumongousObjects, true, \
tschatzl@7019 278 "Try to reclaim dead large objects at every young GC.") \
tschatzl@7019 279 \
tschatzl@7828 280 experimental(bool, G1EagerReclaimHumongousObjectsWithStaleRefs, true, \
tschatzl@7828 281 "Try to reclaim dead large objects that have a few stale " \
tschatzl@7828 282 "references at every young GC.") \
tschatzl@7828 283 \
tschatzl@7828 284 experimental(bool, G1TraceEagerReclaimHumongousObjects, false, \
tschatzl@7019 285 "Print some information about large object liveness " \
tschatzl@7019 286 "at every young GC.") \
aoqi@0 287 \
aoqi@0 288 experimental(uintx, G1OldCSetRegionThresholdPercent, 10, \
aoqi@0 289 "An upper bound for the number of old CSet regions expressed " \
aoqi@0 290 "as a percentage of the heap size.") \
aoqi@0 291 \
aoqi@0 292 experimental(ccstr, G1LogLevel, NULL, \
aoqi@0 293 "Log level for G1 logging: fine, finer, finest") \
aoqi@0 294 \
aoqi@0 295 notproduct(bool, G1EvacuationFailureALot, false, \
aoqi@0 296 "Force use of evacuation failure handling during certain " \
aoqi@0 297 "evacuation pauses") \
aoqi@0 298 \
aoqi@0 299 develop(uintx, G1EvacuationFailureALotCount, 1000, \
aoqi@0 300 "Number of successful evacuations between evacuation failures " \
aoqi@0 301 "occurring at object copying") \
aoqi@0 302 \
aoqi@0 303 develop(uintx, G1EvacuationFailureALotInterval, 5, \
aoqi@0 304 "Total collections between forced triggering of evacuation " \
aoqi@0 305 "failures") \
aoqi@0 306 \
aoqi@0 307 develop(bool, G1EvacuationFailureALotDuringConcMark, true, \
aoqi@0 308 "Force use of evacuation failure handling during evacuation " \
aoqi@0 309 "pauses when marking is in progress") \
aoqi@0 310 \
aoqi@0 311 develop(bool, G1EvacuationFailureALotDuringInitialMark, true, \
aoqi@0 312 "Force use of evacuation failure handling during initial mark " \
aoqi@0 313 "evacuation pauses") \
aoqi@0 314 \
aoqi@0 315 develop(bool, G1EvacuationFailureALotDuringYoungGC, true, \
aoqi@0 316 "Force use of evacuation failure handling during young " \
aoqi@0 317 "evacuation pauses") \
aoqi@0 318 \
aoqi@0 319 develop(bool, G1EvacuationFailureALotDuringMixedGC, true, \
aoqi@0 320 "Force use of evacuation failure handling during mixed " \
aoqi@0 321 "evacuation pauses") \
aoqi@0 322 \
aoqi@0 323 diagnostic(bool, G1VerifyRSetsDuringFullGC, false, \
brutisso@7005 324 "If true, perform verification of each heap region's " \
brutisso@7005 325 "remembered set when verifying the heap during a full GC.") \
aoqi@0 326 \
aoqi@0 327 diagnostic(bool, G1VerifyHeapRegionCodeRoots, false, \
brutisso@7005 328 "Verify the code root lists attached to each heap region.") \
brutisso@7005 329 \
brutisso@7005 330 develop(bool, G1VerifyBitmaps, false, \
brutisso@7005 331 "Verifies the consistency of the marking bitmaps")
aoqi@0 332
aoqi@0 333 G1_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG)
aoqi@0 334
aoqi@0 335 #endif // SHARE_VM_GC_IMPLEMENTATION_G1_G1_GLOBALS_HPP

mercurial