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