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