annotate src/hotspot/share/runtime/globals.hpp @ 53564:dfa02b3f728c

8201375: Add the AllowArchivingWithJavaAgent diagnostic vm option to allow the use of the -javaagent option during CDS dumping Summary: Allow Java agent during CDS dumping if the AllowArchivingWithJavaAgent dignostic option is specified. Reviewed-by: iklam, jiangli, sspitsyn, dcubed
author ccheung
date Fri, 16 Nov 2018 16:10:25 -0800
parents a8389aeabf90
children b8c88c64abf0
rev   line source
duke@1 1 /*
coleenp@48939 2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
duke@1 7 * published by the Free Software Foundation.
duke@1 8 *
duke@1 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 * accompanied this code).
duke@1 14 *
duke@1 15 * You should have received a copy of the GNU General Public License version
duke@1 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 *
trims@5547 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@5547 20 * or visit www.oracle.com if you need additional information or have any
trims@5547 21 * questions.
duke@1 22 *
duke@1 23 */
duke@1 24
stefank@7397 25 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
stefank@7397 26 #define SHARE_VM_RUNTIME_GLOBALS_HPP
stefank@7397 27
stefank@50210 28 #include "gc/shared/gc_globals.hpp"
stefank@46625 29 #include "utilities/align.hpp"
kbarrett@46560 30 #include "utilities/globalDefinitions.hpp"
goetz@40010 31 #include "utilities/macros.hpp"
goetz@40010 32
sangheki@33144 33 #include <float.h> // for DBL_MAX
iveresov@11632 34
stefank@46625 35 // The larger HeapWordSize for 64bit requires larger heaps
stefank@46625 36 // for the same application running in 64bit. See bug 4967770.
stefank@46625 37 // The minimum alignment to a heap word size is done. Other
stefank@46625 38 // parts of the memory system may require additional alignment
stefank@46625 39 // and are responsible for those alignments.
stefank@46625 40 #ifdef _LP64
stefank@46625 41 #define ScaleForWordSize(x) align_down_((x) * 13 / 10, HeapWordSize)
stefank@46625 42 #else
stefank@46625 43 #define ScaleForWordSize(x) (x)
stefank@46625 44 #endif
stefank@46625 45
iveresov@11632 46 // use this for flags that are true per default in the tiered build
iveresov@11632 47 // but false in non-tiered builds, and vice versa
iveresov@11632 48 #ifdef TIERED
iveresov@11632 49 #define trueInTiered true
iveresov@11632 50 #define falseInTiered false
iveresov@11632 51 #else
iveresov@11632 52 #define trueInTiered false
iveresov@11632 53 #define falseInTiered true
iveresov@11632 54 #endif
iveresov@11632 55
goetz@40010 56 #include CPU_HEADER(globals)
goetz@40010 57 #include OS_HEADER(globals)
goetz@40010 58 #include OS_CPU_HEADER(globals)
stefank@7397 59 #ifdef COMPILER1
goetz@40010 60 #include CPU_HEADER(c1_globals)
goetz@40010 61 #include OS_HEADER(c1_globals)
stefank@7397 62 #endif
stefank@7397 63 #ifdef COMPILER2
goetz@40010 64 #include CPU_HEADER(c2_globals)
goetz@40010 65 #include OS_HEADER(c2_globals)
stefank@7397 66 #endif
stefank@7397 67
rkennke@47842 68 #if !defined(COMPILER1) && !defined(COMPILER2) && !INCLUDE_JVMCI
duke@1 69 define_pd_global(bool, BackgroundCompilation, false);
duke@1 70 define_pd_global(bool, UseTLAB, false);
duke@1 71 define_pd_global(bool, CICompileOSR, false);
duke@1 72 define_pd_global(bool, UseTypeProfile, false);
duke@1 73 define_pd_global(bool, UseOnStackReplacement, false);
duke@1 74 define_pd_global(bool, InlineIntrinsics, false);
duke@1 75 define_pd_global(bool, PreferInterpreterNativeStubs, true);
duke@1 76 define_pd_global(bool, ProfileInterpreter, false);
duke@1 77 define_pd_global(bool, ProfileTraps, false);
duke@1 78 define_pd_global(bool, TieredCompilation, false);
duke@1 79
duke@1 80 define_pd_global(intx, CompileThreshold, 0);
duke@1 81
goetz@49191 82 define_pd_global(intx, OnStackReplacePercentage, 0);
goetz@49191 83 define_pd_global(bool, ResizeTLAB, false);
goetz@49191 84 define_pd_global(intx, FreqInlineSize, 0);
jwilhelm@29697 85 define_pd_global(size_t, NewSizeThreadIncrease, 4*K);
goetz@49191 86 define_pd_global(bool, InlineClassNatives, true);
goetz@49191 87 define_pd_global(bool, InlineUnsafeOps, true);
goetz@49191 88 define_pd_global(uintx, InitialCodeCacheSize, 160*K);
goetz@49191 89 define_pd_global(uintx, ReservedCodeCacheSize, 32*M);
goetz@49191 90 define_pd_global(uintx, NonProfiledCodeHeapSize, 0);
goetz@49191 91 define_pd_global(uintx, ProfiledCodeHeapSize, 0);
goetz@49191 92 define_pd_global(uintx, NonNMethodCodeHeapSize, 32*M);
thartmann@26796 93
goetz@49191 94 define_pd_global(uintx, CodeCacheExpansionSize, 32*K);
goetz@49191 95 define_pd_global(uintx, CodeCacheMinBlockLength, 1);
goetz@49191 96 define_pd_global(uintx, CodeCacheMinimumUseSpace, 200*K);
jwilhelm@29697 97 define_pd_global(size_t, MetaspaceSize, ScaleForWordSize(4*M));
duke@1 98 define_pd_global(bool, NeverActAsServerClassMachine, true);
phh@4434 99 define_pd_global(uint64_t,MaxRAM, 1ULL*G);
duke@1 100 #define CI_COMPILER_COUNT 0
duke@1 101 #else
duke@1 102
jcm@47980 103 #if COMPILER2_OR_JVMCI
duke@1 104 #define CI_COMPILER_COUNT 2
duke@1 105 #else
duke@1 106 #define CI_COMPILER_COUNT 1
jcm@47980 107 #endif // COMPILER2_OR_JVMCI
duke@1 108
duke@1 109 #endif // no compilers
duke@1 110
duke@1 111 // use this for flags that are true by default in the debug version but
duke@1 112 // false in the optimized version, and vice versa
duke@1 113 #ifdef ASSERT
duke@1 114 #define trueInDebug true
duke@1 115 #define falseInDebug false
duke@1 116 #else
duke@1 117 #define trueInDebug false
duke@1 118 #define falseInDebug true
duke@1 119 #endif
duke@1 120
duke@1 121 // use this for flags that are true per default in the product build
duke@1 122 // but false in development builds, and vice versa
duke@1 123 #ifdef PRODUCT
duke@1 124 #define trueInProduct true
duke@1 125 #define falseInProduct false
duke@1 126 #else
duke@1 127 #define trueInProduct false
duke@1 128 #define falseInProduct true
duke@1 129 #endif
duke@1 130
duke@1 131 // develop flags are settable / visible only during development and are constant in the PRODUCT version
duke@1 132 // product flags are always settable / visible
duke@1 133 // notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
duke@1 134
duke@1 135 // A flag must be declared with one of the following types:
zmajo@33163 136 // bool, int, uint, intx, uintx, size_t, ccstr, double, or uint64_t.
duke@1 137 // The type "ccstr" is an alias for "const char*" and is used
duke@1 138 // only in this file, because the macrology requires single-token type names.
duke@1 139
duke@1 140 // Note: Diagnostic options not meant for VM tuning or for product modes.
duke@1 141 // They are to be used for VM quality assurance or field diagnosis
duke@1 142 // of VM bugs. They are hidden so that users will not be encouraged to
duke@1 143 // try them as if they were VM ordinary execution options. However, they
duke@1 144 // are available in the product version of the VM. Under instruction
duke@1 145 // from support engineers, VM customers can turn them on to collect
duke@1 146 // diagnostic information about VM problems. To use a VM diagnostic
duke@1 147 // option, you must first specify +UnlockDiagnosticVMOptions.
duke@1 148 // (This master switch also affects the behavior of -Xprintflags.)
ysr@1382 149 //
ysr@1382 150 // experimental flags are in support of features that are not
ysr@1382 151 // part of the officially supported product, but are available
ysr@1382 152 // for experimenting with. They could, for example, be performance
ysr@1382 153 // features that may not have undergone full or rigorous QA, but which may
ysr@1382 154 // help performance in some cases and released for experimentation
ysr@1382 155 // by the community of users and developers. This flag also allows one to
ysr@1382 156 // be able to build a fully supported product that nonetheless also
ysr@1382 157 // ships with some unsupported, lightly tested, experimental features.
ysr@1382 158 // Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
ysr@1382 159 // UnlockExperimentalVMOptions flag, which allows the control and
ysr@1382 160 // modification of the experimental flags.
ysr@1382 161 //
ysr@6763 162 // Nota bene: neither diagnostic nor experimental options should be used casually,
ysr@6763 163 // and they are not supported on production loads, except under explicit
ysr@6763 164 // direction from support engineers.
ysr@6763 165 //
duke@1 166 // manageable flags are writeable external product flags.
duke@1 167 // They are dynamically writeable through the JDK management interface
duke@1 168 // (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
duke@1 169 // These flags are external exported interface (see CCC). The list of
duke@1 170 // manageable flags can be queried programmatically through the management
duke@1 171 // interface.
duke@1 172 //
duke@1 173 // A flag can be made as "manageable" only if
duke@1 174 // - the flag is defined in a CCC as an external exported interface.
duke@1 175 // - the VM implementation supports dynamic setting of the flag.
duke@1 176 // This implies that the VM must *always* query the flag variable
duke@1 177 // and not reuse state related to the flag state at any given time.
duke@1 178 // - you want the flag to be queried programmatically by the customers.
duke@1 179 //
duke@1 180 // product_rw flags are writeable internal product flags.
duke@1 181 // They are like "manageable" flags but for internal/private use.
duke@1 182 // The list of product_rw flags are internal/private flags which
duke@1 183 // may be changed/removed in a future release. It can be set
duke@1 184 // through the management interface to get/set value
duke@1 185 // when the name of flag is supplied.
duke@1 186 //
duke@1 187 // A flag can be made as "product_rw" only if
duke@1 188 // - the VM implementation supports dynamic setting of the flag.
duke@1 189 // This implies that the VM must *always* query the flag variable
duke@1 190 // and not reuse state related to the flag state at any given time.
duke@1 191 //
duke@1 192 // Note that when there is a need to support develop flags to be writeable,
duke@1 193 // it can be done in the same way as product_rw.
gziemski@31371 194 //
gziemski@31371 195 // range is a macro that will expand to min and max arguments for range
gziemski@50413 196 // checking code if provided - see jvmFlagRangeList.hpp
gziemski@31371 197 //
gziemski@31371 198 // constraint is a macro that will expand to custom function call
gziemski@50413 199 // for constraint checking if provided - see jvmFlagConstraintList.hpp
gziemski@31371 200 //
gziemski@38273 201 // writeable is a macro that controls if and how the value can change during the runtime
gziemski@38273 202 //
gziemski@38273 203 // writeable(Always) is optional and allows the flag to have its value changed
gziemski@38273 204 // without any limitations at any time
gziemski@38273 205 //
gziemski@38273 206 // writeable(Once) flag value's can be only set once during the lifetime of VM
gziemski@38273 207 //
gziemski@38273 208 // writeable(CommandLineOnly) flag value's can be only set from command line
gziemski@38273 209 // (multiple times allowed)
gziemski@38273 210 //
duke@1 211
gziemski@38273 212
gziemski@38273 213 #define RUNTIME_FLAGS(develop, \
gziemski@38273 214 develop_pd, \
gziemski@38273 215 product, \
gziemski@38273 216 product_pd, \
gziemski@38273 217 diagnostic, \
csahu@39117 218 diagnostic_pd, \
gziemski@38273 219 experimental, \
gziemski@38273 220 notproduct, \
gziemski@38273 221 manageable, \
gziemski@38273 222 product_rw, \
gziemski@38273 223 lp64_product, \
gziemski@38273 224 range, \
gziemski@38273 225 constraint, \
gziemski@38273 226 writeable) \
coleenp@360 227 \
coleenp@360 228 lp64_product(bool, UseCompressedOops, false, \
tamao@20404 229 "Use 32-bit object references in 64-bit VM. " \
tamao@20404 230 "lp64_product means flag is always constant in 32 bit VM") \
coleenp@13728 231 \
ehelin@19979 232 lp64_product(bool, UseCompressedClassPointers, false, \
tamao@20404 233 "Use 32-bit class pointers in 64-bit VM. " \
tamao@20404 234 "lp64_product means flag is always constant in 32 bit VM") \
duke@1 235 \
kvn@2254 236 notproduct(bool, CheckCompressedOops, true, \
tamao@20404 237 "Generate checks in encoding/decoding code in debug VM") \
kvn@2254 238 \
goetz@28372 239 product(uintx, HeapSearchSteps, 3 PPC64_ONLY(+17), \
goetz@28372 240 "Heap allocation steps through preferred address regions to find" \
goetz@28372 241 " where it can allocate the heap. Number of steps to take per " \
goetz@28372 242 "region.") \
gziemski@31371 243 range(1, max_uintx) \
goetz@28372 244 \
kvn@5694 245 lp64_product(intx, ObjectAlignmentInBytes, 8, \
kvn@5694 246 "Default object alignment in bytes, 8 is minimum") \
gziemski@31371 247 range(8, 256) \
sangheki@31995 248 constraint(ObjectAlignmentInBytesConstraintFunc,AtParse) \
kvn@5694 249 \
dholmes@40015 250 develop(bool, CleanChunkPoolAsync, true, \
tamao@20404 251 "Clean the chunk pool asynchronously") \
jcoomes@10022 252 \
rehn@48069 253 product_pd(bool, ThreadLocalHandshakes, \
rehn@48069 254 "Use thread-local polls instead of global poll for safepoints.") \
rehn@48069 255 constraint(ThreadLocalHandshakesConstraintFunc,AfterErgo) \
rehn@48069 256 \
rehn@48069 257 diagnostic(uint, HandshakeTimeout, 0, \
rehn@48069 258 "If nonzero set a timeout in milliseconds for handshakes") \
rehn@48069 259 \
shade@23190 260 experimental(bool, AlwaysSafeConstructors, false, \
shade@23190 261 "Force safe construction, as if all fields are final.") \
shade@23190 262 \
duke@1 263 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \
ysr@1382 264 "Enable normal processing of flags relating to field diagnostics")\
ysr@1382 265 \
ysr@1382 266 experimental(bool, UnlockExperimentalVMOptions, false, \
tamao@20404 267 "Enable normal processing of flags relating to experimental " \
tamao@20404 268 "features") \
duke@1 269 \
duke@1 270 product(bool, JavaMonitorsInStackTrace, true, \
tamao@20404 271 "Print information about Java monitor locks when the stacks are" \
tamao@20404 272 "dumped") \
duke@1 273 \
duke@1 274 product_pd(bool, UseLargePages, \
duke@1 275 "Use large page memory") \
duke@1 276 \
jmasa@1421 277 product_pd(bool, UseLargePagesIndividualAllocation, \
jmasa@1421 278 "Allocate large pages individually for better affinity") \
jmasa@1421 279 \
jmasa@1421 280 develop(bool, LargePagesIndividualAllocationInjectError, false, \
jmasa@1421 281 "Fail large pages individual allocation") \
jmasa@1421 282 \
stefank@20406 283 product(bool, UseLargePagesInMetaspace, false, \
stefank@20406 284 "Use large page memory in metaspace. " \
stefank@20406 285 "Only used if UseLargePages is enabled.") \
stefank@20406 286 \
duke@1 287 product(bool, UseNUMA, false, \
duke@1 288 "Use NUMA if available") \
duke@1 289 \
iveresov@10494 290 product(bool, UseNUMAInterleaving, false, \
iveresov@10494 291 "Interleave memory across NUMA nodes if available") \
iveresov@10494 292 \
jwilhelm@29697 293 product(size_t, NUMAInterleaveGranularity, 2*M, \
iveresov@10494 294 "Granularity to use for NUMA interleaving on Windows OS") \
sangheki@35203 295 range(os::vm_allocation_granularity(), NOT_LP64(2*G) LP64_ONLY(8192*G)) \
iveresov@10494 296 \
iveresov@1615 297 product(bool, ForceNUMA, false, \
iveresov@1615 298 "Force NUMA optimizations on single-node/UMA systems") \
iveresov@1615 299 \
tschatzl@17392 300 product(uintx, NUMAChunkResizeWeight, 20, \
jwilhelm@22775 301 "Percentage (0-100) used to weight the current sample when " \
duke@1 302 "computing exponentially decaying average for " \
duke@1 303 "AdaptiveNUMAChunkSizing") \
gziemski@31371 304 range(0, 100) \
duke@1 305 \
jwilhelm@29697 306 product(size_t, NUMASpaceResizeRate, 1*G, \
tamao@20404 307 "Do not reallocate more than this amount per collection") \
sangheki@34661 308 range(0, max_uintx) \
duke@1 309 \
duke@1 310 product(bool, UseAdaptiveNUMAChunkSizing, true, \
duke@1 311 "Enable adaptive chunk sizing for NUMA") \
duke@1 312 \
duke@1 313 product(bool, NUMAStats, false, \
duke@1 314 "Print NUMA stats in detailed heap information") \
duke@1 315 \
tschatzl@17392 316 product(uintx, NUMAPageScanRate, 256, \
duke@1 317 "Maximum number of pages to include in the page scan procedure") \
sangheki@34661 318 range(0, max_uintx) \
duke@1 319 \
duke@1 320 product_pd(bool, NeedsDeoptSuspend, \
duke@1 321 "True for register window machines (sparc/ia64)") \
duke@1 322 \
duke@1 323 product(intx, UseSSE, 99, \
duke@1 324 "Highest supported SSE instructions set on x86/x64") \
zmajo@33163 325 range(0, 99) \
duke@1 326 \
tamao@20404 327 product(bool, UseAES, false, \
mbaesken@43935 328 "Control whether AES instructions are used when available") \
kvn@14132 329 \
vdeshpande@41323 330 product(bool, UseFMA, false, \
mbaesken@43935 331 "Control whether FMA instructions are used when available") \
vdeshpande@41323 332 \
kvn@24953 333 product(bool, UseSHA, false, \
mbaesken@43935 334 "Control whether SHA instructions are used when available") \
kvn@24953 335 \
rraghavan@38285 336 diagnostic(bool, UseGHASHIntrinsics, false, \
ascarpino@31404 337 "Use intrinsics for GHASH versions of crypto") \
ascarpino@31404 338 \
kvn@51494 339 product(bool, UseBASE64Intrinsics, false, \
kvn@51494 340 "Use intrinsics for java.util.Base64") \
kvn@51494 341 \
jwilhelm@29697 342 product(size_t, LargePageSizeInBytes, 0, \
tamao@20404 343 "Large page size (0 to let VM choose the page size)") \
sangheki@34661 344 range(0, max_uintx) \
duke@1 345 \
jwilhelm@29697 346 product(size_t, LargePageHeapSizeThreshold, 128*M, \
tamao@20404 347 "Use large pages if maximum heap is at least this big") \
sangheki@34661 348 range(0, max_uintx) \
duke@1 349 \
duke@1 350 product(bool, ForceTimeHighResolution, false, \
tamao@20404 351 "Using high time resolution (for Win32 only)") \
duke@1 352 \
duke@1 353 develop(bool, TracePcPatching, false, \
duke@1 354 "Trace usage of frame::patch_pc") \
duke@1 355 \
duke@1 356 develop(bool, TraceRelocator, false, \
duke@1 357 "Trace the bytecode relocator") \
duke@1 358 \
duke@1 359 develop(bool, TraceLongCompiles, false, \
duke@1 360 "Print out every time compilation is longer than " \
tamao@20404 361 "a given threshold") \
duke@1 362 \
duke@1 363 develop(bool, SafepointALot, false, \
tamao@20404 364 "Generate a lot of safepoints. This works with " \
duke@1 365 "GuaranteedSafepointInterval") \
duke@1 366 \
duke@1 367 product_pd(bool, BackgroundCompilation, \
duke@1 368 "A thread requesting compilation is not blocked during " \
duke@1 369 "compilation") \
duke@1 370 \
duke@1 371 product(bool, PrintVMQWaitTime, false, \
tamao@20404 372 "Print out the waiting time in VM operation queue") \
duke@1 373 \
duke@1 374 product(bool, MethodFlushing, true, \
duke@1 375 "Reclamation of zombie and not-entrant methods") \
duke@1 376 \
duke@1 377 develop(bool, VerifyStack, false, \
duke@1 378 "Verify stack of each thread when it is entering a runtime call") \
duke@1 379 \
never@10983 380 diagnostic(bool, ForceUnreachable, false, \
tamao@20404 381 "Make all non code cache addresses to be unreachable by " \
tamao@20404 382 "forcing use of 64bit literal fixups") \
duke@1 383 \
duke@1 384 notproduct(bool, StressDerivedPointers, false, \
tamao@20404 385 "Force scavenge when a derived pointer is detected on stack " \
duke@1 386 "after rtm call") \
duke@1 387 \
duke@1 388 develop(bool, TraceDerivedPointers, false, \
duke@1 389 "Trace traversal of derived pointers on stack") \
duke@1 390 \
duke@1 391 notproduct(bool, TraceCodeBlobStacks, false, \
duke@1 392 "Trace stack-walk of codeblobs") \
duke@1 393 \
duke@1 394 product(bool, PrintJNIResolving, false, \
duke@1 395 "Used to implement -v:jni") \
duke@1 396 \
duke@1 397 notproduct(bool, PrintRewrites, false, \
duke@1 398 "Print methods that are being rewritten") \
duke@1 399 \
duke@1 400 product(bool, UseInlineCaches, true, \
duke@1 401 "Use Inline Caches for virtual calls ") \
duke@1 402 \
rraghavan@38285 403 diagnostic(bool, InlineArrayCopy, true, \
tamao@20404 404 "Inline arraycopy native that is known to be part of " \
duke@1 405 "base library DLL") \
duke@1 406 \
rraghavan@38285 407 diagnostic(bool, InlineObjectHash, true, \
tamao@20404 408 "Inline Object::hashCode() native that is known to be part " \
duke@1 409 "of base library DLL") \
duke@1 410 \
rraghavan@38285 411 diagnostic(bool, InlineNatives, true, \
tamao@20404 412 "Inline natives that are known to be part of base library DLL") \
duke@1 413 \
rraghavan@38285 414 diagnostic(bool, InlineMathNatives, true, \
tamao@20404 415 "Inline SinD, CosD, etc.") \
duke@1 416 \
rraghavan@38285 417 diagnostic(bool, InlineClassNatives, true, \
tamao@20404 418 "Inline Class.isInstance, etc") \
duke@1 419 \
rraghavan@38285 420 diagnostic(bool, InlineThreadNatives, true, \
tamao@20404 421 "Inline Thread.currentThread, etc") \
duke@1 422 \
rraghavan@38285 423 diagnostic(bool, InlineUnsafeOps, true, \
chegar@33606 424 "Inline memory ops (native methods) from Unsafe") \
duke@1 425 \
never@11637 426 product(bool, CriticalJNINatives, true, \
tamao@20404 427 "Check for critical JNI entry points") \
never@11637 428 \
never@11637 429 notproduct(bool, StressCriticalJNINatives, false, \
tamao@20404 430 "Exercise register saving code in critical natives") \
never@11637 431 \
rraghavan@38285 432 diagnostic(bool, UseAESIntrinsics, false, \
tamao@20404 433 "Use intrinsics for AES versions of crypto") \
kvn@14132 434 \
rraghavan@38285 435 diagnostic(bool, UseAESCTRIntrinsics, false, \
kvn@35154 436 "Use intrinsics for the paralleled version of AES/CTR crypto") \
kvn@35154 437 \
rraghavan@38285 438 diagnostic(bool, UseSHA1Intrinsics, false, \
zmajo@31588 439 "Use intrinsics for SHA-1 crypto hash function. " \
jwilhelm@32623 440 "Requires that UseSHA is enabled.") \
kvn@24953 441 \
rraghavan@38285 442 diagnostic(bool, UseSHA256Intrinsics, false, \
zmajo@31588 443 "Use intrinsics for SHA-224 and SHA-256 crypto hash functions. " \
zmajo@31588 444 "Requires that UseSHA is enabled.") \
kvn@24953 445 \
rraghavan@38285 446 diagnostic(bool, UseSHA512Intrinsics, false, \
zmajo@31588 447 "Use intrinsics for SHA-384 and SHA-512 crypto hash functions. " \
zmajo@31588 448 "Requires that UseSHA is enabled.") \
kvn@24953 449 \
rraghavan@38285 450 diagnostic(bool, UseCRC32Intrinsics, false, \
drchase@18507 451 "use intrinsics for java.util.zip.CRC32") \
drchase@18507 452 \
rraghavan@38285 453 diagnostic(bool, UseCRC32CIntrinsics, false, \
kvn@31515 454 "use intrinsics for java.util.zip.CRC32C") \
kvn@31515 455 \
rraghavan@38285 456 diagnostic(bool, UseAdler32Intrinsics, false, \
kvn@32581 457 "use intrinsics for java.util.zip.Adler32") \
kvn@32581 458 \
rraghavan@38285 459 diagnostic(bool, UseVectorizedMismatchIntrinsic, false, \
kvn@35110 460 "Enables intrinsification of ArraysSupport.vectorizedMismatch()") \
kvn@35110 461 \
zmajo@32085 462 diagnostic(ccstrlist, DisableIntrinsic, "", \
zmajo@32085 463 "do not expand intrinsics whose (internal) names appear here") \
zmajo@32085 464 \
duke@1 465 develop(bool, TraceCallFixup, false, \
tamao@20404 466 "Trace all call fixups") \
duke@1 467 \
duke@1 468 develop(bool, DeoptimizeALot, false, \
tamao@20404 469 "Deoptimize at every exit from the runtime system") \
duke@1 470 \
kvn@1553 471 notproduct(ccstrlist, DeoptimizeOnlyAt, "", \
tamao@20404 472 "A comma separated list of bcis to deoptimize at") \
duke@1 473 \
duke@1 474 product(bool, DeoptimizeRandom, false, \
tamao@20404 475 "Deoptimize random frames on random exit from the runtime system")\
duke@1 476 \
duke@1 477 notproduct(bool, ZombieALot, false, \
tamao@20404 478 "Create zombies (non-entrant) at exit from the runtime system") \
duke@1 479 \
duke@1 480 notproduct(bool, WalkStackALot, false, \
tamao@20404 481 "Trace stack (no print) at every exit from the runtime system") \
duke@1 482 \
dcubed@10739 483 product(bool, Debugging, false, \
tamao@20404 484 "Set when executing debug methods in debug.cpp " \
duke@1 485 "(to prevent triggering assertions)") \
duke@1 486 \
duke@1 487 notproduct(bool, StrictSafepointChecks, trueInDebug, \
duke@1 488 "Enable strict checks that safepoints cannot happen for threads " \
david@35492 489 "that use NoSafepointVerifier") \
duke@1 490 \
duke@1 491 notproduct(bool, VerifyLastFrame, false, \
duke@1 492 "Verify oops on last frame on entry to VM") \
duke@1 493 \
duke@1 494 product(bool, FailOverToOldVerifier, true, \
tamao@20404 495 "Fail over to old verifier when split verifier fails") \
duke@1 496 \
duke@1 497 product(bool, SafepointTimeout, false, \
duke@1 498 "Time out and warn or fail after SafepointTimeoutDelay " \
duke@1 499 "milliseconds if failed to reach safepoint") \
duke@1 500 \
duke@1 501 develop(bool, DieOnSafepointTimeout, false, \
duke@1 502 "Die upon failure to reach safepoint (see SafepointTimeout)") \
duke@1 503 \
duke@1 504 /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \
gziemski@31371 505 /* typically, at most a few retries are needed */ \
duke@1 506 product(intx, SuspendRetryCount, 50, \
duke@1 507 "Maximum retry count for an external suspend request") \
gziemski@33222 508 range(0, max_intx) \
duke@1 509 \
duke@1 510 product(intx, SuspendRetryDelay, 5, \
duke@1 511 "Milliseconds to delay per retry (* current_retry_count)") \
gziemski@33222 512 range(0, max_intx) \
duke@1 513 \
duke@1 514 product(bool, AssertOnSuspendWaitFailure, false, \
duke@1 515 "Assert/Guarantee on external suspend wait failure") \
duke@1 516 \
duke@1 517 product(bool, TraceSuspendWaitFailures, false, \
duke@1 518 "Trace external suspend wait failures") \
duke@1 519 \
duke@1 520 product(bool, MaxFDLimit, true, \
tamao@20404 521 "Bump the number of file descriptors to maximum in Solaris") \
duke@1 522 \
never@11636 523 diagnostic(bool, LogEvents, true, \
tamao@20404 524 "Enable the various ring buffer event logs") \
never@11636 525 \
tschatzl@17392 526 diagnostic(uintx, LogEventsBufferEntries, 10, \
tamao@20404 527 "Number of ring buffer event logs") \
gziemski@31371 528 range(1, NOT_LP64(1*K) LP64_ONLY(1*M)) \
duke@1 529 \
duke@1 530 product(bool, BytecodeVerificationRemote, true, \
tamao@20404 531 "Enable the Java bytecode verifier for remote classes") \
duke@1 532 \
duke@1 533 product(bool, BytecodeVerificationLocal, false, \
tamao@20404 534 "Enable the Java bytecode verifier for local classes") \
duke@1 535 \
duke@1 536 develop(bool, ForceFloatExceptions, trueInDebug, \
duke@1 537 "Force exceptions on FP stack under/overflow") \
duke@1 538 \
duke@1 539 develop(bool, VerifyStackAtCalls, false, \
duke@1 540 "Verify that the stack pointer is unchanged after calls") \
duke@1 541 \
duke@1 542 develop(bool, TraceJavaAssertions, false, \
duke@1 543 "Trace java language assertions") \
duke@1 544 \
anoll@23214 545 notproduct(bool, VerifyCodeCache, false, \
anoll@23214 546 "Verify code cache on memory allocation/deallocation") \
duke@1 547 \
duke@1 548 develop(bool, UseMallocOnly, false, \
tamao@20404 549 "Use only malloc/free for allocation (no resource area/arena)") \
duke@1 550 \
kvn@8320 551 develop(bool, PrintMallocStatistics, false, \
tamao@20404 552 "Print malloc/free statistics") \
kvn@8320 553 \
duke@1 554 develop(bool, ZapResourceArea, trueInDebug, \
duke@1 555 "Zap freed resource/arena space with 0xABABABAB") \
duke@1 556 \
duke@1 557 notproduct(bool, ZapVMHandleArea, trueInDebug, \
duke@1 558 "Zap freed VM handle space with 0xBCBCBCBC") \
duke@1 559 \
jcoomes@6762 560 notproduct(bool, ZapStackSegments, trueInDebug, \
tamao@20404 561 "Zap allocated/freed stack segments with 0xFADFADED") \
jcoomes@6762 562 \
jmasa@971 563 develop(bool, ZapUnusedHeapArea, trueInDebug, \
duke@1 564 "Zap unused heap space with 0xBAADBABE") \
duke@1 565 \
jmasa@971 566 develop(bool, CheckZapUnusedHeapArea, false, \
jmasa@971 567 "Check zapping of unused heap space") \
jmasa@971 568 \
jcoomes@1668 569 develop(bool, ZapFillerObjects, trueInDebug, \
jcoomes@1668 570 "Zap filler objects with 0xDEAFBABE") \
jcoomes@1668 571 \
duke@1 572 develop(bool, PrintVMMessages, true, \
tamao@20404 573 "Print VM messages on console") \
duke@1 574 \
jcoomes@5403 575 notproduct(uintx, ErrorHandlerTest, 0, \
tamao@20404 576 "If > 0, provokes an error after VM initialization; the value " \
tamao@20404 577 "determines which error to provoke. See test_error_handler() " \
coleenp@46589 578 "in vmError.cpp.") \
jcoomes@5403 579 \
dholmes@28943 580 notproduct(uintx, TestCrashInErrorHandler, 0, \
dholmes@28943 581 "If > 0, provokes an error inside VM error handler (a secondary " \
coleenp@46589 582 "crash). see test_error_handler() in vmError.cpp") \
dholmes@28943 583 \
dholmes@29573 584 notproduct(bool, TestSafeFetchInErrorHandler, false, \
dholmes@29573 585 "If true, tests SafeFetch inside error handler.") \
dholmes@29573 586 \
stuefe@46284 587 notproduct(bool, TestUnresponsiveErrorHandler, false, \
stuefe@46284 588 "If true, simulates an unresponsive error handler.") \
stuefe@46284 589 \
duke@1 590 develop(bool, Verbose, false, \
tamao@20404 591 "Print additional debugging information from other modes") \
duke@1 592 \
duke@1 593 develop(bool, PrintMiscellaneous, false, \
tamao@20404 594 "Print uncategorized debugging information (requires +Verbose)") \
duke@1 595 \
duke@1 596 develop(bool, WizardMode, false, \
tamao@20404 597 "Print much more debugging information") \
duke@1 598 \
duke@1 599 product(bool, ShowMessageBoxOnError, false, \
duke@1 600 "Keep process alive on VM fatal error") \
duke@1 601 \
minqi@30240 602 product(bool, CreateCoredumpOnCrash, true, \
minqi@30240 603 "Create core/mini dump on VM fatal error") \
ctornqvi@8119 604 \
gziemski@34231 605 product(uint64_t, ErrorLogTimeout, 2 * 60, \
stuefe@31611 606 "Timeout, in seconds, to limit the time spent on writing an " \
stuefe@31611 607 "error log in case of a crash.") \
gziemski@34231 608 range(0, (uint64_t)max_jlong/1000) \
stuefe@31611 609 \
duke@1 610 product_pd(bool, UseOSErrorReporting, \
duke@1 611 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \
duke@1 612 \
duke@1 613 product(bool, SuppressFatalErrorMessage, false, \
tamao@20404 614 "Report NO fatal error message (avoid deadlock)") \
duke@1 615 \
duke@1 616 product(ccstrlist, OnError, "", \
duke@1 617 "Run user-defined commands on fatal error; see VMError.cpp " \
duke@1 618 "for examples") \
duke@1 619 \
duke@1 620 product(ccstrlist, OnOutOfMemoryError, "", \
duke@1 621 "Run user-defined commands on first java.lang.OutOfMemoryError") \
duke@1 622 \
ysr@2141 623 manageable(bool, HeapDumpBeforeFullGC, false, \
tamao@20404 624 "Dump heap to file before any major stop-the-world GC") \
ysr@2141 625 \
ysr@2141 626 manageable(bool, HeapDumpAfterFullGC, false, \
tamao@20404 627 "Dump heap to file after any major stop-the-world GC") \
ysr@2141 628 \
duke@1 629 manageable(bool, HeapDumpOnOutOfMemoryError, false, \
duke@1 630 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \
duke@1 631 \
duke@1 632 manageable(ccstr, HeapDumpPath, NULL, \
tamao@20404 633 "When HeapDumpOnOutOfMemoryError is on, the path (filename or " \
tamao@20404 634 "directory) of the dump file (defaults to java_pid<pid>.hprof " \
duke@1 635 "in the working directory)") \
duke@1 636 \
duke@1 637 develop(bool, BreakAtWarning, false, \
duke@1 638 "Execute breakpoint upon encountering VM warning") \
duke@1 639 \
duke@1 640 develop(bool, UseFakeTimers, false, \
tamao@20404 641 "Tell whether the VM should use system time or a fake timer") \
duke@1 642 \
zgu@13195 643 product(ccstr, NativeMemoryTracking, "off", \
zgu@13195 644 "Native memory tracking options") \
zgu@13195 645 \
zgu@13861 646 diagnostic(bool, PrintNMTStatistics, false, \
zgu@13861 647 "Print native memory tracking summary data if it is on") \
zgu@13861 648 \
duke@1 649 diagnostic(bool, LogCompilation, false, \
vlivanov@20010 650 "Log compilation activity in detail to LogFile") \
duke@1 651 \
duke@1 652 product(bool, PrintCompilation, false, \
duke@1 653 "Print compilations") \
duke@1 654 \
ghaug@51419 655 product(bool, PrintExtendedThreadInfo, false, \
ghaug@51419 656 "Print more information in thread dump") \
ghaug@51419 657 \
duke@1 658 diagnostic(bool, TraceNMethodInstalls, false, \
tamao@20404 659 "Trace nmethod installation") \
duke@1 660 \
twisti@11195 661 diagnostic(intx, ScavengeRootsInCode, 2, \
tamao@20404 662 "0: do not allow scavengable oops in the code cache; " \
tamao@20404 663 "1: allow scavenging from the code cache; " \
tamao@20404 664 "2: emit as many constants as the compiler can see") \
gziemski@31371 665 range(0, 2) \
jrose@3908 666 \
duke@1 667 product(bool, AlwaysRestoreFPU, false, \
duke@1 668 "Restore the FPU control word after every JNI call (expensive)") \
duke@1 669 \
kvn@10988 670 diagnostic(bool, PrintCompilation2, false, \
duke@1 671 "Print additional statistics per compilation") \
duke@1 672 \
jrose@347 673 diagnostic(bool, PrintAdapterHandlers, false, \
duke@1 674 "Print code generated for i2c/c2i adapters") \
duke@1 675 \
twisti@13391 676 diagnostic(bool, VerifyAdapterCalls, trueInDebug, \
twisti@13391 677 "Verify that i2c/c2i adapters are called properly") \
twisti@13391 678 \
never@4755 679 develop(bool, VerifyAdapterSharing, false, \
never@4755 680 "Verify that the code for shared adapters is the equivalent") \
never@4755 681 \
jrose@347 682 diagnostic(bool, PrintAssembly, false, \
jrose@347 683 "Print assembly code (using external disassembler.so)") \
jrose@347 684 \
never@1402 685 diagnostic(ccstr, PrintAssemblyOptions, NULL, \
tamao@20404 686 "Print options string passed to disassembler.so") \
jrose@347 687 \
twisti@33160 688 notproduct(bool, PrintNMethodStatistics, false, \
twisti@33160 689 "Print a summary statistic for the generated nmethods") \
twisti@33160 690 \
jrose@347 691 diagnostic(bool, PrintNMethods, false, \
duke@1 692 "Print assembly code for nmethods when generated") \
duke@1 693 \
jrose@347 694 diagnostic(bool, PrintNativeNMethods, false, \
duke@1 695 "Print assembly code for native nmethods when generated") \
duke@1 696 \
duke@1 697 develop(bool, PrintDebugInfo, false, \
duke@1 698 "Print debug information for all nmethods when generated") \
duke@1 699 \
duke@1 700 develop(bool, PrintRelocations, false, \
duke@1 701 "Print relocation information for all nmethods when generated") \
duke@1 702 \
duke@1 703 develop(bool, PrintDependencies, false, \
duke@1 704 "Print dependency information for all nmethods when generated") \
duke@1 705 \
duke@1 706 develop(bool, PrintExceptionHandlers, false, \
duke@1 707 "Print exception handler tables for all nmethods when generated") \
duke@1 708 \
kvn@14835 709 develop(bool, StressCompiledExceptionHandlers, false, \
tamao@20404 710 "Exercise compiled exception handlers") \
kvn@14835 711 \
duke@1 712 develop(bool, InterceptOSException, false, \
tamao@20404 713 "Start debugger when an implicit OS (e.g. NULL) " \
duke@1 714 "exception happens") \
duke@1 715 \
vladidan@15201 716 product(bool, PrintCodeCache, false, \
vladidan@15201 717 "Print the code cache memory usage when exiting") \
duke@1 718 \
duke@1 719 develop(bool, PrintCodeCache2, false, \
tamao@20404 720 "Print detailed usage information on the code cache when exiting")\
vladidan@15201 721 \
vladidan@15201 722 product(bool, PrintCodeCacheOnCompilation, false, \
tamao@20404 723 "Print the code cache memory usage each time a method is " \
tamao@20404 724 "compiled") \
duke@1 725 \
jrose@347 726 diagnostic(bool, PrintStubCode, false, \
duke@1 727 "Print generated stub code") \
duke@1 728 \
duke@1 729 product(bool, StackTraceInThrowable, true, \
duke@1 730 "Collect backtrace in throwable when exception happens") \
duke@1 731 \
duke@1 732 product(bool, OmitStackTraceInFastThrow, true, \
duke@1 733 "Omit backtraces for some 'hot' exceptions in optimized code") \
duke@1 734 \
duke@1 735 product(bool, ProfilerPrintByteCodeStatistics, false, \
tamao@20404 736 "Print bytecode statistics when dumping profiler output") \
duke@1 737 \
duke@1 738 product(bool, ProfilerRecordPC, false, \
tamao@20404 739 "Collect ticks for each 16 byte interval of compiled code") \
duke@1 740 \
phh@4434 741 product(bool, ProfileVM, false, \
tamao@20404 742 "Profile ticks that fall within VM (either in the VM Thread " \
duke@1 743 "or VM code called through stubs)") \
duke@1 744 \
duke@1 745 product(bool, ProfileIntervals, false, \
tamao@20404 746 "Print profiles for each interval (see ProfileIntervalsTicks)") \
duke@1 747 \
duke@1 748 notproduct(bool, ProfilerCheckIntervals, false, \
tamao@20404 749 "Collect and print information on spacing of profiler ticks") \
duke@1 750 \
kamg@6967 751 product(bool, PrintWarnings, true, \
tamao@20404 752 "Print JVM warnings to output stream") \
kamg@6967 753 \
duke@1 754 notproduct(uintx, WarnOnStalledSpinLock, 0, \
tamao@20404 755 "Print warnings for stalled SpinLocks") \
duke@1 756 \
duke@1 757 product(bool, RegisterFinalizersAtInit, true, \
duke@1 758 "Register finalizable objects at end of Object.<init> or " \
phh@4434 759 "after allocation") \
duke@1 760 \
duke@1 761 develop(bool, RegisterReferences, true, \
tamao@20404 762 "Tell whether the VM should register soft/weak/final/phantom " \
duke@1 763 "references") \
duke@1 764 \
duke@1 765 develop(bool, IgnoreRewrites, false, \
tamao@20404 766 "Suppress rewrites of bytecodes in the oopmap generator. " \
duke@1 767 "This is unsafe!") \
duke@1 768 \
duke@1 769 develop(bool, PrintCodeCacheExtension, false, \
duke@1 770 "Print extension of code cache") \
duke@1 771 \
duke@1 772 develop(bool, UsePrivilegedStack, true, \
duke@1 773 "Enable the security JVM functions") \
duke@1 774 \
duke@1 775 develop(bool, ProtectionDomainVerification, true, \
tamao@20404 776 "Verify protection domain before resolution in system dictionary")\
duke@1 777 \
duke@1 778 product(bool, ClassUnloading, true, \
duke@1 779 "Do unloading of classes") \
duke@1 780 \
stefank@25908 781 product(bool, ClassUnloadingWithConcurrentMark, true, \
stefank@25908 782 "Do unloading of classes with a concurrent marking cycle") \
stefank@25908 783 \
duke@1 784 develop(bool, DisableStartThread, false, \
duke@1 785 "Disable starting of additional Java threads " \
duke@1 786 "(for debugging only)") \
duke@1 787 \
duke@1 788 develop(bool, MemProfiling, false, \
duke@1 789 "Write memory usage profiling to log file") \
duke@1 790 \
duke@1 791 notproduct(bool, PrintSystemDictionaryAtExit, false, \
tamao@20404 792 "Print the system dictionary at exit") \
duke@1 793 \
gziemski@47955 794 diagnostic(bool, DynamicallyResizeSystemDictionaries, true, \
gziemski@47955 795 "Dynamically resize system dictionaries as needed") \
acorn@11628 796 \
acorn@1890 797 product(bool, AlwaysLockClassLoader, false, \
acorn@1890 798 "Require the VM to acquire the class loader lock before calling " \
acorn@1890 799 "loadClass() even for class loaders registering " \
phh@4434 800 "as parallel capable") \
acorn@1890 801 \
acorn@1890 802 product(bool, AllowParallelDefineClass, false, \
acorn@1890 803 "Allow parallel defineClass requests for class loaders " \
phh@4434 804 "registering as parallel capable") \
acorn@1890 805 \
duke@1 806 product_pd(bool, DontYieldALot, \
iignatyev@24931 807 "Throw away obvious excess yield calls") \
duke@1 808 \
duke@1 809 develop(bool, UseDetachedThreads, true, \
duke@1 810 "Use detached threads that are recycled upon termination " \
tamao@20404 811 "(for Solaris only)") \
duke@1 812 \
dholmes@48202 813 experimental(bool, DisablePrimordialThreadGuardPages, false, \
dholmes@48202 814 "Disable the use of stack guard pages if the JVM is loaded " \
dholmes@48202 815 "on the primordial process thread") \
dholmes@48202 816 \
duke@1 817 product(bool, UseLWPSynchronization, true, \
duke@1 818 "Use LWP-based instead of libthread-based synchronization " \
duke@1 819 "(SPARC only)") \
duke@1 820 \
acorn@5710 821 product(intx, MonitorBound, 0, "Bound Monitor population") \
zmajo@33163 822 range(0, max_jint) \
acorn@5710 823 \
rehn@46541 824 experimental(intx, MonitorUsedDeflationThreshold, 90, \
rehn@46541 825 "Percentage of used monitors before triggering cleanup " \
rehn@46541 826 "safepoint which deflates monitors (0 is off). " \
rehn@46541 827 "The check is performed on GuaranteedSafepointInterval.") \
rehn@46541 828 range(0, 100) \
rehn@46541 829 \
dcubed@25472 830 experimental(intx, hashCode, 5, \
dcubed@25472 831 "(Unstable) select hashCode generation algorithm") \
dcubed@25472 832 \
phh@4434 833 product(bool, FilterSpuriousWakeups, true, \
iignatyev@24931 834 "When true prevents OS-level spurious, or premature, wakeups " \
iignatyev@24931 835 "from Object.wait (Ignored for Windows)") \
duke@1 836 \
duke@1 837 develop(bool, UsePthreads, false, \
duke@1 838 "Use pthread-based instead of libthread-based synchronization " \
duke@1 839 "(SPARC only)") \
duke@1 840 \
duke@1 841 product(bool, ReduceSignalUsage, false, \
duke@1 842 "Reduce the use of OS signals in Java and/or the VM") \
duke@1 843 \
duke@1 844 develop_pd(bool, ShareVtableStubs, \
duke@1 845 "Share vtable stubs (smaller code but worse branch prediction") \
duke@1 846 \
duke@1 847 develop(bool, LoadLineNumberTables, true, \
tamao@20404 848 "Tell whether the class file parser loads line number tables") \
duke@1 849 \
duke@1 850 develop(bool, LoadLocalVariableTables, true, \
tamao@20404 851 "Tell whether the class file parser loads local variable tables") \
duke@1 852 \
duke@1 853 develop(bool, LoadLocalVariableTypeTables, true, \
tamao@20404 854 "Tell whether the class file parser loads local variable type" \
tamao@20404 855 "tables") \
duke@1 856 \
duke@1 857 product(bool, AllowUserSignalHandlers, false, \
duke@1 858 "Do not complain if the application installs signal handlers " \
duke@1 859 "(Solaris & Linux only)") \
duke@1 860 \
duke@1 861 product(bool, UseSignalChaining, true, \
duke@1 862 "Use signal-chaining to invoke signal handlers installed " \
duke@1 863 "by the application (Solaris & Linux only)") \
duke@1 864 \
duke@1 865 product(bool, AllowJNIEnvProxy, false, \
duke@1 866 "Allow JNIEnv proxies for jdbx") \
duke@1 867 \
duke@1 868 product(bool, RestoreMXCSROnJNICalls, false, \
duke@1 869 "Restore MXCSR when returning from JNI calls") \
duke@1 870 \
duke@1 871 product(bool, CheckJNICalls, false, \
duke@1 872 "Verify all arguments to JNI calls") \
duke@1 873 \
duke@1 874 product(bool, UseFastJNIAccessors, true, \
duke@1 875 "Use optimized versions of Get<Primitive>Field") \
duke@1 876 \
dsimms@25630 877 product(intx, MaxJNILocalCapacity, 65536, \
dsimms@25630 878 "Maximum allowable local JNI handle capacity to " \
dsimms@25630 879 "EnsureLocalCapacity() and PushLocalFrame(), " \
dsimms@25630 880 "where <= 0 is unlimited, default: 65536") \
gziemski@33222 881 range(min_intx, max_intx) \
dsimms@25630 882 \
duke@1 883 product(bool, EagerXrunInit, false, \
duke@1 884 "Eagerly initialize -Xrun libraries; allows startup profiling, " \
tamao@20404 885 "but not all -Xrun libraries may support the state of the VM " \
tamao@20404 886 "at this time") \
duke@1 887 \
duke@1 888 product(bool, PreserveAllAnnotations, false, \
tamao@20404 889 "Preserve RuntimeInvisibleAnnotations as well " \
tamao@20404 890 "as RuntimeVisibleAnnotations") \
duke@1 891 \
duke@1 892 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \
duke@1 893 "Number of OutOfMemoryErrors preallocated with backtrace") \
duke@1 894 \
kvn@1437 895 product(bool, UseXMMForArrayCopy, false, \
kvn@1437 896 "Use SSE2 MOVQ instruction for Arraycopy") \
kvn@1437 897 \
duke@1 898 product(intx, FieldsAllocationStyle, 1, \
gziemski@31371 899 "0 - type based with oops first, " \
gziemski@31371 900 "1 - with oops last, " \
kvn@5250 901 "2 - oops in super and sub classes are together") \
gziemski@31371 902 range(0, 2) \
duke@1 903 \
duke@1 904 product(bool, CompactFields, true, \
duke@1 905 "Allocate nonstatic fields in gaps between previous fields") \
duke@1 906 \
jwilhelm@15193 907 notproduct(bool, PrintFieldLayout, false, \
jwilhelm@15193 908 "Print field layout for each class") \
jwilhelm@15193 909 \
gziemski@31371 910 /* Need to limit the extent of the padding to reasonable size. */\
gziemski@31371 911 /* 8K is well beyond the reasonable HW cache line size, even with */\
gziemski@31371 912 /* aggressive prefetching, while still leaving the room for segregating */\
gziemski@31371 913 /* among the distinct pages. */\
jwilhelm@15193 914 product(intx, ContendedPaddingWidth, 128, \
jwilhelm@15193 915 "How many bytes to pad the fields/classes marked @Contended with")\
gziemski@31371 916 range(0, 8192) \
gziemski@33222 917 constraint(ContendedPaddingWidthConstraintFunc,AfterErgo) \
jwilhelm@15193 918 \
jwilhelm@15193 919 product(bool, EnableContended, true, \
jwilhelm@15193 920 "Enable @Contended annotation support") \
jwilhelm@15193 921 \
jwilhelm@15193 922 product(bool, RestrictContended, true, \
jwilhelm@15193 923 "Restrict @Contended to trusted classes") \
jwilhelm@15193 924 \
duke@1 925 product(bool, UseBiasedLocking, true, \
duke@1 926 "Enable biased locking in JVM") \
duke@1 927 \
rehn@46577 928 product(intx, BiasedLockingStartupDelay, 0, \
duke@1 929 "Number of milliseconds to wait before enabling biased locking") \
gziemski@33222 930 range(0, (intx)(max_jint-(max_jint%PeriodicTask::interval_gran))) \
gziemski@33222 931 constraint(BiasedLockingStartupDelayFunc,AfterErgo) \
duke@1 932 \
duke@1 933 diagnostic(bool, PrintBiasedLockingStatistics, false, \
duke@1 934 "Print statistics of biased locking in JVM") \
duke@1 935 \
duke@1 936 product(intx, BiasedLockingBulkRebiasThreshold, 20, \
duke@1 937 "Threshold of number of revocations per type to try to " \
duke@1 938 "rebias all objects in the heap of that type") \
gziemski@33222 939 range(0, max_intx) \
gziemski@33222 940 constraint(BiasedLockingBulkRebiasThresholdFunc,AfterErgo) \
duke@1 941 \
duke@1 942 product(intx, BiasedLockingBulkRevokeThreshold, 40, \
duke@1 943 "Threshold of number of revocations per type to permanently " \
duke@1 944 "revoke biases of all objects in the heap of that type") \
gziemski@33222 945 range(0, max_intx) \
gziemski@33222 946 constraint(BiasedLockingBulkRevokeThresholdFunc,AfterErgo) \
duke@1 947 \
duke@1 948 product(intx, BiasedLockingDecayTime, 25000, \
duke@1 949 "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \
duke@1 950 "type after previous bulk rebias") \
gziemski@33222 951 range(500, max_intx) \
gziemski@33222 952 constraint(BiasedLockingDecayTimeFunc,AfterErgo) \
duke@1 953 \
kevinw@34670 954 product(bool, ExitOnOutOfMemoryError, false, \
kevinw@34670 955 "JVM exits on the first occurrence of an out-of-memory error") \
kevinw@34670 956 \
kevinw@34670 957 product(bool, CrashOnOutOfMemoryError, false, \
kevinw@34670 958 "JVM aborts, producing an error log and core/mini dump, on the " \
kevinw@34670 959 "first occurrence of an out-of-memory error") \
kevinw@34670 960 \
duke@1 961 /* tracing */ \
duke@1 962 \
coleenp@22750 963 develop(bool, StressRewriter, false, \
coleenp@22750 964 "Stress linktime bytecode rewriting") \
coleenp@22750 965 \
never@1402 966 product(ccstr, TraceJVMTI, NULL, \
duke@1 967 "Trace flags for JVMTI functions and events") \
duke@1 968 \
duke@1 969 /* This option can change an EMCP method into an obsolete method. */ \
duke@1 970 /* This can affect tests that except specific methods to be EMCP. */ \
gziemski@31371 971 /* This option should be used with caution. */ \
duke@1 972 product(bool, StressLdcRewrite, false, \
duke@1 973 "Force ldc -> ldc_w rewrite during RedefineClasses") \
duke@1 974 \
duke@1 975 /* change to false by default sometime after Mustang */ \
duke@1 976 product(bool, VerifyMergedCPBytecodes, true, \
duke@1 977 "Verify bytecodes after RedefineClasses constant pool merging") \
duke@1 978 \
duke@1 979 develop(bool, TraceBytecodes, false, \
duke@1 980 "Trace bytecode execution") \
duke@1 981 \
duke@1 982 develop(bool, TraceICs, false, \
duke@1 983 "Trace inline cache changes") \
duke@1 984 \
duke@1 985 notproduct(bool, TraceInvocationCounterOverflow, false, \
duke@1 986 "Trace method invocation counter overflow") \
duke@1 987 \
duke@1 988 develop(bool, TraceInlineCacheClearing, false, \
duke@1 989 "Trace clearing of inline caches in nmethods") \
duke@1 990 \
duke@1 991 develop(bool, TraceDependencies, false, \
duke@1 992 "Trace dependencies") \
duke@1 993 \
duke@1 994 develop(bool, VerifyDependencies, trueInDebug, \
tamao@20404 995 "Exercise and verify the compilation dependency mechanism") \
duke@1 996 \
duke@1 997 develop(bool, TraceNewOopMapGeneration, false, \
duke@1 998 "Trace OopMapGeneration") \
duke@1 999 \
duke@1 1000 develop(bool, TraceNewOopMapGenerationDetailed, false, \
duke@1 1001 "Trace OopMapGeneration: print detailed cell states") \
duke@1 1002 \
duke@1 1003 develop(bool, TimeOopMap, false, \
duke@1 1004 "Time calls to GenerateOopMap::compute_map() in sum") \
duke@1 1005 \
duke@1 1006 develop(bool, TimeOopMap2, false, \
duke@1 1007 "Time calls to GenerateOopMap::compute_map() individually") \
duke@1 1008 \
duke@1 1009 develop(bool, TraceOopMapRewrites, false, \
tamao@20404 1010 "Trace rewriting of method oops during oop map generation") \
duke@1 1011 \
duke@1 1012 develop(bool, TraceICBuffer, false, \
duke@1 1013 "Trace usage of IC buffer") \
duke@1 1014 \
duke@1 1015 develop(bool, TraceCompiledIC, false, \
duke@1 1016 "Trace changes of compiled IC") \
duke@1 1017 \
duke@1 1018 develop(bool, FLSVerifyDictionary, false, \
duke@1 1019 "Do lots of (expensive) FLS dictionary verification") \
duke@1 1020 \
duke@1 1021 \
duke@1 1022 notproduct(bool, CheckMemoryInitialization, false, \
tamao@20404 1023 "Check memory initialization") \
duke@1 1024 \
duke@1 1025 product(uintx, ProcessDistributionStride, 4, \
duke@1 1026 "Stride through processors when distributing processes") \
sangheki@34661 1027 range(0, max_juint) \
duke@1 1028 \
duke@1 1029 develop(bool, TraceFinalizerRegistration, false, \
tamao@20404 1030 "Trace registration of final references") \
duke@1 1031 \
iklam@26135 1032 product(bool, IgnoreEmptyClassPaths, false, \
iklam@26135 1033 "Ignore empty path elements in -classpath") \
iklam@26135 1034 \
jwilhelm@29697 1035 product(size_t, InitialBootClassLoaderMetaspaceSize, \
jmasa@15086 1036 NOT_LP64(2200*K) LP64_ONLY(4*M), \
coleenp@13728 1037 "Initial size of the boot class loader data metaspace") \
sangheki@33144 1038 range(30*K, max_uintx/BytesPerWord) \
sangheki@33144 1039 constraint(InitialBootClassLoaderMetaspaceSizeConstraintFunc, AfterErgo)\
coleenp@13728 1040 \
duke@1 1041 product(bool, PrintHeapAtSIGBREAK, true, \
duke@1 1042 "Print heap layout in response to SIGBREAK") \
duke@1 1043 \
duke@1 1044 manageable(bool, PrintClassHistogram, false, \
duke@1 1045 "Print a histogram of class instances") \
duke@1 1046 \
duke@1 1047 develop(bool, IgnoreLibthreadGPFault, false, \
duke@1 1048 "Suppress workaround for libthread GP fault") \
duke@1 1049 \
sla@18025 1050 experimental(double, ObjectCountCutOffPercent, 0.5, \
sla@18025 1051 "The percentage of the used heap that the instances of a class " \
tamao@20404 1052 "must occupy for the class to generate a trace event") \
sangheki@33144 1053 range(0.0, 100.0) \
sla@18025 1054 \
duke@1 1055 /* JVMTI heap profiling */ \
duke@1 1056 \
duke@1 1057 diagnostic(bool, TraceJVMTIObjectTagging, false, \
duke@1 1058 "Trace JVMTI object tagging calls") \
duke@1 1059 \
duke@1 1060 diagnostic(bool, VerifyBeforeIteration, false, \
duke@1 1061 "Verify memory system before JVMTI iteration") \
duke@1 1062 \
duke@1 1063 /* compiler interface */ \
duke@1 1064 \
duke@1 1065 develop(bool, CIPrintCompilerName, false, \
duke@1 1066 "when CIPrint is active, print the name of the active compiler") \
duke@1 1067 \
neliasso@26587 1068 diagnostic(bool, CIPrintCompileQueue, false, \
duke@1 1069 "display the contents of the compile queue whenever a " \
duke@1 1070 "compilation is enqueued") \
duke@1 1071 \
duke@1 1072 develop(bool, CIPrintRequests, false, \
duke@1 1073 "display every request for compilation") \
duke@1 1074 \
duke@1 1075 product(bool, CITime, false, \
duke@1 1076 "collect timing information for compilation") \
duke@1 1077 \
shade@26913 1078 develop(bool, CITimeVerbose, false, \
shade@26913 1079 "be more verbose in compilation timings") \
shade@26913 1080 \
duke@1 1081 develop(bool, CITimeEach, false, \
duke@1 1082 "display timing information after each successful compilation") \
duke@1 1083 \
vlivanov@13964 1084 develop(bool, CICountOSR, false, \
duke@1 1085 "use a separate counter when assigning ids to osr compilations") \
duke@1 1086 \
duke@1 1087 develop(bool, CICompileNatives, true, \
duke@1 1088 "compile native methods if supported by the compiler") \
duke@1 1089 \
duke@1 1090 develop_pd(bool, CICompileOSR, \
duke@1 1091 "compile on stack replacement methods if supported by the " \
duke@1 1092 "compiler") \
duke@1 1093 \
duke@1 1094 develop(bool, CIPrintMethodCodes, false, \
duke@1 1095 "print method bytecodes of the compiled code") \
duke@1 1096 \
duke@1 1097 develop(bool, CIPrintTypeFlow, false, \
duke@1 1098 "print the results of ciTypeFlow analysis") \
duke@1 1099 \
duke@1 1100 develop(bool, CITraceTypeFlow, false, \
duke@1 1101 "detailed per-bytecode tracing of ciTypeFlow analysis") \
duke@1 1102 \
never@8870 1103 develop(intx, OSROnlyBCI, -1, \
never@8870 1104 "OSR only at this bci. Negative values mean exclude that bci") \
never@8870 1105 \
duke@1 1106 /* compiler */ \
duke@1 1107 \
gziemski@31371 1108 /* notice: the max range value here is max_jint, not max_intx */ \
gziemski@31371 1109 /* because of overflow issue */ \
duke@1 1110 product(intx, CICompilerCount, CI_COMPILER_COUNT, \
duke@1 1111 "Number of compiler threads to run") \
roland@31959 1112 range(0, max_jint) \
thartmann@40364 1113 constraint(CICompilerCountConstraintFunc, AfterErgo) \
duke@1 1114 \
mdoerr@50359 1115 product(bool, UseDynamicNumberOfCompilerThreads, true, \
mdoerr@50359 1116 "Dynamically choose the number of parallel compiler threads") \
mdoerr@50359 1117 \
mdoerr@50359 1118 diagnostic(bool, ReduceNumberOfCompilerThreads, true, \
mdoerr@50359 1119 "Reduce the number of parallel compiler threads when they " \
mdoerr@50359 1120 "are not used") \
mdoerr@50359 1121 \
mdoerr@50359 1122 diagnostic(bool, TraceCompilerThreads, false, \
mdoerr@50359 1123 "Trace creation and removal of compiler threads") \
mdoerr@50359 1124 \
mdoerr@50359 1125 develop(bool, InjectCompilerCreationFailure, false, \
mdoerr@50359 1126 "Inject thread creation failures for " \
mdoerr@50359 1127 "UseDynamicNumberOfCompilerThreads") \
mdoerr@50359 1128 \
duke@1 1129 product(intx, CompilationPolicyChoice, 0, \
redestad@50604 1130 "which compilation policy (0-2)") \
redestad@50604 1131 range(0, 2) \
duke@1 1132 \
duke@1 1133 develop(bool, UseStackBanging, true, \
duke@1 1134 "use stack banging for stack overflow checks (required for " \
duke@1 1135 "proper StackOverflow handling; disable only to measure cost " \
duke@1 1136 "of stackbanging)") \
duke@1 1137 \
duke@1 1138 develop(bool, UseStrictFP, true, \
duke@1 1139 "use strict fp if modifier strictfp is set") \
duke@1 1140 \
duke@1 1141 develop(bool, GenerateSynchronizationCode, true, \
duke@1 1142 "generate locking/unlocking code for synchronized methods and " \
duke@1 1143 "monitors") \
duke@1 1144 \
duke@1 1145 develop(bool, GenerateRangeChecks, true, \
duke@1 1146 "Generate range checks for array accesses") \
duke@1 1147 \
csahu@39117 1148 diagnostic_pd(bool, ImplicitNullChecks, \
tamao@20404 1149 "Generate code for implicit null checks") \
duke@1 1150 \
goetz@22856 1151 product_pd(bool, TrapBasedNullChecks, \
goetz@22856 1152 "Generate code for null checks that uses a cmp and trap " \
goetz@22856 1153 "instruction raising SIGTRAP. This is only used if an access to" \
goetz@22856 1154 "null (+offset) will not raise a SIGSEGV, i.e.," \
goetz@22856 1155 "ImplicitNullChecks don't work (PPC64).") \
goetz@22856 1156 \
dcubed@48321 1157 diagnostic(bool, EnableThreadSMRExtraValidityChecks, true, \
dcubed@48321 1158 "Enable Thread SMR extra validity checks") \
dcubed@48321 1159 \
dcubed@48400 1160 diagnostic(bool, EnableThreadSMRStatistics, trueInDebug, \
dcubed@48321 1161 "Enable Thread SMR Statistics") \
dcubed@48321 1162 \
duke@1 1163 product(bool, Inline, true, \
tamao@20404 1164 "Enable inlining") \
duke@1 1165 \
duke@1 1166 product(bool, ClipInlining, true, \
tamao@20404 1167 "Clip inlining if aggregate method exceeds DesiredMethodLimit") \
duke@1 1168 \
duke@1 1169 develop(bool, UseCHA, true, \
tamao@20404 1170 "Enable CHA") \
duke@1 1171 \
duke@1 1172 product(bool, UseTypeProfile, true, \
duke@1 1173 "Check interpreter profile for historically monomorphic calls") \
duke@1 1174 \
duke@1 1175 diagnostic(bool, PrintInlining, false, \
tamao@20404 1176 "Print inlining optimizations") \
duke@1 1177 \
twisti@2255 1178 product(bool, UsePopCountInstruction, false, \
twisti@2255 1179 "Use population count instruction") \
twisti@2255 1180 \
duke@1 1181 develop(bool, EagerInitialization, false, \
duke@1 1182 "Eagerly initialize classes if possible") \
duke@1 1183 \
minqi@31790 1184 diagnostic(bool, LogTouchedMethods, false, \
minqi@31790 1185 "Log methods which have been ever touched in runtime") \
minqi@31790 1186 \
minqi@31790 1187 diagnostic(bool, PrintTouchedMethodsAtExit, false, \
minqi@31790 1188 "Print all methods that have been ever touched in runtime") \
minqi@31790 1189 \
duke@1 1190 develop(bool, TraceMethodReplacement, false, \
duke@1 1191 "Print when methods are replaced do to recompilation") \
duke@1 1192 \
duke@1 1193 develop(bool, PrintMethodFlushing, false, \
tamao@20404 1194 "Print the nmethods being flushed") \
duke@1 1195 \
anoll@22210 1196 diagnostic(bool, PrintMethodFlushingStatistics, false, \
anoll@22210 1197 "print statistics about method flushing") \
anoll@22210 1198 \
iveresov@24442 1199 diagnostic(intx, HotMethodDetectionLimit, 100000, \
iveresov@24442 1200 "Number of compiled code invocations after which " \
iveresov@24442 1201 "the method is considered as hot by the flusher") \
zmajo@33163 1202 range(1, max_jint) \
iveresov@24442 1203 \
iveresov@24442 1204 diagnostic(intx, MinPassesBeforeFlush, 10, \
iveresov@24442 1205 "Minimum number of sweeper passes before an nmethod " \
iveresov@24442 1206 "can be flushed") \
gziemski@33222 1207 range(0, max_intx) \
iveresov@24442 1208 \
iveresov@24442 1209 product(bool, UseCodeAging, true, \
iveresov@24442 1210 "Insert counter to detect warm methods") \
iveresov@24442 1211 \
iveresov@24442 1212 diagnostic(bool, StressCodeAging, false, \
iveresov@24442 1213 "Start with counters compiled in") \
iveresov@24442 1214 \
duke@1 1215 develop(bool, StressCodeBuffers, false, \
tamao@20404 1216 "Exercise code buffer expansion and other rare state changes") \
duke@1 1217 \
duke@1 1218 diagnostic(bool, DebugNonSafepoints, trueInDebug, \
tamao@20404 1219 "Generate extra debugging information for non-safepoints in " \
tamao@20404 1220 "nmethods") \
duke@1 1221 \
dholmes@10990 1222 product(bool, PrintVMOptions, false, \
tamao@20404 1223 "Print flags that appeared on the command line") \
duke@1 1224 \
kvn@2028 1225 product(bool, IgnoreUnrecognizedVMOptions, false, \
tamao@20404 1226 "Ignore unrecognized VM options") \
kvn@2028 1227 \
kvn@4579 1228 product(bool, PrintCommandLineFlags, false, \
tamao@20404 1229 "Print flags specified on command line or set by ergonomics") \
kvn@4579 1230 \
kvn@4579 1231 product(bool, PrintFlagsInitial, false, \
tamao@20404 1232 "Print all VM flags before argument processing and exit VM") \
kvn@4579 1233 \
kvn@4579 1234 product(bool, PrintFlagsFinal, false, \
tamao@20404 1235 "Print all VM flags after argument and ergonomic processing") \
kvn@4579 1236 \
ikrylov@6438 1237 notproduct(bool, PrintFlagsWithComments, false, \
tamao@20404 1238 "Print all VM flags with default values and descriptions and " \
tamao@20404 1239 "exit") \
ikrylov@6438 1240 \
gziemski@31371 1241 product(bool, PrintFlagsRanges, false, \
gziemski@31371 1242 "Print VM flags and their ranges and exit VM") \
gziemski@31371 1243 \
duke@1 1244 diagnostic(bool, SerializeVMOutput, true, \
tamao@20404 1245 "Use a mutex to serialize output to tty and LogFile") \
duke@1 1246 \
duke@1 1247 diagnostic(bool, DisplayVMOutput, true, \
tamao@20404 1248 "Display all VM output on the tty, independently of LogVMOutput") \
duke@1 1249 \
vlivanov@20010 1250 diagnostic(bool, LogVMOutput, false, \
tamao@20404 1251 "Save VM output to LogFile") \
duke@1 1252 \
duke@1 1253 diagnostic(ccstr, LogFile, NULL, \
tamao@20404 1254 "If LogVMOutput or LogCompilation is on, save VM output to " \
tamao@20404 1255 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
duke@1 1256 \
duke@1 1257 product(ccstr, ErrorFile, NULL, \
tamao@20404 1258 "If an error occurs, save the error data to this file " \
tamao@20404 1259 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \
duke@1 1260 \
stuefe@53383 1261 product(bool, ExtensiveErrorReports, \
stuefe@53421 1262 PRODUCT_ONLY(false) NOT_PRODUCT(true), \
stuefe@53421 1263 "Error reports are more extensive.") \
stuefe@53383 1264 \
duke@1 1265 product(bool, DisplayVMOutputToStderr, false, \
tamao@20404 1266 "If DisplayVMOutput is true, display all VM output to stderr") \
duke@1 1267 \
duke@1 1268 product(bool, DisplayVMOutputToStdout, false, \
tamao@20404 1269 "If DisplayVMOutput is true, display all VM output to stdout") \
duke@1 1270 \
duke@1 1271 product(bool, UseHeavyMonitors, false, \
duke@1 1272 "use heavyweight instead of lightweight Java monitors") \
duke@1 1273 \
coleenp@13087 1274 product(bool, PrintStringTableStatistics, false, \
coleenp@13087 1275 "print statistics about the StringTable and SymbolTable") \
coleenp@13087 1276 \
dcubed@20053 1277 diagnostic(bool, VerifyStringTableAtExit, false, \
dcubed@20053 1278 "verify StringTable contents at exit") \
dcubed@20053 1279 \
duke@1 1280 notproduct(bool, PrintSymbolTableSizeHistogram, false, \
duke@1 1281 "print histogram of the symbol table") \
duke@1 1282 \
duke@1 1283 notproduct(bool, ExitVMOnVerifyError, false, \
duke@1 1284 "standard exit from VM if bytecode verify error " \
duke@1 1285 "(only in debug mode)") \
duke@1 1286 \
poonam@33208 1287 diagnostic(ccstr, AbortVMOnException, NULL, \
duke@1 1288 "Call fatal if this exception is thrown. Example: " \
duke@1 1289 "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
duke@1 1290 \
poonam@33208 1291 diagnostic(ccstr, AbortVMOnExceptionMessage, NULL, \
kvn@6179 1292 "Call fatal if the exception pointed by AbortVMOnException " \
tamao@20404 1293 "has this message") \
kvn@6179 1294 \
duke@1 1295 develop(bool, DebugVtables, false, \
duke@1 1296 "add debugging code to vtable dispatch") \
duke@1 1297 \
duke@1 1298 notproduct(bool, PrintVtableStats, false, \
duke@1 1299 "print vtables stats at end of run") \
duke@1 1300 \
duke@1 1301 develop(bool, TraceCreateZombies, false, \
duke@1 1302 "trace creation of zombie nmethods") \
duke@1 1303 \
duke@1 1304 notproduct(bool, IgnoreLockingAssertions, false, \
duke@1 1305 "disable locking assertions (for speed)") \
duke@1 1306 \
duke@1 1307 product(bool, RangeCheckElimination, true, \
roland@16611 1308 "Eliminate range checks") \
duke@1 1309 \
duke@1 1310 develop_pd(bool, UncommonNullCast, \
duke@1 1311 "track occurrences of null in casts; adjust compiler tactics") \
duke@1 1312 \
duke@1 1313 develop(bool, TypeProfileCasts, true, \
duke@1 1314 "treat casts like calls for purposes of type profiling") \
duke@1 1315 \
duke@1 1316 develop(bool, DelayCompilationDuringStartup, true, \
duke@1 1317 "Delay invoking the compiler until main application class is " \
duke@1 1318 "loaded") \
duke@1 1319 \
duke@1 1320 develop(bool, CompileTheWorld, false, \
duke@1 1321 "Compile all methods in all classes in bootstrap class path " \
twisti@33160 1322 "(stress test)") \
duke@1 1323 \
duke@1 1324 develop(bool, CompileTheWorldPreloadClasses, true, \
duke@1 1325 "Preload all classes used by a class before start loading") \
duke@1 1326 \
kvn@4736 1327 notproduct(intx, CompileTheWorldSafepointInterval, 100, \
kvn@4736 1328 "Force a safepoint every n compiles so sweeper can keep up") \
kvn@4736 1329 \
duke@1 1330 develop(bool, FillDelaySlots, true, \
duke@1 1331 "Fill delay slots (on SPARC only)") \
duke@1 1332 \
duke@1 1333 develop(bool, TimeLivenessAnalysis, false, \
duke@1 1334 "Time computation of bytecode liveness analysis") \
duke@1 1335 \
duke@1 1336 develop(bool, TraceLivenessGen, false, \
duke@1 1337 "Trace the generation of liveness analysis information") \
duke@1 1338 \
duke@1 1339 notproduct(bool, TraceLivenessQuery, false, \
duke@1 1340 "Trace queries of liveness analysis information") \
duke@1 1341 \
duke@1 1342 notproduct(bool, CollectIndexSetStatistics, false, \
duke@1 1343 "Collect information about IndexSets") \
duke@1 1344 \
duke@1 1345 develop(bool, UseLoopSafepoints, true, \
duke@1 1346 "Generate Safepoint nodes in every loop") \
duke@1 1347 \
duke@1 1348 develop(intx, FastAllocateSizeLimit, 128*K, \
duke@1 1349 /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \
duke@1 1350 "Inline allocations larger than this in doublewords must go slow")\
duke@1 1351 \
thartmann@33628 1352 product_pd(bool, CompactStrings, \
thartmann@33628 1353 "Enable Strings to use single byte chars in backing store") \
thartmann@33628 1354 \
roland@20702 1355 product_pd(uintx, TypeProfileLevel, \
roland@21095 1356 "=XYZ, with Z: Type profiling of arguments at call; " \
roland@21095 1357 "Y: Type profiling of return value at call; " \
roland@21095 1358 "X: Type profiling of parameters to methods; " \
roland@21095 1359 "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods") \
zmajo@33163 1360 constraint(TypeProfileLevelConstraintFunc, AfterErgo) \
roland@20702 1361 \
roland@20702 1362 product(intx, TypeProfileArgsLimit, 2, \
roland@20702 1363 "max number of call arguments to consider for type profiling") \
zmajo@33163 1364 range(0, 16) \
roland@20702 1365 \
roland@21095 1366 product(intx, TypeProfileParmsLimit, 2, \
roland@21095 1367 "max number of incoming parameters to consider for type profiling"\
roland@21095 1368 ", -1 for all") \
zmajo@33163 1369 range(-1, 64) \
roland@21095 1370 \
duke@1 1371 /* statistics */ \
duke@1 1372 develop(bool, CountCompiledCalls, false, \
tamao@20404 1373 "Count method invocations") \
duke@1 1374 \
duke@1 1375 notproduct(bool, CountRuntimeCalls, false, \
tamao@20404 1376 "Count VM runtime calls") \
duke@1 1377 \
duke@1 1378 develop(bool, CountJNICalls, false, \
tamao@20404 1379 "Count jni method invocations") \
duke@1 1380 \
duke@1 1381 notproduct(bool, CountJVMCalls, false, \
tamao@20404 1382 "Count jvm method invocations") \
duke@1 1383 \
duke@1 1384 notproduct(bool, CountRemovableExceptions, false, \
tamao@20404 1385 "Count exceptions that could be replaced by branches due to " \
duke@1 1386 "inlining") \
duke@1 1387 \
duke@1 1388 notproduct(bool, ICMissHistogram, false, \
tamao@20404 1389 "Produce histogram of IC misses") \
duke@1 1390 \
duke@1 1391 /* interpreter */ \
duke@1 1392 product_pd(bool, RewriteBytecodes, \
duke@1 1393 "Allow rewriting of bytecodes (bytecodes are not immutable)") \
duke@1 1394 \
duke@1 1395 product_pd(bool, RewriteFrequentPairs, \
duke@1 1396 "Rewrite frequently used bytecode pairs into a single bytecode") \
duke@1 1397 \
jrose@347 1398 diagnostic(bool, PrintInterpreter, false, \
tamao@20404 1399 "Print the generated interpreter code") \
duke@1 1400 \
duke@1 1401 product(bool, UseInterpreter, true, \
duke@1 1402 "Use interpreter for non-compiled methods") \
duke@1 1403 \
duke@1 1404 develop(bool, UseFastSignatureHandlers, true, \
duke@1 1405 "Use fast signature handlers for native calls") \
duke@1 1406 \
duke@1 1407 product(bool, UseLoopCounter, true, \
duke@1 1408 "Increment invocation counter on backward branch") \
duke@1 1409 \
duke@1 1410 product_pd(bool, UseOnStackReplacement, \
tamao@20404 1411 "Use on stack replacement, calls runtime if invoc. counter " \
tamao@20404 1412 "overflows in loop") \
duke@1 1413 \
duke@1 1414 notproduct(bool, TraceOnStackReplacement, false, \
duke@1 1415 "Trace on stack replacement") \
duke@1 1416 \
duke@1 1417 product_pd(bool, PreferInterpreterNativeStubs, \
duke@1 1418 "Use always interpreter stubs for native methods invoked via " \
duke@1 1419 "interpreter") \
duke@1 1420 \
duke@1 1421 develop(bool, CountBytecodes, false, \
duke@1 1422 "Count number of bytecodes executed") \
duke@1 1423 \
duke@1 1424 develop(bool, PrintBytecodeHistogram, false, \
duke@1 1425 "Print histogram of the executed bytecodes") \
duke@1 1426 \
duke@1 1427 develop(bool, PrintBytecodePairHistogram, false, \
duke@1 1428 "Print histogram of the executed bytecode pairs") \
duke@1 1429 \
jrose@347 1430 diagnostic(bool, PrintSignatureHandlers, false, \
duke@1 1431 "Print code generated for native method signature handlers") \
duke@1 1432 \
duke@1 1433 develop(bool, VerifyOops, false, \
duke@1 1434 "Do plausibility checks for oops") \
duke@1 1435 \
duke@1 1436 develop(bool, CheckUnhandledOops, false, \
duke@1 1437 "Check for unhandled oops in VM code") \
duke@1 1438 \
duke@1 1439 develop(bool, VerifyJNIFields, trueInDebug, \
duke@1 1440 "Verify jfieldIDs for instance fields") \
duke@1 1441 \
duke@1 1442 notproduct(bool, VerifyJNIEnvThread, false, \
duke@1 1443 "Verify JNIEnv.thread == Thread::current() when entering VM " \
duke@1 1444 "from JNI") \
duke@1 1445 \
duke@1 1446 develop(bool, VerifyFPU, false, \
duke@1 1447 "Verify FPU state (check for NaN's, etc.)") \
duke@1 1448 \
duke@1 1449 develop(bool, VerifyThread, false, \
duke@1 1450 "Watch the thread register for corruption (SPARC only)") \
duke@1 1451 \
duke@1 1452 develop(bool, VerifyActivationFrameSize, false, \
duke@1 1453 "Verify that activation frame didn't become smaller than its " \
duke@1 1454 "minimal size") \
duke@1 1455 \
duke@1 1456 develop(bool, TraceFrequencyInlining, false, \
duke@1 1457 "Trace frequency based inlining") \
duke@1 1458 \
duke@1 1459 develop_pd(bool, InlineIntrinsics, \
tamao@20404 1460 "Inline intrinsics that can be statically resolved") \
duke@1 1461 \
duke@1 1462 product_pd(bool, ProfileInterpreter, \
tamao@20404 1463 "Profile at the bytecode level during interpretation") \
duke@1 1464 \
goetz@22836 1465 develop(bool, TraceProfileInterpreter, false, \
goetz@22836 1466 "Trace profiling at the bytecode level during interpretation. " \
goetz@22836 1467 "This outputs the profiling information collected to improve " \
goetz@22836 1468 "jit compilation.") \
goetz@22836 1469 \
duke@1 1470 develop_pd(bool, ProfileTraps, \
duke@1 1471 "Profile deoptimization traps at the bytecode level") \
duke@1 1472 \
duke@1 1473 product(intx, ProfileMaturityPercentage, 20, \
duke@1 1474 "number of method invocations/branches (expressed as % of " \
duke@1 1475 "CompileThreshold) before using the method's profile") \
gziemski@31371 1476 range(0, 100) \
duke@1 1477 \
roland@23526 1478 diagnostic(bool, PrintMethodData, false, \
tamao@20404 1479 "Print the results of +ProfileInterpreter at end of run") \
duke@1 1480 \
duke@1 1481 develop(bool, VerifyDataPointer, trueInDebug, \
duke@1 1482 "Verify the method data pointer during interpreter profiling") \
duke@1 1483 \
duke@1 1484 develop(bool, VerifyCompiledCode, false, \
duke@1 1485 "Include miscellaneous runtime verifications in nmethod code; " \
phh@4434 1486 "default off because it disturbs nmethod size heuristics") \
duke@1 1487 \
minqi@4489 1488 notproduct(bool, CrashGCForDumpingJavaThread, false, \
minqi@4489 1489 "Manually make GC thread crash then dump java stack trace; " \
minqi@4489 1490 "Test only") \
duke@1 1491 \
duke@1 1492 /* compilation */ \
duke@1 1493 product(bool, UseCompiler, true, \
tamao@20404 1494 "Use Just-In-Time compilation") \
duke@1 1495 \
duke@1 1496 develop(bool, TraceCompilationPolicy, false, \
duke@1 1497 "Trace compilation policy") \
duke@1 1498 \
duke@1 1499 develop(bool, TimeCompilationPolicy, false, \
duke@1 1500 "Time the compilation policy") \
duke@1 1501 \
duke@1 1502 product(bool, UseCounterDecay, true, \
tamao@20404 1503 "Adjust recompilation counters") \
duke@1 1504 \
duke@1 1505 develop(intx, CounterHalfLifeTime, 30, \
tamao@20404 1506 "Half-life time of invocation counters (in seconds)") \
duke@1 1507 \
duke@1 1508 develop(intx, CounterDecayMinIntervalLength, 500, \
tamao@20404 1509 "The minimum interval (in milliseconds) between invocation of " \
tamao@20404 1510 "CounterDecay") \
duke@1 1511 \
duke@1 1512 product(bool, AlwaysCompileLoopMethods, false, \
tamao@20404 1513 "When using recompilation, never interpret methods " \
duke@1 1514 "containing loops") \
duke@1 1515 \
duke@1 1516 product(bool, DontCompileHugeMethods, true, \
tamao@20404 1517 "Do not compile methods > HugeMethodLimit") \
duke@1 1518 \
duke@1 1519 /* Bytecode escape analysis estimation. */ \
duke@1 1520 product(bool, EstimateArgEscape, true, \
duke@1 1521 "Analyze bytecodes to estimate escape state of arguments") \
duke@1 1522 \
duke@1 1523 product(intx, BCEATraceLevel, 0, \
zmajo@33163 1524 "How much tracing to do of bytecode escape analysis estimates " \
zmajo@33163 1525 "(0-3)") \
zmajo@33163 1526 range(0, 3) \
duke@1 1527 \
duke@1 1528 product(intx, MaxBCEAEstimateLevel, 5, \
tamao@20404 1529 "Maximum number of nested calls that are analyzed by BC EA") \
zmajo@33163 1530 range(0, max_jint) \
duke@1 1531 \
duke@1 1532 product(intx, MaxBCEAEstimateSize, 150, \
tamao@20404 1533 "Maximum bytecode size of a method to be analyzed by BC EA") \
zmajo@33163 1534 range(0, max_jint) \
duke@1 1535 \
duke@1 1536 product(intx, AllocatePrefetchStyle, 1, \
duke@1 1537 "0 = no prefetch, " \
zmajo@38220 1538 "1 = generate prefetch instructions for each allocation, " \
kvn@5251 1539 "2 = use TLAB watermark to gate allocation prefetch, " \
zmajo@38220 1540 "3 = generate one prefetch instruction per cache line") \
gziemski@31371 1541 range(0, 3) \
duke@1 1542 \
duke@1 1543 product(intx, AllocatePrefetchDistance, -1, \
zmajo@33163 1544 "Distance to prefetch ahead of allocation pointer. " \
zmajo@33163 1545 "-1: use system-specific value (automatically determined") \
zmajo@33163 1546 constraint(AllocatePrefetchDistanceConstraintFunc, AfterMemoryInit)\
duke@1 1547 \
kvn@10267 1548 product(intx, AllocatePrefetchLines, 3, \
kvn@10267 1549 "Number of lines to prefetch ahead of array allocation pointer") \
zmajo@35751 1550 range(1, 64) \
kvn@10267 1551 \
kvn@10267 1552 product(intx, AllocateInstancePrefetchLines, 1, \
tamao@20404 1553 "Number of lines to prefetch ahead of instance allocation " \
tamao@20404 1554 "pointer") \
zmajo@35751 1555 range(1, 64) \
duke@1 1556 \
duke@1 1557 product(intx, AllocatePrefetchStepSize, 16, \
duke@1 1558 "Step size in bytes of sequential prefetch instructions") \
zmajo@35751 1559 range(1, 512) \
zmajo@33163 1560 constraint(AllocatePrefetchStepSizeConstraintFunc,AfterMemoryInit)\
duke@1 1561 \
duke@1 1562 product(intx, AllocatePrefetchInstr, 0, \
zmajo@38220 1563 "Select instruction to prefetch ahead of allocation pointer") \
zmajo@38220 1564 constraint(AllocatePrefetchInstrConstraintFunc, AfterMemoryInit) \
duke@1 1565 \
duke@1 1566 /* deoptimization */ \
duke@1 1567 develop(bool, TraceDeoptimization, false, \
duke@1 1568 "Trace deoptimization") \
duke@1 1569 \
twisti@33160 1570 develop(bool, PrintDeoptimizationDetails, false, \
twisti@33160 1571 "Print more information about deoptimization") \
twisti@33160 1572 \
duke@1 1573 develop(bool, DebugDeoptimization, false, \
duke@1 1574 "Tracing various information while debugging deoptimization") \
duke@1 1575 \
duke@1 1576 product(intx, SelfDestructTimer, 0, \
duke@1 1577 "Will cause VM to terminate after a given time (in minutes) " \
duke@1 1578 "(0 means off)") \
gziemski@33222 1579 range(0, max_intx) \
duke@1 1580 \
duke@1 1581 product(intx, MaxJavaStackTraceDepth, 1024, \
tamao@20404 1582 "The maximum number of lines in the stack trace for Java " \
tamao@20404 1583 "exceptions (0 means all)") \
gziemski@33222 1584 range(0, max_jint/2) \
gziemski@33222 1585 \
gziemski@33222 1586 /* notice: the max range value here is max_jint, not max_intx */ \
gziemski@33222 1587 /* because of overflow issue */ \
dholmes@40015 1588 diagnostic(intx, GuaranteedSafepointInterval, 1000, \
duke@1 1589 "Guarantee a safepoint (at least) every so many milliseconds " \
dholmes@40015 1590 "(0 means none)") \
dholmes@40015 1591 range(0, max_jint) \
duke@1 1592 \
duke@1 1593 product(intx, SafepointTimeoutDelay, 10000, \
duke@1 1594 "Delay in milliseconds for option SafepointTimeout") \
gziemski@33222 1595 LP64_ONLY(range(0, max_intx/MICROUNITS)) \
gziemski@33222 1596 NOT_LP64(range(0, max_intx)) \
duke@1 1597 \
anoll@20290 1598 product(intx, NmethodSweepActivity, 10, \
anoll@20290 1599 "Removes cold nmethods from code cache if > 0. Higher values " \
anoll@20290 1600 "result in more aggressive sweeping") \
gziemski@31371 1601 range(0, 2000) \
anoll@20290 1602 \
never@9942 1603 notproduct(bool, LogSweeper, false, \
tamao@20404 1604 "Keep a ring buffer of sweeper activity") \
never@9942 1605 \
never@9942 1606 notproduct(intx, SweeperLogEntries, 1024, \
tamao@20404 1607 "Number of records in the ring buffer of sweeper activity") \
never@9942 1608 \
duke@1 1609 notproduct(intx, MemProfilingInterval, 500, \
duke@1 1610 "Time between each invocation of the MemProfiler") \
duke@1 1611 \
duke@1 1612 develop(intx, MallocCatchPtr, -1, \
duke@1 1613 "Hit breakpoint when mallocing/freeing this pointer") \
duke@1 1614 \
duke@1 1615 notproduct(ccstrlist, SuppressErrorAt, "", \
duke@1 1616 "List of assertions (file:line) to muzzle") \
duke@1 1617 \
duke@1 1618 develop(intx, StackPrintLimit, 100, \
duke@1 1619 "number of stack frames to print in VM-level stack dump") \
duke@1 1620 \
duke@1 1621 notproduct(intx, MaxElementPrintSize, 256, \
duke@1 1622 "maximum number of elements to print") \
duke@1 1623 \
duke@1 1624 notproduct(intx, MaxSubklassPrintSize, 4, \
duke@1 1625 "maximum number of subklasses to print when printing klass") \
duke@1 1626 \
jrose@4586 1627 product(intx, MaxInlineLevel, 9, \
duke@1 1628 "maximum number of nested calls that are inlined") \
zmajo@33163 1629 range(0, max_jint) \
duke@1 1630 \
jrose@4586 1631 product(intx, MaxRecursiveInlineLevel, 1, \
duke@1 1632 "maximum number of nested recursive calls that are inlined") \
zmajo@33163 1633 range(0, max_jint) \
duke@1 1634 \
vlivanov@21582 1635 develop(intx, MaxForceInlineLevel, 100, \
vlivanov@23191 1636 "maximum number of nested calls that are forced for inlining " \
neliasso@33069 1637 "(using CompileCommand or marked w/ @ForceInline)") \
zmajo@33163 1638 range(0, max_jint) \
vlivanov@21582 1639 \
kvn@2342 1640 product_pd(intx, InlineSmallCode, \
duke@1 1641 "Only inline already compiled methods if their code size is " \
duke@1 1642 "less than this") \
zmajo@33163 1643 range(0, max_jint) \
duke@1 1644 \
duke@1 1645 product(intx, MaxInlineSize, 35, \
tamao@20404 1646 "The maximum bytecode size of a method to be inlined") \
zmajo@33163 1647 range(0, max_jint) \
duke@1 1648 \
duke@1 1649 product_pd(intx, FreqInlineSize, \
tamao@20404 1650 "The maximum bytecode size of a frequent method to be inlined") \
zmajo@33163 1651 range(0, max_jint) \
duke@1 1652 \
jrose@4586 1653 product(intx, MaxTrivialSize, 6, \
tamao@20404 1654 "The maximum bytecode size of a trivial method to be inlined") \
zmajo@33163 1655 range(0, max_jint) \
duke@1 1656 \
jrose@4586 1657 product(intx, MinInliningThreshold, 250, \
tamao@20404 1658 "The minimum invocation count a method needs to have to be " \
tamao@20404 1659 "inlined") \
zmajo@33163 1660 range(0, max_jint) \
duke@1 1661 \
duke@1 1662 develop(intx, MethodHistogramCutoff, 100, \
tamao@20404 1663 "The cutoff value for method invocation histogram (+CountCalls)") \
duke@1 1664 \
rraghavan@36557 1665 diagnostic(intx, ProfilerNumberOfInterpretedMethods, 25, \
tamao@20404 1666 "Number of interpreted methods to show in profile") \
duke@1 1667 \
rraghavan@36557 1668 diagnostic(intx, ProfilerNumberOfCompiledMethods, 25, \
tamao@20404 1669 "Number of compiled methods to show in profile") \
duke@1 1670 \
rraghavan@36557 1671 diagnostic(intx, ProfilerNumberOfStubMethods, 25, \
tamao@20404 1672 "Number of stub methods to show in profile") \
duke@1 1673 \
rraghavan@36557 1674 diagnostic(intx, ProfilerNumberOfRuntimeStubNodes, 25, \
tamao@20404 1675 "Number of runtime stub nodes to show in profile") \
duke@1 1676 \
duke@1 1677 product(intx, ProfileIntervalsTicks, 100, \
tamao@20404 1678 "Number of ticks between printing of interval profile " \
duke@1 1679 "(+ProfileIntervals)") \
gziemski@33222 1680 range(0, max_intx) \
duke@1 1681 \
duke@1 1682 develop(intx, DontYieldALotInterval, 10, \
duke@1 1683 "Interval between which yields will be dropped (milliseconds)") \
duke@1 1684 \
duke@1 1685 develop(intx, ProfilerPCTickThreshold, 15, \
duke@1 1686 "Number of ticks in a PC buckets to be a hotspot") \
duke@1 1687 \
duke@1 1688 notproduct(intx, DeoptimizeALotInterval, 5, \
duke@1 1689 "Number of exits until DeoptimizeALot kicks in") \
duke@1 1690 \
duke@1 1691 notproduct(intx, ZombieALotInterval, 5, \
duke@1 1692 "Number of exits until ZombieALot kicks in") \
duke@1 1693 \
rdurbin@16428 1694 diagnostic(uintx, MallocMaxTestWords, 0, \
tamao@20404 1695 "If non-zero, maximum number of words that malloc/realloc can " \
tamao@20404 1696 "allocate (for testing only)") \
gziemski@33222 1697 range(0, max_uintx) \
rdurbin@16428 1698 \
twisti@33160 1699 product(intx, TypeProfileWidth, 2, \
tamao@20404 1700 "Number of receiver types to record in call/cast profile") \
zmajo@33171 1701 range(0, 8) \
iveresov@33083 1702 \
duke@1 1703 develop(intx, BciProfileWidth, 2, \
tamao@20404 1704 "Number of return bci's to record in ret profile") \
duke@1 1705 \
duke@1 1706 product(intx, PerMethodRecompilationCutoff, 400, \
duke@1 1707 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
gziemski@31371 1708 range(-1, max_intx) \
duke@1 1709 \
kvn@4754 1710 product(intx, PerBytecodeRecompilationCutoff, 200, \
duke@1 1711 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \
gziemski@31371 1712 range(-1, max_intx) \
duke@1 1713 \
duke@1 1714 product(intx, PerMethodTrapLimit, 100, \
duke@1 1715 "Limit on traps (of one kind) in a method (includes inlines)") \
zmajo@33163 1716 range(0, max_jint) \
duke@1 1717 \
roland@22916 1718 experimental(intx, PerMethodSpecTrapLimit, 5000, \
gziemski@31371 1719 "Limit on speculative traps (of one kind) in a method " \
gziemski@31371 1720 "(includes inlines)") \
zmajo@33163 1721 range(0, max_jint) \
roland@22916 1722 \
duke@1 1723 product(intx, PerBytecodeTrapLimit, 4, \
duke@1 1724 "Limit on traps (of one kind) at a particular BCI") \
zmajo@33163 1725 range(0, max_jint) \
duke@1 1726 \
roland@22916 1727 experimental(intx, SpecTrapLimitExtraEntries, 3, \
roland@22916 1728 "Extra method data trap entries for speculation") \
roland@22916 1729 \
duke@1 1730 develop(intx, InlineFrequencyRatio, 20, \
duke@1 1731 "Ratio of call site execution to caller method invocation") \
zmajo@33163 1732 range(0, max_jint) \
duke@1 1733 \
csahu@39117 1734 diagnostic_pd(intx, InlineFrequencyCount, \
duke@1 1735 "Count of call site execution necessary to trigger frequent " \
duke@1 1736 "inlining") \
zmajo@33163 1737 range(0, max_jint) \
duke@1 1738 \
duke@1 1739 develop(intx, InlineThrowCount, 50, \
duke@1 1740 "Force inlining of interpreted methods that throw this often") \
zmajo@33163 1741 range(0, max_jint) \
duke@1 1742 \
duke@1 1743 develop(intx, InlineThrowMaxSize, 200, \
duke@1 1744 "Force inlining of throwing methods smaller than this") \
zmajo@33163 1745 range(0, max_jint) \
duke@1 1746 \
duke@1 1747 develop(intx, ProfilerNodeSize, 1024, \
duke@1 1748 "Size in K to allocate for the Profile Nodes of each thread") \
zmajo@33163 1749 range(0, 1024) \
duke@1 1750 \
jwilhelm@29697 1751 product_pd(size_t, MetaspaceSize, \
jmasa@37151 1752 "Initial threshold (in bytes) at which a garbage collection " \
jmasa@37151 1753 "is done to reduce Metaspace usage") \
sangheki@33144 1754 constraint(MetaspaceSizeConstraintFunc,AfterErgo) \
coleenp@13728 1755 \
jwilhelm@29697 1756 product(size_t, MaxMetaspaceSize, max_uintx, \
coleenp@13728 1757 "Maximum size of Metaspaces (in bytes)") \
sangheki@33144 1758 constraint(MaxMetaspaceSizeConstraintFunc,AfterErgo) \
coleenp@13728 1759 \
jwilhelm@29697 1760 product(size_t, CompressedClassSpaceSize, 1*G, \
ehelin@19979 1761 "Maximum size of class area in Metaspace when compressed " \
ehelin@19979 1762 "class pointers are used") \
gziemski@31371 1763 range(1*M, 3*G) \
duke@1 1764 \
jwilhelm@22555 1765 manageable(uintx, MinHeapFreeRatio, 40, \
jwilhelm@20719 1766 "The minimum percentage of heap free after GC to avoid expansion."\
jwilhelm@22555 1767 " For most GCs this applies to the old generation. In G1 and" \
jwilhelm@22555 1768 " ParallelGC it applies to the whole heap.") \
gziemski@31371 1769 range(0, 100) \
sangheki@31995 1770 constraint(MinHeapFreeRatioConstraintFunc,AfterErgo) \
jwilhelm@22555 1771 \
jwilhelm@22555 1772 manageable(uintx, MaxHeapFreeRatio, 70, \
jwilhelm@20719 1773 "The maximum percentage of heap free after GC to avoid shrinking."\
jwilhelm@22555 1774 " For most GCs this applies to the old generation. In G1 and" \
jwilhelm@22555 1775 " ParallelGC it applies to the whole heap.") \
gziemski@31371 1776 range(0, 100) \
sangheki@31995 1777 constraint(MaxHeapFreeRatioConstraintFunc,AfterErgo) \
duke@1 1778 \
cjplummer@37166 1779 product(bool, ShrinkHeapInSteps, true, \
cjplummer@37166 1780 "When disabled, informs the GC to shrink the java heap directly" \
cjplummer@37166 1781 " to the target size at the next full GC rather than requiring" \
cjplummer@37166 1782 " smaller steps during multiple full GCs.") \
cjplummer@37166 1783 \
duke@1 1784 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \
duke@1 1785 "Number of milliseconds per MB of free space in the heap") \
sangheki@33144 1786 range(0, max_intx) \
sangheki@33144 1787 constraint(SoftRefLRUPolicyMSPerMBConstraintFunc,AfterMemoryInit) \
duke@1 1788 \
jwilhelm@29697 1789 product(size_t, MinHeapDeltaBytes, ScaleForWordSize(128*K), \
tamao@20404 1790 "The minimum change in heap space due to GC (in bytes)") \
sangheki@34661 1791 range(0, max_uintx) \
duke@1 1792 \
jwilhelm@29697 1793 product(size_t, MinMetaspaceExpansion, ScaleForWordSize(256*K), \
tamao@20404 1794 "The minimum expansion of Metaspace (in bytes)") \
sangheki@34661 1795 range(0, max_uintx) \
jmasa@15610 1796 \
gziemski@31371 1797 product(uintx, MaxMetaspaceFreeRatio, 70, \
gziemski@31371 1798 "The maximum percentage of Metaspace free after GC to avoid " \
gziemski@31371 1799 "shrinking") \
gziemski@31371 1800 range(0, 100) \
sangheki@31995 1801 constraint(MaxMetaspaceFreeRatioConstraintFunc,AfterErgo) \
gziemski@31371 1802 \
jmasa@15610 1803 product(uintx, MinMetaspaceFreeRatio, 40, \
tamao@20404 1804 "The minimum percentage of Metaspace free after GC to avoid " \
tamao@20404 1805 "expansion") \
gziemski@31371 1806 range(0, 99) \
sangheki@31995 1807 constraint(MinMetaspaceFreeRatioConstraintFunc,AfterErgo) \
duke@1 1808 \
jwilhelm@29697 1809 product(size_t, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \
tamao@20404 1810 "The maximum expansion of Metaspace without full GC (in bytes)") \
sangheki@34661 1811 range(0, max_uintx) \
duke@1 1812 \
duke@1 1813 /* stack parameters */ \
duke@1 1814 product_pd(intx, StackYellowPages, \
goetz@35201 1815 "Number of yellow zone (recoverable overflows) pages of size " \
goetz@35201 1816 "4KB. If pages are bigger yellow zone is aligned up.") \
gziemski@33222 1817 range(MIN_STACK_YELLOW_PAGES, (DEFAULT_STACK_YELLOW_PAGES+5)) \
duke@1 1818 \
duke@1 1819 product_pd(intx, StackRedPages, \
goetz@35201 1820 "Number of red zone (unrecoverable overflows) pages of size " \
goetz@35201 1821 "4KB. If pages are bigger red zone is aligned up.") \
gziemski@33222 1822 range(MIN_STACK_RED_PAGES, (DEFAULT_STACK_RED_PAGES+2)) \
gziemski@31371 1823 \
fparain@35071 1824 product_pd(intx, StackReservedPages, \
goetz@35201 1825 "Number of reserved zone (reserved to annotated methods) pages" \
goetz@35201 1826 " of size 4KB. If pages are bigger reserved zone is aligned up.") \
fparain@35071 1827 range(MIN_STACK_RESERVED_PAGES, (DEFAULT_STACK_RESERVED_PAGES+10))\
fparain@35071 1828 \
fparain@35071 1829 product(bool, RestrictReservedStack, true, \
fparain@35071 1830 "Restrict @ReservedStackAccess to trusted classes") \
fparain@35071 1831 \
gziemski@31371 1832 /* greater stack shadow pages can't generate instruction to bang stack */ \
duke@1 1833 product_pd(intx, StackShadowPages, \
goetz@35201 1834 "Number of shadow zone (for overflow checking) pages of size " \
goetz@35201 1835 "4KB. If pages are bigger shadow zone is aligned up. " \
goetz@35201 1836 "This should exceed the depth of the VM and native call stack.") \
gziemski@33222 1837 range(MIN_STACK_SHADOW_PAGES, (DEFAULT_STACK_SHADOW_PAGES+30)) \
duke@1 1838 \
duke@1 1839 product_pd(intx, ThreadStackSize, \
duke@1 1840 "Thread Stack Size (in Kbytes)") \
stefank@46616 1841 range(0, 1 * M) \
duke@1 1842 \
duke@1 1843 product_pd(intx, VMThreadStackSize, \
duke@1 1844 "Non-Java Thread Stack Size (in Kbytes)") \
gziemski@33222 1845 range(0, max_intx/(1 * K)) \
duke@1 1846 \
duke@1 1847 product_pd(intx, CompilerThreadStackSize, \
duke@1 1848 "Compiler Thread Stack Size (in Kbytes)") \
goetz@35201 1849 range(0, max_intx/(1 * K)) \
duke@1 1850 \
jwilhelm@29697 1851 develop_pd(size_t, JVMInvokeMethodSlack, \
duke@1 1852 "Stack space (bytes) required for JVM_InvokeMethod to complete") \
duke@1 1853 \
gziemski@31371 1854 /* code cache parameters */ \
goetz@42062 1855 develop_pd(uintx, CodeCacheSegmentSize, \
duke@1 1856 "Code cache segment size (in bytes) - smallest unit of " \
duke@1 1857 "allocation") \
gziemski@31371 1858 range(1, 1024) \
zmajo@33163 1859 constraint(CodeCacheSegmentSizeConstraintFunc, AfterErgo) \
duke@1 1860 \
duke@1 1861 develop_pd(intx, CodeEntryAlignment, \
duke@1 1862 "Code entry alignment for generated code (in bytes)") \
zmajo@33163 1863 constraint(CodeEntryAlignmentConstraintFunc, AfterErgo) \
duke@1 1864 \
kvn@5249 1865 product_pd(intx, OptoLoopAlignment, \
kvn@5249 1866 "Align inner loops to zero relative to this modulus") \
ddmitriev@33744 1867 range(1, 16) \
zmajo@33163 1868 constraint(OptoLoopAlignmentConstraintFunc, AfterErgo) \
kvn@5249 1869 \
duke@1 1870 product_pd(uintx, InitialCodeCacheSize, \
duke@1 1871 "Initial code cache size (in bytes)") \
thartmann@48334 1872 range(os::vm_page_size(), max_uintx) \
duke@1 1873 \
anoll@18506 1874 develop_pd(uintx, CodeCacheMinimumUseSpace, \
anoll@18506 1875 "Minimum code cache size (in bytes) required to start VM.") \
zmajo@33163 1876 range(0, max_uintx) \
anoll@18506 1877 \
thartmann@26796 1878 product(bool, SegmentedCodeCache, false, \
thartmann@26796 1879 "Use a segmented code cache") \
thartmann@26796 1880 \
duke@1 1881 product_pd(uintx, ReservedCodeCacheSize, \
duke@1 1882 "Reserved code cache size (in bytes) - maximum code cache size") \
thartmann@48334 1883 range(os::vm_page_size(), max_uintx) \
duke@1 1884 \
thartmann@26796 1885 product_pd(uintx, NonProfiledCodeHeapSize, \
thartmann@26796 1886 "Size of code heap with non-profiled methods (in bytes)") \
zmajo@33163 1887 range(0, max_uintx) \
thartmann@26796 1888 \
thartmann@26796 1889 product_pd(uintx, ProfiledCodeHeapSize, \
thartmann@26796 1890 "Size of code heap with profiled methods (in bytes)") \
zmajo@33163 1891 range(0, max_uintx) \
thartmann@26796 1892 \
thartmann@26919 1893 product_pd(uintx, NonNMethodCodeHeapSize, \
thartmann@26919 1894 "Size of code heap with non-nmethods (in bytes)") \
thartmann@48334 1895 range(os::vm_page_size(), max_uintx) \
thartmann@26796 1896 \
duke@1 1897 product_pd(uintx, CodeCacheExpansionSize, \
duke@1 1898 "Code cache expansion size (in bytes)") \
thartmann@48362 1899 range(32*K, max_uintx) \
duke@1 1900 \
zmajo@43945 1901 diagnostic_pd(uintx, CodeCacheMinBlockLength, \
tamao@20404 1902 "Minimum number of segments in a code cache block") \
gziemski@31371 1903 range(1, 100) \
duke@1 1904 \
duke@1 1905 notproduct(bool, ExitOnFullCodeCache, false, \
tamao@20404 1906 "Exit the VM if we fill the code cache") \
duke@1 1907 \
never@10963 1908 product(bool, UseCodeCacheFlushing, true, \
anoll@21575 1909 "Remove cold/old nmethods from the code cache") \
kvn@4750 1910 \
anoll@27420 1911 product(uintx, StartAggressiveSweepingAt, 10, \
anoll@27420 1912 "Start aggressive sweeping if X[%] of the code cache is free." \
anoll@27420 1913 "Segmented code cache: X[%] of the non-profiled heap." \
anoll@27420 1914 "Non-segmented code cache: X[%] of the total code cache") \
gziemski@31371 1915 range(0, 100) \
anoll@27420 1916 \
kvn@42650 1917 /* AOT parameters */ \
kvn@42650 1918 product(bool, UseAOT, AOT_ONLY(true) NOT_AOT(false), \
kvn@42650 1919 "Use AOT compiled files") \
kvn@42650 1920 \
kvn@42650 1921 product(ccstrlist, AOTLibrary, NULL, \
kvn@42650 1922 "AOT library") \
kvn@42650 1923 \
kvn@42650 1924 product(bool, PrintAOT, false, \
kvn@42650 1925 "Print used AOT klasses and methods") \
kvn@42650 1926 \
kvn@42650 1927 notproduct(bool, PrintAOTStatistics, false, \
kvn@42650 1928 "Print AOT statistics") \
kvn@42650 1929 \
kvn@42650 1930 diagnostic(bool, UseAOTStrictLoading, false, \
kvn@42650 1931 "Exit the VM if any of the AOT libraries has invalid config") \
kvn@42650 1932 \
kvn@46553 1933 product(bool, CalculateClassFingerprint, false, \
kvn@46553 1934 "Calculate class fingerprint") \
kvn@46553 1935 \
duke@1 1936 /* interpreter debugging */ \
duke@1 1937 develop(intx, BinarySwitchThreshold, 5, \
duke@1 1938 "Minimal number of lookupswitch entries for rewriting to binary " \
duke@1 1939 "switch") \
duke@1 1940 \
duke@1 1941 develop(intx, StopInterpreterAt, 0, \
tamao@20404 1942 "Stop interpreter execution at specified bytecode number") \
duke@1 1943 \
duke@1 1944 develop(intx, TraceBytecodesAt, 0, \
tamao@20404 1945 "Trace bytecodes starting with specified bytecode number") \
duke@1 1946 \
duke@1 1947 /* compiler interface */ \
duke@1 1948 develop(intx, CIStart, 0, \
tamao@20404 1949 "The id of the first compilation to permit") \
duke@1 1950 \
anoll@22247 1951 develop(intx, CIStop, max_jint, \
tamao@20404 1952 "The id of the last compilation to permit") \
duke@1 1953 \
anoll@22247 1954 develop(intx, CIStartOSR, 0, \
tamao@20404 1955 "The id of the first osr compilation to permit " \
duke@1 1956 "(CICountOSR must be on)") \
duke@1 1957 \
anoll@22247 1958 develop(intx, CIStopOSR, max_jint, \
tamao@20404 1959 "The id of the last osr compilation to permit " \
duke@1 1960 "(CICountOSR must be on)") \
duke@1 1961 \
anoll@22247 1962 develop(intx, CIBreakAtOSR, -1, \
tamao@20404 1963 "The id of osr compilation to break at") \
duke@1 1964 \
anoll@22247 1965 develop(intx, CIBreakAt, -1, \
tamao@20404 1966 "The id of compilation to break at") \
duke@1 1967 \
duke@1 1968 product(ccstrlist, CompileOnly, "", \
duke@1 1969 "List of methods (pkg/class.name) to restrict compilation to") \
duke@1 1970 \
duke@1 1971 product(ccstr, CompileCommandFile, NULL, \
duke@1 1972 "Read compiler commands from this file [.hotspot_compiler]") \
duke@1 1973 \
neliasso@33451 1974 diagnostic(ccstr, CompilerDirectivesFile, NULL, \
neliasso@33451 1975 "Read compiler directives from this file") \
neliasso@33451 1976 \
duke@1 1977 product(ccstrlist, CompileCommand, "", \
duke@1 1978 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
duke@1 1979 \
minqi@14477 1980 develop(bool, ReplayCompiles, false, \
minqi@14477 1981 "Enable replay of compilations from ReplayDataFile") \
minqi@14477 1982 \
vlivanov@17121 1983 product(ccstr, ReplayDataFile, NULL, \
vlivanov@17121 1984 "File containing compilation replay information" \
vlivanov@17121 1985 "[default: ./replay_pid%p.log] (%p replaced with pid)") \
minqi@14477 1986 \
kvn@22243 1987 product(ccstr, InlineDataFile, NULL, \
kvn@22243 1988 "File containing inlining replay information" \
kvn@22243 1989 "[default: ./inline_pid%p.log] (%p replaced with pid)") \
kvn@22243 1990 \
minqi@14477 1991 develop(intx, ReplaySuppressInitializers, 2, \
tamao@20404 1992 "Control handling of class initialization during replay: " \
tamao@20404 1993 "0 - don't do anything special; " \
tamao@20404 1994 "1 - treat all class initializers as empty; " \
tamao@20404 1995 "2 - treat class initializers for application classes as empty; " \
tamao@20404 1996 "3 - allow all class initializers to run during bootstrap but " \
minqi@14477 1997 " pretend they are empty after starting replay") \
gziemski@31371 1998 range(0, 3) \
minqi@14477 1999 \
minqi@14477 2000 develop(bool, ReplayIgnoreInitErrors, false, \
minqi@14477 2001 "Ignore exceptions thrown during initialization for replay") \
minqi@14477 2002 \
vlivanov@17121 2003 product(bool, DumpReplayDataOnError, true, \
vlivanov@17121 2004 "Record replay data for crashing compiler threads") \
minqi@14477 2005 \
duke@1 2006 product(bool, CICompilerCountPerCPU, false, \
duke@1 2007 "1 compiler thread for log(N CPUs)") \
duke@1 2008 \
duke@1 2009 develop(intx, CIFireOOMAt, -1, \
duke@1 2010 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \
duke@1 2011 "(non-negative value throws OOM after this many CI accesses " \
duke@1 2012 "in each compile)") \
iignatyev@17123 2013 notproduct(intx, CICrashAt, -1, \
iignatyev@17123 2014 "id of compilation to trigger assert in compiler thread for " \
iignatyev@17123 2015 "the purpose of testing, e.g. generation of replay data") \
jcoomes@3609 2016 notproduct(bool, CIObjectFactoryVerify, false, \
jcoomes@3609 2017 "enable potentially expensive verification in ciObjectFactory") \
jcoomes@3609 2018 \
duke@1 2019 /* Priorities */ \
duke@1 2020 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \
duke@1 2021 \
duke@1 2022 product(intx, ThreadPriorityPolicy, 0, \
duke@1 2023 "0 : Normal. "\
duke@1 2024 " VM chooses priorities that are appropriate for normal "\
duke@1 2025 " applications. On Solaris NORM_PRIORITY and above are mapped "\
tamao@20404 2026 " to normal native priority. Java priorities below " \
tamao@20404 2027 " NORM_PRIORITY map to lower native priority values. On "\
tamao@20404 2028 " Windows applications are allowed to use higher native "\
tamao@20404 2029 " priorities. However, with ThreadPriorityPolicy=0, VM will "\
tamao@20404 2030 " not use the highest possible native priority, "\
tamao@20404 2031 " THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with "\
tamao@20404 2032 " system threads. On Linux thread priorities are ignored "\
tamao@20404 2033 " because the OS does not support static priority in "\
tamao@20404 2034 " SCHED_OTHER scheduling class which is the only choice for "\
duke@1 2035 " non-root, non-realtime applications. "\
duke@1 2036 "1 : Aggressive. "\
duke@1 2037 " Java thread priorities map over to the entire range of "\
duke@1 2038 " native thread priorities. Higher Java thread priorities map "\
duke@1 2039 " to higher native thread priorities. This policy should be "\
duke@1 2040 " used with care, as sometimes it can cause performance "\
duke@1 2041 " degradation in the application and/or the entire system. On "\
duke@1 2042 " Linux this policy requires root privilege.") \
gziemski@31371 2043 range(0, 1) \
duke@1 2044 \
duke@1 2045 product(bool, ThreadPriorityVerbose, false, \
phh@11601 2046 "Print priority changes") \
duke@1 2047 \
duke@1 2048 product(intx, CompilerThreadPriority, -1, \
phh@11601 2049 "The native priority at which compiler threads should run " \
phh@11601 2050 "(-1 means no change)") \
ddmitriev@33744 2051 range(min_jint, max_jint) \
zmajo@33163 2052 constraint(CompilerThreadPriorityConstraintFunc, AfterErgo) \
duke@1 2053 \
duke@1 2054 product(intx, VMThreadPriority, -1, \
phh@11601 2055 "The native priority at which the VM thread should run " \
phh@11601 2056 "(-1 means no change)") \
gziemski@33222 2057 range(-1, 127) \
duke@1 2058 \
tamao@20404 2059 product(intx, JavaPriority1_To_OSPriority, -1, \
tamao@20404 2060 "Map Java priorities to OS priorities") \
gziemski@33222 2061 range(-1, 127) \
tamao@20404 2062 \
tamao@20404 2063 product(intx, JavaPriority2_To_OSPriority, -1, \
tamao@20404 2064 "Map Java priorities to OS priorities") \
gziemski@33222 2065 range(-1, 127) \
tamao@20404 2066 \
tamao@20404 2067 product(intx, JavaPriority3_To_OSPriority, -1, \
tamao@20404 2068 "Map Java priorities to OS priorities") \
gziemski@33222 2069 range(-1, 127) \
tamao@20404 2070 \
tamao@20404 2071 product(intx, JavaPriority4_To_OSPriority, -1, \
tamao@20404 2072 "Map Java priorities to OS priorities") \
gziemski@33222 2073 range(-1, 127) \
tamao@20404 2074 \
tamao@20404 2075 product(intx, JavaPriority5_To_OSPriority, -1, \
tamao@20404 2076 "Map Java priorities to OS priorities") \
gziemski@33222 2077 range(-1, 127) \
tamao@20404 2078 \
tamao@20404 2079 product(intx, JavaPriority6_To_OSPriority, -1, \
tamao@20404 2080 "Map Java priorities to OS priorities") \
gziemski@33222 2081 range(-1, 127) \
tamao@20404 2082 \
tamao@20404 2083 product(intx, JavaPriority7_To_OSPriority, -1, \
tamao@20404 2084 "Map Java priorities to OS priorities") \
gziemski@33222 2085 range(-1, 127) \
tamao@20404 2086 \
tamao@20404 2087 product(intx, JavaPriority8_To_OSPriority, -1, \
tamao@20404 2088 "Map Java priorities to OS priorities") \
gziemski@33222 2089 range(-1, 127) \
tamao@20404 2090 \
tamao@20404 2091 product(intx, JavaPriority9_To_OSPriority, -1, \
tamao@20404 2092 "Map Java priorities to OS priorities") \
gziemski@33222 2093 range(-1, 127) \
tamao@20404 2094 \
tamao@20404 2095 product(intx, JavaPriority10_To_OSPriority,-1, \
tamao@20404 2096 "Map Java priorities to OS priorities") \
gziemski@33222 2097 range(-1, 127) \
duke@1 2098 \
phh@11601 2099 experimental(bool, UseCriticalJavaThreadPriority, false, \
phh@11601 2100 "Java thread priority 10 maps to critical scheduling priority") \
phh@11601 2101 \
phh@11601 2102 experimental(bool, UseCriticalCompilerThreadPriority, false, \
phh@11601 2103 "Compiler thread(s) run at critical scheduling priority") \
phh@11601 2104 \
phh@11601 2105 experimental(bool, UseCriticalCMSThreadPriority, false, \
phh@11601 2106 "ConcurrentMarkSweep thread runs at critical scheduling priority")\
phh@11601 2107 \
duke@1 2108 /* compiler debugging */ \
duke@1 2109 notproduct(intx, CompileTheWorldStartAt, 1, \
duke@1 2110 "First class to consider when using +CompileTheWorld") \
duke@1 2111 \
duke@1 2112 notproduct(intx, CompileTheWorldStopAt, max_jint, \
duke@1 2113 "Last class to consider when using +CompileTheWorld") \
duke@1 2114 \
duke@1 2115 develop(intx, NewCodeParameter, 0, \
duke@1 2116 "Testing Only: Create a dedicated integer parameter before " \
duke@1 2117 "putback") \
duke@1 2118 \
duke@1 2119 /* new oopmap storage allocation */ \
duke@1 2120 develop(intx, MinOopMapAllocation, 8, \
duke@1 2121 "Minimum number of OopMap entries in an OopMapSet") \
duke@1 2122 \
duke@1 2123 /* Background Compilation */ \
duke@1 2124 develop(intx, LongCompileThreshold, 50, \
duke@1 2125 "Used with +TraceLongCompiles") \
duke@1 2126 \
duke@1 2127 /* recompilation */ \
duke@1 2128 product_pd(intx, CompileThreshold, \
duke@1 2129 "number of interpreted method invocations before (re-)compiling") \
zmajo@33163 2130 constraint(CompileThresholdConstraintFunc, AfterErgo) \
duke@1 2131 \
zmajo@27148 2132 product(double, CompileThresholdScaling, 1.0, \
zmajo@27148 2133 "Factor to control when first compilation happens " \
zmajo@28650 2134 "(both with and without tiered compilation): " \
zmajo@28650 2135 "values greater than 1.0 delay counter overflow, " \
zmajo@28650 2136 "values between 0 and 1.0 rush counter overflow, " \
zmajo@28928 2137 "value of 1.0 leaves compilation thresholds unchanged " \
zmajo@28650 2138 "value of 0.0 is equivalent to -Xint. " \
zmajo@28650 2139 "" \
zmajo@28650 2140 "Flag can be set as per-method option. " \
zmajo@28650 2141 "If a value is specified for a method, compilation thresholds " \
zmajo@28650 2142 "for that method are scaled by both the value of the global flag "\
zmajo@28650 2143 "and the value of the per-method flag.") \
zmajo@33163 2144 range(0.0, DBL_MAX) \
zmajo@27148 2145 \
iveresov@6453 2146 product(intx, Tier0InvokeNotifyFreqLog, 7, \
tamao@20404 2147 "Interpreter (tier 0) invocation notification frequency") \
zmajo@33163 2148 range(0, 30) \
iveresov@6453 2149 \
iveresov@6453 2150 product(intx, Tier2InvokeNotifyFreqLog, 11, \
tamao@20404 2151 "C1 without MDO (tier 2) invocation notification frequency") \
zmajo@33163 2152 range(0, 30) \
iveresov@6453 2153 \
iveresov@6453 2154 product(intx, Tier3InvokeNotifyFreqLog, 10, \
iveresov@6453 2155 "C1 with MDO profiling (tier 3) invocation notification " \
tamao@20404 2156 "frequency") \
zmajo@33163 2157 range(0, 30) \
iveresov@6453 2158 \
iveresov@10569 2159 product(intx, Tier23InlineeNotifyFreqLog, 20, \
iveresov@10569 2160 "Inlinee invocation (tiers 2 and 3) notification frequency") \
zmajo@33163 2161 range(0, 30) \
iveresov@10569 2162 \
iveresov@6453 2163 product(intx, Tier0BackedgeNotifyFreqLog, 10, \
tamao@20404 2164 "Interpreter (tier 0) invocation notification frequency") \
zmajo@33163 2165 range(0, 30) \
iveresov@6453 2166 \
iveresov@6453 2167 product(intx, Tier2BackedgeNotifyFreqLog, 14, \
tamao@20404 2168 "C1 without MDO (tier 2) invocation notification frequency") \
zmajo@33163 2169 range(0, 30) \
iveresov@6453 2170 \
iveresov@6453 2171 product(intx, Tier3BackedgeNotifyFreqLog, 13, \
iveresov@6453 2172 "C1 with MDO profiling (tier 3) invocation notification " \
tamao@20404 2173 "frequency") \
zmajo@33163 2174 range(0, 30) \
iveresov@6453 2175 \
iveresov@6453 2176 product(intx, Tier2CompileThreshold, 0, \
iveresov@6453 2177 "threshold at which tier 2 compilation is invoked") \
zmajo@33163 2178 range(0, max_jint) \
iveresov@6453 2179 \
iveresov@6453 2180 product(intx, Tier2BackEdgeThreshold, 0, \
iveresov@6453 2181 "Back edge threshold at which tier 2 compilation is invoked") \
zmajo@33163 2182 range(0, max_jint) \
iveresov@6453 2183 \
iveresov@6453 2184 product(intx, Tier3InvocationThreshold, 200, \
iveresov@6453 2185 "Compile if number of method invocations crosses this " \
iveresov@6453 2186 "threshold") \
zmajo@33163 2187 range(0, max_jint) \
iveresov@6453 2188 \
iveresov@6453 2189 product(intx, Tier3MinInvocationThreshold, 100, \
iveresov@6453 2190 "Minimum invocation to compile at tier 3") \
zmajo@33163 2191 range(0, max_jint) \
iveresov@6453 2192 \
iveresov@6453 2193 product(intx, Tier3CompileThreshold, 2000, \
iveresov@6453 2194 "Threshold at which tier 3 compilation is invoked (invocation " \
twisti@33160 2195 "minimum must be satisfied)") \
zmajo@33163 2196 range(0, max_jint) \
iveresov@6453 2197 \
iveresov@11566 2198 product(intx, Tier3BackEdgeThreshold, 60000, \
iveresov@6453 2199 "Back edge threshold at which tier 3 OSR compilation is invoked") \
zmajo@33163 2200 range(0, max_jint) \
iveresov@6453 2201 \
kvn@42650 2202 product(intx, Tier3AOTInvocationThreshold, 10000, \
kvn@42650 2203 "Compile if number of method invocations crosses this " \
kvn@42650 2204 "threshold if coming from AOT") \
kvn@42650 2205 range(0, max_jint) \
kvn@42650 2206 \
kvn@42650 2207 product(intx, Tier3AOTMinInvocationThreshold, 1000, \
kvn@42650 2208 "Minimum invocation to compile at tier 3 if coming from AOT") \
kvn@42650 2209 range(0, max_jint) \
kvn@42650 2210 \
kvn@42650 2211 product(intx, Tier3AOTCompileThreshold, 15000, \
kvn@42650 2212 "Threshold at which tier 3 compilation is invoked (invocation " \
kvn@42650 2213 "minimum must be satisfied) if coming from AOT") \
kvn@42650 2214 range(0, max_jint) \
kvn@42650 2215 \
kvn@42650 2216 product(intx, Tier3AOTBackEdgeThreshold, 120000, \
kvn@42650 2217 "Back edge threshold at which tier 3 OSR compilation is invoked " \
kvn@42650 2218 "if coming from AOT") \
kvn@42650 2219 range(0, max_jint) \
kvn@42650 2220 \
iveresov@6453 2221 product(intx, Tier4InvocationThreshold, 5000, \
iveresov@6453 2222 "Compile if number of method invocations crosses this " \
iveresov@6453 2223 "threshold") \
zmajo@33163 2224 range(0, max_jint) \
iveresov@6453 2225 \
iveresov@6453 2226 product(intx, Tier4MinInvocationThreshold, 600, \
iveresov@6453 2227 "Minimum invocation to compile at tier 4") \
zmajo@33163 2228 range(0, max_jint) \
iveresov@6453 2229 \
iveresov@6453 2230 product(intx, Tier4CompileThreshold, 15000, \
iveresov@6453 2231 "Threshold at which tier 4 compilation is invoked (invocation " \
tamao@20404 2232 "minimum must be satisfied") \
zmajo@33163 2233 range(0, max_jint) \
iveresov@6453 2234 \
iveresov@6453 2235 product(intx, Tier4BackEdgeThreshold, 40000, \
iveresov@6453 2236 "Back edge threshold at which tier 4 OSR compilation is invoked") \
zmajo@33163 2237 range(0, max_jint) \
iveresov@6453 2238 \
iveresov@6453 2239 product(intx, Tier3DelayOn, 5, \
iveresov@6453 2240 "If C2 queue size grows over this amount per compiler thread " \
iveresov@6453 2241 "stop compiling at tier 3 and start compiling at tier 2") \
zmajo@33163 2242 range(0, max_jint) \
iveresov@6453 2243 \
iveresov@6453 2244 product(intx, Tier3DelayOff, 2, \
iveresov@6453 2245 "If C2 queue size is less than this amount per compiler thread " \
iveresov@6453 2246 "allow methods compiled at tier 2 transition to tier 3") \
zmajo@33163 2247 range(0, max_jint) \
iveresov@6453 2248 \
iveresov@6453 2249 product(intx, Tier3LoadFeedback, 5, \
iveresov@6453 2250 "Tier 3 thresholds will increase twofold when C1 queue size " \
iveresov@6453 2251 "reaches this amount per compiler thread") \
zmajo@33163 2252 range(0, max_jint) \
iveresov@6453 2253 \
iveresov@6453 2254 product(intx, Tier4LoadFeedback, 3, \
iveresov@6453 2255 "Tier 4 thresholds will increase twofold when C2 queue size " \
iveresov@6453 2256 "reaches this amount per compiler thread") \
zmajo@33163 2257 range(0, max_jint) \
iveresov@6453 2258 \
iveresov@6453 2259 product(intx, TieredCompileTaskTimeout, 50, \
iveresov@6453 2260 "Kill compile task if method was not used within " \
iveresov@6453 2261 "given timeout in milliseconds") \
zmajo@33163 2262 range(0, max_intx) \
iveresov@6453 2263 \
iveresov@6453 2264 product(intx, TieredStopAtLevel, 4, \
iveresov@6453 2265 "Stop at given compilation level") \
zmajo@33163 2266 range(0, 4) \
iveresov@6453 2267 \
iveresov@6453 2268 product(intx, Tier0ProfilingStartPercentage, 200, \
tamao@20404 2269 "Start profiling in interpreter if the counters exceed tier 3 " \
iveresov@6453 2270 "thresholds by the specified percentage") \
zmajo@33163 2271 range(0, max_jint) \
iveresov@6453 2272 \
anoll@17617 2273 product(uintx, IncreaseFirstTierCompileThresholdAt, 50, \
tamao@20404 2274 "Increase the compile threshold for C1 compilation if the code " \
tamao@20404 2275 "cache is filled by the specified percentage") \
gziemski@31371 2276 range(0, 99) \
anoll@17617 2277 \
iveresov@6453 2278 product(intx, TieredRateUpdateMinTime, 1, \
iveresov@6453 2279 "Minimum rate sampling interval (in milliseconds)") \
zmajo@33163 2280 range(0, max_intx) \
iveresov@6453 2281 \
iveresov@6453 2282 product(intx, TieredRateUpdateMaxTime, 25, \
iveresov@6453 2283 "Maximum rate sampling interval (in milliseconds)") \
zmajo@33163 2284 range(0, max_intx) \
duke@1 2285 \
duke@1 2286 product_pd(bool, TieredCompilation, \
iveresov@6453 2287 "Enable tiered compilation") \
iveresov@6453 2288 \
iveresov@6453 2289 product(bool, PrintTieredEvents, false, \
iveresov@6453 2290 "Print tiered events notifications") \
duke@1 2291 \
duke@1 2292 product_pd(intx, OnStackReplacePercentage, \
tamao@20404 2293 "NON_TIERED number of method invocations/branches (expressed as " \
tamao@20404 2294 "% of CompileThreshold) before (re-)compiling OSR code") \
zmajo@33163 2295 constraint(OnStackReplacePercentageConstraintFunc, AfterErgo) \
duke@1 2296 \
duke@1 2297 product(intx, InterpreterProfilePercentage, 33, \
tamao@20404 2298 "NON_TIERED number of method invocations/branches (expressed as " \
tamao@20404 2299 "% of CompileThreshold) before profiling in the interpreter") \
gziemski@31371 2300 range(0, 100) \
duke@1 2301 \
duke@1 2302 develop(intx, MaxRecompilationSearchLength, 10, \
tamao@20404 2303 "The maximum number of frames to inspect when searching for " \
tamao@20404 2304 "recompilee") \
duke@1 2305 \
duke@1 2306 develop(intx, MaxInterpretedSearchLength, 3, \
tamao@20404 2307 "The maximum number of interpreted frames to skip when searching "\
tamao@20404 2308 "for recompilee") \
duke@1 2309 \
duke@1 2310 develop(intx, DesiredMethodLimit, 8000, \
tamao@20404 2311 "The desired maximum method size (in bytecodes) after inlining") \
duke@1 2312 \
duke@1 2313 develop(intx, HugeMethodLimit, 8000, \
tamao@20404 2314 "Don't compile methods larger than this if " \
duke@1 2315 "+DontCompileHugeMethods") \
duke@1 2316 \
duke@1 2317 /* New JDK 1.4 reflection implementation */ \
duke@1 2318 \
duke@1 2319 develop(intx, FastSuperclassLimit, 8, \
duke@1 2320 "Depth of hardwired instanceof accelerator array") \
duke@1 2321 \
duke@1 2322 /* Properties for Java libraries */ \
duke@1 2323 \
gziemski@38118 2324 product(uint64_t, MaxDirectMemorySize, 0, \
duke@1 2325 "Maximum total size of NIO direct-buffer allocations") \
gziemski@38118 2326 range(0, max_jlong) \
duke@1 2327 \
jwilhelm@22551 2328 /* Flags used for temporary code during development */ \
duke@1 2329 \
duke@1 2330 diagnostic(bool, UseNewCode, false, \
duke@1 2331 "Testing Only: Use the new version while testing") \
duke@1 2332 \
duke@1 2333 diagnostic(bool, UseNewCode2, false, \
duke@1 2334 "Testing Only: Use the new version while testing") \
duke@1 2335 \
duke@1 2336 diagnostic(bool, UseNewCode3, false, \
duke@1 2337 "Testing Only: Use the new version while testing") \
duke@1 2338 \
duke@1 2339 /* flags for performance data collection */ \
duke@1 2340 \
dholmes@40015 2341 product(bool, UsePerfData, true, \
tamao@20404 2342 "Flag to disable jvmstat instrumentation for performance testing "\
tamao@20404 2343 "and problem isolation purposes") \
duke@1 2344 \
duke@1 2345 product(bool, PerfDataSaveToFile, false, \
duke@1 2346 "Save PerfData memory to hsperfdata_<pid> file on exit") \
duke@1 2347 \
duke@1 2348 product(ccstr, PerfDataSaveFile, NULL, \
tamao@20404 2349 "Save PerfData memory to the specified absolute pathname. " \
tamao@20404 2350 "The string %p in the file name (if present) " \
tamao@20404 2351 "will be replaced by pid") \
tamao@20404 2352 \
tamao@20404 2353 product(intx, PerfDataSamplingInterval, 50, \
tamao@20404 2354 "Data sampling interval (in milliseconds)") \
gziemski@33222 2355 range(PeriodicTask::min_interval, max_jint) \
gziemski@33222 2356 constraint(PerfDataSamplingIntervalFunc, AfterErgo) \
duke@1 2357 \
duke@1 2358 product(bool, PerfDisableSharedMem, false, \
duke@1 2359 "Store performance data in standard memory") \
duke@1 2360 \
redestad@35940 2361 product(intx, PerfDataMemorySize, 32*K, \
duke@1 2362 "Size of performance data memory region. Will be rounded " \
duke@1 2363 "up to a multiple of the native os page size.") \
gziemski@33222 2364 range(128, 32*64*K) \
duke@1 2365 \
duke@1 2366 product(intx, PerfMaxStringConstLength, 1024, \
duke@1 2367 "Maximum PerfStringConstant string length before truncation") \
gziemski@33222 2368 range(32, 32*K) \
duke@1 2369 \
duke@1 2370 product(bool, PerfAllowAtExitRegistration, false, \
duke@1 2371 "Allow registration of atexit() methods") \
duke@1 2372 \
duke@1 2373 product(bool, PerfBypassFileSystemCheck, false, \
duke@1 2374 "Bypass Win32 file system criteria checks (Windows Only)") \
duke@1 2375 \
duke@1 2376 product(intx, UnguardOnExecutionViolation, 0, \
tamao@20404 2377 "Unguard page and retry on no-execute fault (Win32 only) " \
duke@1 2378 "0=off, 1=conservative, 2=aggressive") \
gziemski@31371 2379 range(0, 2) \
duke@1 2380 \
duke@1 2381 /* Serviceability Support */ \
duke@1 2382 \
duke@1 2383 product(bool, ManagementServer, false, \
duke@1 2384 "Create JMX Management Server") \
duke@1 2385 \
duke@1 2386 product(bool, DisableAttachMechanism, false, \
tamao@20404 2387 "Disable mechanism that allows tools to attach to this VM") \
duke@1 2388 \
duke@1 2389 product(bool, StartAttachListener, false, \
duke@1 2390 "Always start Attach Listener at VM startup") \
duke@1 2391 \
alanb@44993 2392 product(bool, EnableDynamicAgentLoading, true, \
alanb@44993 2393 "Allow tools to load agents with the attach mechanism") \
alanb@44993 2394 \
duke@1 2395 manageable(bool, PrintConcurrentLocks, false, \
duke@1 2396 "Print java.util.concurrent locks in thread dump") \
duke@1 2397 \
duke@1 2398 /* Shared spaces */ \
duke@1 2399 \
duke@1 2400 product(bool, UseSharedSpaces, true, \
hseigel@15101 2401 "Use shared spaces for metadata") \
duke@1 2402 \
jiangli@27025 2403 product(bool, VerifySharedSpaces, false, \
jiangli@27025 2404 "Verify shared spaces (false for default archive, true for " \
jiangli@27025 2405 "archive specified by -XX:SharedArchiveFile)") \
jiangli@27025 2406 \
duke@1 2407 product(bool, RequireSharedSpaces, false, \
hseigel@15101 2408 "Require shared spaces for metadata") \
duke@1 2409 \
duke@1 2410 product(bool, DumpSharedSpaces, false, \
tamao@20404 2411 "Special mode: JVM reads a class list, loads classes, builds " \
tamao@20404 2412 "shared spaces, and dumps the shared spaces to a file to be " \
tamao@20404 2413 "used in future JVM runs") \
duke@1 2414 \
iklam@26135 2415 product(bool, PrintSharedArchiveAndExit, false, \
iklam@26135 2416 "Print shared archive file contents") \
iklam@26135 2417 \
iklam@26135 2418 product(bool, PrintSharedDictionary, false, \
iklam@26135 2419 "If PrintSharedArchiveAndExit is true, also print the shared " \
iklam@26135 2420 "dictionary") \
iklam@26135 2421 \
gziemski@34242 2422 product(size_t, SharedBaseAddress, LP64_ONLY(32*G) \
coleenp@16430 2423 NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
coleenp@16430 2424 "Address to allocate shared memory region for class data") \
gziemski@34242 2425 range(0, SIZE_MAX) \
duke@1 2426 \
iklam@48354 2427 product(ccstr, SharedArchiveConfigFile, NULL, \
iklam@48354 2428 "Data to add to the CDS archive file") \
iklam@48354 2429 \
jiangli@28363 2430 product(uintx, SharedSymbolTableBucketSize, 4, \
jiangli@28363 2431 "Average number of symbols per bucket in shared table") \
gziemski@33222 2432 range(2, 246) \
jiangli@28363 2433 \
ccheung@53564 2434 diagnostic(bool, AllowArchivingWithJavaAgent, false, \
ccheung@53564 2435 "Allow Java agent to be run with CDS dumping") \
ccheung@53564 2436 \
never@9980 2437 diagnostic(bool, PrintMethodHandleStubs, false, \
never@9980 2438 "Print generated stub code for method handles") \
never@9980 2439 \
jrose@2534 2440 develop(bool, TraceMethodHandles, false, \
jrose@2534 2441 "trace internal method handle operations") \
jrose@2534 2442 \
jrose@2534 2443 diagnostic(bool, VerifyMethodHandles, trueInDebug, \
jrose@2534 2444 "perform extra checks when constructing method handles") \
jrose@2534 2445 \
twisti@13391 2446 diagnostic(bool, ShowHiddenFrames, false, \
twisti@13391 2447 "show method handle implementation frames (usually hidden)") \
never@9946 2448 \
jrose@4644 2449 experimental(bool, TrustFinalNonStaticFields, false, \
jrose@4644 2450 "trust final non-static declarations for constant folding") \
jrose@4644 2451 \
vlivanov@23192 2452 diagnostic(bool, FoldStableValues, true, \
vlivanov@23192 2453 "Optimize loads from stable fields (marked w/ @Stable)") \
vlivanov@19770 2454 \
jrose@2570 2455 develop(bool, TraceInvokeDynamic, false, \
jrose@2570 2456 "trace internal invoke dynamic operations") \
jrose@2570 2457 \
psandoz@49210 2458 diagnostic(int, UseBootstrapCallInfo, 1, \
psandoz@49210 2459 "0: when resolving InDy or ConDy, force all BSM arguments to be " \
psandoz@49210 2460 "resolved before the bootstrap method is called; 1: when a BSM " \
psandoz@49210 2461 "that may accept a BootstrapCallInfo is detected, use that API " \
psandoz@49210 2462 "to pass BSM arguments, which allows the BSM to delay their " \
psandoz@49210 2463 "resolution; 2+: stress test the BCI API by calling more BSMs " \
psandoz@49210 2464 "via that API, instead of with the eagerly-resolved array.") \
psandoz@49210 2465 \
duke@1 2466 diagnostic(bool, PauseAtStartup, false, \
duke@1 2467 "Causes the VM to pause at startup time and wait for the pause " \
duke@1 2468 "file to be removed (default: ./vm.paused.<pid>)") \
duke@1 2469 \
duke@1 2470 diagnostic(ccstr, PauseAtStartupFile, NULL, \
duke@1 2471 "The file to create and for whose removal to await when pausing " \
duke@1 2472 "at startup. (default: ./vm.paused.<pid>)") \
duke@1 2473 \
sla@8476 2474 diagnostic(bool, PauseAtExit, false, \
sla@8476 2475 "Pause and wait for keypress on exit if a debugger is attached") \
sla@8476 2476 \
duke@1 2477 product(bool, ExtendedDTraceProbes, false, \
duke@1 2478 "Enable performance-impacting dtrace probes") \
duke@1 2479 \
duke@1 2480 product(bool, DTraceMethodProbes, false, \
duke@1 2481 "Enable dtrace probes for method-entry and method-exit") \
duke@1 2482 \
duke@1 2483 product(bool, DTraceAllocProbes, false, \
duke@1 2484 "Enable dtrace probes for object allocation") \
duke@1 2485 \
duke@1 2486 product(bool, DTraceMonitorProbes, false, \
duke@1 2487 "Enable dtrace probes for monitor events") \
duke@1 2488 \
duke@1 2489 product(bool, RelaxAccessControlCheck, false, \
duke@1 2490 "Relax the access control checks in the verifier") \
duke@1 2491 \
hseigel@14487 2492 product(uintx, StringTableSize, defaultStringTableSize, \
rehn@51049 2493 "Number of buckets in the interned String table " \
rehn@51049 2494 "(will be rounded to nearest higher power of 2)") \
rehn@51049 2495 range(minimumStringTableSize, 16777216ul) \
jcoomes@8727 2496 \
kevinw@20393 2497 experimental(uintx, SymbolTableSize, defaultSymbolTableSize, \
kevinw@20393 2498 "Number of buckets in the JVM internal Symbol table") \
gziemski@31371 2499 range(minimumSymbolTableSize, 111*defaultSymbolTableSize) \
kevinw@20393 2500 \
pliden@23472 2501 product(bool, UseStringDeduplication, false, \
pliden@23472 2502 "Use string deduplication") \
pliden@23472 2503 \
pliden@23472 2504 product(uintx, StringDeduplicationAgeThreshold, 3, \
pliden@23472 2505 "A string must reach this age (or be promoted to an old region) " \
pliden@23472 2506 "to be considered for deduplication") \
gziemski@31371 2507 range(1, markOopDesc::max_age) \
pliden@23472 2508 \
pliden@23472 2509 diagnostic(bool, StringDeduplicationResizeALot, false, \
pliden@23472 2510 "Force table resize every time the table is scanned") \
pliden@23472 2511 \
pliden@23472 2512 diagnostic(bool, StringDeduplicationRehashALot, false, \
pliden@23472 2513 "Force table rehash every time the table is scanned") \
pliden@23472 2514 \
mgerdin@12095 2515 diagnostic(bool, WhiteBoxAPI, false, \
brutisso@12630 2516 "Enable internal testing APIs") \
brutisso@12630 2517 \
jmasa@25905 2518 experimental(intx, SurvivorAlignmentInBytes, 0, \
jmasa@25905 2519 "Default survivor space alignment in bytes") \
sangheki@31995 2520 constraint(SurvivorAlignmentInBytesConstraintFunc,AfterErgo) \
jmasa@25905 2521 \
iklam@26135 2522 product(ccstr, DumpLoadedClassList, NULL, \
iklam@26135 2523 "Dump the names all loaded classes, that could be stored into " \
iklam@26135 2524 "the CDS archive, in the specified file") \
iklam@26135 2525 \
iklam@26135 2526 product(ccstr, SharedClassListFile, NULL, \
iklam@26135 2527 "Override the default CDS class list") \
iklam@26135 2528 \
jiangli@50456 2529 product(ccstr, SharedArchiveFile, NULL, \
hseigel@17375 2530 "Override the default location of the CDS archive file") \
hseigel@17375 2531 \
iklam@26135 2532 product(ccstr, ExtraSharedClassListFile, NULL, \
iklam@26135 2533 "Extra classlist for building the CDS archive file") \
iklam@26135 2534 \
stefank@25959 2535 experimental(size_t, ArrayAllocatorMallocLimit, \
stefank@25959 2536 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \
brutisso@16682 2537 "Allocation less than this value will be allocated " \
sla@18025 2538 "using malloc. Larger allocations will use mmap.") \
sla@18025 2539 \
shade@23189 2540 experimental(bool, AlwaysAtomicAccesses, false, \
shade@23189 2541 "Accesses to all variables should always be atomic") \
shade@23189 2542 \
aph@30209 2543 diagnostic(bool, UseUnalignedAccesses, false, \
chegar@33606 2544 "Use unaligned memory accesses in Unsafe") \
zmajo@30305 2545 \
zmajo@30305 2546 product_pd(bool, PreserveFramePointer, \
zmajo@30305 2547 "Use the FP register for holding the frame pointer " \
zmajo@31587 2548 "and not as a general purpose register.") \
zmajo@31587 2549 \
zmajo@31862 2550 diagnostic(bool, CheckIntrinsics, true, \
zmajo@31587 2551 "When a class C is loaded, check that " \
zmajo@31587 2552 "(1) all intrinsics defined by the VM for class C are present "\
zmajo@31587 2553 "in the loaded class file and are marked with the " \
zmajo@31862 2554 "@HotSpotIntrinsicCandidate annotation, that " \
zmajo@31587 2555 "(2) there is an intrinsic registered for all loaded methods " \
zmajo@31587 2556 "that are annotated with the @HotSpotIntrinsicCandidate " \
zmajo@31862 2557 "annotation, and that " \
zmajo@31862 2558 "(3) no orphan methods exist for class C (i.e., methods for " \
zmajo@31862 2559 "which the VM declares an intrinsic but that are not declared "\
zmajo@31862 2560 "in the loaded class C. " \
neliasso@33451 2561 "Check (3) is available only in debug builds.") \
neliasso@33451 2562 \
csahu@39117 2563 diagnostic_pd(intx, InitArrayShortSize, \
shade@36554 2564 "Threshold small size (in bytes) for clearing arrays. " \
shade@36554 2565 "Anything this size or smaller may get converted to discrete " \
shade@36554 2566 "scalar stores.") \
shade@36554 2567 range(0, max_intx) \
shade@36554 2568 constraint(InitArrayShortSizeConstraintFunc, AfterErgo) \
shade@36554 2569 \
neliasso@33451 2570 diagnostic(bool, CompilerDirectivesIgnoreCompileCommands, false, \
neliasso@33451 2571 "Disable backwards compatibility for compile commands.") \
neliasso@33451 2572 \
neliasso@35129 2573 diagnostic(bool, CompilerDirectivesPrint, false, \
neliasso@35129 2574 "Print compiler directives on installation.") \
neliasso@35129 2575 diagnostic(int, CompilerDirectivesLimit, 50, \
kkharbas@48369 2576 "Limit on number of compiler directives.") \
kkharbas@48369 2577 \
kkharbas@48369 2578 product(ccstr, AllocateHeapAt, NULL, \
kkharbas@48369 2579 "Path to the directoy where a temporary file will be created " \
stuefe@49870 2580 "to use as the backing store for Java Heap.") \
stuefe@49870 2581 \
stuefe@49870 2582 develop(bool, VerifyMetaspace, false, \
stuefe@49870 2583 "Verify metaspace on chunk movements.") \
stuefe@49870 2584 \
stuefe@50148 2585 diagnostic(bool, ShowRegistersOnAssert, false, \
stuefe@50148 2586 "On internal errors, include registers in error report.") \
stuefe@50148 2587 \
roland@50388 2588 experimental(bool, UseSwitchProfiling, true, \
roland@50388 2589 "leverage profiling for table/lookup switch") \
egahlin@50662 2590 \
egahlin@50662 2591 JFR_ONLY(product(bool, FlightRecorder, false, \
egahlin@50662 2592 "Enable Flight Recorder")) \
egahlin@50662 2593 \
egahlin@50662 2594 JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL, \
egahlin@50662 2595 "Flight Recorder options")) \
egahlin@50662 2596 \
egahlin@50662 2597 JFR_ONLY(product(ccstr, StartFlightRecording, NULL, \
egahlin@50662 2598 "Start flight recording with options")) \
egahlin@50662 2599 \
egahlin@50662 2600 experimental(bool, UseFastUnorderedTimeStamps, false, \
egahlin@50662 2601 "Use platform unstable time where supported for timestamps only")
stuefe@49870 2602
stefank@50210 2603 #define VM_FLAGS(develop, \
stefank@50210 2604 develop_pd, \
stefank@50210 2605 product, \
stefank@50210 2606 product_pd, \
stefank@50210 2607 diagnostic, \
stefank@50210 2608 diagnostic_pd, \
stefank@50210 2609 experimental, \
stefank@50210 2610 notproduct, \
stefank@50210 2611 manageable, \
stefank@50210 2612 product_rw, \
stefank@50210 2613 lp64_product, \
stefank@50210 2614 range, \
stefank@50210 2615 constraint, \
stefank@50210 2616 writeable) \
stefank@50210 2617 \
stefank@50210 2618 RUNTIME_FLAGS( \
stefank@50210 2619 develop, \
stefank@50210 2620 develop_pd, \
stefank@50210 2621 product, \
stefank@50210 2622 product_pd, \
stefank@50210 2623 diagnostic, \
stefank@50210 2624 diagnostic_pd, \
stefank@50210 2625 experimental, \
stefank@50210 2626 notproduct, \
stefank@50210 2627 manageable, \
stefank@50210 2628 product_rw, \
stefank@50210 2629 lp64_product, \
stefank@50210 2630 range, \
stefank@50210 2631 constraint, \
stefank@50210 2632 writeable) \
stefank@50210 2633 \
stefank@50210 2634 GC_FLAGS( \
stefank@50210 2635 develop, \
stefank@50210 2636 develop_pd, \
stefank@50210 2637 product, \
stefank@50210 2638 product_pd, \
stefank@50210 2639 diagnostic, \
stefank@50210 2640 diagnostic_pd, \
stefank@50210 2641 experimental, \
stefank@50210 2642 notproduct, \
stefank@50210 2643 manageable, \
stefank@50210 2644 product_rw, \
stefank@50210 2645 lp64_product, \
stefank@50210 2646 range, \
stefank@50210 2647 constraint, \
stefank@50210 2648 writeable) \
sla@18025 2649
duke@1 2650 /*
duke@1 2651 * Macros for factoring of globals
duke@1 2652 */
duke@1 2653
duke@1 2654 // Interface macros
twisti@20288 2655 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
twisti@20288 2656 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name;
twisti@20288 2657 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
csahu@39117 2658 #define DECLARE_PD_DIAGNOSTIC_FLAG(type, name, doc) extern "C" type name;
ysr@1382 2659 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
twisti@20288 2660 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
twisti@20288 2661 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
duke@1 2662 #ifdef PRODUCT
twisti@34174 2663 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value;
twisti@34174 2664 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name;
twisti@34174 2665 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) const type name = value;
duke@1 2666 #else
twisti@20288 2667 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name;
twisti@20288 2668 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name;
twisti@20288 2669 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name;
gziemski@31371 2670 #endif // PRODUCT
coleenp@360 2671 // Special LP64 flags, product only needed for now.
coleenp@360 2672 #ifdef _LP64
coleenp@360 2673 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
coleenp@360 2674 #else
coleenp@360 2675 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
coleenp@360 2676 #endif // _LP64
duke@1 2677
duke@1 2678 // Implementation macros
twisti@20288 2679 #define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value;
twisti@20288 2680 #define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name;
twisti@20288 2681 #define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
csahu@39117 2682 #define MATERIALIZE_PD_DIAGNOSTIC_FLAG(type, name, doc) type name = pd_##name;
ysr@1382 2683 #define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
twisti@20288 2684 #define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
twisti@20288 2685 #define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
duke@1 2686 #ifdef PRODUCT
twisti@34174 2687 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc)
twisti@34174 2688 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc)
twisti@34174 2689 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc)
duke@1 2690 #else
twisti@20288 2691 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
twisti@20288 2692 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name;
twisti@20288 2693 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
gziemski@31371 2694 #endif // PRODUCT
coleenp@360 2695 #ifdef _LP64
twisti@20288 2696 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
coleenp@360 2697 #else
coleenp@360 2698 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
coleenp@360 2699 #endif // _LP64
duke@1 2700
gziemski@31371 2701 // Only materialize src code for range checking when required, ignore otherwise
gziemski@31371 2702 #define IGNORE_RANGE(a, b)
gziemski@31371 2703 // Only materialize src code for contraint checking when required, ignore otherwise
sangheki@31995 2704 #define IGNORE_CONSTRAINT(func,type)
duke@1 2705
gziemski@38273 2706 #define IGNORE_WRITEABLE(type)
gziemski@38273 2707
stefank@50210 2708 VM_FLAGS(DECLARE_DEVELOPER_FLAG, \
stefank@50210 2709 DECLARE_PD_DEVELOPER_FLAG, \
stefank@50210 2710 DECLARE_PRODUCT_FLAG, \
stefank@50210 2711 DECLARE_PD_PRODUCT_FLAG, \
stefank@50210 2712 DECLARE_DIAGNOSTIC_FLAG, \
stefank@50210 2713 DECLARE_PD_DIAGNOSTIC_FLAG, \
stefank@50210 2714 DECLARE_EXPERIMENTAL_FLAG, \
stefank@50210 2715 DECLARE_NOTPRODUCT_FLAG, \
stefank@50210 2716 DECLARE_MANAGEABLE_FLAG, \
stefank@50210 2717 DECLARE_PRODUCT_RW_FLAG, \
stefank@50210 2718 DECLARE_LP64_PRODUCT_FLAG, \
stefank@50210 2719 IGNORE_RANGE, \
stefank@50210 2720 IGNORE_CONSTRAINT, \
stefank@50210 2721 IGNORE_WRITEABLE)
stefank@7397 2722
gziemski@31371 2723 RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, \
gziemski@31371 2724 DECLARE_PD_DEVELOPER_FLAG, \
gziemski@31371 2725 DECLARE_PRODUCT_FLAG, \
gziemski@31371 2726 DECLARE_PD_PRODUCT_FLAG, \
gziemski@31371 2727 DECLARE_DIAGNOSTIC_FLAG, \
csahu@39117 2728 DECLARE_PD_DIAGNOSTIC_FLAG, \
gziemski@31371 2729 DECLARE_NOTPRODUCT_FLAG, \
gziemski@31371 2730 IGNORE_RANGE, \
gziemski@38273 2731 IGNORE_CONSTRAINT, \
gziemski@38273 2732 IGNORE_WRITEABLE)
gziemski@31371 2733
gziemski@31371 2734 ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, \
gziemski@31371 2735 DECLARE_PRODUCT_FLAG, \
gziemski@31371 2736 DECLARE_DIAGNOSTIC_FLAG, \
gziemski@31371 2737 DECLARE_EXPERIMENTAL_FLAG, \
gziemski@31371 2738 DECLARE_NOTPRODUCT_FLAG, \
gziemski@31371 2739 IGNORE_RANGE, \
gziemski@38273 2740 IGNORE_CONSTRAINT, \
gziemski@38273 2741 IGNORE_WRITEABLE)
twisti@13521 2742
phh@11183 2743 // Extensions
phh@11183 2744
phh@11183 2745 #include "runtime/globals_ext.hpp"
phh@11183 2746
stefank@7397 2747 #endif // SHARE_VM_RUNTIME_GLOBALS_HPP