globals.hpp revision 344:6aae2f9d0294
1/* 2 * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 20 * CA 95054 USA or visit www.sun.com if you need additional information or 21 * have any questions. 22 * 23 */ 24 25#if !defined(COMPILER1) && !defined(COMPILER2) 26define_pd_global(bool, BackgroundCompilation, false); 27define_pd_global(bool, UseTLAB, false); 28define_pd_global(bool, CICompileOSR, false); 29define_pd_global(bool, UseTypeProfile, false); 30define_pd_global(bool, UseOnStackReplacement, false); 31define_pd_global(bool, InlineIntrinsics, false); 32define_pd_global(bool, PreferInterpreterNativeStubs, true); 33define_pd_global(bool, ProfileInterpreter, false); 34define_pd_global(bool, ProfileTraps, false); 35define_pd_global(bool, TieredCompilation, false); 36 37define_pd_global(intx, CompileThreshold, 0); 38define_pd_global(intx, Tier2CompileThreshold, 0); 39define_pd_global(intx, Tier3CompileThreshold, 0); 40define_pd_global(intx, Tier4CompileThreshold, 0); 41 42define_pd_global(intx, BackEdgeThreshold, 0); 43define_pd_global(intx, Tier2BackEdgeThreshold, 0); 44define_pd_global(intx, Tier3BackEdgeThreshold, 0); 45define_pd_global(intx, Tier4BackEdgeThreshold, 0); 46 47define_pd_global(intx, OnStackReplacePercentage, 0); 48define_pd_global(bool, ResizeTLAB, false); 49define_pd_global(intx, FreqInlineSize, 0); 50define_pd_global(intx, NewSizeThreadIncrease, 4*K); 51define_pd_global(intx, NewRatio, 4); 52define_pd_global(intx, InlineClassNatives, true); 53define_pd_global(intx, InlineUnsafeOps, true); 54define_pd_global(intx, InitialCodeCacheSize, 160*K); 55define_pd_global(intx, ReservedCodeCacheSize, 32*M); 56define_pd_global(intx, CodeCacheExpansionSize, 32*K); 57define_pd_global(intx, CodeCacheMinBlockLength, 1); 58define_pd_global(uintx,PermSize, ScaleForWordSize(4*M)); 59define_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M)); 60define_pd_global(bool, NeverActAsServerClassMachine, true); 61define_pd_global(uintx, DefaultMaxRAM, 1*G); 62#define CI_COMPILER_COUNT 0 63#else 64 65#ifdef COMPILER2 66#define CI_COMPILER_COUNT 2 67#else 68#define CI_COMPILER_COUNT 1 69#endif // COMPILER2 70 71#endif // no compilers 72 73 74// string type aliases used only in this file 75typedef const char* ccstr; 76typedef const char* ccstrlist; // represents string arguments which accumulate 77 78enum FlagValueOrigin { 79 DEFAULT = 0, 80 COMMAND_LINE = 1, 81 ENVIRON_VAR = 2, 82 CONFIG_FILE = 3, 83 MANAGEMENT = 4, 84 ERGONOMIC = 5, 85 ATTACH_ON_DEMAND = 6, 86 INTERNAL = 99 87}; 88 89struct Flag { 90 const char *type; 91 const char *name; 92 void* addr; 93 const char *kind; 94 FlagValueOrigin origin; 95 96 // points to all Flags static array 97 static Flag *flags; 98 99 // number of flags 100 static size_t numFlags; 101 102 static Flag* find_flag(char* name, size_t length); 103 104 bool is_bool() const { return strcmp(type, "bool") == 0; } 105 bool get_bool() const { return *((bool*) addr); } 106 void set_bool(bool value) { *((bool*) addr) = value; } 107 108 bool is_intx() const { return strcmp(type, "intx") == 0; } 109 intx get_intx() const { return *((intx*) addr); } 110 void set_intx(intx value) { *((intx*) addr) = value; } 111 112 bool is_uintx() const { return strcmp(type, "uintx") == 0; } 113 uintx get_uintx() const { return *((uintx*) addr); } 114 void set_uintx(uintx value) { *((uintx*) addr) = value; } 115 116 bool is_double() const { return strcmp(type, "double") == 0; } 117 double get_double() const { return *((double*) addr); } 118 void set_double(double value) { *((double*) addr) = value; } 119 120 bool is_ccstr() const { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; } 121 bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; } 122 ccstr get_ccstr() const { return *((ccstr*) addr); } 123 void set_ccstr(ccstr value) { *((ccstr*) addr) = value; } 124 125 bool is_unlocker() const; 126 bool is_unlocked() const; 127 bool is_writeable() const; 128 bool is_external() const; 129 130 void print_on(outputStream* st); 131 void print_as_flag(outputStream* st); 132}; 133 134// debug flags control various aspects of the VM and are global accessible 135 136// use FlagSetting to temporarily change some debug flag 137// e.g. FlagSetting fs(DebugThisAndThat, true); 138// restored to previous value upon leaving scope 139class FlagSetting { 140 bool val; 141 bool* flag; 142 public: 143 FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } 144 ~FlagSetting() { *flag = val; } 145}; 146 147 148class CounterSetting { 149 intx* counter; 150 public: 151 CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } 152 ~CounterSetting() { (*counter)--; } 153}; 154 155 156class IntFlagSetting { 157 intx val; 158 intx* flag; 159 public: 160 IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; } 161 ~IntFlagSetting() { *flag = val; } 162}; 163 164 165class DoubleFlagSetting { 166 double val; 167 double* flag; 168 public: 169 DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } 170 ~DoubleFlagSetting() { *flag = val; } 171}; 172 173 174class CommandLineFlags { 175 public: 176 static bool boolAt(char* name, size_t len, bool* value); 177 static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } 178 static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin); 179 static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin) { return boolAtPut(name, strlen(name), value, origin); } 180 181 static bool intxAt(char* name, size_t len, intx* value); 182 static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } 183 static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin); 184 static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin) { return intxAtPut(name, strlen(name), value, origin); } 185 186 static bool uintxAt(char* name, size_t len, uintx* value); 187 static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } 188 static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin); 189 static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); } 190 191 static bool doubleAt(char* name, size_t len, double* value); 192 static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } 193 static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin); 194 static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); } 195 196 static bool ccstrAt(char* name, size_t len, ccstr* value); 197 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } 198 static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin); 199 static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); } 200 201 // Returns false if name is not a command line flag. 202 static bool wasSetOnCmdline(const char* name, bool* value); 203 static void printSetFlags(); 204 205 static void printFlags() PRODUCT_RETURN; 206 207 static void verify() PRODUCT_RETURN; 208}; 209 210// use this for flags that are true by default in the debug version but 211// false in the optimized version, and vice versa 212#ifdef ASSERT 213#define trueInDebug true 214#define falseInDebug false 215#else 216#define trueInDebug false 217#define falseInDebug true 218#endif 219 220// use this for flags that are true per default in the product build 221// but false in development builds, and vice versa 222#ifdef PRODUCT 223#define trueInProduct true 224#define falseInProduct false 225#else 226#define trueInProduct false 227#define falseInProduct true 228#endif 229 230// use this for flags that are true per default in the tiered build 231// but false in non-tiered builds, and vice versa 232#ifdef TIERED 233#define trueInTiered true 234#define falseInTiered false 235#else 236#define trueInTiered false 237#define falseInTiered true 238#endif 239 240// develop flags are settable / visible only during development and are constant in the PRODUCT version 241// product flags are always settable / visible 242// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version 243 244// A flag must be declared with one of the following types: 245// bool, intx, uintx, ccstr. 246// The type "ccstr" is an alias for "const char*" and is used 247// only in this file, because the macrology requires single-token type names. 248 249// Note: Diagnostic options not meant for VM tuning or for product modes. 250// They are to be used for VM quality assurance or field diagnosis 251// of VM bugs. They are hidden so that users will not be encouraged to 252// try them as if they were VM ordinary execution options. However, they 253// are available in the product version of the VM. Under instruction 254// from support engineers, VM customers can turn them on to collect 255// diagnostic information about VM problems. To use a VM diagnostic 256// option, you must first specify +UnlockDiagnosticVMOptions. 257// (This master switch also affects the behavior of -Xprintflags.) 258 259// manageable flags are writeable external product flags. 260// They are dynamically writeable through the JDK management interface 261// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. 262// These flags are external exported interface (see CCC). The list of 263// manageable flags can be queried programmatically through the management 264// interface. 265// 266// A flag can be made as "manageable" only if 267// - the flag is defined in a CCC as an external exported interface. 268// - the VM implementation supports dynamic setting of the flag. 269// This implies that the VM must *always* query the flag variable 270// and not reuse state related to the flag state at any given time. 271// - you want the flag to be queried programmatically by the customers. 272// 273// product_rw flags are writeable internal product flags. 274// They are like "manageable" flags but for internal/private use. 275// The list of product_rw flags are internal/private flags which 276// may be changed/removed in a future release. It can be set 277// through the management interface to get/set value 278// when the name of flag is supplied. 279// 280// A flag can be made as "product_rw" only if 281// - the VM implementation supports dynamic setting of the flag. 282// This implies that the VM must *always* query the flag variable 283// and not reuse state related to the flag state at any given time. 284// 285// Note that when there is a need to support develop flags to be writeable, 286// it can be done in the same way as product_rw. 287 288#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, manageable, product_rw, lp64_product) \ 289 \ 290 lp64_product(bool, UseCompressedOops, false, \ 291 "Use 32-bit object references in 64-bit VM. " \ 292 "lp64_product means flag is always constant in 32 bit VM") \ 293 \ 294 lp64_product(bool, CheckCompressedOops, trueInDebug, \ 295 "generate checks in encoding/decoding code") \ 296 \ 297 /* UseMembar is theoretically a temp flag used for memory barrier \ 298 * removal testing. It was supposed to be removed before FCS but has \ 299 * been re-added (see 6401008) */ \ 300 product(bool, UseMembar, false, \ 301 "(Unstable) Issues membars on thread state transitions") \ 302 \ 303 product(bool, PrintCommandLineFlags, false, \ 304 "Prints flags that appeared on the command line") \ 305 \ 306 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ 307 "Enable processing of flags relating to field diagnostics") \ 308 \ 309 product(bool, JavaMonitorsInStackTrace, true, \ 310 "Print info. about Java monitor locks when the stacks are dumped")\ 311 \ 312 product_pd(bool, UseLargePages, \ 313 "Use large page memory") \ 314 \ 315 develop(bool, TracePageSizes, false, \ 316 "Trace page size selection and usage.") \ 317 \ 318 product(bool, UseNUMA, false, \ 319 "Use NUMA if available") \ 320 \ 321 product(intx, NUMAChunkResizeWeight, 20, \ 322 "Percentage (0-100) used to weight the current sample when " \ 323 "computing exponentially decaying average for " \ 324 "AdaptiveNUMAChunkSizing") \ 325 \ 326 product(intx, NUMASpaceResizeRate, 1*G, \ 327 "Do not reallocate more that this amount per collection") \ 328 \ 329 product(bool, UseAdaptiveNUMAChunkSizing, true, \ 330 "Enable adaptive chunk sizing for NUMA") \ 331 \ 332 product(bool, NUMAStats, false, \ 333 "Print NUMA stats in detailed heap information") \ 334 \ 335 product(intx, NUMAPageScanRate, 256, \ 336 "Maximum number of pages to include in the page scan procedure") \ 337 \ 338 product_pd(bool, NeedsDeoptSuspend, \ 339 "True for register window machines (sparc/ia64)") \ 340 \ 341 product(intx, UseSSE, 99, \ 342 "Highest supported SSE instructions set on x86/x64") \ 343 \ 344 product(uintx, LargePageSizeInBytes, 0, \ 345 "Large page size (0 to let VM choose the page size") \ 346 \ 347 product(uintx, LargePageHeapSizeThreshold, 128*M, \ 348 "Use large pages if max heap is at least this big") \ 349 \ 350 product(bool, ForceTimeHighResolution, false, \ 351 "Using high time resolution(For Win32 only)") \ 352 \ 353 develop(bool, TraceItables, false, \ 354 "Trace initialization and use of itables") \ 355 \ 356 develop(bool, TracePcPatching, false, \ 357 "Trace usage of frame::patch_pc") \ 358 \ 359 develop(bool, TraceJumps, false, \ 360 "Trace assembly jumps in thread ring buffer") \ 361 \ 362 develop(bool, TraceRelocator, false, \ 363 "Trace the bytecode relocator") \ 364 \ 365 develop(bool, TraceLongCompiles, false, \ 366 "Print out every time compilation is longer than " \ 367 "a given threashold") \ 368 \ 369 develop(bool, SafepointALot, false, \ 370 "Generates a lot of safepoints. Works with " \ 371 "GuaranteedSafepointInterval") \ 372 \ 373 product_pd(bool, BackgroundCompilation, \ 374 "A thread requesting compilation is not blocked during " \ 375 "compilation") \ 376 \ 377 product(bool, PrintVMQWaitTime, false, \ 378 "Prints out the waiting time in VM operation queue") \ 379 \ 380 develop(bool, BailoutToInterpreterForThrows, false, \ 381 "Compiled methods which throws/catches exceptions will be " \ 382 "deopt and intp.") \ 383 \ 384 develop(bool, NoYieldsInMicrolock, false, \ 385 "Disable yields in microlock") \ 386 \ 387 develop(bool, TraceOopMapGeneration, false, \ 388 "Shows oopmap generation") \ 389 \ 390 product(bool, MethodFlushing, true, \ 391 "Reclamation of zombie and not-entrant methods") \ 392 \ 393 develop(bool, VerifyStack, false, \ 394 "Verify stack of each thread when it is entering a runtime call") \ 395 \ 396 develop(bool, ForceUnreachable, false, \ 397 "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \ 398 \ 399 notproduct(bool, StressDerivedPointers, false, \ 400 "Force scavenge when a derived pointers is detected on stack " \ 401 "after rtm call") \ 402 \ 403 develop(bool, TraceDerivedPointers, false, \ 404 "Trace traversal of derived pointers on stack") \ 405 \ 406 notproduct(bool, TraceCodeBlobStacks, false, \ 407 "Trace stack-walk of codeblobs") \ 408 \ 409 product(bool, PrintJNIResolving, false, \ 410 "Used to implement -v:jni") \ 411 \ 412 notproduct(bool, PrintRewrites, false, \ 413 "Print methods that are being rewritten") \ 414 \ 415 product(bool, UseInlineCaches, true, \ 416 "Use Inline Caches for virtual calls ") \ 417 \ 418 develop(bool, InlineArrayCopy, true, \ 419 "inline arraycopy native that is known to be part of " \ 420 "base library DLL") \ 421 \ 422 develop(bool, InlineObjectHash, true, \ 423 "inline Object::hashCode() native that is known to be part " \ 424 "of base library DLL") \ 425 \ 426 develop(bool, InlineObjectCopy, true, \ 427 "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ 428 \ 429 develop(bool, InlineNatives, true, \ 430 "inline natives that are known to be part of base library DLL") \ 431 \ 432 develop(bool, InlineMathNatives, true, \ 433 "inline SinD, CosD, etc.") \ 434 \ 435 develop(bool, InlineClassNatives, true, \ 436 "inline Class.isInstance, etc") \ 437 \ 438 develop(bool, InlineAtomicLong, true, \ 439 "inline sun.misc.AtomicLong") \ 440 \ 441 develop(bool, InlineThreadNatives, true, \ 442 "inline Thread.currentThread, etc") \ 443 \ 444 develop(bool, InlineReflectionGetCallerClass, true, \ 445 "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ 446 "of base library DLL") \ 447 \ 448 develop(bool, InlineUnsafeOps, true, \ 449 "inline memory ops (native methods) from sun.misc.Unsafe") \ 450 \ 451 develop(bool, ConvertCmpD2CmpF, true, \ 452 "Convert cmpD to cmpF when one input is constant in float range") \ 453 \ 454 develop(bool, ConvertFloat2IntClipping, true, \ 455 "Convert float2int clipping idiom to integer clipping") \ 456 \ 457 develop(bool, SpecialStringCompareTo, true, \ 458 "special version of string compareTo") \ 459 \ 460 develop(bool, SpecialStringIndexOf, true, \ 461 "special version of string indexOf") \ 462 \ 463 product(bool, SpecialArraysEquals, false, \ 464 "special version of Arrays.equals(char[],char[])") \ 465 \ 466 develop(bool, TraceCallFixup, false, \ 467 "traces all call fixups") \ 468 \ 469 develop(bool, DeoptimizeALot, false, \ 470 "deoptimize at every exit from the runtime system") \ 471 \ 472 develop(ccstrlist, DeoptimizeOnlyAt, "", \ 473 "a comma separated list of bcis to deoptimize at") \ 474 \ 475 product(bool, DeoptimizeRandom, false, \ 476 "deoptimize random frames on random exit from the runtime system")\ 477 \ 478 notproduct(bool, ZombieALot, false, \ 479 "creates zombies (non-entrant) at exit from the runt. system") \ 480 \ 481 notproduct(bool, WalkStackALot, false, \ 482 "trace stack (no print) at every exit from the runtime system") \ 483 \ 484 develop(bool, Debugging, false, \ 485 "set when executing debug methods in debug.ccp " \ 486 "(to prevent triggering assertions)") \ 487 \ 488 notproduct(bool, StrictSafepointChecks, trueInDebug, \ 489 "Enable strict checks that safepoints cannot happen for threads " \ 490 "that used No_Safepoint_Verifier") \ 491 \ 492 notproduct(bool, VerifyLastFrame, false, \ 493 "Verify oops on last frame on entry to VM") \ 494 \ 495 develop(bool, TraceHandleAllocation, false, \ 496 "Prints out warnings when suspicious many handles are allocated") \ 497 \ 498 product(bool, UseCompilerSafepoints, true, \ 499 "Stop at safepoints in compiled code") \ 500 \ 501 product(bool, UseSplitVerifier, true, \ 502 "use split verifier with StackMapTable attributes") \ 503 \ 504 product(bool, FailOverToOldVerifier, true, \ 505 "fail over to old verifier when split verifier fails") \ 506 \ 507 develop(bool, ShowSafepointMsgs, false, \ 508 "Show msg. about safepoint synch.") \ 509 \ 510 product(bool, SafepointTimeout, false, \ 511 "Time out and warn or fail after SafepointTimeoutDelay " \ 512 "milliseconds if failed to reach safepoint") \ 513 \ 514 develop(bool, DieOnSafepointTimeout, false, \ 515 "Die upon failure to reach safepoint (see SafepointTimeout)") \ 516 \ 517 /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ 518 /* typically, at most a few retries are needed */ \ 519 product(intx, SuspendRetryCount, 50, \ 520 "Maximum retry count for an external suspend request") \ 521 \ 522 product(intx, SuspendRetryDelay, 5, \ 523 "Milliseconds to delay per retry (* current_retry_count)") \ 524 \ 525 product(bool, AssertOnSuspendWaitFailure, false, \ 526 "Assert/Guarantee on external suspend wait failure") \ 527 \ 528 product(bool, TraceSuspendWaitFailures, false, \ 529 "Trace external suspend wait failures") \ 530 \ 531 product(bool, MaxFDLimit, true, \ 532 "Bump the number of file descriptors to max in solaris.") \ 533 \ 534 notproduct(bool, LogEvents, trueInDebug, \ 535 "Enable Event log") \ 536 \ 537 product(bool, BytecodeVerificationRemote, true, \ 538 "Enables the Java bytecode verifier for remote classes") \ 539 \ 540 product(bool, BytecodeVerificationLocal, false, \ 541 "Enables the Java bytecode verifier for local classes") \ 542 \ 543 develop(bool, ForceFloatExceptions, trueInDebug, \ 544 "Force exceptions on FP stack under/overflow") \ 545 \ 546 develop(bool, SoftMatchFailure, trueInProduct, \ 547 "If the DFA fails to match a node, print a message and bail out") \ 548 \ 549 develop(bool, VerifyStackAtCalls, false, \ 550 "Verify that the stack pointer is unchanged after calls") \ 551 \ 552 develop(bool, TraceJavaAssertions, false, \ 553 "Trace java language assertions") \ 554 \ 555 notproduct(bool, CheckAssertionStatusDirectives, false, \ 556 "temporary - see javaClasses.cpp") \ 557 \ 558 notproduct(bool, PrintMallocFree, false, \ 559 "Trace calls to C heap malloc/free allocation") \ 560 \ 561 notproduct(bool, PrintOopAddress, false, \ 562 "Always print the location of the oop") \ 563 \ 564 notproduct(bool, VerifyCodeCacheOften, false, \ 565 "Verify compiled-code cache often") \ 566 \ 567 develop(bool, ZapDeadCompiledLocals, false, \ 568 "Zap dead locals in compiler frames") \ 569 \ 570 notproduct(bool, ZapDeadLocalsOld, false, \ 571 "Zap dead locals (old version, zaps all frames when " \ 572 "entering the VM") \ 573 \ 574 notproduct(bool, CheckOopishValues, false, \ 575 "Warn if value contains oop ( requires ZapDeadLocals)") \ 576 \ 577 develop(bool, UseMallocOnly, false, \ 578 "use only malloc/free for allocation (no resource area/arena)") \ 579 \ 580 develop(bool, PrintMalloc, false, \ 581 "print all malloc/free calls") \ 582 \ 583 develop(bool, ZapResourceArea, trueInDebug, \ 584 "Zap freed resource/arena space with 0xABABABAB") \ 585 \ 586 notproduct(bool, ZapVMHandleArea, trueInDebug, \ 587 "Zap freed VM handle space with 0xBCBCBCBC") \ 588 \ 589 develop(bool, ZapJNIHandleArea, trueInDebug, \ 590 "Zap freed JNI handle space with 0xFEFEFEFE") \ 591 \ 592 develop(bool, ZapUnusedHeapArea, false, \ 593 "Zap unused heap space with 0xBAADBABE") \ 594 \ 595 develop(bool, PrintVMMessages, true, \ 596 "Print vm messages on console") \ 597 \ 598 product(bool, PrintGCApplicationConcurrentTime, false, \ 599 "Print the time the application has been running") \ 600 \ 601 product(bool, PrintGCApplicationStoppedTime, false, \ 602 "Print the time the application has been stopped") \ 603 \ 604 develop(bool, Verbose, false, \ 605 "Prints additional debugging information from other modes") \ 606 \ 607 develop(bool, PrintMiscellaneous, false, \ 608 "Prints uncategorized debugging information (requires +Verbose)") \ 609 \ 610 develop(bool, WizardMode, false, \ 611 "Prints much more debugging information") \ 612 \ 613 product(bool, ShowMessageBoxOnError, false, \ 614 "Keep process alive on VM fatal error") \ 615 \ 616 product_pd(bool, UseOSErrorReporting, \ 617 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ 618 \ 619 product(bool, SuppressFatalErrorMessage, false, \ 620 "Do NO Fatal Error report [Avoid deadlock]") \ 621 \ 622 product(ccstrlist, OnError, "", \ 623 "Run user-defined commands on fatal error; see VMError.cpp " \ 624 "for examples") \ 625 \ 626 product(ccstrlist, OnOutOfMemoryError, "", \ 627 "Run user-defined commands on first java.lang.OutOfMemoryError") \ 628 \ 629 manageable(bool, HeapDumpOnOutOfMemoryError, false, \ 630 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ 631 \ 632 manageable(ccstr, HeapDumpPath, NULL, \ 633 "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ 634 "directory) of the dump file (defaults to java_pid<pid>.hprof" \ 635 "in the working directory)") \ 636 \ 637 develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ 638 "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ 639 "when the heap usage is larger than this") \ 640 \ 641 develop(uintx, HeapDumpSegmentSize, 1*G, \ 642 "Approximate segment size when generating a segmented heap dump") \ 643 \ 644 develop(bool, BreakAtWarning, false, \ 645 "Execute breakpoint upon encountering VM warning") \ 646 \ 647 product_pd(bool, UseVectoredExceptions, \ 648 "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \ 649 \ 650 develop(bool, TraceVMOperation, false, \ 651 "Trace vm operations") \ 652 \ 653 develop(bool, UseFakeTimers, false, \ 654 "Tells whether the VM should use system time or a fake timer") \ 655 \ 656 diagnostic(bool, LogCompilation, false, \ 657 "Log compilation activity in detail to hotspot.log or LogFile") \ 658 \ 659 product(bool, PrintCompilation, false, \ 660 "Print compilations") \ 661 \ 662 diagnostic(bool, TraceNMethodInstalls, false, \ 663 "Trace nmethod intallation") \ 664 \ 665 diagnostic(bool, TraceOSRBreakpoint, false, \ 666 "Trace OSR Breakpoint ") \ 667 \ 668 diagnostic(bool, TraceCompileTriggered, false, \ 669 "Trace compile triggered") \ 670 \ 671 diagnostic(bool, TraceTriggers, false, \ 672 "Trace triggers") \ 673 \ 674 product(bool, AlwaysRestoreFPU, false, \ 675 "Restore the FPU control word after every JNI call (expensive)") \ 676 \ 677 notproduct(bool, PrintCompilation2, false, \ 678 "Print additional statistics per compilation") \ 679 \ 680 diagnostic(bool, PrintAdapterHandlers, false, \ 681 "Print code generated for i2c/c2i adapters") \ 682 \ 683 diagnostic(bool, PrintAssembly, false, \ 684 "Print assembly code (using external disassembler.so)") \ 685 \ 686 diagnostic(ccstr, PrintAssemblyOptions, false, \ 687 "Options string passed to disassembler.so") \ 688 \ 689 diagnostic(bool, PrintNMethods, false, \ 690 "Print assembly code for nmethods when generated") \ 691 \ 692 diagnostic(bool, PrintNativeNMethods, false, \ 693 "Print assembly code for native nmethods when generated") \ 694 \ 695 develop(bool, PrintDebugInfo, false, \ 696 "Print debug information for all nmethods when generated") \ 697 \ 698 develop(bool, PrintRelocations, false, \ 699 "Print relocation information for all nmethods when generated") \ 700 \ 701 develop(bool, PrintDependencies, false, \ 702 "Print dependency information for all nmethods when generated") \ 703 \ 704 develop(bool, PrintExceptionHandlers, false, \ 705 "Print exception handler tables for all nmethods when generated") \ 706 \ 707 develop(bool, InterceptOSException, false, \ 708 "Starts debugger when an implicit OS (e.g., NULL) " \ 709 "exception happens") \ 710 \ 711 notproduct(bool, PrintCodeCache, false, \ 712 "Print the compiled_code cache when exiting") \ 713 \ 714 develop(bool, PrintCodeCache2, false, \ 715 "Print detailed info on the compiled_code cache when exiting") \ 716 \ 717 diagnostic(bool, PrintStubCode, false, \ 718 "Print generated stub code") \ 719 \ 720 product(bool, StackTraceInThrowable, true, \ 721 "Collect backtrace in throwable when exception happens") \ 722 \ 723 product(bool, OmitStackTraceInFastThrow, true, \ 724 "Omit backtraces for some 'hot' exceptions in optimized code") \ 725 \ 726 product(bool, ProfilerPrintByteCodeStatistics, false, \ 727 "Prints byte code statictics when dumping profiler output") \ 728 \ 729 product(bool, ProfilerRecordPC, false, \ 730 "Collects tick for each 16 byte interval of compiled code") \ 731 \ 732 product(bool, ProfileVM, false, \ 733 "Profiles ticks that fall within VM (either in the VM Thread " \ 734 "or VM code called through stubs)") \ 735 \ 736 product(bool, ProfileIntervals, false, \ 737 "Prints profiles for each interval (see ProfileIntervalsTicks)") \ 738 \ 739 notproduct(bool, ProfilerCheckIntervals, false, \ 740 "Collect and print info on spacing of profiler ticks") \ 741 \ 742 develop(bool, PrintJVMWarnings, false, \ 743 "Prints warnings for unimplemented JVM functions") \ 744 \ 745 notproduct(uintx, WarnOnStalledSpinLock, 0, \ 746 "Prints warnings for stalled SpinLocks") \ 747 \ 748 develop(bool, InitializeJavaLangSystem, true, \ 749 "Initialize java.lang.System - turn off for individual " \ 750 "method debugging") \ 751 \ 752 develop(bool, InitializeJavaLangString, true, \ 753 "Initialize java.lang.String - turn off for individual " \ 754 "method debugging") \ 755 \ 756 develop(bool, InitializeJavaLangExceptionsErrors, true, \ 757 "Initialize various error and exception classes - turn off for " \ 758 "individual method debugging") \ 759 \ 760 product(bool, RegisterFinalizersAtInit, true, \ 761 "Register finalizable objects at end of Object.<init> or " \ 762 "after allocation.") \ 763 \ 764 develop(bool, RegisterReferences, true, \ 765 "Tells whether the VM should register soft/weak/final/phantom " \ 766 "references") \ 767 \ 768 develop(bool, IgnoreRewrites, false, \ 769 "Supress rewrites of bytecodes in the oopmap generator. " \ 770 "This is unsafe!") \ 771 \ 772 develop(bool, PrintCodeCacheExtension, false, \ 773 "Print extension of code cache") \ 774 \ 775 develop(bool, UsePrivilegedStack, true, \ 776 "Enable the security JVM functions") \ 777 \ 778 develop(bool, IEEEPrecision, true, \ 779 "Enables IEEE precision (for INTEL only)") \ 780 \ 781 develop(bool, ProtectionDomainVerification, true, \ 782 "Verifies protection domain before resolution in system " \ 783 "dictionary") \ 784 \ 785 product(bool, ClassUnloading, true, \ 786 "Do unloading of classes") \ 787 \ 788 diagnostic(bool, LinkWellKnownClasses, true, \ 789 "Resolve a well known class as soon as its name is seen") \ 790 \ 791 develop(bool, DisableStartThread, false, \ 792 "Disable starting of additional Java threads " \ 793 "(for debugging only)") \ 794 \ 795 develop(bool, MemProfiling, false, \ 796 "Write memory usage profiling to log file") \ 797 \ 798 notproduct(bool, PrintSystemDictionaryAtExit, false, \ 799 "Prints the system dictionary at exit") \ 800 \ 801 diagnostic(bool, UnsyncloadClass, false, \ 802 "Unstable: VM calls loadClass unsynchronized. Custom classloader "\ 803 "must call VM synchronized for findClass & defineClass") \ 804 \ 805 product_pd(bool, DontYieldALot, \ 806 "Throw away obvious excess yield calls (for SOLARIS only)") \ 807 \ 808 product_pd(bool, ConvertSleepToYield, \ 809 "Converts sleep(0) to thread yield " \ 810 "(may be off for SOLARIS to improve GUI)") \ 811 \ 812 product(bool, ConvertYieldToSleep, false, \ 813 "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ 814 "behavior (SOLARIS only)") \ 815 \ 816 product(bool, UseBoundThreads, true, \ 817 "Bind user level threads to kernel threads (for SOLARIS only)") \ 818 \ 819 develop(bool, UseDetachedThreads, true, \ 820 "Use detached threads that are recycled upon termination " \ 821 "(for SOLARIS only)") \ 822 \ 823 product(bool, UseLWPSynchronization, true, \ 824 "Use LWP-based instead of libthread-based synchronization " \ 825 "(SPARC only)") \ 826 \ 827 product(ccstr, SyncKnobs, "", \ 828 "(Unstable) Various monitor synchronization tunables") \ 829 \ 830 product(intx, EmitSync, 0, \ 831 "(Unsafe,Unstable) " \ 832 " Controls emission of inline sync fast-path code") \ 833 \ 834 product(intx, AlwaysInflate, 0, "(Unstable) Force inflation") \ 835 \ 836 product(intx, Atomics, 0, \ 837 "(Unsafe,Unstable) Diagnostic - Controls emission of atomics") \ 838 \ 839 product(intx, FenceInstruction, 0, \ 840 "(Unsafe,Unstable) Experimental") \ 841 \ 842 product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ 843 \ 844 product(intx, SyncVerbose, 0, "(Unstable)" ) \ 845 \ 846 product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ 847 \ 848 product(intx, hashCode, 0, \ 849 "(Unstable) select hashCode generation algorithm" ) \ 850 \ 851 product(intx, WorkAroundNPTLTimedWaitHang, 1, \ 852 "(Unstable, Linux-specific)" \ 853 " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ 854 \ 855 product(bool, FilterSpuriousWakeups , true, \ 856 "Prevent spurious or premature wakeups from object.wait" \ 857 "(Solaris only)") \ 858 \ 859 product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ 860 product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ 861 product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ 862 \ 863 develop(bool, UsePthreads, false, \ 864 "Use pthread-based instead of libthread-based synchronization " \ 865 "(SPARC only)") \ 866 \ 867 product(bool, AdjustConcurrency, false, \ 868 "call thr_setconcurrency at thread create time to avoid " \ 869 "LWP starvation on MP systems (For Solaris Only)") \ 870 \ 871 develop(bool, UpdateHotSpotCompilerFileOnError, true, \ 872 "Should the system attempt to update the compiler file when " \ 873 "an error occurs?") \ 874 \ 875 product(bool, ReduceSignalUsage, false, \ 876 "Reduce the use of OS signals in Java and/or the VM") \ 877 \ 878 notproduct(bool, ValidateMarkSweep, false, \ 879 "Do extra validation during MarkSweep collection") \ 880 \ 881 notproduct(bool, RecordMarkSweepCompaction, false, \ 882 "Enable GC-to-GC recording and querying of compaction during " \ 883 "MarkSweep") \ 884 \ 885 develop_pd(bool, ShareVtableStubs, \ 886 "Share vtable stubs (smaller code but worse branch prediction") \ 887 \ 888 develop(bool, LoadLineNumberTables, true, \ 889 "Tells whether the class file parser loads line number tables") \ 890 \ 891 develop(bool, LoadLocalVariableTables, true, \ 892 "Tells whether the class file parser loads local variable tables")\ 893 \ 894 develop(bool, LoadLocalVariableTypeTables, true, \ 895 "Tells whether the class file parser loads local variable type tables")\ 896 \ 897 product(bool, AllowUserSignalHandlers, false, \ 898 "Do not complain if the application installs signal handlers " \ 899 "(Solaris & Linux only)") \ 900 \ 901 product(bool, UseSignalChaining, true, \ 902 "Use signal-chaining to invoke signal handlers installed " \ 903 "by the application (Solaris & Linux only)") \ 904 \ 905 product(bool, UseAltSigs, false, \ 906 "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ 907 "internal signals. (Solaris only)") \ 908 \ 909 product(bool, UseSpinning, false, \ 910 "Use spinning in monitor inflation and before entry") \ 911 \ 912 product(bool, PreSpinYield, false, \ 913 "Yield before inner spinning loop") \ 914 \ 915 product(bool, PostSpinYield, true, \ 916 "Yield after inner spinning loop") \ 917 \ 918 product(bool, AllowJNIEnvProxy, false, \ 919 "Allow JNIEnv proxies for jdbx") \ 920 \ 921 product(bool, JNIDetachReleasesMonitors, true, \ 922 "JNI DetachCurrentThread releases monitors owned by thread") \ 923 \ 924 product(bool, RestoreMXCSROnJNICalls, false, \ 925 "Restore MXCSR when returning from JNI calls") \ 926 \ 927 product(bool, CheckJNICalls, false, \ 928 "Verify all arguments to JNI calls") \ 929 \ 930 product(bool, UseFastJNIAccessors, true, \ 931 "Use optimized versions of Get<Primitive>Field") \ 932 \ 933 product(bool, EagerXrunInit, false, \ 934 "Eagerly initialize -Xrun libraries; allows startup profiling, " \ 935 " but not all -Xrun libraries may support the state of the VM at this time") \ 936 \ 937 product(bool, PreserveAllAnnotations, false, \ 938 "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \ 939 \ 940 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ 941 "Number of OutOfMemoryErrors preallocated with backtrace") \ 942 \ 943 product(bool, LazyBootClassLoader, true, \ 944 "Enable/disable lazy opening of boot class path entries") \ 945 \ 946 diagnostic(bool, UseIncDec, true, \ 947 "Use INC, DEC instructions on x86") \ 948 \ 949 product(bool, UseStoreImmI16, true, \ 950 "Use store immediate 16-bits value instruction on x86") \ 951 \ 952 product(bool, UseAddressNop, false, \ 953 "Use '0F 1F [addr]' NOP instructions on x86 cpus") \ 954 \ 955 product(bool, UseXmmLoadAndClearUpper, true, \ 956 "Load low part of XMM register and clear upper part") \ 957 \ 958 product(bool, UseXmmRegToRegMoveAll, false, \ 959 "Copy all XMM register bits when moving value between registers") \ 960 \ 961 product(bool, UseXmmI2D, false, \ 962 "Use SSE2 CVTDQ2PD instruction to convert Integer to Double") \ 963 \ 964 product(bool, UseXmmI2F, false, \ 965 "Use SSE2 CVTDQ2PS instruction to convert Integer to Float") \ 966 \ 967 product(intx, FieldsAllocationStyle, 1, \ 968 "0 - type based with oops first, 1 - with oops last") \ 969 \ 970 product(bool, CompactFields, true, \ 971 "Allocate nonstatic fields in gaps between previous fields") \ 972 \ 973 notproduct(bool, PrintCompactFieldsSavings, false, \ 974 "Print how many words were saved with CompactFields") \ 975 \ 976 product(bool, UseBiasedLocking, true, \ 977 "Enable biased locking in JVM") \ 978 \ 979 product(intx, BiasedLockingStartupDelay, 4000, \ 980 "Number of milliseconds to wait before enabling biased locking") \ 981 \ 982 diagnostic(bool, PrintBiasedLockingStatistics, false, \ 983 "Print statistics of biased locking in JVM") \ 984 \ 985 product(intx, BiasedLockingBulkRebiasThreshold, 20, \ 986 "Threshold of number of revocations per type to try to " \ 987 "rebias all objects in the heap of that type") \ 988 \ 989 product(intx, BiasedLockingBulkRevokeThreshold, 40, \ 990 "Threshold of number of revocations per type to permanently " \ 991 "revoke biases of all objects in the heap of that type") \ 992 \ 993 product(intx, BiasedLockingDecayTime, 25000, \ 994 "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ 995 "type after previous bulk rebias") \ 996 \ 997 /* tracing */ \ 998 \ 999 notproduct(bool, TraceRuntimeCalls, false, \ 1000 "Trace run-time calls") \ 1001 \ 1002 develop(bool, TraceJNICalls, false, \ 1003 "Trace JNI calls") \ 1004 \ 1005 notproduct(bool, TraceJVMCalls, false, \ 1006 "Trace JVM calls") \ 1007 \ 1008 product(ccstr, TraceJVMTI, "", \ 1009 "Trace flags for JVMTI functions and events") \ 1010 \ 1011 /* This option can change an EMCP method into an obsolete method. */ \ 1012 /* This can affect tests that except specific methods to be EMCP. */ \ 1013 /* This option should be used with caution. */ \ 1014 product(bool, StressLdcRewrite, false, \ 1015 "Force ldc -> ldc_w rewrite during RedefineClasses") \ 1016 \ 1017 product(intx, TraceRedefineClasses, 0, \ 1018 "Trace level for JVMTI RedefineClasses") \ 1019 \ 1020 /* change to false by default sometime after Mustang */ \ 1021 product(bool, VerifyMergedCPBytecodes, true, \ 1022 "Verify bytecodes after RedefineClasses constant pool merging") \ 1023 \ 1024 develop(bool, TraceJNIHandleAllocation, false, \ 1025 "Trace allocation/deallocation of JNI handle blocks") \ 1026 \ 1027 develop(bool, TraceThreadEvents, false, \ 1028 "Trace all thread events") \ 1029 \ 1030 develop(bool, TraceBytecodes, false, \ 1031 "Trace bytecode execution") \ 1032 \ 1033 develop(bool, TraceClassInitialization, false, \ 1034 "Trace class initialization") \ 1035 \ 1036 develop(bool, TraceExceptions, false, \ 1037 "Trace exceptions") \ 1038 \ 1039 develop(bool, TraceICs, false, \ 1040 "Trace inline cache changes") \ 1041 \ 1042 notproduct(bool, TraceInvocationCounterOverflow, false, \ 1043 "Trace method invocation counter overflow") \ 1044 \ 1045 develop(bool, TraceInlineCacheClearing, false, \ 1046 "Trace clearing of inline caches in nmethods") \ 1047 \ 1048 develop(bool, TraceDependencies, false, \ 1049 "Trace dependencies") \ 1050 \ 1051 develop(bool, VerifyDependencies, trueInDebug, \ 1052 "Exercise and verify the compilation dependency mechanism") \ 1053 \ 1054 develop(bool, TraceNewOopMapGeneration, false, \ 1055 "Trace OopMapGeneration") \ 1056 \ 1057 develop(bool, TraceNewOopMapGenerationDetailed, false, \ 1058 "Trace OopMapGeneration: print detailed cell states") \ 1059 \ 1060 develop(bool, TimeOopMap, false, \ 1061 "Time calls to GenerateOopMap::compute_map() in sum") \ 1062 \ 1063 develop(bool, TimeOopMap2, false, \ 1064 "Time calls to GenerateOopMap::compute_map() individually") \ 1065 \ 1066 develop(bool, TraceMonitorMismatch, false, \ 1067 "Trace monitor matching failures during OopMapGeneration") \ 1068 \ 1069 develop(bool, TraceOopMapRewrites, false, \ 1070 "Trace rewritting of method oops during oop map generation") \ 1071 \ 1072 develop(bool, TraceSafepoint, false, \ 1073 "Trace safepoint operations") \ 1074 \ 1075 develop(bool, TraceICBuffer, false, \ 1076 "Trace usage of IC buffer") \ 1077 \ 1078 develop(bool, TraceCompiledIC, false, \ 1079 "Trace changes of compiled IC") \ 1080 \ 1081 notproduct(bool, TraceZapDeadLocals, false, \ 1082 "Trace zapping dead locals") \ 1083 \ 1084 develop(bool, TraceStartupTime, false, \ 1085 "Trace setup time") \ 1086 \ 1087 develop(bool, TraceHPI, false, \ 1088 "Trace Host Porting Interface (HPI)") \ 1089 \ 1090 product(ccstr, HPILibPath, NULL, \ 1091 "Specify alternate path to HPI library") \ 1092 \ 1093 develop(bool, TraceProtectionDomainVerification, false, \ 1094 "Trace protection domain verifcation") \ 1095 \ 1096 develop(bool, TraceClearedExceptions, false, \ 1097 "Prints when an exception is forcibly cleared") \ 1098 \ 1099 product(bool, TraceClassResolution, false, \ 1100 "Trace all constant pool resolutions (for debugging)") \ 1101 \ 1102 product(bool, TraceBiasedLocking, false, \ 1103 "Trace biased locking in JVM") \ 1104 \ 1105 product(bool, TraceMonitorInflation, false, \ 1106 "Trace monitor inflation in JVM") \ 1107 \ 1108 /* assembler */ \ 1109 product(bool, Use486InstrsOnly, false, \ 1110 "Use 80486 Compliant instruction subset") \ 1111 \ 1112 /* gc */ \ 1113 \ 1114 product(bool, UseSerialGC, false, \ 1115 "Use the serial garbage collector") \ 1116 \ 1117 product(bool, UseG1GC, false, \ 1118 "Use the Garbage-First garbage collector") \ 1119 \ 1120 product(bool, UseParallelGC, false, \ 1121 "Use the Parallel Scavenge garbage collector") \ 1122 \ 1123 product(bool, UseParallelOldGC, false, \ 1124 "Use the Parallel Old garbage collector") \ 1125 \ 1126 product(bool, UseParallelOldGCCompacting, true, \ 1127 "In the Parallel Old garbage collector use parallel compaction") \ 1128 \ 1129 product(bool, UseParallelDensePrefixUpdate, true, \ 1130 "In the Parallel Old garbage collector use parallel dense" \ 1131 " prefix update") \ 1132 \ 1133 develop(bool, UseParallelOldGCChunkPointerCalc, true, \ 1134 "In the Parallel Old garbage collector use chucks to calculate" \ 1135 " new object locations") \ 1136 \ 1137 product(uintx, HeapMaximumCompactionInterval, 20, \ 1138 "How often should we maximally compact the heap (not allowing " \ 1139 "any dead space)") \ 1140 \ 1141 product(uintx, HeapFirstMaximumCompactionCount, 3, \ 1142 "The collection count for the first maximum compaction") \ 1143 \ 1144 product(bool, UseMaximumCompactionOnSystemGC, true, \ 1145 "In the Parallel Old garbage collector maximum compaction for " \ 1146 "a system GC") \ 1147 \ 1148 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ 1149 "The mean used by the par compact dead wood" \ 1150 "limiter (a number between 0-100).") \ 1151 \ 1152 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ 1153 "The standard deviation used by the par compact dead wood" \ 1154 "limiter (a number between 0-100).") \ 1155 \ 1156 product(bool, UseParallelOldGCDensePrefix, true, \ 1157 "Use a dense prefix with the Parallel Old garbage collector") \ 1158 \ 1159 product(uintx, ParallelGCThreads, 0, \ 1160 "Number of parallel threads parallel gc will use") \ 1161 \ 1162 product(uintx, ParallelCMSThreads, 0, \ 1163 "Max number of threads CMS will use for concurrent work") \ 1164 \ 1165 develop(bool, VerifyParallelOldWithMarkSweep, false, \ 1166 "Use the MarkSweep code to verify phases of Parallel Old") \ 1167 \ 1168 develop(uintx, VerifyParallelOldWithMarkSweepInterval, 1, \ 1169 "Interval at which the MarkSweep code is used to verify " \ 1170 "phases of Parallel Old") \ 1171 \ 1172 develop(bool, ParallelOldMTUnsafeMarkBitMap, false, \ 1173 "Use the Parallel Old MT unsafe in marking the bitmap") \ 1174 \ 1175 develop(bool, ParallelOldMTUnsafeUpdateLiveData, false, \ 1176 "Use the Parallel Old MT unsafe in update of live size") \ 1177 \ 1178 develop(bool, TraceChunkTasksQueuing, false, \ 1179 "Trace the queuing of the chunk tasks") \ 1180 \ 1181 product(uintx, ParallelMarkingThreads, 0, \ 1182 "Number of marking threads concurrent gc will use") \ 1183 \ 1184 product(uintx, YoungPLABSize, 4096, \ 1185 "Size of young gen promotion labs (in HeapWords)") \ 1186 \ 1187 product(uintx, OldPLABSize, 1024, \ 1188 "Size of old gen promotion labs (in HeapWords)") \ 1189 \ 1190 product(uintx, GCTaskTimeStampEntries, 200, \ 1191 "Number of time stamp entries per gc worker thread") \ 1192 \ 1193 product(bool, AlwaysTenure, false, \ 1194 "Always tenure objects in eden. (ParallelGC only)") \ 1195 \ 1196 product(bool, NeverTenure, false, \ 1197 "Never tenure objects in eden, May tenure on overflow" \ 1198 " (ParallelGC only)") \ 1199 \ 1200 product(bool, ScavengeBeforeFullGC, true, \ 1201 "Scavenge youngest generation before each full GC," \ 1202 " used with UseParallelGC") \ 1203 \ 1204 develop(bool, ScavengeWithObjectsInToSpace, false, \ 1205 "Allow scavenges to occur when to_space contains objects.") \ 1206 \ 1207 product(bool, UseConcMarkSweepGC, false, \ 1208 "Use Concurrent Mark-Sweep GC in the old generation") \ 1209 \ 1210 product(bool, ExplicitGCInvokesConcurrent, false, \ 1211 "A System.gc() request invokes a concurrent collection;" \ 1212 " (effective only when UseConcMarkSweepGC)") \ 1213 \ 1214 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ 1215 "A System.gc() request invokes a concurrent collection and" \ 1216 " also unloads classes during such a concurrent gc cycle " \ 1217 " (effective only when UseConcMarkSweepGC)") \ 1218 \ 1219 develop(bool, UseCMSAdaptiveFreeLists, true, \ 1220 "Use Adaptive Free Lists in the CMS generation") \ 1221 \ 1222 develop(bool, UseAsyncConcMarkSweepGC, true, \ 1223 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ 1224 \ 1225 develop(bool, RotateCMSCollectionTypes, false, \ 1226 "Rotate the CMS collections among concurrent and STW") \ 1227 \ 1228 product(bool, UseCMSBestFit, true, \ 1229 "Use CMS best fit allocation strategy") \ 1230 \ 1231 product(bool, UseCMSCollectionPassing, true, \ 1232 "Use passing of collection from background to foreground") \ 1233 \ 1234 product(bool, UseParNewGC, false, \ 1235 "Use parallel threads in the new generation.") \ 1236 \ 1237 product(bool, ParallelGCVerbose, false, \ 1238 "Verbose output for parallel GC.") \ 1239 \ 1240 product(intx, ParallelGCBufferWastePct, 10, \ 1241 "wasted fraction of parallel allocation buffer.") \ 1242 \ 1243 product(bool, ParallelGCRetainPLAB, true, \ 1244 "Retain parallel allocation buffers across scavenges.") \ 1245 \ 1246 product(intx, TargetPLABWastePct, 10, \ 1247 "target wasted space in last buffer as pct of overall allocation")\ 1248 \ 1249 product(uintx, PLABWeight, 75, \ 1250 "Percentage (0-100) used to weight the current sample when" \ 1251 "computing exponentially decaying average for ResizePLAB.") \ 1252 \ 1253 product(bool, ResizePLAB, true, \ 1254 "Dynamically resize (survivor space) promotion labs") \ 1255 \ 1256 product(bool, PrintPLAB, false, \ 1257 "Print (survivor space) promotion labs sizing decisions") \ 1258 \ 1259 product(intx, ParGCArrayScanChunk, 50, \ 1260 "Scan a subset and push remainder, if array is bigger than this") \ 1261 \ 1262 product(intx, ParGCDesiredObjsFromOverflowList, 20, \ 1263 "The desired number of objects to claim from the overflow list") \ 1264 \ 1265 product(uintx, CMSParPromoteBlocksToClaim, 50, \ 1266 "Number of blocks to attempt to claim when refilling CMS LAB for "\ 1267 "parallel GC.") \ 1268 \ 1269 product(bool, AlwaysPreTouch, false, \ 1270 "It forces all freshly committed pages to be pre-touched.") \ 1271 \ 1272 product(bool, CMSUseOldDefaults, false, \ 1273 "A flag temporarily introduced to allow reverting to some older" \ 1274 "default settings; older as of 6.0 ") \ 1275 \ 1276 product(intx, CMSYoungGenPerWorker, 16*M, \ 1277 "The amount of young gen chosen by default per GC worker " \ 1278 "thread available ") \ 1279 \ 1280 product(bool, GCOverheadReporting, false, \ 1281 "Enables the GC overhead reporting facility") \ 1282 \ 1283 product(intx, GCOverheadReportingPeriodMS, 100, \ 1284 "Reporting period for conc GC overhead reporting, in ms ") \ 1285 \ 1286 product(bool, CMSIncrementalMode, false, \ 1287 "Whether CMS GC should operate in \"incremental\" mode") \ 1288 \ 1289 product(uintx, CMSIncrementalDutyCycle, 10, \ 1290 "CMS incremental mode duty cycle (a percentage, 0-100). If" \ 1291 "CMSIncrementalPacing is enabled, then this is just the initial" \ 1292 "value") \ 1293 \ 1294 product(bool, CMSIncrementalPacing, true, \ 1295 "Whether the CMS incremental mode duty cycle should be " \ 1296 "automatically adjusted") \ 1297 \ 1298 product(uintx, CMSIncrementalDutyCycleMin, 0, \ 1299 "Lower bound on the duty cycle when CMSIncrementalPacing is" \ 1300 "enabled (a percentage, 0-100).") \ 1301 \ 1302 product(uintx, CMSIncrementalSafetyFactor, 10, \ 1303 "Percentage (0-100) used to add conservatism when computing the" \ 1304 "duty cycle.") \ 1305 \ 1306 product(uintx, CMSIncrementalOffset, 0, \ 1307 "Percentage (0-100) by which the CMS incremental mode duty cycle" \ 1308 "is shifted to the right within the period between young GCs") \ 1309 \ 1310 product(uintx, CMSExpAvgFactor, 25, \ 1311 "Percentage (0-100) used to weight the current sample when" \ 1312 "computing exponential averages for CMS statistics.") \ 1313 \ 1314 product(uintx, CMS_FLSWeight, 50, \ 1315 "Percentage (0-100) used to weight the current sample when" \ 1316 "computing exponentially decating averages for CMS FLS statistics.") \ 1317 \ 1318 product(uintx, CMS_FLSPadding, 2, \ 1319 "The multiple of deviation from mean to use for buffering" \ 1320 "against volatility in free list demand.") \ 1321 \ 1322 product(uintx, FLSCoalescePolicy, 2, \ 1323 "CMS: Aggression level for coalescing, increasing from 0 to 4") \ 1324 \ 1325 product(uintx, CMS_SweepWeight, 50, \ 1326 "Percentage (0-100) used to weight the current sample when" \ 1327 "computing exponentially decaying average for inter-sweep duration.") \ 1328 \ 1329 product(uintx, CMS_SweepPadding, 2, \ 1330 "The multiple of deviation from mean to use for buffering" \ 1331 "against volatility in inter-sweep duration.") \ 1332 \ 1333 product(uintx, CMS_SweepTimerThresholdMillis, 10, \ 1334 "Skip block flux-rate sampling for an epoch unless inter-sweep " \ 1335 " duration exceeds this threhold in milliseconds") \ 1336 \ 1337 develop(bool, CMSTraceIncrementalMode, false, \ 1338 "Trace CMS incremental mode") \ 1339 \ 1340 develop(bool, CMSTraceIncrementalPacing, false, \ 1341 "Trace CMS incremental mode pacing computation") \ 1342 \ 1343 develop(bool, CMSTraceThreadState, false, \ 1344 "Trace the CMS thread state (enable the trace_state() method)") \ 1345 \ 1346 product(bool, CMSClassUnloadingEnabled, false, \ 1347 "Whether class unloading enabled when using CMS GC") \ 1348 \ 1349 product(uintx, CMSClassUnloadingMaxInterval, 0, \ 1350 "When CMS class unloading is enabled, the maximum CMS cycle count"\ 1351 " for which classes may not be unloaded") \ 1352 \ 1353 product(bool, CMSCompactWhenClearAllSoftRefs, true, \ 1354 "Compact when asked to collect CMS gen with clear_all_soft_refs") \ 1355 \ 1356 product(bool, UseCMSCompactAtFullCollection, true, \ 1357 "Use mark sweep compact at full collections") \ 1358 \ 1359 product(uintx, CMSFullGCsBeforeCompaction, 0, \ 1360 "Number of CMS full collection done before compaction if > 0") \ 1361 \ 1362 develop(intx, CMSDictionaryChoice, 0, \ 1363 "Use BinaryTreeDictionary as default in the CMS generation") \ 1364 \ 1365 product(uintx, CMSIndexedFreeListReplenish, 4, \ 1366 "Replenish and indexed free list with this number of chunks") \ 1367 \ 1368 product(bool, CMSLoopWarn, false, \ 1369 "Warn in case of excessive CMS looping") \ 1370 \ 1371 develop(bool, CMSOverflowEarlyRestoration, false, \ 1372 "Whether preserved marks should be restored early") \ 1373 \ 1374 product(uintx, CMSMarkStackSize, 32*K, \ 1375 "Size of CMS marking stack") \ 1376 \ 1377 product(uintx, CMSMarkStackSizeMax, 4*M, \ 1378 "Max size of CMS marking stack") \ 1379 \ 1380 notproduct(bool, CMSMarkStackOverflowALot, false, \ 1381 "Whether we should simulate frequent marking stack / work queue" \ 1382 " overflow") \ 1383 \ 1384 notproduct(intx, CMSMarkStackOverflowInterval, 1000, \ 1385 "A per-thread `interval' counter that determines how frequently" \ 1386 " we simulate overflow; a smaller number increases frequency") \ 1387 \ 1388 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ 1389 "(Temporary, subject to experimentation)" \ 1390 "Maximum number of abortable preclean iterations, if > 0") \ 1391 \ 1392 product(intx, CMSMaxAbortablePrecleanTime, 5000, \ 1393 "(Temporary, subject to experimentation)" \ 1394 "Maximum time in abortable preclean in ms") \ 1395 \ 1396 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ 1397 "(Temporary, subject to experimentation)" \ 1398 "Nominal minimum work per abortable preclean iteration") \ 1399 \ 1400 product(intx, CMSAbortablePrecleanWaitMillis, 100, \ 1401 "(Temporary, subject to experimentation)" \ 1402 " Time that we sleep between iterations when not given" \ 1403 " enough work per iteration") \ 1404 \ 1405 product(uintx, CMSRescanMultiple, 32, \ 1406 "Size (in cards) of CMS parallel rescan task") \ 1407 \ 1408 product(uintx, CMSConcMarkMultiple, 32, \ 1409 "Size (in cards) of CMS concurrent MT marking task") \ 1410 \ 1411 product(uintx, CMSRevisitStackSize, 1*M, \ 1412 "Size of CMS KlassKlass revisit stack") \ 1413 \ 1414 product(bool, CMSAbortSemantics, false, \ 1415 "Whether abort-on-overflow semantics is implemented") \ 1416 \ 1417 product(bool, CMSParallelRemarkEnabled, true, \ 1418 "Whether parallel remark enabled (only if ParNewGC)") \ 1419 \ 1420 product(bool, CMSParallelSurvivorRemarkEnabled, true, \ 1421 "Whether parallel remark of survivor space" \ 1422 " enabled (effective only if CMSParallelRemarkEnabled)") \ 1423 \ 1424 product(bool, CMSPLABRecordAlways, true, \ 1425 "Whether to always record survivor space PLAB bdries" \ 1426 " (effective only if CMSParallelSurvivorRemarkEnabled)") \ 1427 \ 1428 product(bool, CMSConcurrentMTEnabled, true, \ 1429 "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ 1430 \ 1431 product(bool, CMSPermGenPrecleaningEnabled, true, \ 1432 "Whether concurrent precleaning enabled in perm gen" \ 1433 " (effective only when CMSPrecleaningEnabled is true)") \ 1434 \ 1435 product(bool, CMSPrecleaningEnabled, true, \ 1436 "Whether concurrent precleaning enabled") \ 1437 \ 1438 product(uintx, CMSPrecleanIter, 3, \ 1439 "Maximum number of precleaning iteration passes") \ 1440 \ 1441 product(uintx, CMSPrecleanNumerator, 2, \ 1442 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 1443 " ratio") \ 1444 \ 1445 product(uintx, CMSPrecleanDenominator, 3, \ 1446 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 1447 " ratio") \ 1448 \ 1449 product(bool, CMSPrecleanRefLists1, true, \ 1450 "Preclean ref lists during (initial) preclean phase") \ 1451 \ 1452 product(bool, CMSPrecleanRefLists2, false, \ 1453 "Preclean ref lists during abortable preclean phase") \ 1454 \ 1455 product(bool, CMSPrecleanSurvivors1, false, \ 1456 "Preclean survivors during (initial) preclean phase") \ 1457 \ 1458 product(bool, CMSPrecleanSurvivors2, true, \ 1459 "Preclean survivors during abortable preclean phase") \ 1460 \ 1461 product(uintx, CMSPrecleanThreshold, 1000, \ 1462 "Don't re-iterate if #dirty cards less than this") \ 1463 \ 1464 product(bool, CMSCleanOnEnter, true, \ 1465 "Clean-on-enter optimization for reducing number of dirty cards") \ 1466 \ 1467 product(uintx, CMSRemarkVerifyVariant, 1, \ 1468 "Choose variant (1,2) of verification following remark") \ 1469 \ 1470 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ 1471 "If Eden used is below this value, don't try to schedule remark") \ 1472 \ 1473 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ 1474 "The Eden occupancy % at which to try and schedule remark pause") \ 1475 \ 1476 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ 1477 "Start sampling Eden top at least before yg occupancy reaches" \ 1478 " 1/<ratio> of the size at which we plan to schedule remark") \ 1479 \ 1480 product(uintx, CMSSamplingGrain, 16*K, \ 1481 "The minimum distance between eden samples for CMS (see above)") \ 1482 \ 1483 product(bool, CMSScavengeBeforeRemark, false, \ 1484 "Attempt scavenge before the CMS remark step") \ 1485 \ 1486 develop(bool, CMSTraceSweeper, false, \ 1487 "Trace some actions of the CMS sweeper") \ 1488 \ 1489 product(uintx, CMSWorkQueueDrainThreshold, 10, \ 1490 "Don't drain below this size per parallel worker/thief") \ 1491 \ 1492 product(intx, CMSWaitDuration, 2000, \ 1493 "Time in milliseconds that CMS thread waits for young GC") \ 1494 \ 1495 product(bool, CMSYield, true, \ 1496 "Yield between steps of concurrent mark & sweep") \ 1497 \ 1498 product(uintx, CMSBitMapYieldQuantum, 10*M, \ 1499 "Bitmap operations should process at most this many bits" \ 1500 "between yields") \ 1501 \ 1502 diagnostic(bool, FLSVerifyAllHeapReferences, false, \ 1503 "Verify that all refs across the FLS boundary " \ 1504 " are to valid objects") \ 1505 \ 1506 diagnostic(bool, FLSVerifyLists, false, \ 1507 "Do lots of (expensive) FreeListSpace verification") \ 1508 \ 1509 diagnostic(bool, FLSVerifyIndexTable, false, \ 1510 "Do lots of (expensive) FLS index table verification") \ 1511 \ 1512 develop(bool, FLSVerifyDictionary, false, \ 1513 "Do lots of (expensive) FLS dictionary verification") \ 1514 \ 1515 develop(bool, VerifyBlockOffsetArray, false, \ 1516 "Do (expensive!) block offset array verification") \ 1517 \ 1518 product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug, \ 1519 "Maintain _unallocated_block in BlockOffsetArray" \ 1520 " (currently applicable only to CMS collector)") \ 1521 \ 1522 develop(bool, TraceCMSState, false, \ 1523 "Trace the state of the CMS collection") \ 1524 \ 1525 product(intx, RefDiscoveryPolicy, 0, \ 1526 "Whether reference-based(0) or referent-based(1)") \ 1527 \ 1528 product(bool, ParallelRefProcEnabled, false, \ 1529 "Enable parallel reference processing whenever possible") \ 1530 \ 1531 product(bool, ParallelRefProcBalancingEnabled, true, \ 1532 "Enable balancing of reference processing queues") \ 1533 \ 1534 product(intx, CMSTriggerRatio, 80, \ 1535 "Percentage of MinHeapFreeRatio in CMS generation that is " \ 1536 " allocated before a CMS collection cycle commences") \ 1537 \ 1538 product(intx, CMSTriggerPermRatio, 80, \ 1539 "Percentage of MinHeapFreeRatio in the CMS perm generation that" \ 1540 " is allocated before a CMS collection cycle commences, that " \ 1541 " also collects the perm generation") \ 1542 \ 1543 product(uintx, CMSBootstrapOccupancy, 50, \ 1544 "Percentage CMS generation occupancy at which to " \ 1545 " initiate CMS collection for bootstrapping collection stats") \ 1546 \ 1547 product(intx, CMSInitiatingOccupancyFraction, -1, \ 1548 "Percentage CMS generation occupancy to start a CMS collection " \ 1549 " cycle (A negative value means that CMSTriggerRatio is used)") \ 1550 \ 1551 product(intx, CMSInitiatingPermOccupancyFraction, -1, \ 1552 "Percentage CMS perm generation occupancy to start a CMScollection"\ 1553 " cycle (A negative value means that CMSTriggerPermRatio is used)")\ 1554 \ 1555 product(bool, UseCMSInitiatingOccupancyOnly, false, \ 1556 "Only use occupancy as a crierion for starting a CMS collection") \ 1557 \ 1558 product(intx, CMSIsTooFullPercentage, 98, \ 1559 "An absolute ceiling above which CMS will always consider the" \ 1560 " perm gen ripe for collection") \ 1561 \ 1562 develop(bool, CMSTestInFreeList, false, \ 1563 "Check if the coalesced range is already in the " \ 1564 "free lists as claimed.") \ 1565 \ 1566 notproduct(bool, CMSVerifyReturnedBytes, false, \ 1567 "Check that all the garbage collected was returned to the " \ 1568 "free lists.") \ 1569 \ 1570 notproduct(bool, ScavengeALot, false, \ 1571 "Force scavenge at every Nth exit from the runtime system " \ 1572 "(N=ScavengeALotInterval)") \ 1573 \ 1574 develop(bool, FullGCALot, false, \ 1575 "Force full gc at every Nth exit from the runtime system " \ 1576 "(N=FullGCALotInterval)") \ 1577 \ 1578 notproduct(bool, GCALotAtAllSafepoints, false, \ 1579 "Enforce ScavengeALot/GCALot at all potential safepoints") \ 1580 \ 1581 product(bool, HandlePromotionFailure, true, \ 1582 "The youngest generation collection does not require" \ 1583 " a guarantee of full promotion of all live objects.") \ 1584 \ 1585 notproduct(bool, PromotionFailureALot, false, \ 1586 "Use promotion failure handling on every youngest generation " \ 1587 "collection") \ 1588 \ 1589 develop(uintx, PromotionFailureALotCount, 1000, \ 1590 "Number of promotion failures occurring at ParGCAllocBuffer" \ 1591 "refill attempts (ParNew) or promotion attempts " \ 1592 "(other young collectors) ") \ 1593 \ 1594 develop(uintx, PromotionFailureALotInterval, 5, \ 1595 "Total collections between promotion failures alot") \ 1596 \ 1597 develop(intx, WorkStealingSleepMillis, 1, \ 1598 "Sleep time when sleep is used for yields") \ 1599 \ 1600 develop(uintx, WorkStealingYieldsBeforeSleep, 1000, \ 1601 "Number of yields before a sleep is done during workstealing") \ 1602 \ 1603 product(uintx, PreserveMarkStackSize, 40, \ 1604 "Size for stack used in promotion failure handling") \ 1605 \ 1606 product_pd(bool, UseTLAB, "Use thread-local object allocation") \ 1607 \ 1608 product_pd(bool, ResizeTLAB, \ 1609 "Dynamically resize tlab size for threads") \ 1610 \ 1611 product(bool, ZeroTLAB, false, \ 1612 "Zero out the newly created TLAB") \ 1613 \ 1614 product(bool, FastTLABRefill, true, \ 1615 "Use fast TLAB refill code") \ 1616 \ 1617 product(bool, PrintTLAB, false, \ 1618 "Print various TLAB related information") \ 1619 \ 1620 product(bool, TLABStats, true, \ 1621 "Print various TLAB related information") \ 1622 \ 1623 product_pd(bool, NeverActAsServerClassMachine, \ 1624 "Never act like a server-class machine") \ 1625 \ 1626 product(bool, AlwaysActAsServerClassMachine, false, \ 1627 "Always act like a server-class machine") \ 1628 \ 1629 product_pd(uintx, DefaultMaxRAM, \ 1630 "Maximum real memory size for setting server class heap size") \ 1631 \ 1632 product(uintx, DefaultMaxRAMFraction, 4, \ 1633 "Fraction (1/n) of real memory used for server class max heap") \ 1634 \ 1635 product(uintx, DefaultInitialRAMFraction, 64, \ 1636 "Fraction (1/n) of real memory used for server class initial heap") \ 1637 \ 1638 product(bool, UseAutoGCSelectPolicy, false, \ 1639 "Use automatic collection selection policy") \ 1640 \ 1641 product(uintx, AutoGCSelectPauseMillis, 5000, \ 1642 "Automatic GC selection pause threshhold in ms") \ 1643 \ 1644 product(bool, UseAdaptiveSizePolicy, true, \ 1645 "Use adaptive generation sizing policies") \ 1646 \ 1647 product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ 1648 "Use adaptive survivor sizing policies") \ 1649 \ 1650 product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ 1651 "Use adaptive young-old sizing policies at minor collections") \ 1652 \ 1653 product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ 1654 "Use adaptive young-old sizing policies at major collections") \ 1655 \ 1656 product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ 1657 "Use statistics from System.GC for adaptive size policy") \ 1658 \ 1659 product(bool, UseAdaptiveGCBoundary, false, \ 1660 "Allow young-old boundary to move") \ 1661 \ 1662 develop(bool, TraceAdaptiveGCBoundary, false, \ 1663 "Trace young-old boundary moves") \ 1664 \ 1665 develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ 1666 "Resize the virtual spaces of the young or old generations") \ 1667 \ 1668 product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ 1669 "Policy for changeing generation size for throughput goals") \ 1670 \ 1671 product(uintx, AdaptiveSizePausePolicy, 0, \ 1672 "Policy for changing generation size for pause goals") \ 1673 \ 1674 develop(bool, PSAdjustTenuredGenForMinorPause, false, \ 1675 "Adjust tenured generation to achive a minor pause goal") \ 1676 \ 1677 develop(bool, PSAdjustYoungGenForMajorPause, false, \ 1678 "Adjust young generation to achive a major pause goal") \ 1679 \ 1680 product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ 1681 "Number of steps where heuristics is used before data is used") \ 1682 \ 1683 develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ 1684 "Number of collections before the adaptive sizing is started") \ 1685 \ 1686 product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ 1687 "Collecton interval for printing information, zero => never") \ 1688 \ 1689 product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ 1690 "Use adaptive minimum footprint as a goal") \ 1691 \ 1692 product(uintx, AdaptiveSizePolicyWeight, 10, \ 1693 "Weight given to exponential resizing, between 0 and 100") \ 1694 \ 1695 product(uintx, AdaptiveTimeWeight, 25, \ 1696 "Weight given to time in adaptive policy, between 0 and 100") \ 1697 \ 1698 product(uintx, PausePadding, 1, \ 1699 "How much buffer to keep for pause time") \ 1700 \ 1701 product(uintx, PromotedPadding, 3, \ 1702 "How much buffer to keep for promotion failure") \ 1703 \ 1704 product(uintx, SurvivorPadding, 3, \ 1705 "How much buffer to keep for survivor overflow") \ 1706 \ 1707 product(uintx, AdaptivePermSizeWeight, 20, \ 1708 "Weight for perm gen exponential resizing, between 0 and 100") \ 1709 \ 1710 product(uintx, PermGenPadding, 3, \ 1711 "How much buffer to keep for perm gen sizing") \ 1712 \ 1713 product(uintx, ThresholdTolerance, 10, \ 1714 "Allowed collection cost difference between generations") \ 1715 \ 1716 product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ 1717 "If collection costs are within margin, reduce both by full delta") \ 1718 \ 1719 product(uintx, YoungGenerationSizeIncrement, 20, \ 1720 "Adaptive size percentage change in young generation") \ 1721 \ 1722 product(uintx, YoungGenerationSizeSupplement, 80, \ 1723 "Supplement to YoungedGenerationSizeIncrement used at startup") \ 1724 \ 1725 product(uintx, YoungGenerationSizeSupplementDecay, 8, \ 1726 "Decay factor to YoungedGenerationSizeSupplement") \ 1727 \ 1728 product(uintx, TenuredGenerationSizeIncrement, 20, \ 1729 "Adaptive size percentage change in tenured generation") \ 1730 \ 1731 product(uintx, TenuredGenerationSizeSupplement, 80, \ 1732 "Supplement to TenuredGenerationSizeIncrement used at startup") \ 1733 \ 1734 product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ 1735 "Decay factor to TenuredGenerationSizeIncrement") \ 1736 \ 1737 product(uintx, MaxGCPauseMillis, max_uintx, \ 1738 "Adaptive size policy maximum GC pause time goal in msec") \ 1739 \ 1740 product(uintx, MaxGCMinorPauseMillis, max_uintx, \ 1741 "Adaptive size policy maximum GC minor pause time goal in msec") \ 1742 \ 1743 product(uintx, GCTimeRatio, 99, \ 1744 "Adaptive size policy application time to GC time ratio") \ 1745 \ 1746 product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ 1747 "Adaptive size scale down factor for shrinking") \ 1748 \ 1749 product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ 1750 "Adaptive size decays the major cost for long major intervals") \ 1751 \ 1752 product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ 1753 "Time scale over which major costs decay") \ 1754 \ 1755 product(uintx, MinSurvivorRatio, 3, \ 1756 "Minimum ratio of young generation/survivor space size") \ 1757 \ 1758 product(uintx, InitialSurvivorRatio, 8, \ 1759 "Initial ratio of eden/survivor space size") \ 1760 \ 1761 product(uintx, BaseFootPrintEstimate, 256*M, \ 1762 "Estimate of footprint other than Java Heap") \ 1763 \ 1764 product(bool, UseGCOverheadLimit, true, \ 1765 "Use policy to limit of proportion of time spent in GC " \ 1766 "before an OutOfMemory error is thrown") \ 1767 \ 1768 product(uintx, GCTimeLimit, 98, \ 1769 "Limit of proportion of time spent in GC before an OutOfMemory" \ 1770 "error is thrown (used with GCHeapFreeLimit)") \ 1771 \ 1772 product(uintx, GCHeapFreeLimit, 2, \ 1773 "Minimum percentage of free space after a full GC before an " \ 1774 "OutOfMemoryError is thrown (used with GCTimeLimit)") \ 1775 \ 1776 develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ 1777 "Number of consecutive collections before gc time limit fires") \ 1778 \ 1779 product(bool, PrintAdaptiveSizePolicy, false, \ 1780 "Print information about AdaptiveSizePolicy") \ 1781 \ 1782 product(intx, PrefetchCopyIntervalInBytes, -1, \ 1783 "How far ahead to prefetch destination area (<= 0 means off)") \ 1784 \ 1785 product(intx, PrefetchScanIntervalInBytes, -1, \ 1786 "How far ahead to prefetch scan area (<= 0 means off)") \ 1787 \ 1788 product(intx, PrefetchFieldsAhead, -1, \ 1789 "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ 1790 \ 1791 develop(bool, UsePrefetchQueue, true, \ 1792 "Use the prefetch queue during PS promotion") \ 1793 \ 1794 diagnostic(bool, VerifyBeforeExit, trueInDebug, \ 1795 "Verify system before exiting") \ 1796 \ 1797 diagnostic(bool, VerifyBeforeGC, false, \ 1798 "Verify memory system before GC") \ 1799 \ 1800 diagnostic(bool, VerifyAfterGC, false, \ 1801 "Verify memory system after GC") \ 1802 \ 1803 diagnostic(bool, VerifyDuringGC, false, \ 1804 "Verify memory system during GC (between phases)") \ 1805 \ 1806 diagnostic(bool, VerifyRememberedSets, false, \ 1807 "Verify GC remembered sets") \ 1808 \ 1809 diagnostic(bool, VerifyObjectStartArray, true, \ 1810 "Verify GC object start array if verify before/after") \ 1811 \ 1812 product(bool, DisableExplicitGC, false, \ 1813 "Tells whether calling System.gc() does a full GC") \ 1814 \ 1815 notproduct(bool, CheckMemoryInitialization, false, \ 1816 "Checks memory initialization") \ 1817 \ 1818 product(bool, CollectGen0First, false, \ 1819 "Collect youngest generation before each full GC") \ 1820 \ 1821 diagnostic(bool, BindCMSThreadToCPU, false, \ 1822 "Bind CMS Thread to CPU if possible") \ 1823 \ 1824 diagnostic(uintx, CPUForCMSThread, 0, \ 1825 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ 1826 \ 1827 product(bool, BindGCTaskThreadsToCPUs, false, \ 1828 "Bind GCTaskThreads to CPUs if possible") \ 1829 \ 1830 product(bool, UseGCTaskAffinity, false, \ 1831 "Use worker affinity when asking for GCTasks") \ 1832 \ 1833 product(uintx, ProcessDistributionStride, 4, \ 1834 "Stride through processors when distributing processes") \ 1835 \ 1836 product(uintx, CMSCoordinatorYieldSleepCount, 10, \ 1837 "number of times the coordinator GC thread will sleep while " \ 1838 "yielding before giving up and resuming GC") \ 1839 \ 1840 product(uintx, CMSYieldSleepCount, 0, \ 1841 "number of times a GC thread (minus the coordinator) " \ 1842 "will sleep while yielding before giving up and resuming GC") \ 1843 \ 1844 notproduct(bool, PrintFlagsFinal, false, \ 1845 "Print all command line flags after argument processing") \ 1846 \ 1847 /* gc tracing */ \ 1848 manageable(bool, PrintGC, false, \ 1849 "Print message at garbage collect") \ 1850 \ 1851 manageable(bool, PrintGCDetails, false, \ 1852 "Print more details at garbage collect") \ 1853 \ 1854 manageable(bool, PrintGCDateStamps, false, \ 1855 "Print date stamps at garbage collect") \ 1856 \ 1857 manageable(bool, PrintGCTimeStamps, false, \ 1858 "Print timestamps at garbage collect") \ 1859 \ 1860 product(bool, PrintGCTaskTimeStamps, false, \ 1861 "Print timestamps for individual gc worker thread tasks") \ 1862 \ 1863 develop(intx, ConcGCYieldTimeout, 0, \ 1864 "If non-zero, assert that GC threads yield within this # of ms.") \ 1865 \ 1866 notproduct(bool, TraceMarkSweep, false, \ 1867 "Trace mark sweep") \ 1868 \ 1869 product(bool, PrintReferenceGC, false, \ 1870 "Print times spent handling reference objects during GC " \ 1871 " (enabled only when PrintGCDetails)") \ 1872 \ 1873 develop(bool, TraceReferenceGC, false, \ 1874 "Trace handling of soft/weak/final/phantom references") \ 1875 \ 1876 develop(bool, TraceFinalizerRegistration, false, \ 1877 "Trace registration of final references") \ 1878 \ 1879 notproduct(bool, TraceScavenge, false, \ 1880 "Trace scavenge") \ 1881 \ 1882 product_rw(bool, TraceClassLoading, false, \ 1883 "Trace all classes loaded") \ 1884 \ 1885 product(bool, TraceClassLoadingPreorder, false, \ 1886 "Trace all classes loaded in order referenced (not loaded)") \ 1887 \ 1888 product_rw(bool, TraceClassUnloading, false, \ 1889 "Trace unloading of classes") \ 1890 \ 1891 product_rw(bool, TraceLoaderConstraints, false, \ 1892 "Trace loader constraints") \ 1893 \ 1894 product(bool, TraceGen0Time, false, \ 1895 "Trace accumulated time for Gen 0 collection") \ 1896 \ 1897 product(bool, TraceGen1Time, false, \ 1898 "Trace accumulated time for Gen 1 collection") \ 1899 \ 1900 product(bool, PrintTenuringDistribution, false, \ 1901 "Print tenuring age information") \ 1902 \ 1903 product_rw(bool, PrintHeapAtGC, false, \ 1904 "Print heap layout before and after each GC") \ 1905 \ 1906 product(bool, PrintHeapAtSIGBREAK, true, \ 1907 "Print heap layout in response to SIGBREAK") \ 1908 \ 1909 manageable(bool, PrintClassHistogram, false, \ 1910 "Print a histogram of class instances") \ 1911 \ 1912 develop(bool, TraceWorkGang, false, \ 1913 "Trace activities of work gangs") \ 1914 \ 1915 product(bool, TraceParallelOldGCTasks, false, \ 1916 "Trace multithreaded GC activity") \ 1917 \ 1918 develop(bool, TraceBlockOffsetTable, false, \ 1919 "Print BlockOffsetTable maps") \ 1920 \ 1921 develop(bool, TraceCardTableModRefBS, false, \ 1922 "Print CardTableModRefBS maps") \ 1923 \ 1924 develop(bool, TraceGCTaskManager, false, \ 1925 "Trace actions of the GC task manager") \ 1926 \ 1927 develop(bool, TraceGCTaskQueue, false, \ 1928 "Trace actions of the GC task queues") \ 1929 \ 1930 develop(bool, TraceGCTaskThread, false, \ 1931 "Trace actions of the GC task threads") \ 1932 \ 1933 product(bool, PrintParallelOldGCPhaseTimes, false, \ 1934 "Print the time taken by each parallel old gc phase." \ 1935 "PrintGCDetails must also be enabled.") \ 1936 \ 1937 develop(bool, TraceParallelOldGCMarkingPhase, false, \ 1938 "Trace parallel old gc marking phase") \ 1939 \ 1940 develop(bool, TraceParallelOldGCSummaryPhase, false, \ 1941 "Trace parallel old gc summary phase") \ 1942 \ 1943 develop(bool, TraceParallelOldGCCompactionPhase, false, \ 1944 "Trace parallel old gc compaction phase") \ 1945 \ 1946 develop(bool, TraceParallelOldGCDensePrefix, false, \ 1947 "Trace parallel old gc dense prefix computation") \ 1948 \ 1949 develop(bool, IgnoreLibthreadGPFault, false, \ 1950 "Suppress workaround for libthread GP fault") \ 1951 \ 1952 product(bool, PrintJNIGCStalls, false, \ 1953 "Print diagnostic message when GC is stalled" \ 1954 "by JNI critical section") \ 1955 \ 1956 /* JVMTI heap profiling */ \ 1957 \ 1958 diagnostic(bool, TraceJVMTIObjectTagging, false, \ 1959 "Trace JVMTI object tagging calls") \ 1960 \ 1961 diagnostic(bool, VerifyBeforeIteration, false, \ 1962 "Verify memory system before JVMTI iteration") \ 1963 \ 1964 /* compiler interface */ \ 1965 \ 1966 develop(bool, CIPrintCompilerName, false, \ 1967 "when CIPrint is active, print the name of the active compiler") \ 1968 \ 1969 develop(bool, CIPrintCompileQueue, false, \ 1970 "display the contents of the compile queue whenever a " \ 1971 "compilation is enqueued") \ 1972 \ 1973 develop(bool, CIPrintRequests, false, \ 1974 "display every request for compilation") \ 1975 \ 1976 product(bool, CITime, false, \ 1977 "collect timing information for compilation") \ 1978 \ 1979 develop(bool, CITimeEach, false, \ 1980 "display timing information after each successful compilation") \ 1981 \ 1982 develop(bool, CICountOSR, true, \ 1983 "use a separate counter when assigning ids to osr compilations") \ 1984 \ 1985 develop(bool, CICompileNatives, true, \ 1986 "compile native methods if supported by the compiler") \ 1987 \ 1988 develop_pd(bool, CICompileOSR, \ 1989 "compile on stack replacement methods if supported by the " \ 1990 "compiler") \ 1991 \ 1992 develop(bool, CIPrintMethodCodes, false, \ 1993 "print method bytecodes of the compiled code") \ 1994 \ 1995 develop(bool, CIPrintTypeFlow, false, \ 1996 "print the results of ciTypeFlow analysis") \ 1997 \ 1998 develop(bool, CITraceTypeFlow, false, \ 1999 "detailed per-bytecode tracing of ciTypeFlow analysis") \ 2000 \ 2001 develop(intx, CICloneLoopTestLimit, 100, \ 2002 "size limit for blocks heuristically cloned in ciTypeFlow") \ 2003 \ 2004 /* temp diagnostics */ \ 2005 \ 2006 diagnostic(bool, TraceRedundantCompiles, false, \ 2007 "Have compile broker print when a request already in the queue is"\ 2008 " requested again") \ 2009 \ 2010 diagnostic(bool, InitialCompileFast, false, \ 2011 "Initial compile at CompLevel_fast_compile") \ 2012 \ 2013 diagnostic(bool, InitialCompileReallyFast, false, \ 2014 "Initial compile at CompLevel_really_fast_compile (no profile)") \ 2015 \ 2016 diagnostic(bool, FullProfileOnReInterpret, true, \ 2017 "On re-interpret unc-trap compile next at CompLevel_fast_compile")\ 2018 \ 2019 /* compiler */ \ 2020 \ 2021 product(intx, CICompilerCount, CI_COMPILER_COUNT, \ 2022 "Number of compiler threads to run") \ 2023 \ 2024 product(intx, CompilationPolicyChoice, 0, \ 2025 "which compilation policy (0/1)") \ 2026 \ 2027 develop(bool, UseStackBanging, true, \ 2028 "use stack banging for stack overflow checks (required for " \ 2029 "proper StackOverflow handling; disable only to measure cost " \ 2030 "of stackbanging)") \ 2031 \ 2032 develop(bool, Use24BitFPMode, true, \ 2033 "Set 24-bit FPU mode on a per-compile basis ") \ 2034 \ 2035 develop(bool, Use24BitFP, true, \ 2036 "use FP instructions that produce 24-bit precise results") \ 2037 \ 2038 develop(bool, UseStrictFP, true, \ 2039 "use strict fp if modifier strictfp is set") \ 2040 \ 2041 develop(bool, GenerateSynchronizationCode, true, \ 2042 "generate locking/unlocking code for synchronized methods and " \ 2043 "monitors") \ 2044 \ 2045 develop(bool, GenerateCompilerNullChecks, true, \ 2046 "Generate explicit null checks for loads/stores/calls") \ 2047 \ 2048 develop(bool, GenerateRangeChecks, true, \ 2049 "Generate range checks for array accesses") \ 2050 \ 2051 develop_pd(bool, ImplicitNullChecks, \ 2052 "generate code for implicit null checks") \ 2053 \ 2054 product(bool, PrintSafepointStatistics, false, \ 2055 "print statistics about safepoint synchronization") \ 2056 \ 2057 product(intx, PrintSafepointStatisticsCount, 300, \ 2058 "total number of safepoint statistics collected " \ 2059 "before printing them out") \ 2060 \ 2061 product(intx, PrintSafepointStatisticsTimeout, -1, \ 2062 "print safepoint statistics only when safepoint takes" \ 2063 " more than PrintSafepointSatisticsTimeout in millis") \ 2064 \ 2065 develop(bool, InlineAccessors, true, \ 2066 "inline accessor methods (get/set)") \ 2067 \ 2068 product(bool, Inline, true, \ 2069 "enable inlining") \ 2070 \ 2071 product(bool, ClipInlining, true, \ 2072 "clip inlining if aggregate method exceeds DesiredMethodLimit") \ 2073 \ 2074 develop(bool, UseCHA, true, \ 2075 "enable CHA") \ 2076 \ 2077 product(bool, UseTypeProfile, true, \ 2078 "Check interpreter profile for historically monomorphic calls") \ 2079 \ 2080 product(intx, TypeProfileMajorReceiverPercent, 90, \ 2081 "% of major receiver type to all profiled receivers") \ 2082 \ 2083 notproduct(bool, TimeCompiler, false, \ 2084 "time the compiler") \ 2085 \ 2086 notproduct(bool, TimeCompiler2, false, \ 2087 "detailed time the compiler (requires +TimeCompiler)") \ 2088 \ 2089 diagnostic(bool, PrintInlining, false, \ 2090 "prints inlining optimizations") \ 2091 \ 2092 diagnostic(bool, PrintIntrinsics, false, \ 2093 "prints attempted and successful inlining of intrinsics") \ 2094 \ 2095 diagnostic(ccstrlist, DisableIntrinsic, "", \ 2096 "do not expand intrinsics whose (internal) names appear here") \ 2097 \ 2098 develop(bool, StressReflectiveCode, false, \ 2099 "Use inexact types at allocations, etc., to test reflection") \ 2100 \ 2101 develop(bool, EagerInitialization, false, \ 2102 "Eagerly initialize classes if possible") \ 2103 \ 2104 product(bool, Tier1UpdateMethodData, trueInTiered, \ 2105 "Update methodDataOops in Tier1-generated code") \ 2106 \ 2107 develop(bool, TraceMethodReplacement, false, \ 2108 "Print when methods are replaced do to recompilation") \ 2109 \ 2110 develop(bool, PrintMethodFlushing, false, \ 2111 "print the nmethods being flushed") \ 2112 \ 2113 notproduct(bool, LogMultipleMutexLocking, false, \ 2114 "log locking and unlocking of mutexes (only if multiple locks " \ 2115 "are held)") \ 2116 \ 2117 develop(bool, UseRelocIndex, false, \ 2118 "use an index to speed random access to relocations") \ 2119 \ 2120 develop(bool, StressCodeBuffers, false, \ 2121 "Exercise code buffer expansion and other rare state changes") \ 2122 \ 2123 diagnostic(bool, DebugNonSafepoints, trueInDebug, \ 2124 "Generate extra debugging info for non-safepoints in nmethods") \ 2125 \ 2126 diagnostic(bool, DebugInlinedCalls, true, \ 2127 "If false, restricts profiled locations to the root method only") \ 2128 \ 2129 product(bool, PrintVMOptions, trueInDebug, \ 2130 "print VM flag settings") \ 2131 \ 2132 diagnostic(bool, SerializeVMOutput, true, \ 2133 "Use a mutex to serialize output to tty and hotspot.log") \ 2134 \ 2135 diagnostic(bool, DisplayVMOutput, true, \ 2136 "Display all VM output on the tty, independently of LogVMOutput") \ 2137 \ 2138 diagnostic(bool, LogVMOutput, trueInDebug, \ 2139 "Save VM output to hotspot.log, or to LogFile") \ 2140 \ 2141 diagnostic(ccstr, LogFile, NULL, \ 2142 "If LogVMOutput is on, save VM output to this file [hotspot.log]") \ 2143 \ 2144 product(ccstr, ErrorFile, NULL, \ 2145 "If an error occurs, save the error data to this file " \ 2146 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ 2147 \ 2148 product(bool, DisplayVMOutputToStderr, false, \ 2149 "If DisplayVMOutput is true, display all VM output to stderr") \ 2150 \ 2151 product(bool, DisplayVMOutputToStdout, false, \ 2152 "If DisplayVMOutput is true, display all VM output to stdout") \ 2153 \ 2154 product(bool, UseHeavyMonitors, false, \ 2155 "use heavyweight instead of lightweight Java monitors") \ 2156 \ 2157 notproduct(bool, PrintSymbolTableSizeHistogram, false, \ 2158 "print histogram of the symbol table") \ 2159 \ 2160 notproduct(bool, ExitVMOnVerifyError, false, \ 2161 "standard exit from VM if bytecode verify error " \ 2162 "(only in debug mode)") \ 2163 \ 2164 notproduct(ccstr, AbortVMOnException, NULL, \ 2165 "Call fatal if this exception is thrown. Example: " \ 2166 "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ 2167 \ 2168 develop(bool, DebugVtables, false, \ 2169 "add debugging code to vtable dispatch") \ 2170 \ 2171 develop(bool, PrintVtables, false, \ 2172 "print vtables when printing klass") \ 2173 \ 2174 notproduct(bool, PrintVtableStats, false, \ 2175 "print vtables stats at end of run") \ 2176 \ 2177 develop(bool, TraceCreateZombies, false, \ 2178 "trace creation of zombie nmethods") \ 2179 \ 2180 notproduct(bool, IgnoreLockingAssertions, false, \ 2181 "disable locking assertions (for speed)") \ 2182 \ 2183 notproduct(bool, VerifyLoopOptimizations, false, \ 2184 "verify major loop optimizations") \ 2185 \ 2186 product(bool, RangeCheckElimination, true, \ 2187 "Split loop iterations to eliminate range checks") \ 2188 \ 2189 develop_pd(bool, UncommonNullCast, \ 2190 "track occurrences of null in casts; adjust compiler tactics") \ 2191 \ 2192 develop(bool, TypeProfileCasts, true, \ 2193 "treat casts like calls for purposes of type profiling") \ 2194 \ 2195 develop(bool, MonomorphicArrayCheck, true, \ 2196 "Uncommon-trap array store checks that require full type check") \ 2197 \ 2198 develop(bool, DelayCompilationDuringStartup, true, \ 2199 "Delay invoking the compiler until main application class is " \ 2200 "loaded") \ 2201 \ 2202 develop(bool, CompileTheWorld, false, \ 2203 "Compile all methods in all classes in bootstrap class path " \ 2204 "(stress test)") \ 2205 \ 2206 develop(bool, CompileTheWorldPreloadClasses, true, \ 2207 "Preload all classes used by a class before start loading") \ 2208 \ 2209 notproduct(bool, CompileTheWorldIgnoreInitErrors, false, \ 2210 "Compile all methods although class initializer failed") \ 2211 \ 2212 develop(bool, TraceIterativeGVN, false, \ 2213 "Print progress during Iterative Global Value Numbering") \ 2214 \ 2215 develop(bool, FillDelaySlots, true, \ 2216 "Fill delay slots (on SPARC only)") \ 2217 \ 2218 develop(bool, VerifyIterativeGVN, false, \ 2219 "Verify Def-Use modifications during sparse Iterative Global " \ 2220 "Value Numbering") \ 2221 \ 2222 notproduct(bool, TracePhaseCCP, false, \ 2223 "Print progress during Conditional Constant Propagation") \ 2224 \ 2225 develop(bool, TimeLivenessAnalysis, false, \ 2226 "Time computation of bytecode liveness analysis") \ 2227 \ 2228 develop(bool, TraceLivenessGen, false, \ 2229 "Trace the generation of liveness analysis information") \ 2230 \ 2231 notproduct(bool, TraceLivenessQuery, false, \ 2232 "Trace queries of liveness analysis information") \ 2233 \ 2234 notproduct(bool, CollectIndexSetStatistics, false, \ 2235 "Collect information about IndexSets") \ 2236 \ 2237 develop(bool, PrintDominators, false, \ 2238 "Print out dominator trees for GVN") \ 2239 \ 2240 develop(bool, UseLoopSafepoints, true, \ 2241 "Generate Safepoint nodes in every loop") \ 2242 \ 2243 notproduct(bool, TraceCISCSpill, false, \ 2244 "Trace allocators use of cisc spillable instructions") \ 2245 \ 2246 notproduct(bool, TraceSpilling, false, \ 2247 "Trace spilling") \ 2248 \ 2249 develop(bool, DeutschShiffmanExceptions, true, \ 2250 "Fast check to find exception handler for precisely typed " \ 2251 "exceptions") \ 2252 \ 2253 product(bool, SplitIfBlocks, true, \ 2254 "Clone compares and control flow through merge points to fold " \ 2255 "some branches") \ 2256 \ 2257 develop(intx, FastAllocateSizeLimit, 128*K, \ 2258 /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ 2259 "Inline allocations larger than this in doublewords must go slow")\ 2260 \ 2261 product(bool, AggressiveOpts, false, \ 2262 "Enable aggressive optimizations - see arguments.cpp") \ 2263 \ 2264 /* statistics */ \ 2265 develop(bool, UseVTune, false, \ 2266 "enable support for Intel's VTune profiler") \ 2267 \ 2268 develop(bool, CountCompiledCalls, false, \ 2269 "counts method invocations") \ 2270 \ 2271 notproduct(bool, CountRuntimeCalls, false, \ 2272 "counts VM runtime calls") \ 2273 \ 2274 develop(bool, CountJNICalls, false, \ 2275 "counts jni method invocations") \ 2276 \ 2277 notproduct(bool, CountJVMCalls, false, \ 2278 "counts jvm method invocations") \ 2279 \ 2280 notproduct(bool, CountRemovableExceptions, false, \ 2281 "count exceptions that could be replaced by branches due to " \ 2282 "inlining") \ 2283 \ 2284 notproduct(bool, ICMissHistogram, false, \ 2285 "produce histogram of IC misses") \ 2286 \ 2287 notproduct(bool, PrintClassStatistics, false, \ 2288 "prints class statistics at end of run") \ 2289 \ 2290 notproduct(bool, PrintMethodStatistics, false, \ 2291 "prints method statistics at end of run") \ 2292 \ 2293 /* interpreter */ \ 2294 develop(bool, ClearInterpreterLocals, false, \ 2295 "Always clear local variables of interpreter activations upon " \ 2296 "entry") \ 2297 \ 2298 product_pd(bool, RewriteBytecodes, \ 2299 "Allow rewriting of bytecodes (bytecodes are not immutable)") \ 2300 \ 2301 product_pd(bool, RewriteFrequentPairs, \ 2302 "Rewrite frequently used bytecode pairs into a single bytecode") \ 2303 \ 2304 diagnostic(bool, PrintInterpreter, false, \ 2305 "Prints the generated interpreter code") \ 2306 \ 2307 product(bool, UseInterpreter, true, \ 2308 "Use interpreter for non-compiled methods") \ 2309 \ 2310 develop(bool, UseFastSignatureHandlers, true, \ 2311 "Use fast signature handlers for native calls") \ 2312 \ 2313 develop(bool, UseV8InstrsOnly, false, \ 2314 "Use SPARC-V8 Compliant instruction subset") \ 2315 \ 2316 product(bool, UseNiagaraInstrs, false, \ 2317 "Use Niagara-efficient instruction subset") \ 2318 \ 2319 develop(bool, UseCASForSwap, false, \ 2320 "Do not use swap instructions, but only CAS (in a loop) on SPARC")\ 2321 \ 2322 product(bool, UseLoopCounter, true, \ 2323 "Increment invocation counter on backward branch") \ 2324 \ 2325 product(bool, UseFastEmptyMethods, true, \ 2326 "Use fast method entry code for empty methods") \ 2327 \ 2328 product(bool, UseFastAccessorMethods, true, \ 2329 "Use fast method entry code for accessor methods") \ 2330 \ 2331 product_pd(bool, UseOnStackReplacement, \ 2332 "Use on stack replacement, calls runtime if invoc. counter " \ 2333 "overflows in loop") \ 2334 \ 2335 notproduct(bool, TraceOnStackReplacement, false, \ 2336 "Trace on stack replacement") \ 2337 \ 2338 develop(bool, PoisonOSREntry, true, \ 2339 "Detect abnormal calls to OSR code") \ 2340 \ 2341 product_pd(bool, PreferInterpreterNativeStubs, \ 2342 "Use always interpreter stubs for native methods invoked via " \ 2343 "interpreter") \ 2344 \ 2345 develop(bool, CountBytecodes, false, \ 2346 "Count number of bytecodes executed") \ 2347 \ 2348 develop(bool, PrintBytecodeHistogram, false, \ 2349 "Print histogram of the executed bytecodes") \ 2350 \ 2351 develop(bool, PrintBytecodePairHistogram, false, \ 2352 "Print histogram of the executed bytecode pairs") \ 2353 \ 2354 diagnostic(bool, PrintSignatureHandlers, false, \ 2355 "Print code generated for native method signature handlers") \ 2356 \ 2357 develop(bool, VerifyOops, false, \ 2358 "Do plausibility checks for oops") \ 2359 \ 2360 develop(bool, CheckUnhandledOops, false, \ 2361 "Check for unhandled oops in VM code") \ 2362 \ 2363 develop(bool, VerifyJNIFields, trueInDebug, \ 2364 "Verify jfieldIDs for instance fields") \ 2365 \ 2366 notproduct(bool, VerifyJNIEnvThread, false, \ 2367 "Verify JNIEnv.thread == Thread::current() when entering VM " \ 2368 "from JNI") \ 2369 \ 2370 develop(bool, VerifyFPU, false, \ 2371 "Verify FPU state (check for NaN's, etc.)") \ 2372 \ 2373 develop(bool, VerifyThread, false, \ 2374 "Watch the thread register for corruption (SPARC only)") \ 2375 \ 2376 develop(bool, VerifyActivationFrameSize, false, \ 2377 "Verify that activation frame didn't become smaller than its " \ 2378 "minimal size") \ 2379 \ 2380 develop(bool, TraceFrequencyInlining, false, \ 2381 "Trace frequency based inlining") \ 2382 \ 2383 notproduct(bool, TraceTypeProfile, false, \ 2384 "Trace type profile") \ 2385 \ 2386 develop_pd(bool, InlineIntrinsics, \ 2387 "Inline intrinsics that can be statically resolved") \ 2388 \ 2389 product_pd(bool, ProfileInterpreter, \ 2390 "Profile at the bytecode level during interpretation") \ 2391 \ 2392 develop_pd(bool, ProfileTraps, \ 2393 "Profile deoptimization traps at the bytecode level") \ 2394 \ 2395 product(intx, ProfileMaturityPercentage, 20, \ 2396 "number of method invocations/branches (expressed as % of " \ 2397 "CompileThreshold) before using the method's profile") \ 2398 \ 2399 develop(bool, PrintMethodData, false, \ 2400 "Print the results of +ProfileInterpreter at end of run") \ 2401 \ 2402 develop(bool, VerifyDataPointer, trueInDebug, \ 2403 "Verify the method data pointer during interpreter profiling") \ 2404 \ 2405 develop(bool, VerifyCompiledCode, false, \ 2406 "Include miscellaneous runtime verifications in nmethod code; " \ 2407 "off by default because it disturbs nmethod size heuristics.") \ 2408 \ 2409 \ 2410 /* compilation */ \ 2411 product(bool, UseCompiler, true, \ 2412 "use compilation") \ 2413 \ 2414 develop(bool, TraceCompilationPolicy, false, \ 2415 "Trace compilation policy") \ 2416 \ 2417 develop(bool, TimeCompilationPolicy, false, \ 2418 "Time the compilation policy") \ 2419 \ 2420 product(bool, UseCounterDecay, true, \ 2421 "adjust recompilation counters") \ 2422 \ 2423 develop(intx, CounterHalfLifeTime, 30, \ 2424 "half-life time of invocation counters (in secs)") \ 2425 \ 2426 develop(intx, CounterDecayMinIntervalLength, 500, \ 2427 "Min. ms. between invocation of CounterDecay") \ 2428 \ 2429 product(bool, AlwaysCompileLoopMethods, false, \ 2430 "when using recompilation, never interpret methods " \ 2431 "containing loops") \ 2432 \ 2433 product(bool, DontCompileHugeMethods, true, \ 2434 "don't compile methods > HugeMethodLimit") \ 2435 \ 2436 /* Bytecode escape analysis estimation. */ \ 2437 product(bool, EstimateArgEscape, true, \ 2438 "Analyze bytecodes to estimate escape state of arguments") \ 2439 \ 2440 product(intx, BCEATraceLevel, 0, \ 2441 "How much tracing to do of bytecode escape analysis estimates") \ 2442 \ 2443 product(intx, MaxBCEAEstimateLevel, 5, \ 2444 "Maximum number of nested calls that are analyzed by BC EA.") \ 2445 \ 2446 product(intx, MaxBCEAEstimateSize, 150, \ 2447 "Maximum bytecode size of a method to be analyzed by BC EA.") \ 2448 \ 2449 product(intx, AllocatePrefetchStyle, 1, \ 2450 "0 = no prefetch, " \ 2451 "1 = prefetch instructions for each allocation, " \ 2452 "2 = use TLAB watermark to gate allocation prefetch") \ 2453 \ 2454 product(intx, AllocatePrefetchDistance, -1, \ 2455 "Distance to prefetch ahead of allocation pointer") \ 2456 \ 2457 product(intx, AllocatePrefetchLines, 1, \ 2458 "Number of lines to prefetch ahead of allocation pointer") \ 2459 \ 2460 product(intx, AllocatePrefetchStepSize, 16, \ 2461 "Step size in bytes of sequential prefetch instructions") \ 2462 \ 2463 product(intx, AllocatePrefetchInstr, 0, \ 2464 "Prefetch instruction to prefetch ahead of allocation pointer") \ 2465 \ 2466 product(intx, ReadPrefetchInstr, 0, \ 2467 "Prefetch instruction to prefetch ahead") \ 2468 \ 2469 /* deoptimization */ \ 2470 develop(bool, TraceDeoptimization, false, \ 2471 "Trace deoptimization") \ 2472 \ 2473 develop(bool, DebugDeoptimization, false, \ 2474 "Tracing various information while debugging deoptimization") \ 2475 \ 2476 product(intx, SelfDestructTimer, 0, \ 2477 "Will cause VM to terminate after a given time (in minutes) " \ 2478 "(0 means off)") \ 2479 \ 2480 product(intx, MaxJavaStackTraceDepth, 1024, \ 2481 "Max. no. of lines in the stack trace for Java exceptions " \ 2482 "(0 means all)") \ 2483 \ 2484 develop(intx, GuaranteedSafepointInterval, 1000, \ 2485 "Guarantee a safepoint (at least) every so many milliseconds " \ 2486 "(0 means none)") \ 2487 \ 2488 product(intx, SafepointTimeoutDelay, 10000, \ 2489 "Delay in milliseconds for option SafepointTimeout") \ 2490 \ 2491 product(intx, NmethodSweepFraction, 4, \ 2492 "Number of invocations of sweeper to cover all nmethods") \ 2493 \ 2494 notproduct(intx, MemProfilingInterval, 500, \ 2495 "Time between each invocation of the MemProfiler") \ 2496 \ 2497 develop(intx, MallocCatchPtr, -1, \ 2498 "Hit breakpoint when mallocing/freeing this pointer") \ 2499 \ 2500 notproduct(intx, AssertRepeat, 1, \ 2501 "number of times to evaluate expression in assert " \ 2502 "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ 2503 \ 2504 notproduct(ccstrlist, SuppressErrorAt, "", \ 2505 "List of assertions (file:line) to muzzle") \ 2506 \ 2507 notproduct(uintx, HandleAllocationLimit, 1024, \ 2508 "Threshold for HandleMark allocation when +TraceHandleAllocation "\ 2509 "is used") \ 2510 \ 2511 develop(uintx, TotalHandleAllocationLimit, 1024, \ 2512 "Threshold for total handle allocation when " \ 2513 "+TraceHandleAllocation is used") \ 2514 \ 2515 develop(intx, StackPrintLimit, 100, \ 2516 "number of stack frames to print in VM-level stack dump") \ 2517 \ 2518 notproduct(intx, MaxElementPrintSize, 256, \ 2519 "maximum number of elements to print") \ 2520 \ 2521 notproduct(intx, MaxSubklassPrintSize, 4, \ 2522 "maximum number of subklasses to print when printing klass") \ 2523 \ 2524 develop(intx, MaxInlineLevel, 9, \ 2525 "maximum number of nested calls that are inlined") \ 2526 \ 2527 develop(intx, MaxRecursiveInlineLevel, 1, \ 2528 "maximum number of nested recursive calls that are inlined") \ 2529 \ 2530 develop(intx, InlineSmallCode, 1000, \ 2531 "Only inline already compiled methods if their code size is " \ 2532 "less than this") \ 2533 \ 2534 product(intx, MaxInlineSize, 35, \ 2535 "maximum bytecode size of a method to be inlined") \ 2536 \ 2537 product_pd(intx, FreqInlineSize, \ 2538 "maximum bytecode size of a frequent method to be inlined") \ 2539 \ 2540 develop(intx, MaxTrivialSize, 6, \ 2541 "maximum bytecode size of a trivial method to be inlined") \ 2542 \ 2543 develop(intx, MinInliningThreshold, 250, \ 2544 "min. invocation count a method needs to have to be inlined") \ 2545 \ 2546 develop(intx, AlignEntryCode, 4, \ 2547 "aligns entry code to specified value (in bytes)") \ 2548 \ 2549 develop(intx, MethodHistogramCutoff, 100, \ 2550 "cutoff value for method invoc. histogram (+CountCalls)") \ 2551 \ 2552 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ 2553 "# of interpreted methods to show in profile") \ 2554 \ 2555 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ 2556 "# of compiled methods to show in profile") \ 2557 \ 2558 develop(intx, ProfilerNumberOfStubMethods, 25, \ 2559 "# of stub methods to show in profile") \ 2560 \ 2561 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ 2562 "# of runtime stub nodes to show in profile") \ 2563 \ 2564 product(intx, ProfileIntervalsTicks, 100, \ 2565 "# of ticks between printing of interval profile " \ 2566 "(+ProfileIntervals)") \ 2567 \ 2568 notproduct(intx, ScavengeALotInterval, 1, \ 2569 "Interval between which scavenge will occur with +ScavengeALot") \ 2570 \ 2571 notproduct(intx, FullGCALotInterval, 1, \ 2572 "Interval between which full gc will occur with +FullGCALot") \ 2573 \ 2574 notproduct(intx, FullGCALotStart, 0, \ 2575 "For which invocation to start FullGCAlot") \ 2576 \ 2577 notproduct(intx, FullGCALotDummies, 32*K, \ 2578 "Dummy object allocated with +FullGCALot, forcing all objects " \ 2579 "to move") \ 2580 \ 2581 develop(intx, DontYieldALotInterval, 10, \ 2582 "Interval between which yields will be dropped (milliseconds)") \ 2583 \ 2584 develop(intx, MinSleepInterval, 1, \ 2585 "Minimum sleep() interval (milliseconds) when " \ 2586 "ConvertSleepToYield is off (used for SOLARIS)") \ 2587 \ 2588 product(intx, EventLogLength, 2000, \ 2589 "maximum nof events in event log") \ 2590 \ 2591 develop(intx, ProfilerPCTickThreshold, 15, \ 2592 "Number of ticks in a PC buckets to be a hotspot") \ 2593 \ 2594 notproduct(intx, DeoptimizeALotInterval, 5, \ 2595 "Number of exits until DeoptimizeALot kicks in") \ 2596 \ 2597 notproduct(intx, ZombieALotInterval, 5, \ 2598 "Number of exits until ZombieALot kicks in") \ 2599 \ 2600 develop(bool, StressNonEntrant, false, \ 2601 "Mark nmethods non-entrant at registration") \ 2602 \ 2603 diagnostic(intx, MallocVerifyInterval, 0, \ 2604 "if non-zero, verify C heap after every N calls to " \ 2605 "malloc/realloc/free") \ 2606 \ 2607 diagnostic(intx, MallocVerifyStart, 0, \ 2608 "if non-zero, start verifying C heap after Nth call to " \ 2609 "malloc/realloc/free") \ 2610 \ 2611 product(intx, TypeProfileWidth, 2, \ 2612 "number of receiver types to record in call/cast profile") \ 2613 \ 2614 develop(intx, BciProfileWidth, 2, \ 2615 "number of return bci's to record in ret profile") \ 2616 \ 2617 product(intx, PerMethodRecompilationCutoff, 400, \ 2618 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ 2619 \ 2620 product(intx, PerBytecodeRecompilationCutoff, 100, \ 2621 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ 2622 \ 2623 product(intx, PerMethodTrapLimit, 100, \ 2624 "Limit on traps (of one kind) in a method (includes inlines)") \ 2625 \ 2626 product(intx, PerBytecodeTrapLimit, 4, \ 2627 "Limit on traps (of one kind) at a particular BCI") \ 2628 \ 2629 develop(intx, FreqCountInvocations, 1, \ 2630 "Scaling factor for branch frequencies (deprecated)") \ 2631 \ 2632 develop(intx, InlineFrequencyRatio, 20, \ 2633 "Ratio of call site execution to caller method invocation") \ 2634 \ 2635 develop_pd(intx, InlineFrequencyCount, \ 2636 "Count of call site execution necessary to trigger frequent " \ 2637 "inlining") \ 2638 \ 2639 develop(intx, InlineThrowCount, 50, \ 2640 "Force inlining of interpreted methods that throw this often") \ 2641 \ 2642 develop(intx, InlineThrowMaxSize, 200, \ 2643 "Force inlining of throwing methods smaller than this") \ 2644 \ 2645 product(intx, AliasLevel, 3, \ 2646 "0 for no aliasing, 1 for oop/field/static/array split, " \ 2647 "2 for class split, 3 for unique instances") \ 2648 \ 2649 develop(bool, VerifyAliases, false, \ 2650 "perform extra checks on the results of alias analysis") \ 2651 \ 2652 develop(intx, ProfilerNodeSize, 1024, \ 2653 "Size in K to allocate for the Profile Nodes of each thread") \ 2654 \ 2655 develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \ 2656 "Number of times to spin wait on a v8 atomic operation lock") \ 2657 \ 2658 product(intx, ReadSpinIterations, 100, \ 2659 "Number of read attempts before a yield (spin inner loop)") \ 2660 \ 2661 product_pd(intx, PreInflateSpin, \ 2662 "Number of times to spin wait before inflation") \ 2663 \ 2664 product(intx, PreBlockSpin, 10, \ 2665 "Number of times to spin in an inflated lock before going to " \ 2666 "an OS lock") \ 2667 \ 2668 /* gc parameters */ \ 2669 product(uintx, MaxHeapSize, ScaleForWordSize(64*M), \ 2670 "Default maximum size for object heap (in bytes)") \ 2671 \ 2672 product_pd(uintx, NewSize, \ 2673 "Default size of new generation (in bytes)") \ 2674 \ 2675 product(uintx, MaxNewSize, max_uintx, \ 2676 "Maximum size of new generation (in bytes)") \ 2677 \ 2678 product(uintx, PretenureSizeThreshold, 0, \ 2679 "Max size in bytes of objects allocated in DefNew generation") \ 2680 \ 2681 product_pd(uintx, TLABSize, \ 2682 "Default (or starting) size of TLAB (in bytes)") \ 2683 \ 2684 product(uintx, MinTLABSize, 2*K, \ 2685 "Minimum allowed TLAB size (in bytes)") \ 2686 \ 2687 product(uintx, TLABAllocationWeight, 35, \ 2688 "Allocation averaging weight") \ 2689 \ 2690 product(uintx, TLABWasteTargetPercent, 1, \ 2691 "Percentage of Eden that can be wasted") \ 2692 \ 2693 product(uintx, TLABRefillWasteFraction, 64, \ 2694 "Max TLAB waste at a refill (internal fragmentation)") \ 2695 \ 2696 product(uintx, TLABWasteIncrement, 4, \ 2697 "Increment allowed waste at slow allocation") \ 2698 \ 2699 product_pd(intx, SurvivorRatio, \ 2700 "Ratio of eden/survivor space size") \ 2701 \ 2702 product_pd(intx, NewRatio, \ 2703 "Ratio of new/old generation sizes") \ 2704 \ 2705 product(uintx, MaxLiveObjectEvacuationRatio, 100, \ 2706 "Max percent of eden objects that will be live at scavenge") \ 2707 \ 2708 product_pd(uintx, NewSizeThreadIncrease, \ 2709 "Additional size added to desired new generation size per " \ 2710 "non-daemon thread (in bytes)") \ 2711 \ 2712 product(uintx, OldSize, ScaleForWordSize(4096*K), \ 2713 "Default size of tenured generation (in bytes)") \ 2714 \ 2715 product_pd(uintx, PermSize, \ 2716 "Default size of permanent generation (in bytes)") \ 2717 \ 2718 product_pd(uintx, MaxPermSize, \ 2719 "Maximum size of permanent generation (in bytes)") \ 2720 \ 2721 product(uintx, MinHeapFreeRatio, 40, \ 2722 "Min percentage of heap free after GC to avoid expansion") \ 2723 \ 2724 product(uintx, MaxHeapFreeRatio, 70, \ 2725 "Max percentage of heap free after GC to avoid shrinking") \ 2726 \ 2727 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ 2728 "Number of milliseconds per MB of free space in the heap") \ 2729 \ 2730 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ 2731 "Min change in heap space due to GC (in bytes)") \ 2732 \ 2733 product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K), \ 2734 "Min expansion of permanent heap (in bytes)") \ 2735 \ 2736 product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M), \ 2737 "Max expansion of permanent heap without full GC (in bytes)") \ 2738 \ 2739 product(intx, QueuedAllocationWarningCount, 0, \ 2740 "Number of times an allocation that queues behind a GC " \ 2741 "will retry before printing a warning") \ 2742 \ 2743 diagnostic(uintx, VerifyGCStartAt, 0, \ 2744 "GC invoke count where +VerifyBefore/AfterGC kicks in") \ 2745 \ 2746 diagnostic(intx, VerifyGCLevel, 0, \ 2747 "Generation level at which to start +VerifyBefore/AfterGC") \ 2748 \ 2749 develop(uintx, ExitAfterGCNum, 0, \ 2750 "If non-zero, exit after this GC.") \ 2751 \ 2752 product(intx, MaxTenuringThreshold, 15, \ 2753 "Maximum value for tenuring threshold") \ 2754 \ 2755 product(intx, InitialTenuringThreshold, 7, \ 2756 "Initial value for tenuring threshold") \ 2757 \ 2758 product(intx, TargetSurvivorRatio, 50, \ 2759 "Desired percentage of survivor space used after scavenge") \ 2760 \ 2761 product(intx, MarkSweepDeadRatio, 5, \ 2762 "Percentage (0-100) of the old gen allowed as dead wood." \ 2763 "Serial mark sweep treats this as both the min and max value." \ 2764 "CMS uses this value only if it falls back to mark sweep." \ 2765 "Par compact uses a variable scale based on the density of the" \ 2766 "generation and treats this as the max value when the heap is" \ 2767 "either completely full or completely empty. Par compact also" \ 2768 "has a smaller default value; see arguments.cpp.") \ 2769 \ 2770 product(intx, PermMarkSweepDeadRatio, 20, \ 2771 "Percentage (0-100) of the perm gen allowed as dead wood." \ 2772 "See MarkSweepDeadRatio for collector-specific comments.") \ 2773 \ 2774 product(intx, MarkSweepAlwaysCompactCount, 4, \ 2775 "How often should we fully compact the heap (ignoring the dead " \ 2776 "space parameters)") \ 2777 \ 2778 product(intx, PrintCMSStatistics, 0, \ 2779 "Statistics for CMS") \ 2780 \ 2781 product(bool, PrintCMSInitiationStatistics, false, \ 2782 "Statistics for initiating a CMS collection") \ 2783 \ 2784 product(intx, PrintFLSStatistics, 0, \ 2785 "Statistics for CMS' FreeListSpace") \ 2786 \ 2787 product(intx, PrintFLSCensus, 0, \ 2788 "Census for CMS' FreeListSpace") \ 2789 \ 2790 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ 2791 "Delay in ms between expansion and allocation") \ 2792 \ 2793 product(intx, DeferThrSuspendLoopCount, 4000, \ 2794 "(Unstable) Number of times to iterate in safepoint loop " \ 2795 " before blocking VM threads ") \ 2796 \ 2797 product(intx, DeferPollingPageLoopCount, -1, \ 2798 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ 2799 "before changing safepoint polling page to RO ") \ 2800 \ 2801 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ 2802 \ 2803 product(bool, UseDepthFirstScavengeOrder, true, \ 2804 "true: the scavenge order will be depth-first, " \ 2805 "false: the scavenge order will be breadth-first") \ 2806 \ 2807 product(bool, PSChunkLargeArrays, true, \ 2808 "true: process large arrays in chunks") \ 2809 \ 2810 product(uintx, GCDrainStackTargetSize, 64, \ 2811 "how many entries we'll try to leave on the stack during " \ 2812 "parallel GC") \ 2813 \ 2814 product(intx, DCQBarrierQueueBufferSize, 256, \ 2815 "Number of elements in a dirty card queue buffer") \ 2816 \ 2817 product(intx, DCQBarrierProcessCompletedThreshold, 5, \ 2818 "Number of completed dirty card buffers to trigger processing.") \ 2819 \ 2820 /* stack parameters */ \ 2821 product_pd(intx, StackYellowPages, \ 2822 "Number of yellow zone (recoverable overflows) pages") \ 2823 \ 2824 product_pd(intx, StackRedPages, \ 2825 "Number of red zone (unrecoverable overflows) pages") \ 2826 \ 2827 product_pd(intx, StackShadowPages, \ 2828 "Number of shadow zone (for overflow checking) pages" \ 2829 " this should exceed the depth of the VM and native call stack") \ 2830 \ 2831 product_pd(intx, ThreadStackSize, \ 2832 "Thread Stack Size (in Kbytes)") \ 2833 \ 2834 product_pd(intx, VMThreadStackSize, \ 2835 "Non-Java Thread Stack Size (in Kbytes)") \ 2836 \ 2837 product_pd(intx, CompilerThreadStackSize, \ 2838 "Compiler Thread Stack Size (in Kbytes)") \ 2839 \ 2840 develop_pd(uintx, JVMInvokeMethodSlack, \ 2841 "Stack space (bytes) required for JVM_InvokeMethod to complete") \ 2842 \ 2843 product(uintx, ThreadSafetyMargin, 50*M, \ 2844 "Thread safety margin is used on fixed-stack LinuxThreads (on " \ 2845 "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ 2846 "disable this feature") \ 2847 \ 2848 /* code cache parameters */ \ 2849 develop(uintx, CodeCacheSegmentSize, 64, \ 2850 "Code cache segment size (in bytes) - smallest unit of " \ 2851 "allocation") \ 2852 \ 2853 develop_pd(intx, CodeEntryAlignment, \ 2854 "Code entry alignment for generated code (in bytes)") \ 2855 \ 2856 product_pd(uintx, InitialCodeCacheSize, \ 2857 "Initial code cache size (in bytes)") \ 2858 \ 2859 product_pd(uintx, ReservedCodeCacheSize, \ 2860 "Reserved code cache size (in bytes) - maximum code cache size") \ 2861 \ 2862 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ 2863 "When less than X space left, we stop compiling.") \ 2864 \ 2865 product_pd(uintx, CodeCacheExpansionSize, \ 2866 "Code cache expansion size (in bytes)") \ 2867 \ 2868 develop_pd(uintx, CodeCacheMinBlockLength, \ 2869 "Minimum number of segments in a code cache block.") \ 2870 \ 2871 notproduct(bool, ExitOnFullCodeCache, false, \ 2872 "Exit the VM if we fill the code cache.") \ 2873 \ 2874 /* interpreter debugging */ \ 2875 develop(intx, BinarySwitchThreshold, 5, \ 2876 "Minimal number of lookupswitch entries for rewriting to binary " \ 2877 "switch") \ 2878 \ 2879 develop(intx, StopInterpreterAt, 0, \ 2880 "Stops interpreter execution at specified bytecode number") \ 2881 \ 2882 develop(intx, TraceBytecodesAt, 0, \ 2883 "Traces bytecodes starting with specified bytecode number") \ 2884 \ 2885 /* compiler interface */ \ 2886 develop(intx, CIStart, 0, \ 2887 "the id of the first compilation to permit") \ 2888 \ 2889 develop(intx, CIStop, -1, \ 2890 "the id of the last compilation to permit") \ 2891 \ 2892 develop(intx, CIStartOSR, 0, \ 2893 "the id of the first osr compilation to permit " \ 2894 "(CICountOSR must be on)") \ 2895 \ 2896 develop(intx, CIStopOSR, -1, \ 2897 "the id of the last osr compilation to permit " \ 2898 "(CICountOSR must be on)") \ 2899 \ 2900 develop(intx, CIBreakAtOSR, -1, \ 2901 "id of osr compilation to break at") \ 2902 \ 2903 develop(intx, CIBreakAt, -1, \ 2904 "id of compilation to break at") \ 2905 \ 2906 product(ccstrlist, CompileOnly, "", \ 2907 "List of methods (pkg/class.name) to restrict compilation to") \ 2908 \ 2909 product(ccstr, CompileCommandFile, NULL, \ 2910 "Read compiler commands from this file [.hotspot_compiler]") \ 2911 \ 2912 product(ccstrlist, CompileCommand, "", \ 2913 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ 2914 \ 2915 product(bool, CICompilerCountPerCPU, false, \ 2916 "1 compiler thread for log(N CPUs)") \ 2917 \ 2918 develop(intx, CIFireOOMAt, -1, \ 2919 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ 2920 "(non-negative value throws OOM after this many CI accesses " \ 2921 "in each compile)") \ 2922 \ 2923 develop(intx, CIFireOOMAtDelay, -1, \ 2924 "Wait for this many CI accesses to occur in all compiles before " \ 2925 "beginning to throw OutOfMemoryErrors in each compile") \ 2926 \ 2927 /* Priorities */ \ 2928 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ 2929 \ 2930 product(intx, ThreadPriorityPolicy, 0, \ 2931 "0 : Normal. "\ 2932 " VM chooses priorities that are appropriate for normal "\ 2933 " applications. On Solaris NORM_PRIORITY and above are mapped "\ 2934 " to normal native priority. Java priorities below NORM_PRIORITY"\ 2935 " map to lower native priority values. On Windows applications"\ 2936 " are allowed to use higher native priorities. However, with "\ 2937 " ThreadPriorityPolicy=0, VM will not use the highest possible"\ 2938 " native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may "\ 2939 " interfere with system threads. On Linux thread priorities "\ 2940 " are ignored because the OS does not support static priority "\ 2941 " in SCHED_OTHER scheduling class which is the only choice for"\ 2942 " non-root, non-realtime applications. "\ 2943 "1 : Aggressive. "\ 2944 " Java thread priorities map over to the entire range of "\ 2945 " native thread priorities. Higher Java thread priorities map "\ 2946 " to higher native thread priorities. This policy should be "\ 2947 " used with care, as sometimes it can cause performance "\ 2948 " degradation in the application and/or the entire system. On "\ 2949 " Linux this policy requires root privilege.") \ 2950 \ 2951 product(bool, ThreadPriorityVerbose, false, \ 2952 "print priority changes") \ 2953 \ 2954 product(intx, DefaultThreadPriority, -1, \ 2955 "what native priority threads run at if not specified elsewhere (-1 means no change)") \ 2956 \ 2957 product(intx, CompilerThreadPriority, -1, \ 2958 "what priority should compiler threads run at (-1 means no change)") \ 2959 \ 2960 product(intx, VMThreadPriority, -1, \ 2961 "what priority should VM threads run at (-1 means no change)") \ 2962 \ 2963 product(bool, CompilerThreadHintNoPreempt, true, \ 2964 "(Solaris only) Give compiler threads an extra quanta") \ 2965 \ 2966 product(bool, VMThreadHintNoPreempt, false, \ 2967 "(Solaris only) Give VM thread an extra quanta") \ 2968 \ 2969 product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2970 product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2971 product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2972 product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2973 product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2974 product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2975 product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2976 product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2977 product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2978 product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ 2979 \ 2980 /* compiler debugging */ \ 2981 notproduct(intx, CompileTheWorldStartAt, 1, \ 2982 "First class to consider when using +CompileTheWorld") \ 2983 \ 2984 notproduct(intx, CompileTheWorldStopAt, max_jint, \ 2985 "Last class to consider when using +CompileTheWorld") \ 2986 \ 2987 develop(intx, NewCodeParameter, 0, \ 2988 "Testing Only: Create a dedicated integer parameter before " \ 2989 "putback") \ 2990 \ 2991 /* new oopmap storage allocation */ \ 2992 develop(intx, MinOopMapAllocation, 8, \ 2993 "Minimum number of OopMap entries in an OopMapSet") \ 2994 \ 2995 /* Background Compilation */ \ 2996 develop(intx, LongCompileThreshold, 50, \ 2997 "Used with +TraceLongCompiles") \ 2998 \ 2999 product(intx, StarvationMonitorInterval, 200, \ 3000 "Pause between each check in ms") \ 3001 \ 3002 /* recompilation */ \ 3003 product_pd(intx, CompileThreshold, \ 3004 "number of interpreted method invocations before (re-)compiling") \ 3005 \ 3006 product_pd(intx, BackEdgeThreshold, \ 3007 "Interpreter Back edge threshold at which an OSR compilation is invoked")\ 3008 \ 3009 product(intx, Tier1BytecodeLimit, 10, \ 3010 "Must have at least this many bytecodes before tier1" \ 3011 "invocation counters are used") \ 3012 \ 3013 product_pd(intx, Tier2CompileThreshold, \ 3014 "threshold at which a tier 2 compilation is invoked") \ 3015 \ 3016 product_pd(intx, Tier2BackEdgeThreshold, \ 3017 "Back edge threshold at which a tier 2 compilation is invoked") \ 3018 \ 3019 product_pd(intx, Tier3CompileThreshold, \ 3020 "threshold at which a tier 3 compilation is invoked") \ 3021 \ 3022 product_pd(intx, Tier3BackEdgeThreshold, \ 3023 "Back edge threshold at which a tier 3 compilation is invoked") \ 3024 \ 3025 product_pd(intx, Tier4CompileThreshold, \ 3026 "threshold at which a tier 4 compilation is invoked") \ 3027 \ 3028 product_pd(intx, Tier4BackEdgeThreshold, \ 3029 "Back edge threshold at which a tier 4 compilation is invoked") \ 3030 \ 3031 product_pd(bool, TieredCompilation, \ 3032 "Enable two-tier compilation") \ 3033 \ 3034 product(bool, StressTieredRuntime, false, \ 3035 "Alternate client and server compiler on compile requests") \ 3036 \ 3037 product_pd(intx, OnStackReplacePercentage, \ 3038 "NON_TIERED number of method invocations/branches (expressed as %"\ 3039 "of CompileThreshold) before (re-)compiling OSR code") \ 3040 \ 3041 product(intx, InterpreterProfilePercentage, 33, \ 3042 "NON_TIERED number of method invocations/branches (expressed as %"\ 3043 "of CompileThreshold) before profiling in the interpreter") \ 3044 \ 3045 develop(intx, MaxRecompilationSearchLength, 10, \ 3046 "max. # frames to inspect searching for recompilee") \ 3047 \ 3048 develop(intx, MaxInterpretedSearchLength, 3, \ 3049 "max. # interp. frames to skip when searching for recompilee") \ 3050 \ 3051 develop(intx, DesiredMethodLimit, 8000, \ 3052 "desired max. method size (in bytecodes) after inlining") \ 3053 \ 3054 develop(intx, HugeMethodLimit, 8000, \ 3055 "don't compile methods larger than this if " \ 3056 "+DontCompileHugeMethods") \ 3057 \ 3058 /* New JDK 1.4 reflection implementation */ \ 3059 \ 3060 develop(bool, UseNewReflection, true, \ 3061 "Temporary flag for transition to reflection based on dynamic " \ 3062 "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ 3063 "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ 3064 "changes were needed") \ 3065 \ 3066 develop(bool, VerifyReflectionBytecodes, false, \ 3067 "Force verification of 1.4 reflection bytecodes. Does not work " \ 3068 "in situations like that described in 4486457 or for " \ 3069 "constructors generated for serialization, so can not be enabled "\ 3070 "in product.") \ 3071 \ 3072 product(bool, ReflectionWrapResolutionErrors, true, \ 3073 "Temporary flag for transition to AbstractMethodError wrapped " \ 3074 "in InvocationTargetException. See 6531596") \ 3075 \ 3076 \ 3077 develop(intx, FastSuperclassLimit, 8, \ 3078 "Depth of hardwired instanceof accelerator array") \ 3079 \ 3080 /* Properties for Java libraries */ \ 3081 \ 3082 product(intx, MaxDirectMemorySize, -1, \ 3083 "Maximum total size of NIO direct-buffer allocations") \ 3084 \ 3085 /* temporary developer defined flags */ \ 3086 \ 3087 diagnostic(bool, UseNewCode, false, \ 3088 "Testing Only: Use the new version while testing") \ 3089 \ 3090 diagnostic(bool, UseNewCode2, false, \ 3091 "Testing Only: Use the new version while testing") \ 3092 \ 3093 diagnostic(bool, UseNewCode3, false, \ 3094 "Testing Only: Use the new version while testing") \ 3095 \ 3096 /* flags for performance data collection */ \ 3097 \ 3098 product(bool, UsePerfData, true, \ 3099 "Flag to disable jvmstat instrumentation for performance testing" \ 3100 "and problem isolation purposes.") \ 3101 \ 3102 product(bool, PerfDataSaveToFile, false, \ 3103 "Save PerfData memory to hsperfdata_<pid> file on exit") \ 3104 \ 3105 product(ccstr, PerfDataSaveFile, NULL, \ 3106 "Save PerfData memory to the specified absolute pathname," \ 3107 "%p in the file name if present will be replaced by pid") \ 3108 \ 3109 product(intx, PerfDataSamplingInterval, 50 /*ms*/, \ 3110 "Data sampling interval in milliseconds") \ 3111 \ 3112 develop(bool, PerfTraceDataCreation, false, \ 3113 "Trace creation of Performance Data Entries") \ 3114 \ 3115 develop(bool, PerfTraceMemOps, false, \ 3116 "Trace PerfMemory create/attach/detach calls") \ 3117 \ 3118 product(bool, PerfDisableSharedMem, false, \ 3119 "Store performance data in standard memory") \ 3120 \ 3121 product(intx, PerfDataMemorySize, 32*K, \ 3122 "Size of performance data memory region. Will be rounded " \ 3123 "up to a multiple of the native os page size.") \ 3124 \ 3125 product(intx, PerfMaxStringConstLength, 1024, \ 3126 "Maximum PerfStringConstant string length before truncation") \ 3127 \ 3128 product(bool, PerfAllowAtExitRegistration, false, \ 3129 "Allow registration of atexit() methods") \ 3130 \ 3131 product(bool, PerfBypassFileSystemCheck, false, \ 3132 "Bypass Win32 file system criteria checks (Windows Only)") \ 3133 \ 3134 product(intx, UnguardOnExecutionViolation, 0, \ 3135 "Unguard page and retry on no-execute fault (Win32 only)" \ 3136 "0=off, 1=conservative, 2=aggressive") \ 3137 \ 3138 /* Serviceability Support */ \ 3139 \ 3140 product(bool, ManagementServer, false, \ 3141 "Create JMX Management Server") \ 3142 \ 3143 product(bool, DisableAttachMechanism, false, \ 3144 "Disable mechanism that allows tools to attach to this VM") \ 3145 \ 3146 product(bool, StartAttachListener, false, \ 3147 "Always start Attach Listener at VM startup") \ 3148 \ 3149 manageable(bool, PrintConcurrentLocks, false, \ 3150 "Print java.util.concurrent locks in thread dump") \ 3151 \ 3152 /* Shared spaces */ \ 3153 \ 3154 product(bool, UseSharedSpaces, true, \ 3155 "Use shared spaces in the permanent generation") \ 3156 \ 3157 product(bool, RequireSharedSpaces, false, \ 3158 "Require shared spaces in the permanent generation") \ 3159 \ 3160 product(bool, ForceSharedSpaces, false, \ 3161 "Require shared spaces in the permanent generation") \ 3162 \ 3163 product(bool, DumpSharedSpaces, false, \ 3164 "Special mode: JVM reads a class list, loads classes, builds " \ 3165 "shared spaces, and dumps the shared spaces to a file to be " \ 3166 "used in future JVM runs.") \ 3167 \ 3168 product(bool, PrintSharedSpaces, false, \ 3169 "Print usage of shared spaces") \ 3170 \ 3171 product(uintx, SharedDummyBlockSize, 512*M, \ 3172 "Size of dummy block used to shift heap addresses (in bytes)") \ 3173 \ 3174 product(uintx, SharedReadWriteSize, 12*M, \ 3175 "Size of read-write space in permanent generation (in bytes)") \ 3176 \ 3177 product(uintx, SharedReadOnlySize, 8*M, \ 3178 "Size of read-only space in permanent generation (in bytes)") \ 3179 \ 3180 product(uintx, SharedMiscDataSize, 4*M, \ 3181 "Size of the shared data area adjacent to the heap (in bytes)") \ 3182 \ 3183 product(uintx, SharedMiscCodeSize, 4*M, \ 3184 "Size of the shared code area adjacent to the heap (in bytes)") \ 3185 \ 3186 diagnostic(bool, SharedOptimizeColdStart, true, \ 3187 "At dump time, order shared objects to achieve better " \ 3188 "cold startup time.") \ 3189 \ 3190 develop(intx, SharedOptimizeColdStartPolicy, 2, \ 3191 "Reordering policy for SharedOptimizeColdStart " \ 3192 "0=favor classload-time locality, 1=balanced, " \ 3193 "2=favor runtime locality") \ 3194 \ 3195 diagnostic(bool, SharedSkipVerify, false, \ 3196 "Skip assert() and verify() which page-in unwanted shared " \ 3197 "objects. ") \ 3198 \ 3199 product(bool, TaggedStackInterpreter, false, \ 3200 "Insert tags in interpreter execution stack for oopmap generaion")\ 3201 \ 3202 diagnostic(bool, PauseAtStartup, false, \ 3203 "Causes the VM to pause at startup time and wait for the pause " \ 3204 "file to be removed (default: ./vm.paused.<pid>)") \ 3205 \ 3206 diagnostic(ccstr, PauseAtStartupFile, NULL, \ 3207 "The file to create and for whose removal to await when pausing " \ 3208 "at startup. (default: ./vm.paused.<pid>)") \ 3209 \ 3210 product(bool, ExtendedDTraceProbes, false, \ 3211 "Enable performance-impacting dtrace probes") \ 3212 \ 3213 product(bool, DTraceMethodProbes, false, \ 3214 "Enable dtrace probes for method-entry and method-exit") \ 3215 \ 3216 product(bool, DTraceAllocProbes, false, \ 3217 "Enable dtrace probes for object allocation") \ 3218 \ 3219 product(bool, DTraceMonitorProbes, false, \ 3220 "Enable dtrace probes for monitor events") \ 3221 \ 3222 product(bool, RelaxAccessControlCheck, false, \ 3223 "Relax the access control checks in the verifier") \ 3224 \ 3225 diagnostic(bool, PrintDTraceDOF, false, \ 3226 "Print the DTrace DOF passed to the system for JSDT probes") \ 3227 \ 3228 product(bool, UseVMInterruptibleIO, true, \ 3229 "(Unstable, Solaris-specific) Thread interrupt before or with " \ 3230 "EINTR for I/O operations results in OS_INTRPT") 3231 3232 3233/* 3234 * Macros for factoring of globals 3235 */ 3236 3237// Interface macros 3238#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3239#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 3240#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 3241#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 3242#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 3243#ifdef PRODUCT 3244#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value; 3245#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name; 3246#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) 3247#else 3248#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 3249#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 3250#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3251#endif 3252// Special LP64 flags, product only needed for now. 3253#ifdef _LP64 3254#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3255#else 3256#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; 3257#endif // _LP64 3258 3259// Implementation macros 3260#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; 3261#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; 3262#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; 3263#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; 3264#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; 3265#ifdef PRODUCT 3266#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */ 3267#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) /* flag name is constant */ 3268#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) 3269#else 3270#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; 3271#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; 3272#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; 3273#endif 3274#ifdef _LP64 3275#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; 3276#else 3277#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ 3278#endif // _LP64 3279 3280RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG, DECLARE_LP64_PRODUCT_FLAG) 3281 3282RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) 3283