globals.hpp revision 62:cd0742ba123c
1101099Srwatson/* 2101099Srwatson * Copyright 1997-2007 Sun Microsystems, Inc. All Rights Reserved. 3101099Srwatson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4101099Srwatson * 5101099Srwatson * This code is free software; you can redistribute it and/or modify it 6101099Srwatson * under the terms of the GNU General Public License version 2 only, as 7101099Srwatson * published by the Free Software Foundation. 8106393Srwatson * 9106393Srwatson * This code is distributed in the hope that it will be useful, but WITHOUT 10106393Srwatson * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11106393Srwatson * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12101099Srwatson * version 2 for more details (a copy is included in the LICENSE file that 13101099Srwatson * accompanied this code). 14101099Srwatson * 15101099Srwatson * You should have received a copy of the GNU General Public License version 16101099Srwatson * 2 along with this work; if not, write to the Free Software Foundation, 17101099Srwatson * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18101099Srwatson * 19101099Srwatson * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 20101099Srwatson * CA 95054 USA or visit www.sun.com if you need additional information or 21101099Srwatson * have any questions. 22101099Srwatson * 23101099Srwatson */ 24101099Srwatson 25101099Srwatson#if !defined(COMPILER1) && !defined(COMPILER2) 26101099Srwatsondefine_pd_global(bool, BackgroundCompilation, false); 27101099Srwatsondefine_pd_global(bool, UseTLAB, false); 28101099Srwatsondefine_pd_global(bool, CICompileOSR, false); 29101099Srwatsondefine_pd_global(bool, UseTypeProfile, false); 30101099Srwatsondefine_pd_global(bool, UseOnStackReplacement, false); 31101099Srwatsondefine_pd_global(bool, InlineIntrinsics, false); 32101099Srwatsondefine_pd_global(bool, PreferInterpreterNativeStubs, true); 33101099Srwatsondefine_pd_global(bool, ProfileInterpreter, false); 34101099Srwatsondefine_pd_global(bool, ProfileTraps, false); 35101099Srwatsondefine_pd_global(bool, TieredCompilation, false); 36101099Srwatson 37101099Srwatsondefine_pd_global(intx, CompileThreshold, 0); 38101099Srwatsondefine_pd_global(intx, Tier2CompileThreshold, 0); 39101099Srwatsondefine_pd_global(intx, Tier3CompileThreshold, 0); 40101099Srwatsondefine_pd_global(intx, Tier4CompileThreshold, 0); 41101099Srwatson 42101099Srwatsondefine_pd_global(intx, BackEdgeThreshold, 0); 43101099Srwatsondefine_pd_global(intx, Tier2BackEdgeThreshold, 0); 44101099Srwatsondefine_pd_global(intx, Tier3BackEdgeThreshold, 0); 45101099Srwatsondefine_pd_global(intx, Tier4BackEdgeThreshold, 0); 46101099Srwatson 47101099Srwatsondefine_pd_global(intx, OnStackReplacePercentage, 0); 48101099Srwatsondefine_pd_global(bool, ResizeTLAB, false); 49101099Srwatsondefine_pd_global(intx, FreqInlineSize, 0); 50101099Srwatsondefine_pd_global(intx, NewSizeThreadIncrease, 4*K); 51101099Srwatsondefine_pd_global(intx, NewRatio, 4); 52101099Srwatsondefine_pd_global(intx, InlineClassNatives, true); 53101099Srwatsondefine_pd_global(intx, InlineUnsafeOps, true); 54101099Srwatsondefine_pd_global(intx, InitialCodeCacheSize, 160*K); 55101099Srwatsondefine_pd_global(intx, ReservedCodeCacheSize, 32*M); 56101099Srwatsondefine_pd_global(intx, CodeCacheExpansionSize, 32*K); 57101099Srwatsondefine_pd_global(intx, CodeCacheMinBlockLength, 1); 58101099Srwatsondefine_pd_global(uintx,PermSize, ScaleForWordSize(4*M)); 59101099Srwatsondefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M)); 60101099Srwatsondefine_pd_global(bool, NeverActAsServerClassMachine, true); 61101099Srwatsondefine_pd_global(uintx, DefaultMaxRAM, 1*G); 62101099Srwatson#define CI_COMPILER_COUNT 0 63101099Srwatson#else 64101099Srwatson 65101099Srwatson#ifdef COMPILER2 66101099Srwatson#define CI_COMPILER_COUNT 2 67101099Srwatson#else 68101099Srwatson#define CI_COMPILER_COUNT 1 69101099Srwatson#endif // COMPILER2 70101099Srwatson 71101099Srwatson#endif // no compilers 72101099Srwatson 73101099Srwatson 74101099Srwatson// string type aliases used only in this file 75101099Srwatsontypedef const char* ccstr; 76101099Srwatsontypedef const char* ccstrlist; // represents string arguments which accumulate 77101099Srwatson 78101099Srwatsonenum FlagValueOrigin { 79101099Srwatson DEFAULT = 0, 80101099Srwatson COMMAND_LINE = 1, 81101099Srwatson ENVIRON_VAR = 2, 82101099Srwatson CONFIG_FILE = 3, 83101099Srwatson MANAGEMENT = 4, 84101099Srwatson ERGONOMIC = 5, 85101099Srwatson ATTACH_ON_DEMAND = 6, 86101099Srwatson INTERNAL = 99 87101099Srwatson}; 88101099Srwatson 89101099Srwatsonstruct Flag { 90101099Srwatson const char *type; 91101099Srwatson const char *name; 92101099Srwatson void* addr; 93101099Srwatson const char *kind; 94101099Srwatson FlagValueOrigin origin; 95101099Srwatson 96101099Srwatson // points to all Flags static array 97101099Srwatson static Flag *flags; 98101099Srwatson 99101099Srwatson // number of flags 100101099Srwatson static size_t numFlags; 101101099Srwatson 102101099Srwatson static Flag* find_flag(char* name, size_t length); 103101099Srwatson 104101099Srwatson bool is_bool() const { return strcmp(type, "bool") == 0; } 105101099Srwatson bool get_bool() const { return *((bool*) addr); } 106101099Srwatson void set_bool(bool value) { *((bool*) addr) = value; } 107101099Srwatson 108101099Srwatson bool is_intx() const { return strcmp(type, "intx") == 0; } 109101099Srwatson intx get_intx() const { return *((intx*) addr); } 110101099Srwatson void set_intx(intx value) { *((intx*) addr) = value; } 111101099Srwatson 112101099Srwatson bool is_uintx() const { return strcmp(type, "uintx") == 0; } 113101099Srwatson uintx get_uintx() const { return *((uintx*) addr); } 114101099Srwatson void set_uintx(uintx value) { *((uintx*) addr) = value; } 115101099Srwatson 116101099Srwatson bool is_double() const { return strcmp(type, "double") == 0; } 117101099Srwatson double get_double() const { return *((double*) addr); } 118101099Srwatson void set_double(double value) { *((double*) addr) = value; } 119101099Srwatson 120101099Srwatson bool is_ccstr() const { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; } 121101099Srwatson bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; } 122101099Srwatson ccstr get_ccstr() const { return *((ccstr*) addr); } 123101099Srwatson void set_ccstr(ccstr value) { *((ccstr*) addr) = value; } 124101099Srwatson 125101099Srwatson bool is_unlocker() const; 126101099Srwatson bool is_unlocked() const; 127101099Srwatson bool is_writeable() const; 128101099Srwatson bool is_external() const; 129101099Srwatson 130101099Srwatson void print_on(outputStream* st); 131101099Srwatson void print_as_flag(outputStream* st); 132101099Srwatson}; 133101099Srwatson 134101099Srwatson// debug flags control various aspects of the VM and are global accessible 135101099Srwatson 136101099Srwatson// use FlagSetting to temporarily change some debug flag 137101099Srwatson// e.g. FlagSetting fs(DebugThisAndThat, true); 138101099Srwatson// restored to previous value upon leaving scope 139101099Srwatsonclass FlagSetting { 140101099Srwatson bool val; 141101099Srwatson bool* flag; 142101099Srwatson public: 143101099Srwatson FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } 144101099Srwatson ~FlagSetting() { *flag = val; } 145101099Srwatson}; 146101099Srwatson 147101099Srwatson 148101099Srwatsonclass CounterSetting { 149101099Srwatson intx* counter; 150101099Srwatson public: 151101099Srwatson CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } 152101099Srwatson ~CounterSetting() { (*counter)--; } 153101099Srwatson}; 154101099Srwatson 155101099Srwatson 156101099Srwatsonclass IntFlagSetting { 157101099Srwatson intx val; 158101099Srwatson intx* flag; 159101099Srwatson public: 160101099Srwatson IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; } 161101099Srwatson ~IntFlagSetting() { *flag = val; } 162101099Srwatson}; 163101099Srwatson 164101099Srwatson 165101099Srwatsonclass DoubleFlagSetting { 166101099Srwatson double val; 167101099Srwatson double* flag; 168101099Srwatson public: 169101099Srwatson DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } 170101099Srwatson ~DoubleFlagSetting() { *flag = val; } 171101099Srwatson}; 172101099Srwatson 173101099Srwatson 174101099Srwatsonclass CommandLineFlags { 175101099Srwatson public: 176101099Srwatson static bool boolAt(char* name, size_t len, bool* value); 177101099Srwatson static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } 178101099Srwatson static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin); 179101099Srwatson static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin) { return boolAtPut(name, strlen(name), value, origin); } 180101099Srwatson 181101099Srwatson static bool intxAt(char* name, size_t len, intx* value); 182101099Srwatson static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } 183101099Srwatson static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin); 184101099Srwatson static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin) { return intxAtPut(name, strlen(name), value, origin); } 185101099Srwatson 186101099Srwatson static bool uintxAt(char* name, size_t len, uintx* value); 187101099Srwatson static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } 188101099Srwatson static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin); 189101099Srwatson static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); } 190101099Srwatson 191101099Srwatson static bool doubleAt(char* name, size_t len, double* value); 192101099Srwatson static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } 193101099Srwatson static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin); 194101099Srwatson static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); } 195101099Srwatson 196101099Srwatson static bool ccstrAt(char* name, size_t len, ccstr* value); 197101099Srwatson static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } 198101099Srwatson static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin); 199101099Srwatson static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); } 200101099Srwatson 201101099Srwatson // Returns false if name is not a command line flag. 202101099Srwatson static bool wasSetOnCmdline(const char* name, bool* value); 203101099Srwatson static void printSetFlags(); 204106212Srwatson 205101099Srwatson static void printFlags() PRODUCT_RETURN; 206101099Srwatson 207101099Srwatson static void verify() PRODUCT_RETURN; 208101099Srwatson}; 209101099Srwatson 210101099Srwatson// use this for flags that are true by default in the debug version but 211101099Srwatson// false in the optimized version, and vice versa 212101099Srwatson#ifdef ASSERT 213101099Srwatson#define trueInDebug true 214101099Srwatson#define falseInDebug false 215101099Srwatson#else 216101099Srwatson#define trueInDebug false 217101099Srwatson#define falseInDebug true 218101099Srwatson#endif 219101099Srwatson 220101099Srwatson// use this for flags that are true per default in the product build 221101099Srwatson// but false in development builds, and vice versa 222101099Srwatson#ifdef PRODUCT 223101099Srwatson#define trueInProduct true 224101099Srwatson#define falseInProduct false 225101099Srwatson#else 226101099Srwatson#define trueInProduct false 227101099Srwatson#define falseInProduct true 228101099Srwatson#endif 229101099Srwatson 230101099Srwatson// use this for flags that are true per default in the tiered build 231101099Srwatson// but false in non-tiered builds, and vice versa 232101099Srwatson#ifdef TIERED 233101099Srwatson#define trueInTiered true 234101099Srwatson#define falseInTiered false 235101099Srwatson#else 236101099Srwatson#define trueInTiered false 237101099Srwatson#define falseInTiered true 238101099Srwatson#endif 239101099Srwatson 240101099Srwatson 241101099Srwatson// develop flags are settable / visible only during development and are constant in the PRODUCT version 242101099Srwatson// product flags are always settable / visible 243101099Srwatson// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version 244101099Srwatson 245101099Srwatson// A flag must be declared with one of the following types: 246101099Srwatson// bool, intx, uintx, ccstr. 247101099Srwatson// The type "ccstr" is an alias for "const char*" and is used 248101099Srwatson// only in this file, because the macrology requires single-token type names. 249101099Srwatson 250101099Srwatson// Note: Diagnostic options not meant for VM tuning or for product modes. 251101099Srwatson// They are to be used for VM quality assurance or field diagnosis 252101099Srwatson// of VM bugs. They are hidden so that users will not be encouraged to 253101099Srwatson// try them as if they were VM ordinary execution options. However, they 254101099Srwatson// are available in the product version of the VM. Under instruction 255101099Srwatson// from support engineers, VM customers can turn them on to collect 256101099Srwatson// diagnostic information about VM problems. To use a VM diagnostic 257101099Srwatson// option, you must first specify +UnlockDiagnosticVMOptions. 258101099Srwatson// (This master switch also affects the behavior of -Xprintflags.) 259101099Srwatson 260101099Srwatson// manageable flags are writeable external product flags. 261101099Srwatson// They are dynamically writeable through the JDK management interface 262101099Srwatson// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. 263101099Srwatson// These flags are external exported interface (see CCC). The list of 264101099Srwatson// manageable flags can be queried programmatically through the management 265101099Srwatson// interface. 266101099Srwatson// 267101099Srwatson// A flag can be made as "manageable" only if 268101099Srwatson// - the flag is defined in a CCC as an external exported interface. 269101099Srwatson// - the VM implementation supports dynamic setting of the flag. 270101099Srwatson// This implies that the VM must *always* query the flag variable 271101099Srwatson// and not reuse state related to the flag state at any given time. 272101099Srwatson// - you want the flag to be queried programmatically by the customers. 273101099Srwatson// 274106212Srwatson// product_rw flags are writeable internal product flags. 275101099Srwatson// They are like "manageable" flags but for internal/private use. 276101099Srwatson// The list of product_rw flags are internal/private flags which 277101099Srwatson// may be changed/removed in a future release. It can be set 278101099Srwatson// through the management interface to get/set value 279101099Srwatson// when the name of flag is supplied. 280101099Srwatson// 281101099Srwatson// A flag can be made as "product_rw" only if 282101099Srwatson// - the VM implementation supports dynamic setting of the flag. 283101099Srwatson// This implies that the VM must *always* query the flag variable 284101099Srwatson// and not reuse state related to the flag state at any given time. 285101099Srwatson// 286101099Srwatson// Note that when there is a need to support develop flags to be writeable, 287101099Srwatson// it can be done in the same way as product_rw. 288101099Srwatson 289101099Srwatson#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct, manageable, product_rw) \ 290101099Srwatson \ 291101099Srwatson /* UseMembar is theoretically a temp flag used for memory barrier \ 292101099Srwatson * removal testing. It was supposed to be removed before FCS but has \ 293106212Srwatson * been re-added (see 6401008) */ \ 294101099Srwatson product(bool, UseMembar, false, \ 295101099Srwatson "(Unstable) Issues membars on thread state transitions") \ 296101099Srwatson \ 297101099Srwatson product(bool, PrintCommandLineFlags, false, \ 298101099Srwatson "Prints flags that appeared on the command line") \ 299101099Srwatson \ 300101099Srwatson diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ 301101099Srwatson "Enable processing of flags relating to field diagnostics") \ 302101099Srwatson \ 303101099Srwatson product(bool, JavaMonitorsInStackTrace, true, \ 304106212Srwatson "Print info. about Java monitor locks when the stacks are dumped")\ 305101099Srwatson \ 306101099Srwatson product_pd(bool, UseLargePages, \ 307101099Srwatson "Use large page memory") \ 308101099Srwatson \ 309101099Srwatson develop(bool, TracePageSizes, false, \ 310101099Srwatson "Trace page size selection and usage.") \ 311101099Srwatson \ 312101099Srwatson product(bool, UseNUMA, false, \ 313101099Srwatson "Use NUMA if available") \ 314101099Srwatson \ 315101099Srwatson product(intx, NUMAChunkResizeWeight, 20, \ 316101099Srwatson "Percentage (0-100) used to weight the current sample when " \ 317101099Srwatson "computing exponentially decaying average for " \ 318101099Srwatson "AdaptiveNUMAChunkSizing") \ 319101099Srwatson \ 320101099Srwatson product(intx, NUMASpaceResizeRate, 1*G, \ 321101099Srwatson "Do not reallocate more that this amount per collection") \ 322101099Srwatson \ 323101099Srwatson product(bool, UseAdaptiveNUMAChunkSizing, true, \ 324101099Srwatson "Enable adaptive chunk sizing for NUMA") \ 325101099Srwatson \ 326101099Srwatson product(bool, NUMAStats, false, \ 327101099Srwatson "Print NUMA stats in detailed heap information") \ 328101099Srwatson \ 329101099Srwatson product(intx, NUMAPageScanRate, 256, \ 330101099Srwatson "Maximum number of pages to include in the page scan procedure") \ 331101099Srwatson \ 332101099Srwatson product_pd(bool, NeedsDeoptSuspend, \ 333101099Srwatson "True for register window machines (sparc/ia64)") \ 334101099Srwatson \ 335101099Srwatson product(intx, UseSSE, 99, \ 336101099Srwatson "Highest supported SSE instructions set on x86/x64") \ 337101099Srwatson \ 338101099Srwatson product(uintx, LargePageSizeInBytes, 0, \ 339101099Srwatson "Large page size (0 to let VM choose the page size") \ 340101099Srwatson \ 341101099Srwatson product(uintx, LargePageHeapSizeThreshold, 128*M, \ 342101099Srwatson "Use large pages if max heap is at least this big") \ 343101099Srwatson \ 344101099Srwatson product(bool, ForceTimeHighResolution, false, \ 345101099Srwatson "Using high time resolution(For Win32 only)") \ 346101099Srwatson \ 347101099Srwatson develop(bool, TraceItables, false, \ 348101099Srwatson "Trace initialization and use of itables") \ 349101099Srwatson \ 350101099Srwatson develop(bool, TracePcPatching, false, \ 351101099Srwatson "Trace usage of frame::patch_pc") \ 352101099Srwatson \ 353101099Srwatson develop(bool, TraceJumps, false, \ 354101099Srwatson "Trace assembly jumps in thread ring buffer") \ 355101099Srwatson \ 356101099Srwatson develop(bool, TraceRelocator, false, \ 357101099Srwatson "Trace the bytecode relocator") \ 358101099Srwatson \ 359101099Srwatson develop(bool, TraceLongCompiles, false, \ 360101099Srwatson "Print out every time compilation is longer than " \ 361101099Srwatson "a given threashold") \ 362101099Srwatson \ 363101099Srwatson develop(bool, SafepointALot, false, \ 364101099Srwatson "Generates a lot of safepoints. Works with " \ 365101099Srwatson "GuaranteedSafepointInterval") \ 366101099Srwatson \ 367101099Srwatson product_pd(bool, BackgroundCompilation, \ 368101099Srwatson "A thread requesting compilation is not blocked during " \ 369101099Srwatson "compilation") \ 370101099Srwatson \ 371101099Srwatson product(bool, PrintVMQWaitTime, false, \ 372101099Srwatson "Prints out the waiting time in VM operation queue") \ 373101099Srwatson \ 374101099Srwatson develop(bool, BailoutToInterpreterForThrows, false, \ 375101099Srwatson "Compiled methods which throws/catches exceptions will be " \ 376101099Srwatson "deopt and intp.") \ 377101099Srwatson \ 378101099Srwatson develop(bool, NoYieldsInMicrolock, false, \ 379101099Srwatson "Disable yields in microlock") \ 380101099Srwatson \ 381101099Srwatson develop(bool, TraceOopMapGeneration, false, \ 382101099Srwatson "Shows oopmap generation") \ 383101099Srwatson \ 384101099Srwatson product(bool, MethodFlushing, true, \ 385101099Srwatson "Reclamation of zombie and not-entrant methods") \ 386101099Srwatson \ 387101099Srwatson develop(bool, VerifyStack, false, \ 388101099Srwatson "Verify stack of each thread when it is entering a runtime call") \ 389101099Srwatson \ 390101099Srwatson develop(bool, ForceUnreachable, false, \ 391101099Srwatson "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \ 392101099Srwatson \ 393101099Srwatson notproduct(bool, StressDerivedPointers, false, \ 394101099Srwatson "Force scavenge when a derived pointers is detected on stack " \ 395101099Srwatson "after rtm call") \ 396101099Srwatson \ 397106648Srwatson develop(bool, TraceDerivedPointers, false, \ 398106648Srwatson "Trace traversal of derived pointers on stack") \ 399101099Srwatson \ 400101099Srwatson notproduct(bool, TraceCodeBlobStacks, false, \ 401101099Srwatson "Trace stack-walk of codeblobs") \ 402101099Srwatson \ 403101099Srwatson product(bool, PrintJNIResolving, false, \ 404101099Srwatson "Used to implement -v:jni") \ 405101099Srwatson \ 406101099Srwatson notproduct(bool, PrintRewrites, false, \ 407101099Srwatson "Print methods that are being rewritten") \ 408101099Srwatson \ 409101099Srwatson product(bool, UseInlineCaches, true, \ 410101099Srwatson "Use Inline Caches for virtual calls ") \ 411101099Srwatson \ 412101099Srwatson develop(bool, InlineArrayCopy, true, \ 413101099Srwatson "inline arraycopy native that is known to be part of " \ 414101099Srwatson "base library DLL") \ 415101099Srwatson \ 416101099Srwatson develop(bool, InlineObjectHash, true, \ 417101099Srwatson "inline Object::hashCode() native that is known to be part " \ 418101099Srwatson "of base library DLL") \ 419101099Srwatson \ 420101099Srwatson develop(bool, InlineObjectCopy, true, \ 421101099Srwatson "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ 422101099Srwatson \ 423101099Srwatson develop(bool, InlineNatives, true, \ 424101099Srwatson "inline natives that are known to be part of base library DLL") \ 425101099Srwatson \ 426101099Srwatson develop(bool, InlineMathNatives, true, \ 427101099Srwatson "inline SinD, CosD, etc.") \ 428101099Srwatson \ 429101099Srwatson develop(bool, InlineClassNatives, true, \ 430101099Srwatson "inline Class.isInstance, etc") \ 431101099Srwatson \ 432101099Srwatson develop(bool, InlineAtomicLong, true, \ 433101099Srwatson "inline sun.misc.AtomicLong") \ 434101099Srwatson \ 435101099Srwatson develop(bool, InlineThreadNatives, true, \ 436101099Srwatson "inline Thread.currentThread, etc") \ 437101099Srwatson \ 438101099Srwatson develop(bool, InlineReflectionGetCallerClass, true, \ 439101099Srwatson "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ 440101099Srwatson "of base library DLL") \ 441101099Srwatson \ 442101099Srwatson develop(bool, InlineUnsafeOps, true, \ 443101099Srwatson "inline memory ops (native methods) from sun.misc.Unsafe") \ 444101099Srwatson \ 445101099Srwatson develop(bool, ConvertCmpD2CmpF, true, \ 446104530Srwatson "Convert cmpD to cmpF when one input is constant in float range") \ 447104530Srwatson \ 448104530Srwatson develop(bool, ConvertFloat2IntClipping, true, \ 449104530Srwatson "Convert float2int clipping idiom to integer clipping") \ 450104530Srwatson \ 451104530Srwatson develop(bool, SpecialStringCompareTo, true, \ 452104530Srwatson "special version of string compareTo") \ 453104530Srwatson \ 454104530Srwatson develop(bool, SpecialStringIndexOf, true, \ 455104530Srwatson "special version of string indexOf") \ 456104530Srwatson \ 457104530Srwatson develop(bool, TraceCallFixup, false, \ 458104530Srwatson "traces all call fixups") \ 459104530Srwatson \ 460106214Srwatson develop(bool, DeoptimizeALot, false, \ 461106214Srwatson "deoptimize at every exit from the runtime system") \ 462104530Srwatson \ 463104530Srwatson develop(ccstrlist, DeoptimizeOnlyAt, "", \ 464104530Srwatson "a comma separated list of bcis to deoptimize at") \ 465104530Srwatson \ 466104530Srwatson product(bool, DeoptimizeRandom, false, \ 467104530Srwatson "deoptimize random frames on random exit from the runtime system")\ 468104530Srwatson \ 469104530Srwatson notproduct(bool, ZombieALot, false, \ 470104530Srwatson "creates zombies (non-entrant) at exit from the runt. system") \ 471104530Srwatson \ 472104530Srwatson notproduct(bool, WalkStackALot, false, \ 473101099Srwatson "trace stack (no print) at every exit from the runtime system") \ 474101099Srwatson \ 475101099Srwatson develop(bool, Debugging, false, \ 476101099Srwatson "set when executing debug methods in debug.ccp " \ 477101099Srwatson "(to prevent triggering assertions)") \ 478101099Srwatson \ 479101099Srwatson notproduct(bool, StrictSafepointChecks, trueInDebug, \ 480101099Srwatson "Enable strict checks that safepoints cannot happen for threads " \ 481101099Srwatson "that used No_Safepoint_Verifier") \ 482101099Srwatson \ 483101099Srwatson notproduct(bool, VerifyLastFrame, false, \ 484101099Srwatson "Verify oops on last frame on entry to VM") \ 485101099Srwatson \ 486101099Srwatson develop(bool, TraceHandleAllocation, false, \ 487101099Srwatson "Prints out warnings when suspicious many handles are allocated") \ 488101099Srwatson \ 489101099Srwatson product(bool, UseCompilerSafepoints, true, \ 490106212Srwatson "Stop at safepoints in compiled code") \ 491101099Srwatson \ 492101099Srwatson product(bool, UseSplitVerifier, true, \ 493101099Srwatson "use split verifier with StackMapTable attributes") \ 494101099Srwatson \ 495101099Srwatson product(bool, FailOverToOldVerifier, true, \ 496101099Srwatson "fail over to old verifier when split verifier fails") \ 497101099Srwatson \ 498101099Srwatson develop(bool, ShowSafepointMsgs, false, \ 499101099Srwatson "Show msg. about safepoint synch.") \ 500101099Srwatson \ 501101099Srwatson product(bool, SafepointTimeout, false, \ 502101099Srwatson "Time out and warn or fail after SafepointTimeoutDelay " \ 503101099Srwatson "milliseconds if failed to reach safepoint") \ 504101099Srwatson \ 505101099Srwatson develop(bool, DieOnSafepointTimeout, false, \ 506101099Srwatson "Die upon failure to reach safepoint (see SafepointTimeout)") \ 507101099Srwatson \ 508101099Srwatson /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ 509101099Srwatson /* typically, at most a few retries are needed */ \ 510101099Srwatson product(intx, SuspendRetryCount, 50, \ 511101099Srwatson "Maximum retry count for an external suspend request") \ 512101099Srwatson \ 513101099Srwatson product(intx, SuspendRetryDelay, 5, \ 514101099Srwatson "Milliseconds to delay per retry (* current_retry_count)") \ 515101099Srwatson \ 516101099Srwatson product(bool, AssertOnSuspendWaitFailure, false, \ 517101099Srwatson "Assert/Guarantee on external suspend wait failure") \ 518101099Srwatson \ 519101099Srwatson product(bool, TraceSuspendWaitFailures, false, \ 520101099Srwatson "Trace external suspend wait failures") \ 521101099Srwatson \ 522101099Srwatson product(bool, MaxFDLimit, true, \ 523101099Srwatson "Bump the number of file descriptors to max in solaris.") \ 524101099Srwatson \ 525101099Srwatson notproduct(bool, LogEvents, trueInDebug, \ 526101099Srwatson "Enable Event log") \ 527101099Srwatson \ 528101099Srwatson product(bool, BytecodeVerificationRemote, true, \ 529101099Srwatson "Enables the Java bytecode verifier for remote classes") \ 530101099Srwatson \ 531101099Srwatson product(bool, BytecodeVerificationLocal, false, \ 532101099Srwatson "Enables the Java bytecode verifier for local classes") \ 533101099Srwatson \ 534101099Srwatson develop(bool, ForceFloatExceptions, trueInDebug, \ 535101099Srwatson "Force exceptions on FP stack under/overflow") \ 536101099Srwatson \ 537101099Srwatson develop(bool, SoftMatchFailure, trueInProduct, \ 538101099Srwatson "If the DFA fails to match a node, print a message and bail out") \ 539101099Srwatson \ 540101099Srwatson develop(bool, VerifyStackAtCalls, false, \ 541101099Srwatson "Verify that the stack pointer is unchanged after calls") \ 542101099Srwatson \ 543101099Srwatson develop(bool, TraceJavaAssertions, false, \ 544101099Srwatson "Trace java language assertions") \ 545101099Srwatson \ 546101099Srwatson notproduct(bool, CheckAssertionStatusDirectives, false, \ 547101099Srwatson "temporary - see javaClasses.cpp") \ 548101099Srwatson \ 549101099Srwatson notproduct(bool, PrintMallocFree, false, \ 550101099Srwatson "Trace calls to C heap malloc/free allocation") \ 551101099Srwatson \ 552101099Srwatson notproduct(bool, PrintOopAddress, false, \ 553101099Srwatson "Always print the location of the oop") \ 554101099Srwatson \ 555101099Srwatson notproduct(bool, VerifyCodeCacheOften, false, \ 556101099Srwatson "Verify compiled-code cache often") \ 557101099Srwatson \ 558101099Srwatson develop(bool, ZapDeadCompiledLocals, false, \ 559101099Srwatson "Zap dead locals in compiler frames") \ 560101099Srwatson \ 561101099Srwatson notproduct(bool, ZapDeadLocalsOld, false, \ 562101099Srwatson "Zap dead locals (old version, zaps all frames when " \ 563101099Srwatson "entering the VM") \ 564101099Srwatson \ 565101099Srwatson notproduct(bool, CheckOopishValues, false, \ 566101099Srwatson "Warn if value contains oop ( requires ZapDeadLocals)") \ 567101099Srwatson \ 568101099Srwatson develop(bool, UseMallocOnly, false, \ 569101099Srwatson "use only malloc/free for allocation (no resource area/arena)") \ 570101099Srwatson \ 571101099Srwatson develop(bool, PrintMalloc, false, \ 572101099Srwatson "print all malloc/free calls") \ 573101099Srwatson \ 574101099Srwatson develop(bool, ZapResourceArea, trueInDebug, \ 575101099Srwatson "Zap freed resource/arena space with 0xABABABAB") \ 576101099Srwatson \ 577101099Srwatson notproduct(bool, ZapVMHandleArea, trueInDebug, \ 578101099Srwatson "Zap freed VM handle space with 0xBCBCBCBC") \ 579101099Srwatson \ 580101099Srwatson develop(bool, ZapJNIHandleArea, trueInDebug, \ 581101099Srwatson "Zap freed JNI handle space with 0xFEFEFEFE") \ 582101099Srwatson \ 583101099Srwatson develop(bool, ZapUnusedHeapArea, false, \ 584101099Srwatson "Zap unused heap space with 0xBAADBABE") \ 585101099Srwatson \ 586101099Srwatson develop(bool, PrintVMMessages, true, \ 587101099Srwatson "Print vm messages on console") \ 588101099Srwatson \ 589101099Srwatson product(bool, PrintGCApplicationConcurrentTime, false, \ 590101099Srwatson "Print the time the application has been running") \ 591101099Srwatson \ 592101099Srwatson product(bool, PrintGCApplicationStoppedTime, false, \ 593101099Srwatson "Print the time the application has been stopped") \ 594101099Srwatson \ 595101099Srwatson develop(bool, Verbose, false, \ 596101099Srwatson "Prints additional debugging information from other modes") \ 597101099Srwatson \ 598101099Srwatson develop(bool, PrintMiscellaneous, false, \ 599101099Srwatson "Prints uncategorized debugging information (requires +Verbose)") \ 600101099Srwatson \ 601101099Srwatson develop(bool, WizardMode, false, \ 602101099Srwatson "Prints much more debugging information") \ 603101099Srwatson \ 604101099Srwatson product(bool, ShowMessageBoxOnError, false, \ 605101099Srwatson "Keep process alive on VM fatal error") \ 606101099Srwatson \ 607101099Srwatson product_pd(bool, UseOSErrorReporting, \ 608101099Srwatson "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ 609101099Srwatson \ 610101099Srwatson product(bool, SuppressFatalErrorMessage, false, \ 611101099Srwatson "Do NO Fatal Error report [Avoid deadlock]") \ 612101099Srwatson \ 613101099Srwatson product(ccstrlist, OnError, "", \ 614101099Srwatson "Run user-defined commands on fatal error; see VMError.cpp " \ 615101099Srwatson "for examples") \ 616101099Srwatson \ 617101099Srwatson product(ccstrlist, OnOutOfMemoryError, "", \ 618101099Srwatson "Run user-defined commands on first java.lang.OutOfMemoryError") \ 619101099Srwatson \ 620101099Srwatson manageable(bool, HeapDumpOnOutOfMemoryError, false, \ 621101099Srwatson "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ 622101099Srwatson \ 623101099Srwatson manageable(ccstr, HeapDumpPath, NULL, \ 624101099Srwatson "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ 625101099Srwatson "directory) of the dump file (defaults to java_pid<pid>.hprof" \ 626101099Srwatson "in the working directory)") \ 627101099Srwatson \ 628101099Srwatson develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ 629101099Srwatson "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ 630101099Srwatson "when the heap usage is larger than this") \ 631101099Srwatson \ 632101099Srwatson develop(uintx, HeapDumpSegmentSize, 1*G, \ 633101099Srwatson "Approximate segment size when generating a segmented heap dump") \ 634101099Srwatson \ 635101099Srwatson develop(bool, BreakAtWarning, false, \ 636101099Srwatson "Execute breakpoint upon encountering VM warning") \ 637101099Srwatson \ 638101099Srwatson product_pd(bool, UseVectoredExceptions, \ 639101099Srwatson "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \ 640101099Srwatson \ 641101099Srwatson develop(bool, TraceVMOperation, false, \ 642101099Srwatson "Trace vm operations") \ 643101099Srwatson \ 644101099Srwatson develop(bool, UseFakeTimers, false, \ 645101099Srwatson "Tells whether the VM should use system time or a fake timer") \ 646101099Srwatson \ 647101099Srwatson diagnostic(bool, LogCompilation, false, \ 648101099Srwatson "Log compilation activity in detail to hotspot.log or LogFile") \ 649101099Srwatson \ 650101099Srwatson product(bool, PrintCompilation, false, \ 651101099Srwatson "Print compilations") \ 652101099Srwatson \ 653101099Srwatson diagnostic(bool, TraceNMethodInstalls, false, \ 654101099Srwatson "Trace nmethod intallation") \ 655101099Srwatson \ 656101099Srwatson diagnostic(bool, TraceOSRBreakpoint, false, \ 657101099Srwatson "Trace OSR Breakpoint ") \ 658101099Srwatson \ 659101099Srwatson diagnostic(bool, TraceCompileTriggered, false, \ 660101099Srwatson "Trace compile triggered") \ 661101099Srwatson \ 662101099Srwatson diagnostic(bool, TraceTriggers, false, \ 663101099Srwatson "Trace triggers") \ 664101099Srwatson \ 665101099Srwatson product(bool, AlwaysRestoreFPU, false, \ 666101099Srwatson "Restore the FPU control word after every JNI call (expensive)") \ 667101099Srwatson \ 668101099Srwatson notproduct(bool, PrintCompilation2, false, \ 669101099Srwatson "Print additional statistics per compilation") \ 670101099Srwatson \ 671101099Srwatson notproduct(bool, PrintAdapterHandlers, false, \ 672101099Srwatson "Print code generated for i2c/c2i adapters") \ 673101099Srwatson \ 674101099Srwatson develop(bool, PrintAssembly, false, \ 675101099Srwatson "Print assembly code") \ 676101099Srwatson \ 677101099Srwatson develop(bool, PrintNMethods, false, \ 678101099Srwatson "Print assembly code for nmethods when generated") \ 679101099Srwatson \ 680101099Srwatson develop(bool, PrintNativeNMethods, false, \ 681101099Srwatson "Print assembly code for native nmethods when generated") \ 682101099Srwatson \ 683101099Srwatson develop(bool, PrintDebugInfo, false, \ 684101099Srwatson "Print debug information for all nmethods when generated") \ 685101099Srwatson \ 686101099Srwatson develop(bool, PrintRelocations, false, \ 687101099Srwatson "Print relocation information for all nmethods when generated") \ 688101099Srwatson \ 689101099Srwatson develop(bool, PrintDependencies, false, \ 690101099Srwatson "Print dependency information for all nmethods when generated") \ 691101099Srwatson \ 692101099Srwatson develop(bool, PrintExceptionHandlers, false, \ 693101099Srwatson "Print exception handler tables for all nmethods when generated") \ 694101099Srwatson \ 695101099Srwatson develop(bool, InterceptOSException, false, \ 696101099Srwatson "Starts debugger when an implicit OS (e.g., NULL) " \ 697101099Srwatson "exception happens") \ 698101099Srwatson \ 699101099Srwatson notproduct(bool, PrintCodeCache, false, \ 700101099Srwatson "Print the compiled_code cache when exiting") \ 701101099Srwatson \ 702101099Srwatson develop(bool, PrintCodeCache2, false, \ 703102129Srwatson "Print detailed info on the compiled_code cache when exiting") \ 704102129Srwatson \ 705101099Srwatson develop(bool, PrintStubCode, false, \ 706101099Srwatson "Print generated stub code") \ 707101099Srwatson \ 708101099Srwatson product(bool, StackTraceInThrowable, true, \ 709101099Srwatson "Collect backtrace in throwable when exception happens") \ 710101099Srwatson \ 711101099Srwatson product(bool, OmitStackTraceInFastThrow, true, \ 712102129Srwatson "Omit backtraces for some 'hot' exceptions in optimized code") \ 713101099Srwatson \ 714101099Srwatson product(bool, ProfilerPrintByteCodeStatistics, false, \ 715102129Srwatson "Prints byte code statictics when dumping profiler output") \ 716102129Srwatson \ 717101099Srwatson product(bool, ProfilerRecordPC, false, \ 718101099Srwatson "Collects tick for each 16 byte interval of compiled code") \ 719106217Srwatson \ 720101099Srwatson product(bool, ProfileVM, false, \ 721106217Srwatson "Profiles ticks that fall within VM (either in the VM Thread " \ 722106217Srwatson "or VM code called through stubs)") \ 723106217Srwatson \ 724106217Srwatson product(bool, ProfileIntervals, false, \ 725106217Srwatson "Prints profiles for each interval (see ProfileIntervalsTicks)") \ 726106217Srwatson \ 727106217Srwatson notproduct(bool, ProfilerCheckIntervals, false, \ 728106217Srwatson "Collect and print info on spacing of profiler ticks") \ 729106217Srwatson \ 730106217Srwatson develop(bool, PrintJVMWarnings, false, \ 731106217Srwatson "Prints warnings for unimplemented JVM functions") \ 732106217Srwatson \ 733106217Srwatson notproduct(uintx, WarnOnStalledSpinLock, 0, \ 734106217Srwatson "Prints warnings for stalled SpinLocks") \ 735106217Srwatson \ 736106217Srwatson develop(bool, InitializeJavaLangSystem, true, \ 737106217Srwatson "Initialize java.lang.System - turn off for individual " \ 738106217Srwatson "method debugging") \ 739106217Srwatson \ 740106217Srwatson develop(bool, InitializeJavaLangString, true, \ 741106217Srwatson "Initialize java.lang.String - turn off for individual " \ 742106217Srwatson "method debugging") \ 743106217Srwatson \ 744106217Srwatson develop(bool, InitializeJavaLangExceptionsErrors, true, \ 745106217Srwatson "Initialize various error and exception classes - turn off for " \ 746106217Srwatson "individual method debugging") \ 747101099Srwatson \ 748101099Srwatson product(bool, RegisterFinalizersAtInit, true, \ 749106217Srwatson "Register finalizable objects at end of Object.<init> or " \ 750101099Srwatson "after allocation.") \ 751 \ 752 develop(bool, RegisterReferences, true, \ 753 "Tells whether the VM should register soft/weak/final/phantom " \ 754 "references") \ 755 \ 756 develop(bool, IgnoreRewrites, false, \ 757 "Supress rewrites of bytecodes in the oopmap generator. " \ 758 "This is unsafe!") \ 759 \ 760 develop(bool, PrintCodeCacheExtension, false, \ 761 "Print extension of code cache") \ 762 \ 763 develop(bool, UsePrivilegedStack, true, \ 764 "Enable the security JVM functions") \ 765 \ 766 develop(bool, IEEEPrecision, true, \ 767 "Enables IEEE precision (for INTEL only)") \ 768 \ 769 develop(bool, ProtectionDomainVerification, true, \ 770 "Verifies protection domain before resolution in system " \ 771 "dictionary") \ 772 \ 773 product(bool, ClassUnloading, true, \ 774 "Do unloading of classes") \ 775 \ 776 develop(bool, DisableStartThread, false, \ 777 "Disable starting of additional Java threads " \ 778 "(for debugging only)") \ 779 \ 780 develop(bool, MemProfiling, false, \ 781 "Write memory usage profiling to log file") \ 782 \ 783 notproduct(bool, PrintSystemDictionaryAtExit, false, \ 784 "Prints the system dictionary at exit") \ 785 \ 786 diagnostic(bool, UnsyncloadClass, false, \ 787 "Unstable: VM calls loadClass unsynchronized. Custom classloader "\ 788 "must call VM synchronized for findClass & defineClass") \ 789 \ 790 product_pd(bool, DontYieldALot, \ 791 "Throw away obvious excess yield calls (for SOLARIS only)") \ 792 \ 793 product_pd(bool, ConvertSleepToYield, \ 794 "Converts sleep(0) to thread yield " \ 795 "(may be off for SOLARIS to improve GUI)") \ 796 \ 797 product(bool, ConvertYieldToSleep, false, \ 798 "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ 799 "behavior (SOLARIS only)") \ 800 \ 801 product(bool, UseBoundThreads, true, \ 802 "Bind user level threads to kernel threads (for SOLARIS only)") \ 803 \ 804 develop(bool, UseDetachedThreads, true, \ 805 "Use detached threads that are recycled upon termination " \ 806 "(for SOLARIS only)") \ 807 \ 808 product(bool, UseLWPSynchronization, true, \ 809 "Use LWP-based instead of libthread-based synchronization " \ 810 "(SPARC only)") \ 811 \ 812 product(ccstr, SyncKnobs, "", \ 813 "(Unstable) Various monitor synchronization tunables") \ 814 \ 815 product(intx, EmitSync, 0, \ 816 "(Unsafe,Unstable) " \ 817 " Controls emission of inline sync fast-path code") \ 818 \ 819 product(intx, AlwaysInflate, 0, "(Unstable) Force inflation") \ 820 \ 821 product(intx, Atomics, 0, \ 822 "(Unsafe,Unstable) Diagnostic - Controls emission of atomics") \ 823 \ 824 product(intx, FenceInstruction, 0, \ 825 "(Unsafe,Unstable) Experimental") \ 826 \ 827 product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ 828 \ 829 product(intx, SyncVerbose, 0, "(Unstable)" ) \ 830 \ 831 product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ 832 \ 833 product(intx, hashCode, 0, \ 834 "(Unstable) select hashCode generation algorithm" ) \ 835 \ 836 product(intx, WorkAroundNPTLTimedWaitHang, 1, \ 837 "(Unstable, Linux-specific)" \ 838 " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ 839 \ 840 product(bool, FilterSpuriousWakeups , true, \ 841 "Prevent spurious or premature wakeups from object.wait" \ 842 "(Solaris only)") \ 843 \ 844 product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ 845 product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ 846 product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ 847 \ 848 develop(bool, UsePthreads, false, \ 849 "Use pthread-based instead of libthread-based synchronization " \ 850 "(SPARC only)") \ 851 \ 852 product(bool, AdjustConcurrency, false, \ 853 "call thr_setconcurrency at thread create time to avoid " \ 854 "LWP starvation on MP systems (For Solaris Only)") \ 855 \ 856 develop(bool, UpdateHotSpotCompilerFileOnError, true, \ 857 "Should the system attempt to update the compiler file when " \ 858 "an error occurs?") \ 859 \ 860 product(bool, ReduceSignalUsage, false, \ 861 "Reduce the use of OS signals in Java and/or the VM") \ 862 \ 863 notproduct(bool, ValidateMarkSweep, false, \ 864 "Do extra validation during MarkSweep collection") \ 865 \ 866 notproduct(bool, RecordMarkSweepCompaction, false, \ 867 "Enable GC-to-GC recording and querying of compaction during " \ 868 "MarkSweep") \ 869 \ 870 develop_pd(bool, ShareVtableStubs, \ 871 "Share vtable stubs (smaller code but worse branch prediction") \ 872 \ 873 develop(bool, LoadLineNumberTables, true, \ 874 "Tells whether the class file parser loads line number tables") \ 875 \ 876 develop(bool, LoadLocalVariableTables, true, \ 877 "Tells whether the class file parser loads local variable tables")\ 878 \ 879 develop(bool, LoadLocalVariableTypeTables, true, \ 880 "Tells whether the class file parser loads local variable type tables")\ 881 \ 882 product(bool, AllowUserSignalHandlers, false, \ 883 "Do not complain if the application installs signal handlers " \ 884 "(Solaris & Linux only)") \ 885 \ 886 product(bool, UseSignalChaining, true, \ 887 "Use signal-chaining to invoke signal handlers installed " \ 888 "by the application (Solaris & Linux only)") \ 889 \ 890 product(bool, UseAltSigs, false, \ 891 "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ 892 "internal signals. (Solaris only)") \ 893 \ 894 product(bool, UseSpinning, false, \ 895 "Use spinning in monitor inflation and before entry") \ 896 \ 897 product(bool, PreSpinYield, false, \ 898 "Yield before inner spinning loop") \ 899 \ 900 product(bool, PostSpinYield, true, \ 901 "Yield after inner spinning loop") \ 902 \ 903 product(bool, AllowJNIEnvProxy, false, \ 904 "Allow JNIEnv proxies for jdbx") \ 905 \ 906 product(bool, JNIDetachReleasesMonitors, true, \ 907 "JNI DetachCurrentThread releases monitors owned by thread") \ 908 \ 909 product(bool, RestoreMXCSROnJNICalls, false, \ 910 "Restore MXCSR when returning from JNI calls") \ 911 \ 912 product(bool, CheckJNICalls, false, \ 913 "Verify all arguments to JNI calls") \ 914 \ 915 product(bool, UseFastJNIAccessors, true, \ 916 "Use optimized versions of Get<Primitive>Field") \ 917 \ 918 product(bool, EagerXrunInit, false, \ 919 "Eagerly initialize -Xrun libraries; allows startup profiling, " \ 920 " but not all -Xrun libraries may support the state of the VM at this time") \ 921 \ 922 product(bool, PreserveAllAnnotations, false, \ 923 "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \ 924 \ 925 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ 926 "Number of OutOfMemoryErrors preallocated with backtrace") \ 927 \ 928 product(bool, LazyBootClassLoader, true, \ 929 "Enable/disable lazy opening of boot class path entries") \ 930 \ 931 diagnostic(bool, UseIncDec, true, \ 932 "Use INC, DEC instructions on x86") \ 933 \ 934 product(bool, UseStoreImmI16, true, \ 935 "Use store immediate 16-bits value instruction on x86") \ 936 \ 937 product(bool, UseAddressNop, false, \ 938 "Use '0F 1F [addr]' NOP instructions on x86 cpus") \ 939 \ 940 product(bool, UseXmmLoadAndClearUpper, true, \ 941 "Load low part of XMM register and clear upper part") \ 942 \ 943 product(bool, UseXmmRegToRegMoveAll, false, \ 944 "Copy all XMM register bits when moving value between registers") \ 945 \ 946 product(intx, FieldsAllocationStyle, 1, \ 947 "0 - type based with oops first, 1 - with oops last") \ 948 \ 949 product(bool, CompactFields, true, \ 950 "Allocate nonstatic fields in gaps between previous fields") \ 951 \ 952 notproduct(bool, PrintCompactFieldsSavings, false, \ 953 "Print how many words were saved with CompactFields") \ 954 \ 955 product(bool, UseBiasedLocking, true, \ 956 "Enable biased locking in JVM") \ 957 \ 958 product(intx, BiasedLockingStartupDelay, 4000, \ 959 "Number of milliseconds to wait before enabling biased locking") \ 960 \ 961 diagnostic(bool, PrintBiasedLockingStatistics, false, \ 962 "Print statistics of biased locking in JVM") \ 963 \ 964 product(intx, BiasedLockingBulkRebiasThreshold, 20, \ 965 "Threshold of number of revocations per type to try to " \ 966 "rebias all objects in the heap of that type") \ 967 \ 968 product(intx, BiasedLockingBulkRevokeThreshold, 40, \ 969 "Threshold of number of revocations per type to permanently " \ 970 "revoke biases of all objects in the heap of that type") \ 971 \ 972 product(intx, BiasedLockingDecayTime, 25000, \ 973 "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ 974 "type after previous bulk rebias") \ 975 \ 976 /* tracing */ \ 977 \ 978 notproduct(bool, TraceRuntimeCalls, false, \ 979 "Trace run-time calls") \ 980 \ 981 develop(bool, TraceJNICalls, false, \ 982 "Trace JNI calls") \ 983 \ 984 notproduct(bool, TraceJVMCalls, false, \ 985 "Trace JVM calls") \ 986 \ 987 product(ccstr, TraceJVMTI, "", \ 988 "Trace flags for JVMTI functions and events") \ 989 \ 990 /* This option can change an EMCP method into an obsolete method. */ \ 991 /* This can affect tests that except specific methods to be EMCP. */ \ 992 /* This option should be used with caution. */ \ 993 product(bool, StressLdcRewrite, false, \ 994 "Force ldc -> ldc_w rewrite during RedefineClasses") \ 995 \ 996 product(intx, TraceRedefineClasses, 0, \ 997 "Trace level for JVMTI RedefineClasses") \ 998 \ 999 /* change to false by default sometime after Mustang */ \ 1000 product(bool, VerifyMergedCPBytecodes, true, \ 1001 "Verify bytecodes after RedefineClasses constant pool merging") \ 1002 \ 1003 develop(bool, TraceJNIHandleAllocation, false, \ 1004 "Trace allocation/deallocation of JNI handle blocks") \ 1005 \ 1006 develop(bool, TraceThreadEvents, false, \ 1007 "Trace all thread events") \ 1008 \ 1009 develop(bool, TraceBytecodes, false, \ 1010 "Trace bytecode execution") \ 1011 \ 1012 develop(bool, TraceClassInitialization, false, \ 1013 "Trace class initialization") \ 1014 \ 1015 develop(bool, TraceExceptions, false, \ 1016 "Trace exceptions") \ 1017 \ 1018 develop(bool, TraceICs, false, \ 1019 "Trace inline cache changes") \ 1020 \ 1021 notproduct(bool, TraceInvocationCounterOverflow, false, \ 1022 "Trace method invocation counter overflow") \ 1023 \ 1024 develop(bool, TraceInlineCacheClearing, false, \ 1025 "Trace clearing of inline caches in nmethods") \ 1026 \ 1027 develop(bool, TraceDependencies, false, \ 1028 "Trace dependencies") \ 1029 \ 1030 develop(bool, VerifyDependencies, trueInDebug, \ 1031 "Exercise and verify the compilation dependency mechanism") \ 1032 \ 1033 develop(bool, TraceNewOopMapGeneration, false, \ 1034 "Trace OopMapGeneration") \ 1035 \ 1036 develop(bool, TraceNewOopMapGenerationDetailed, false, \ 1037 "Trace OopMapGeneration: print detailed cell states") \ 1038 \ 1039 develop(bool, TimeOopMap, false, \ 1040 "Time calls to GenerateOopMap::compute_map() in sum") \ 1041 \ 1042 develop(bool, TimeOopMap2, false, \ 1043 "Time calls to GenerateOopMap::compute_map() individually") \ 1044 \ 1045 develop(bool, TraceMonitorMismatch, false, \ 1046 "Trace monitor matching failures during OopMapGeneration") \ 1047 \ 1048 develop(bool, TraceOopMapRewrites, false, \ 1049 "Trace rewritting of method oops during oop map generation") \ 1050 \ 1051 develop(bool, TraceSafepoint, false, \ 1052 "Trace safepoint operations") \ 1053 \ 1054 develop(bool, TraceICBuffer, false, \ 1055 "Trace usage of IC buffer") \ 1056 \ 1057 develop(bool, TraceCompiledIC, false, \ 1058 "Trace changes of compiled IC") \ 1059 \ 1060 notproduct(bool, TraceZapDeadLocals, false, \ 1061 "Trace zapping dead locals") \ 1062 \ 1063 develop(bool, TraceStartupTime, false, \ 1064 "Trace setup time") \ 1065 \ 1066 develop(bool, TraceHPI, false, \ 1067 "Trace Host Porting Interface (HPI)") \ 1068 \ 1069 product(ccstr, HPILibPath, NULL, \ 1070 "Specify alternate path to HPI library") \ 1071 \ 1072 develop(bool, TraceProtectionDomainVerification, false, \ 1073 "Trace protection domain verifcation") \ 1074 \ 1075 develop(bool, TraceClearedExceptions, false, \ 1076 "Prints when an exception is forcibly cleared") \ 1077 \ 1078 product(bool, TraceClassResolution, false, \ 1079 "Trace all constant pool resolutions (for debugging)") \ 1080 \ 1081 product(bool, TraceBiasedLocking, false, \ 1082 "Trace biased locking in JVM") \ 1083 \ 1084 product(bool, TraceMonitorInflation, false, \ 1085 "Trace monitor inflation in JVM") \ 1086 \ 1087 /* assembler */ \ 1088 product(bool, Use486InstrsOnly, false, \ 1089 "Use 80486 Compliant instruction subset") \ 1090 \ 1091 /* gc */ \ 1092 \ 1093 product(bool, UseSerialGC, false, \ 1094 "Tells whether the VM should use serial garbage collector") \ 1095 \ 1096 product(bool, UseParallelGC, false, \ 1097 "Use the Parallel Scavenge garbage collector") \ 1098 \ 1099 product(bool, UseParallelOldGC, false, \ 1100 "Use the Parallel Old garbage collector") \ 1101 \ 1102 product(bool, UseParallelOldGCCompacting, true, \ 1103 "In the Parallel Old garbage collector use parallel compaction") \ 1104 \ 1105 product(bool, UseParallelDensePrefixUpdate, true, \ 1106 "In the Parallel Old garbage collector use parallel dense" \ 1107 " prefix update") \ 1108 \ 1109 develop(bool, UseParallelOldGCChunkPointerCalc, true, \ 1110 "In the Parallel Old garbage collector use chucks to calculate" \ 1111 " new object locations") \ 1112 \ 1113 product(uintx, HeapMaximumCompactionInterval, 20, \ 1114 "How often should we maximally compact the heap (not allowing " \ 1115 "any dead space)") \ 1116 \ 1117 product(uintx, HeapFirstMaximumCompactionCount, 3, \ 1118 "The collection count for the first maximum compaction") \ 1119 \ 1120 product(bool, UseMaximumCompactionOnSystemGC, true, \ 1121 "In the Parallel Old garbage collector maximum compaction for " \ 1122 "a system GC") \ 1123 \ 1124 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ 1125 "The mean used by the par compact dead wood" \ 1126 "limiter (a number between 0-100).") \ 1127 \ 1128 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ 1129 "The standard deviation used by the par compact dead wood" \ 1130 "limiter (a number between 0-100).") \ 1131 \ 1132 product(bool, UseParallelOldGCDensePrefix, true, \ 1133 "Use a dense prefix with the Parallel Old garbage collector") \ 1134 \ 1135 product(uintx, ParallelGCThreads, 0, \ 1136 "Number of parallel threads parallel gc will use") \ 1137 \ 1138 product(uintx, ParallelCMSThreads, 0, \ 1139 "Max number of threads CMS will use for concurrent work") \ 1140 \ 1141 develop(bool, VerifyParallelOldWithMarkSweep, false, \ 1142 "Use the MarkSweep code to verify phases of Parallel Old") \ 1143 \ 1144 develop(uintx, VerifyParallelOldWithMarkSweepInterval, 1, \ 1145 "Interval at which the MarkSweep code is used to verify " \ 1146 "phases of Parallel Old") \ 1147 \ 1148 develop(bool, ParallelOldMTUnsafeMarkBitMap, false, \ 1149 "Use the Parallel Old MT unsafe in marking the bitmap") \ 1150 \ 1151 develop(bool, ParallelOldMTUnsafeUpdateLiveData, false, \ 1152 "Use the Parallel Old MT unsafe in update of live size") \ 1153 \ 1154 develop(bool, TraceChunkTasksQueuing, false, \ 1155 "Trace the queuing of the chunk tasks") \ 1156 \ 1157 product(uintx, YoungPLABSize, 4096, \ 1158 "Size of young gen promotion labs (in HeapWords)") \ 1159 \ 1160 product(uintx, OldPLABSize, 1024, \ 1161 "Size of old gen promotion labs (in HeapWords)") \ 1162 \ 1163 product(uintx, GCTaskTimeStampEntries, 200, \ 1164 "Number of time stamp entries per gc worker thread") \ 1165 \ 1166 product(bool, AlwaysTenure, false, \ 1167 "Always tenure objects in eden. (ParallelGC only)") \ 1168 \ 1169 product(bool, NeverTenure, false, \ 1170 "Never tenure objects in eden, May tenure on overflow" \ 1171 " (ParallelGC only)") \ 1172 \ 1173 product(bool, ScavengeBeforeFullGC, true, \ 1174 "Scavenge youngest generation before each full GC," \ 1175 " used with UseParallelGC") \ 1176 \ 1177 develop(bool, ScavengeWithObjectsInToSpace, false, \ 1178 "Allow scavenges to occur when to_space contains objects.") \ 1179 \ 1180 product(bool, UseConcMarkSweepGC, false, \ 1181 "Use Concurrent Mark-Sweep GC in the old generation") \ 1182 \ 1183 product(bool, ExplicitGCInvokesConcurrent, false, \ 1184 "A System.gc() request invokes a concurrent collection;" \ 1185 " (effective only when UseConcMarkSweepGC)") \ 1186 \ 1187 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ 1188 "A System.gc() request invokes a concurrent collection and" \ 1189 " also unloads classes during such a concurrent gc cycle " \ 1190 " (effective only when UseConcMarkSweepGC)") \ 1191 \ 1192 develop(bool, UseCMSAdaptiveFreeLists, true, \ 1193 "Use Adaptive Free Lists in the CMS generation") \ 1194 \ 1195 develop(bool, UseAsyncConcMarkSweepGC, true, \ 1196 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ 1197 \ 1198 develop(bool, RotateCMSCollectionTypes, false, \ 1199 "Rotate the CMS collections among concurrent and STW") \ 1200 \ 1201 product(bool, UseCMSBestFit, true, \ 1202 "Use CMS best fit allocation strategy") \ 1203 \ 1204 product(bool, UseCMSCollectionPassing, true, \ 1205 "Use passing of collection from background to foreground") \ 1206 \ 1207 product(bool, UseParNewGC, false, \ 1208 "Use parallel threads in the new generation.") \ 1209 \ 1210 product(bool, ParallelGCVerbose, false, \ 1211 "Verbose output for parallel GC.") \ 1212 \ 1213 product(intx, ParallelGCBufferWastePct, 10, \ 1214 "wasted fraction of parallel allocation buffer.") \ 1215 \ 1216 product(bool, ParallelGCRetainPLAB, true, \ 1217 "Retain parallel allocation buffers across scavenges.") \ 1218 \ 1219 product(intx, TargetPLABWastePct, 10, \ 1220 "target wasted space in last buffer as pct of overall allocation")\ 1221 \ 1222 product(uintx, PLABWeight, 75, \ 1223 "Percentage (0-100) used to weight the current sample when" \ 1224 "computing exponentially decaying average for ResizePLAB.") \ 1225 \ 1226 product(bool, ResizePLAB, true, \ 1227 "Dynamically resize (survivor space) promotion labs") \ 1228 \ 1229 product(bool, PrintPLAB, false, \ 1230 "Print (survivor space) promotion labs sizing decisions") \ 1231 \ 1232 product(intx, ParGCArrayScanChunk, 50, \ 1233 "Scan a subset and push remainder, if array is bigger than this") \ 1234 \ 1235 product(intx, ParGCDesiredObjsFromOverflowList, 20, \ 1236 "The desired number of objects to claim from the overflow list") \ 1237 \ 1238 product(uintx, CMSParPromoteBlocksToClaim, 50, \ 1239 "Number of blocks to attempt to claim when refilling CMS LAB for "\ 1240 "parallel GC.") \ 1241 \ 1242 product(bool, AlwaysPreTouch, false, \ 1243 "It forces all freshly committed pages to be pre-touched.") \ 1244 \ 1245 product(bool, CMSUseOldDefaults, false, \ 1246 "A flag temporarily introduced to allow reverting to some older" \ 1247 "default settings; older as of 6.0 ") \ 1248 \ 1249 product(intx, CMSYoungGenPerWorker, 16*M, \ 1250 "The amount of young gen chosen by default per GC worker " \ 1251 "thread available ") \ 1252 \ 1253 product(bool, CMSIncrementalMode, false, \ 1254 "Whether CMS GC should operate in \"incremental\" mode") \ 1255 \ 1256 product(uintx, CMSIncrementalDutyCycle, 10, \ 1257 "CMS incremental mode duty cycle (a percentage, 0-100). If" \ 1258 "CMSIncrementalPacing is enabled, then this is just the initial" \ 1259 "value") \ 1260 \ 1261 product(bool, CMSIncrementalPacing, true, \ 1262 "Whether the CMS incremental mode duty cycle should be " \ 1263 "automatically adjusted") \ 1264 \ 1265 product(uintx, CMSIncrementalDutyCycleMin, 0, \ 1266 "Lower bound on the duty cycle when CMSIncrementalPacing is" \ 1267 "enabled (a percentage, 0-100).") \ 1268 \ 1269 product(uintx, CMSIncrementalSafetyFactor, 10, \ 1270 "Percentage (0-100) used to add conservatism when computing the" \ 1271 "duty cycle.") \ 1272 \ 1273 product(uintx, CMSIncrementalOffset, 0, \ 1274 "Percentage (0-100) by which the CMS incremental mode duty cycle" \ 1275 "is shifted to the right within the period between young GCs") \ 1276 \ 1277 product(uintx, CMSExpAvgFactor, 25, \ 1278 "Percentage (0-100) used to weight the current sample when" \ 1279 "computing exponential averages for CMS statistics.") \ 1280 \ 1281 product(uintx, CMS_FLSWeight, 50, \ 1282 "Percentage (0-100) used to weight the current sample when" \ 1283 "computing exponentially decating averages for CMS FLS statistics.") \ 1284 \ 1285 product(uintx, CMS_FLSPadding, 2, \ 1286 "The multiple of deviation from mean to use for buffering" \ 1287 "against volatility in free list demand.") \ 1288 \ 1289 product(uintx, FLSCoalescePolicy, 2, \ 1290 "CMS: Aggression level for coalescing, increasing from 0 to 4") \ 1291 \ 1292 product(uintx, CMS_SweepWeight, 50, \ 1293 "Percentage (0-100) used to weight the current sample when" \ 1294 "computing exponentially decaying average for inter-sweep duration.") \ 1295 \ 1296 product(uintx, CMS_SweepPadding, 2, \ 1297 "The multiple of deviation from mean to use for buffering" \ 1298 "against volatility in inter-sweep duration.") \ 1299 \ 1300 product(uintx, CMS_SweepTimerThresholdMillis, 10, \ 1301 "Skip block flux-rate sampling for an epoch unless inter-sweep " \ 1302 " duration exceeds this threhold in milliseconds") \ 1303 \ 1304 develop(bool, CMSTraceIncrementalMode, false, \ 1305 "Trace CMS incremental mode") \ 1306 \ 1307 develop(bool, CMSTraceIncrementalPacing, false, \ 1308 "Trace CMS incremental mode pacing computation") \ 1309 \ 1310 develop(bool, CMSTraceThreadState, false, \ 1311 "Trace the CMS thread state (enable the trace_state() method)") \ 1312 \ 1313 product(bool, CMSClassUnloadingEnabled, false, \ 1314 "Whether class unloading enabled when using CMS GC") \ 1315 \ 1316 product(bool, CMSCompactWhenClearAllSoftRefs, true, \ 1317 "Compact when asked to collect CMS gen with clear_all_soft_refs") \ 1318 \ 1319 product(bool, UseCMSCompactAtFullCollection, true, \ 1320 "Use mark sweep compact at full collections") \ 1321 \ 1322 product(uintx, CMSFullGCsBeforeCompaction, 0, \ 1323 "Number of CMS full collection done before compaction if > 0") \ 1324 \ 1325 develop(intx, CMSDictionaryChoice, 0, \ 1326 "Use BinaryTreeDictionary as default in the CMS generation") \ 1327 \ 1328 product(uintx, CMSIndexedFreeListReplenish, 4, \ 1329 "Replenish and indexed free list with this number of chunks") \ 1330 \ 1331 product(bool, CMSLoopWarn, false, \ 1332 "Warn in case of excessive CMS looping") \ 1333 \ 1334 develop(bool, CMSOverflowEarlyRestoration, false, \ 1335 "Whether preserved marks should be restored early") \ 1336 \ 1337 product(uintx, CMSMarkStackSize, 32*K, \ 1338 "Size of CMS marking stack") \ 1339 \ 1340 product(uintx, CMSMarkStackSizeMax, 4*M, \ 1341 "Max size of CMS marking stack") \ 1342 \ 1343 notproduct(bool, CMSMarkStackOverflowALot, false, \ 1344 "Whether we should simulate frequent marking stack / work queue" \ 1345 " overflow") \ 1346 \ 1347 notproduct(intx, CMSMarkStackOverflowInterval, 1000, \ 1348 "A per-thread `interval' counter that determines how frequently" \ 1349 " we simulate overflow; a smaller number increases frequency") \ 1350 \ 1351 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ 1352 "(Temporary, subject to experimentation)" \ 1353 "Maximum number of abortable preclean iterations, if > 0") \ 1354 \ 1355 product(intx, CMSMaxAbortablePrecleanTime, 5000, \ 1356 "(Temporary, subject to experimentation)" \ 1357 "Maximum time in abortable preclean in ms") \ 1358 \ 1359 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ 1360 "(Temporary, subject to experimentation)" \ 1361 "Nominal minimum work per abortable preclean iteration") \ 1362 \ 1363 product(intx, CMSAbortablePrecleanWaitMillis, 100, \ 1364 "(Temporary, subject to experimentation)" \ 1365 " Time that we sleep between iterations when not given" \ 1366 " enough work per iteration") \ 1367 \ 1368 product(uintx, CMSRescanMultiple, 32, \ 1369 "Size (in cards) of CMS parallel rescan task") \ 1370 \ 1371 product(uintx, CMSConcMarkMultiple, 32, \ 1372 "Size (in cards) of CMS concurrent MT marking task") \ 1373 \ 1374 product(uintx, CMSRevisitStackSize, 1*M, \ 1375 "Size of CMS KlassKlass revisit stack") \ 1376 \ 1377 product(bool, CMSAbortSemantics, false, \ 1378 "Whether abort-on-overflow semantics is implemented") \ 1379 \ 1380 product(bool, CMSParallelRemarkEnabled, true, \ 1381 "Whether parallel remark enabled (only if ParNewGC)") \ 1382 \ 1383 product(bool, CMSParallelSurvivorRemarkEnabled, true, \ 1384 "Whether parallel remark of survivor space" \ 1385 " enabled (effective only if CMSParallelRemarkEnabled)") \ 1386 \ 1387 product(bool, CMSPLABRecordAlways, true, \ 1388 "Whether to always record survivor space PLAB bdries" \ 1389 " (effective only if CMSParallelSurvivorRemarkEnabled)") \ 1390 \ 1391 product(bool, CMSConcurrentMTEnabled, true, \ 1392 "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ 1393 \ 1394 product(bool, CMSPermGenPrecleaningEnabled, true, \ 1395 "Whether concurrent precleaning enabled in perm gen" \ 1396 " (effective only when CMSPrecleaningEnabled is true)") \ 1397 \ 1398 product(bool, CMSPrecleaningEnabled, true, \ 1399 "Whether concurrent precleaning enabled") \ 1400 \ 1401 product(uintx, CMSPrecleanIter, 3, \ 1402 "Maximum number of precleaning iteration passes") \ 1403 \ 1404 product(uintx, CMSPrecleanNumerator, 2, \ 1405 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 1406 " ratio") \ 1407 \ 1408 product(uintx, CMSPrecleanDenominator, 3, \ 1409 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 1410 " ratio") \ 1411 \ 1412 product(bool, CMSPrecleanRefLists1, true, \ 1413 "Preclean ref lists during (initial) preclean phase") \ 1414 \ 1415 product(bool, CMSPrecleanRefLists2, false, \ 1416 "Preclean ref lists during abortable preclean phase") \ 1417 \ 1418 product(bool, CMSPrecleanSurvivors1, false, \ 1419 "Preclean survivors during (initial) preclean phase") \ 1420 \ 1421 product(bool, CMSPrecleanSurvivors2, true, \ 1422 "Preclean survivors during abortable preclean phase") \ 1423 \ 1424 product(uintx, CMSPrecleanThreshold, 1000, \ 1425 "Don't re-iterate if #dirty cards less than this") \ 1426 \ 1427 product(bool, CMSCleanOnEnter, true, \ 1428 "Clean-on-enter optimization for reducing number of dirty cards") \ 1429 \ 1430 product(uintx, CMSRemarkVerifyVariant, 1, \ 1431 "Choose variant (1,2) of verification following remark") \ 1432 \ 1433 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ 1434 "If Eden used is below this value, don't try to schedule remark") \ 1435 \ 1436 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ 1437 "The Eden occupancy % at which to try and schedule remark pause") \ 1438 \ 1439 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ 1440 "Start sampling Eden top at least before yg occupancy reaches" \ 1441 " 1/<ratio> of the size at which we plan to schedule remark") \ 1442 \ 1443 product(uintx, CMSSamplingGrain, 16*K, \ 1444 "The minimum distance between eden samples for CMS (see above)") \ 1445 \ 1446 product(bool, CMSScavengeBeforeRemark, false, \ 1447 "Attempt scavenge before the CMS remark step") \ 1448 \ 1449 develop(bool, CMSTraceSweeper, false, \ 1450 "Trace some actions of the CMS sweeper") \ 1451 \ 1452 product(uintx, CMSWorkQueueDrainThreshold, 10, \ 1453 "Don't drain below this size per parallel worker/thief") \ 1454 \ 1455 product(intx, CMSWaitDuration, 2000, \ 1456 "Time in milliseconds that CMS thread waits for young GC") \ 1457 \ 1458 product(bool, CMSYield, true, \ 1459 "Yield between steps of concurrent mark & sweep") \ 1460 \ 1461 product(uintx, CMSBitMapYieldQuantum, 10*M, \ 1462 "Bitmap operations should process at most this many bits" \ 1463 "between yields") \ 1464 \ 1465 diagnostic(bool, FLSVerifyAllHeapReferences, false, \ 1466 "Verify that all refs across the FLS boundary " \ 1467 " are to valid objects") \ 1468 \ 1469 diagnostic(bool, FLSVerifyLists, false, \ 1470 "Do lots of (expensive) FreeListSpace verification") \ 1471 \ 1472 diagnostic(bool, FLSVerifyIndexTable, false, \ 1473 "Do lots of (expensive) FLS index table verification") \ 1474 \ 1475 develop(bool, FLSVerifyDictionary, false, \ 1476 "Do lots of (expensive) FLS dictionary verification") \ 1477 \ 1478 develop(bool, VerifyBlockOffsetArray, false, \ 1479 "Do (expensive!) block offset array verification") \ 1480 \ 1481 product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug, \ 1482 "Maintain _unallocated_block in BlockOffsetArray" \ 1483 " (currently applicable only to CMS collector)") \ 1484 \ 1485 develop(bool, TraceCMSState, false, \ 1486 "Trace the state of the CMS collection") \ 1487 \ 1488 product(intx, RefDiscoveryPolicy, 0, \ 1489 "Whether reference-based(0) or referent-based(1)") \ 1490 \ 1491 product(bool, ParallelRefProcEnabled, false, \ 1492 "Enable parallel reference processing whenever possible") \ 1493 \ 1494 product(bool, ParallelRefProcBalancingEnabled, true, \ 1495 "Enable balancing of reference processing queues") \ 1496 \ 1497 product(intx, CMSTriggerRatio, 80, \ 1498 "Percentage of MinHeapFreeRatio in CMS generation that is " \ 1499 " allocated before a CMS collection cycle commences") \ 1500 \ 1501 product(intx, CMSBootstrapOccupancy, 50, \ 1502 "Percentage CMS generation occupancy at which to " \ 1503 " initiate CMS collection for bootstrapping collection stats") \ 1504 \ 1505 product(intx, CMSInitiatingOccupancyFraction, -1, \ 1506 "Percentage CMS generation occupancy to start a CMS collection " \ 1507 " cycle (A negative value means that CMSTirggerRatio is used)") \ 1508 \ 1509 product(bool, UseCMSInitiatingOccupancyOnly, false, \ 1510 "Only use occupancy as a crierion for starting a CMS collection") \ 1511 \ 1512 develop(bool, CMSTestInFreeList, false, \ 1513 "Check if the coalesced range is already in the " \ 1514 "free lists as claimed.") \ 1515 \ 1516 notproduct(bool, CMSVerifyReturnedBytes, false, \ 1517 "Check that all the garbage collected was returned to the " \ 1518 "free lists.") \ 1519 \ 1520 notproduct(bool, ScavengeALot, false, \ 1521 "Force scavenge at every Nth exit from the runtime system " \ 1522 "(N=ScavengeALotInterval)") \ 1523 \ 1524 develop(bool, FullGCALot, false, \ 1525 "Force full gc at every Nth exit from the runtime system " \ 1526 "(N=FullGCALotInterval)") \ 1527 \ 1528 notproduct(bool, GCALotAtAllSafepoints, false, \ 1529 "Enforce ScavengeALot/GCALot at all potential safepoints") \ 1530 \ 1531 product(bool, HandlePromotionFailure, true, \ 1532 "The youngest generation collection does not require" \ 1533 " a guarantee of full promotion of all live objects.") \ 1534 \ 1535 notproduct(bool, PromotionFailureALot, false, \ 1536 "Use promotion failure handling on every youngest generation " \ 1537 "collection") \ 1538 \ 1539 develop(uintx, PromotionFailureALotCount, 1000, \ 1540 "Number of promotion failures occurring at ParGCAllocBuffer" \ 1541 "refill attempts (ParNew) or promotion attempts " \ 1542 "(other young collectors) ") \ 1543 \ 1544 develop(uintx, PromotionFailureALotInterval, 5, \ 1545 "Total collections between promotion failures alot") \ 1546 \ 1547 develop(intx, WorkStealingSleepMillis, 1, \ 1548 "Sleep time when sleep is used for yields") \ 1549 \ 1550 develop(uintx, WorkStealingYieldsBeforeSleep, 1000, \ 1551 "Number of yields before a sleep is done during workstealing") \ 1552 \ 1553 product(uintx, PreserveMarkStackSize, 40, \ 1554 "Size for stack used in promotion failure handling") \ 1555 \ 1556 product_pd(bool, UseTLAB, "Use thread-local object allocation") \ 1557 \ 1558 product_pd(bool, ResizeTLAB, \ 1559 "Dynamically resize tlab size for threads") \ 1560 \ 1561 product(bool, ZeroTLAB, false, \ 1562 "Zero out the newly created TLAB") \ 1563 \ 1564 product(bool, PrintTLAB, false, \ 1565 "Print various TLAB related information") \ 1566 \ 1567 product(bool, TLABStats, true, \ 1568 "Print various TLAB related information") \ 1569 \ 1570 product_pd(bool, NeverActAsServerClassMachine, \ 1571 "Never act like a server-class machine") \ 1572 \ 1573 product(bool, AlwaysActAsServerClassMachine, false, \ 1574 "Always act like a server-class machine") \ 1575 \ 1576 product_pd(uintx, DefaultMaxRAM, \ 1577 "Maximum real memory size for setting server class heap size") \ 1578 \ 1579 product(uintx, DefaultMaxRAMFraction, 4, \ 1580 "Fraction (1/n) of real memory used for server class max heap") \ 1581 \ 1582 product(uintx, DefaultInitialRAMFraction, 64, \ 1583 "Fraction (1/n) of real memory used for server class initial heap") \ 1584 \ 1585 product(bool, UseAutoGCSelectPolicy, false, \ 1586 "Use automatic collection selection policy") \ 1587 \ 1588 product(uintx, AutoGCSelectPauseMillis, 5000, \ 1589 "Automatic GC selection pause threshhold in ms") \ 1590 \ 1591 product(bool, UseAdaptiveSizePolicy, true, \ 1592 "Use adaptive generation sizing policies") \ 1593 \ 1594 product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ 1595 "Use adaptive survivor sizing policies") \ 1596 \ 1597 product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ 1598 "Use adaptive young-old sizing policies at minor collections") \ 1599 \ 1600 product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ 1601 "Use adaptive young-old sizing policies at major collections") \ 1602 \ 1603 product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ 1604 "Use statistics from System.GC for adaptive size policy") \ 1605 \ 1606 product(bool, UseAdaptiveGCBoundary, false, \ 1607 "Allow young-old boundary to move") \ 1608 \ 1609 develop(bool, TraceAdaptiveGCBoundary, false, \ 1610 "Trace young-old boundary moves") \ 1611 \ 1612 develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ 1613 "Resize the virtual spaces of the young or old generations") \ 1614 \ 1615 product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ 1616 "Policy for changeing generation size for throughput goals") \ 1617 \ 1618 product(uintx, AdaptiveSizePausePolicy, 0, \ 1619 "Policy for changing generation size for pause goals") \ 1620 \ 1621 develop(bool, PSAdjustTenuredGenForMinorPause, false, \ 1622 "Adjust tenured generation to achive a minor pause goal") \ 1623 \ 1624 develop(bool, PSAdjustYoungGenForMajorPause, false, \ 1625 "Adjust young generation to achive a major pause goal") \ 1626 \ 1627 product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ 1628 "Number of steps where heuristics is used before data is used") \ 1629 \ 1630 develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ 1631 "Number of collections before the adaptive sizing is started") \ 1632 \ 1633 product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ 1634 "Collecton interval for printing information, zero => never") \ 1635 \ 1636 product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ 1637 "Use adaptive minimum footprint as a goal") \ 1638 \ 1639 product(uintx, AdaptiveSizePolicyWeight, 10, \ 1640 "Weight given to exponential resizing, between 0 and 100") \ 1641 \ 1642 product(uintx, AdaptiveTimeWeight, 25, \ 1643 "Weight given to time in adaptive policy, between 0 and 100") \ 1644 \ 1645 product(uintx, PausePadding, 1, \ 1646 "How much buffer to keep for pause time") \ 1647 \ 1648 product(uintx, PromotedPadding, 3, \ 1649 "How much buffer to keep for promotion failure") \ 1650 \ 1651 product(uintx, SurvivorPadding, 3, \ 1652 "How much buffer to keep for survivor overflow") \ 1653 \ 1654 product(uintx, AdaptivePermSizeWeight, 20, \ 1655 "Weight for perm gen exponential resizing, between 0 and 100") \ 1656 \ 1657 product(uintx, PermGenPadding, 3, \ 1658 "How much buffer to keep for perm gen sizing") \ 1659 \ 1660 product(uintx, ThresholdTolerance, 10, \ 1661 "Allowed collection cost difference between generations") \ 1662 \ 1663 product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ 1664 "If collection costs are within margin, reduce both by full delta") \ 1665 \ 1666 product(uintx, YoungGenerationSizeIncrement, 20, \ 1667 "Adaptive size percentage change in young generation") \ 1668 \ 1669 product(uintx, YoungGenerationSizeSupplement, 80, \ 1670 "Supplement to YoungedGenerationSizeIncrement used at startup") \ 1671 \ 1672 product(uintx, YoungGenerationSizeSupplementDecay, 8, \ 1673 "Decay factor to YoungedGenerationSizeSupplement") \ 1674 \ 1675 product(uintx, TenuredGenerationSizeIncrement, 20, \ 1676 "Adaptive size percentage change in tenured generation") \ 1677 \ 1678 product(uintx, TenuredGenerationSizeSupplement, 80, \ 1679 "Supplement to TenuredGenerationSizeIncrement used at startup") \ 1680 \ 1681 product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ 1682 "Decay factor to TenuredGenerationSizeIncrement") \ 1683 \ 1684 product(uintx, MaxGCPauseMillis, max_uintx, \ 1685 "Adaptive size policy maximum GC pause time goal in msec") \ 1686 \ 1687 product(uintx, MaxGCMinorPauseMillis, max_uintx, \ 1688 "Adaptive size policy maximum GC minor pause time goal in msec") \ 1689 \ 1690 product(uintx, GCTimeRatio, 99, \ 1691 "Adaptive size policy application time to GC time ratio") \ 1692 \ 1693 product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ 1694 "Adaptive size scale down factor for shrinking") \ 1695 \ 1696 product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ 1697 "Adaptive size decays the major cost for long major intervals") \ 1698 \ 1699 product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ 1700 "Time scale over which major costs decay") \ 1701 \ 1702 product(uintx, MinSurvivorRatio, 3, \ 1703 "Minimum ratio of young generation/survivor space size") \ 1704 \ 1705 product(uintx, InitialSurvivorRatio, 8, \ 1706 "Initial ratio of eden/survivor space size") \ 1707 \ 1708 product(uintx, BaseFootPrintEstimate, 256*M, \ 1709 "Estimate of footprint other than Java Heap") \ 1710 \ 1711 product(bool, UseGCOverheadLimit, true, \ 1712 "Use policy to limit of proportion of time spent in GC " \ 1713 "before an OutOfMemory error is thrown") \ 1714 \ 1715 product(uintx, GCTimeLimit, 98, \ 1716 "Limit of proportion of time spent in GC before an OutOfMemory" \ 1717 "error is thrown (used with GCHeapFreeLimit)") \ 1718 \ 1719 product(uintx, GCHeapFreeLimit, 2, \ 1720 "Minimum percentage of free space after a full GC before an " \ 1721 "OutOfMemoryError is thrown (used with GCTimeLimit)") \ 1722 \ 1723 develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ 1724 "Number of consecutive collections before gc time limit fires") \ 1725 \ 1726 product(bool, PrintAdaptiveSizePolicy, false, \ 1727 "Print information about AdaptiveSizePolicy") \ 1728 \ 1729 product(intx, PrefetchCopyIntervalInBytes, -1, \ 1730 "How far ahead to prefetch destination area (<= 0 means off)") \ 1731 \ 1732 product(intx, PrefetchScanIntervalInBytes, -1, \ 1733 "How far ahead to prefetch scan area (<= 0 means off)") \ 1734 \ 1735 product(intx, PrefetchFieldsAhead, -1, \ 1736 "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ 1737 \ 1738 develop(bool, UsePrefetchQueue, true, \ 1739 "Use the prefetch queue during PS promotion") \ 1740 \ 1741 diagnostic(bool, VerifyBeforeExit, trueInDebug, \ 1742 "Verify system before exiting") \ 1743 \ 1744 diagnostic(bool, VerifyBeforeGC, false, \ 1745 "Verify memory system before GC") \ 1746 \ 1747 diagnostic(bool, VerifyAfterGC, false, \ 1748 "Verify memory system after GC") \ 1749 \ 1750 diagnostic(bool, VerifyDuringGC, false, \ 1751 "Verify memory system during GC (between phases)") \ 1752 \ 1753 diagnostic(bool, VerifyRememberedSets, false, \ 1754 "Verify GC remembered sets") \ 1755 \ 1756 diagnostic(bool, VerifyObjectStartArray, true, \ 1757 "Verify GC object start array if verify before/after") \ 1758 \ 1759 product(bool, DisableExplicitGC, false, \ 1760 "Tells whether calling System.gc() does a full GC") \ 1761 \ 1762 notproduct(bool, CheckMemoryInitialization, false, \ 1763 "Checks memory initialization") \ 1764 \ 1765 product(bool, CollectGen0First, false, \ 1766 "Collect youngest generation before each full GC") \ 1767 \ 1768 diagnostic(bool, BindCMSThreadToCPU, false, \ 1769 "Bind CMS Thread to CPU if possible") \ 1770 \ 1771 diagnostic(uintx, CPUForCMSThread, 0, \ 1772 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ 1773 \ 1774 product(bool, BindGCTaskThreadsToCPUs, false, \ 1775 "Bind GCTaskThreads to CPUs if possible") \ 1776 \ 1777 product(bool, UseGCTaskAffinity, false, \ 1778 "Use worker affinity when asking for GCTasks") \ 1779 \ 1780 product(uintx, ProcessDistributionStride, 4, \ 1781 "Stride through processors when distributing processes") \ 1782 \ 1783 product(uintx, CMSCoordinatorYieldSleepCount, 10, \ 1784 "number of times the coordinator GC thread will sleep while " \ 1785 "yielding before giving up and resuming GC") \ 1786 \ 1787 product(uintx, CMSYieldSleepCount, 0, \ 1788 "number of times a GC thread (minus the coordinator) " \ 1789 "will sleep while yielding before giving up and resuming GC") \ 1790 \ 1791 notproduct(bool, PrintFlagsFinal, false, \ 1792 "Print all command line flags after argument processing") \ 1793 \ 1794 /* gc tracing */ \ 1795 manageable(bool, PrintGC, false, \ 1796 "Print message at garbage collect") \ 1797 \ 1798 manageable(bool, PrintGCDetails, false, \ 1799 "Print more details at garbage collect") \ 1800 \ 1801 manageable(bool, PrintGCDateStamps, false, \ 1802 "Print date stamps at garbage collect") \ 1803 \ 1804 manageable(bool, PrintGCTimeStamps, false, \ 1805 "Print timestamps at garbage collect") \ 1806 \ 1807 product(bool, PrintGCTaskTimeStamps, false, \ 1808 "Print timestamps for individual gc worker thread tasks") \ 1809 \ 1810 develop(intx, ConcGCYieldTimeout, 0, \ 1811 "If non-zero, assert that GC threads yield within this # of ms.") \ 1812 \ 1813 notproduct(bool, TraceMarkSweep, false, \ 1814 "Trace mark sweep") \ 1815 \ 1816 product(bool, PrintReferenceGC, false, \ 1817 "Print times spent handling reference objects during GC " \ 1818 " (enabled only when PrintGCDetails)") \ 1819 \ 1820 develop(bool, TraceReferenceGC, false, \ 1821 "Trace handling of soft/weak/final/phantom references") \ 1822 \ 1823 develop(bool, TraceFinalizerRegistration, false, \ 1824 "Trace registration of final references") \ 1825 \ 1826 notproduct(bool, TraceScavenge, false, \ 1827 "Trace scavenge") \ 1828 \ 1829 product_rw(bool, TraceClassLoading, false, \ 1830 "Trace all classes loaded") \ 1831 \ 1832 product(bool, TraceClassLoadingPreorder, false, \ 1833 "Trace all classes loaded in order referenced (not loaded)") \ 1834 \ 1835 product_rw(bool, TraceClassUnloading, false, \ 1836 "Trace unloading of classes") \ 1837 \ 1838 product_rw(bool, TraceLoaderConstraints, false, \ 1839 "Trace loader constraints") \ 1840 \ 1841 product(bool, TraceGen0Time, false, \ 1842 "Trace accumulated time for Gen 0 collection") \ 1843 \ 1844 product(bool, TraceGen1Time, false, \ 1845 "Trace accumulated time for Gen 1 collection") \ 1846 \ 1847 product(bool, PrintTenuringDistribution, false, \ 1848 "Print tenuring age information") \ 1849 \ 1850 product_rw(bool, PrintHeapAtGC, false, \ 1851 "Print heap layout before and after each GC") \ 1852 \ 1853 product(bool, PrintHeapAtSIGBREAK, true, \ 1854 "Print heap layout in response to SIGBREAK") \ 1855 \ 1856 manageable(bool, PrintClassHistogram, false, \ 1857 "Print a histogram of class instances") \ 1858 \ 1859 develop(bool, TraceWorkGang, false, \ 1860 "Trace activities of work gangs") \ 1861 \ 1862 product(bool, TraceParallelOldGCTasks, false, \ 1863 "Trace multithreaded GC activity") \ 1864 \ 1865 develop(bool, TraceBlockOffsetTable, false, \ 1866 "Print BlockOffsetTable maps") \ 1867 \ 1868 develop(bool, TraceCardTableModRefBS, false, \ 1869 "Print CardTableModRefBS maps") \ 1870 \ 1871 develop(bool, TraceGCTaskManager, false, \ 1872 "Trace actions of the GC task manager") \ 1873 \ 1874 develop(bool, TraceGCTaskQueue, false, \ 1875 "Trace actions of the GC task queues") \ 1876 \ 1877 develop(bool, TraceGCTaskThread, false, \ 1878 "Trace actions of the GC task threads") \ 1879 \ 1880 product(bool, PrintParallelOldGCPhaseTimes, false, \ 1881 "Print the time taken by each parallel old gc phase." \ 1882 "PrintGCDetails must also be enabled.") \ 1883 \ 1884 develop(bool, TraceParallelOldGCMarkingPhase, false, \ 1885 "Trace parallel old gc marking phase") \ 1886 \ 1887 develop(bool, TraceParallelOldGCSummaryPhase, false, \ 1888 "Trace parallel old gc summary phase") \ 1889 \ 1890 develop(bool, TraceParallelOldGCCompactionPhase, false, \ 1891 "Trace parallel old gc compaction phase") \ 1892 \ 1893 develop(bool, TraceParallelOldGCDensePrefix, false, \ 1894 "Trace parallel old gc dense prefix computation") \ 1895 \ 1896 develop(bool, IgnoreLibthreadGPFault, false, \ 1897 "Suppress workaround for libthread GP fault") \ 1898 \ 1899 /* JVMTI heap profiling */ \ 1900 \ 1901 diagnostic(bool, TraceJVMTIObjectTagging, false, \ 1902 "Trace JVMTI object tagging calls") \ 1903 \ 1904 diagnostic(bool, VerifyBeforeIteration, false, \ 1905 "Verify memory system before JVMTI iteration") \ 1906 \ 1907 /* compiler interface */ \ 1908 \ 1909 develop(bool, CIPrintCompilerName, false, \ 1910 "when CIPrint is active, print the name of the active compiler") \ 1911 \ 1912 develop(bool, CIPrintCompileQueue, false, \ 1913 "display the contents of the compile queue whenever a " \ 1914 "compilation is enqueued") \ 1915 \ 1916 develop(bool, CIPrintRequests, false, \ 1917 "display every request for compilation") \ 1918 \ 1919 product(bool, CITime, false, \ 1920 "collect timing information for compilation") \ 1921 \ 1922 develop(bool, CITimeEach, false, \ 1923 "display timing information after each successful compilation") \ 1924 \ 1925 develop(bool, CICountOSR, true, \ 1926 "use a separate counter when assigning ids to osr compilations") \ 1927 \ 1928 develop(bool, CICompileNatives, true, \ 1929 "compile native methods if supported by the compiler") \ 1930 \ 1931 develop_pd(bool, CICompileOSR, \ 1932 "compile on stack replacement methods if supported by the " \ 1933 "compiler") \ 1934 \ 1935 develop(bool, CIPrintMethodCodes, false, \ 1936 "print method bytecodes of the compiled code") \ 1937 \ 1938 develop(bool, CIPrintTypeFlow, false, \ 1939 "print the results of ciTypeFlow analysis") \ 1940 \ 1941 develop(bool, CITraceTypeFlow, false, \ 1942 "detailed per-bytecode tracing of ciTypeFlow analysis") \ 1943 \ 1944 develop(intx, CICloneLoopTestLimit, 100, \ 1945 "size limit for blocks heuristically cloned in ciTypeFlow") \ 1946 \ 1947 /* temp diagnostics */ \ 1948 \ 1949 diagnostic(bool, TraceRedundantCompiles, false, \ 1950 "Have compile broker print when a request already in the queue is"\ 1951 " requested again") \ 1952 \ 1953 diagnostic(bool, InitialCompileFast, false, \ 1954 "Initial compile at CompLevel_fast_compile") \ 1955 \ 1956 diagnostic(bool, InitialCompileReallyFast, false, \ 1957 "Initial compile at CompLevel_really_fast_compile (no profile)") \ 1958 \ 1959 diagnostic(bool, FullProfileOnReInterpret, true, \ 1960 "On re-interpret unc-trap compile next at CompLevel_fast_compile")\ 1961 \ 1962 /* compiler */ \ 1963 \ 1964 product(intx, CICompilerCount, CI_COMPILER_COUNT, \ 1965 "Number of compiler threads to run") \ 1966 \ 1967 product(intx, CompilationPolicyChoice, 0, \ 1968 "which compilation policy (0/1)") \ 1969 \ 1970 develop(bool, UseStackBanging, true, \ 1971 "use stack banging for stack overflow checks (required for " \ 1972 "proper StackOverflow handling; disable only to measure cost " \ 1973 "of stackbanging)") \ 1974 \ 1975 develop(bool, Use24BitFPMode, true, \ 1976 "Set 24-bit FPU mode on a per-compile basis ") \ 1977 \ 1978 develop(bool, Use24BitFP, true, \ 1979 "use FP instructions that produce 24-bit precise results") \ 1980 \ 1981 develop(bool, UseStrictFP, true, \ 1982 "use strict fp if modifier strictfp is set") \ 1983 \ 1984 develop(bool, GenerateSynchronizationCode, true, \ 1985 "generate locking/unlocking code for synchronized methods and " \ 1986 "monitors") \ 1987 \ 1988 develop(bool, GenerateCompilerNullChecks, true, \ 1989 "Generate explicit null checks for loads/stores/calls") \ 1990 \ 1991 develop(bool, GenerateRangeChecks, true, \ 1992 "Generate range checks for array accesses") \ 1993 \ 1994 develop_pd(bool, ImplicitNullChecks, \ 1995 "generate code for implicit null checks") \ 1996 \ 1997 product(bool, PrintSafepointStatistics, false, \ 1998 "print statistics about safepoint synchronization") \ 1999 \ 2000 product(intx, PrintSafepointStatisticsCount, 300, \ 2001 "total number of safepoint statistics collected " \ 2002 "before printing them out") \ 2003 \ 2004 product(intx, PrintSafepointStatisticsTimeout, -1, \ 2005 "print safepoint statistics only when safepoint takes" \ 2006 " more than PrintSafepointSatisticsTimeout in millis") \ 2007 \ 2008 develop(bool, InlineAccessors, true, \ 2009 "inline accessor methods (get/set)") \ 2010 \ 2011 product(bool, Inline, true, \ 2012 "enable inlining") \ 2013 \ 2014 product(bool, ClipInlining, true, \ 2015 "clip inlining if aggregate method exceeds DesiredMethodLimit") \ 2016 \ 2017 develop(bool, UseCHA, true, \ 2018 "enable CHA") \ 2019 \ 2020 product(bool, UseTypeProfile, true, \ 2021 "Check interpreter profile for historically monomorphic calls") \ 2022 \ 2023 product(intx, TypeProfileMajorReceiverPercent, 90, \ 2024 "% of major receiver type to all profiled receivers") \ 2025 \ 2026 notproduct(bool, TimeCompiler, false, \ 2027 "time the compiler") \ 2028 \ 2029 notproduct(bool, TimeCompiler2, false, \ 2030 "detailed time the compiler (requires +TimeCompiler)") \ 2031 \ 2032 diagnostic(bool, PrintInlining, false, \ 2033 "prints inlining optimizations") \ 2034 \ 2035 diagnostic(bool, PrintIntrinsics, false, \ 2036 "prints attempted and successful inlining of intrinsics") \ 2037 \ 2038 diagnostic(ccstrlist, DisableIntrinsic, "", \ 2039 "do not expand intrinsics whose (internal) names appear here") \ 2040 \ 2041 develop(bool, StressReflectiveCode, false, \ 2042 "Use inexact types at allocations, etc., to test reflection") \ 2043 \ 2044 develop(bool, EagerInitialization, false, \ 2045 "Eagerly initialize classes if possible") \ 2046 \ 2047 product(bool, Tier1UpdateMethodData, trueInTiered, \ 2048 "Update methodDataOops in Tier1-generated code") \ 2049 \ 2050 develop(bool, TraceMethodReplacement, false, \ 2051 "Print when methods are replaced do to recompilation") \ 2052 \ 2053 develop(bool, PrintMethodFlushing, false, \ 2054 "print the nmethods being flushed") \ 2055 \ 2056 notproduct(bool, LogMultipleMutexLocking, false, \ 2057 "log locking and unlocking of mutexes (only if multiple locks " \ 2058 "are held)") \ 2059 \ 2060 develop(bool, UseRelocIndex, false, \ 2061 "use an index to speed random access to relocations") \ 2062 \ 2063 develop(bool, StressCodeBuffers, false, \ 2064 "Exercise code buffer expansion and other rare state changes") \ 2065 \ 2066 diagnostic(bool, DebugNonSafepoints, trueInDebug, \ 2067 "Generate extra debugging info for non-safepoints in nmethods") \ 2068 \ 2069 diagnostic(bool, DebugInlinedCalls, true, \ 2070 "If false, restricts profiled locations to the root method only") \ 2071 \ 2072 product(bool, PrintVMOptions, trueInDebug, \ 2073 "print VM flag settings") \ 2074 \ 2075 diagnostic(bool, SerializeVMOutput, true, \ 2076 "Use a mutex to serialize output to tty and hotspot.log") \ 2077 \ 2078 diagnostic(bool, DisplayVMOutput, true, \ 2079 "Display all VM output on the tty, independently of LogVMOutput") \ 2080 \ 2081 diagnostic(bool, LogVMOutput, trueInDebug, \ 2082 "Save VM output to hotspot.log, or to LogFile") \ 2083 \ 2084 diagnostic(ccstr, LogFile, NULL, \ 2085 "If LogVMOutput is on, save VM output to this file [hotspot.log]") \ 2086 \ 2087 product(ccstr, ErrorFile, NULL, \ 2088 "If an error occurs, save the error data to this file " \ 2089 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ 2090 \ 2091 product(bool, DisplayVMOutputToStderr, false, \ 2092 "If DisplayVMOutput is true, display all VM output to stderr") \ 2093 \ 2094 product(bool, DisplayVMOutputToStdout, false, \ 2095 "If DisplayVMOutput is true, display all VM output to stdout") \ 2096 \ 2097 product(bool, UseHeavyMonitors, false, \ 2098 "use heavyweight instead of lightweight Java monitors") \ 2099 \ 2100 notproduct(bool, PrintSymbolTableSizeHistogram, false, \ 2101 "print histogram of the symbol table") \ 2102 \ 2103 notproduct(bool, ExitVMOnVerifyError, false, \ 2104 "standard exit from VM if bytecode verify error " \ 2105 "(only in debug mode)") \ 2106 \ 2107 notproduct(ccstr, AbortVMOnException, NULL, \ 2108 "Call fatal if this exception is thrown. Example: " \ 2109 "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ 2110 \ 2111 develop(bool, DebugVtables, false, \ 2112 "add debugging code to vtable dispatch") \ 2113 \ 2114 develop(bool, PrintVtables, false, \ 2115 "print vtables when printing klass") \ 2116 \ 2117 notproduct(bool, PrintVtableStats, false, \ 2118 "print vtables stats at end of run") \ 2119 \ 2120 develop(bool, TraceCreateZombies, false, \ 2121 "trace creation of zombie nmethods") \ 2122 \ 2123 notproduct(bool, IgnoreLockingAssertions, false, \ 2124 "disable locking assertions (for speed)") \ 2125 \ 2126 notproduct(bool, VerifyLoopOptimizations, false, \ 2127 "verify major loop optimizations") \ 2128 \ 2129 product(bool, RangeCheckElimination, true, \ 2130 "Split loop iterations to eliminate range checks") \ 2131 \ 2132 develop_pd(bool, UncommonNullCast, \ 2133 "track occurrences of null in casts; adjust compiler tactics") \ 2134 \ 2135 develop(bool, TypeProfileCasts, true, \ 2136 "treat casts like calls for purposes of type profiling") \ 2137 \ 2138 develop(bool, MonomorphicArrayCheck, true, \ 2139 "Uncommon-trap array store checks that require full type check") \ 2140 \ 2141 develop(bool, DelayCompilationDuringStartup, true, \ 2142 "Delay invoking the compiler until main application class is " \ 2143 "loaded") \ 2144 \ 2145 develop(bool, CompileTheWorld, false, \ 2146 "Compile all methods in all classes in bootstrap class path " \ 2147 "(stress test)") \ 2148 \ 2149 develop(bool, CompileTheWorldPreloadClasses, true, \ 2150 "Preload all classes used by a class before start loading") \ 2151 \ 2152 notproduct(bool, CompileTheWorldIgnoreInitErrors, false, \ 2153 "Compile all methods although class initializer failed") \ 2154 \ 2155 develop(bool, TraceIterativeGVN, false, \ 2156 "Print progress during Iterative Global Value Numbering") \ 2157 \ 2158 develop(bool, FillDelaySlots, true, \ 2159 "Fill delay slots (on SPARC only)") \ 2160 \ 2161 develop(bool, VerifyIterativeGVN, false, \ 2162 "Verify Def-Use modifications during sparse Iterative Global " \ 2163 "Value Numbering") \ 2164 \ 2165 notproduct(bool, TracePhaseCCP, false, \ 2166 "Print progress during Conditional Constant Propagation") \ 2167 \ 2168 develop(bool, TimeLivenessAnalysis, false, \ 2169 "Time computation of bytecode liveness analysis") \ 2170 \ 2171 develop(bool, TraceLivenessGen, false, \ 2172 "Trace the generation of liveness analysis information") \ 2173 \ 2174 notproduct(bool, TraceLivenessQuery, false, \ 2175 "Trace queries of liveness analysis information") \ 2176 \ 2177 notproduct(bool, CollectIndexSetStatistics, false, \ 2178 "Collect information about IndexSets") \ 2179 \ 2180 develop(bool, PrintDominators, false, \ 2181 "Print out dominator trees for GVN") \ 2182 \ 2183 develop(bool, UseLoopSafepoints, true, \ 2184 "Generate Safepoint nodes in every loop") \ 2185 \ 2186 notproduct(bool, TraceCISCSpill, false, \ 2187 "Trace allocators use of cisc spillable instructions") \ 2188 \ 2189 notproduct(bool, TraceSpilling, false, \ 2190 "Trace spilling") \ 2191 \ 2192 develop(bool, DeutschShiffmanExceptions, true, \ 2193 "Fast check to find exception handler for precisely typed " \ 2194 "exceptions") \ 2195 \ 2196 product(bool, SplitIfBlocks, true, \ 2197 "Clone compares and control flow through merge points to fold " \ 2198 "some branches") \ 2199 \ 2200 develop(intx, FastAllocateSizeLimit, 128*K, \ 2201 /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ 2202 "Inline allocations larger than this in doublewords must go slow")\ 2203 \ 2204 product(bool, AggressiveOpts, false, \ 2205 "Enable aggressive optimizations - see arguments.cpp") \ 2206 \ 2207 /* statistics */ \ 2208 develop(bool, UseVTune, false, \ 2209 "enable support for Intel's VTune profiler") \ 2210 \ 2211 develop(bool, CountCompiledCalls, false, \ 2212 "counts method invocations") \ 2213 \ 2214 notproduct(bool, CountRuntimeCalls, false, \ 2215 "counts VM runtime calls") \ 2216 \ 2217 develop(bool, CountJNICalls, false, \ 2218 "counts jni method invocations") \ 2219 \ 2220 notproduct(bool, CountJVMCalls, false, \ 2221 "counts jvm method invocations") \ 2222 \ 2223 notproduct(bool, CountRemovableExceptions, false, \ 2224 "count exceptions that could be replaced by branches due to " \ 2225 "inlining") \ 2226 \ 2227 notproduct(bool, ICMissHistogram, false, \ 2228 "produce histogram of IC misses") \ 2229 \ 2230 notproduct(bool, PrintClassStatistics, false, \ 2231 "prints class statistics at end of run") \ 2232 \ 2233 notproduct(bool, PrintMethodStatistics, false, \ 2234 "prints method statistics at end of run") \ 2235 \ 2236 /* interpreter */ \ 2237 develop(bool, ClearInterpreterLocals, false, \ 2238 "Always clear local variables of interpreter activations upon " \ 2239 "entry") \ 2240 \ 2241 product_pd(bool, RewriteBytecodes, \ 2242 "Allow rewriting of bytecodes (bytecodes are not immutable)") \ 2243 \ 2244 product_pd(bool, RewriteFrequentPairs, \ 2245 "Rewrite frequently used bytecode pairs into a single bytecode") \ 2246 \ 2247 product(bool, PrintInterpreter, false, \ 2248 "Prints the generated interpreter code") \ 2249 \ 2250 product(bool, UseInterpreter, true, \ 2251 "Use interpreter for non-compiled methods") \ 2252 \ 2253 develop(bool, UseFastSignatureHandlers, true, \ 2254 "Use fast signature handlers for native calls") \ 2255 \ 2256 develop(bool, UseV8InstrsOnly, false, \ 2257 "Use SPARC-V8 Compliant instruction subset") \ 2258 \ 2259 product(bool, UseNiagaraInstrs, false, \ 2260 "Use Niagara-efficient instruction subset") \ 2261 \ 2262 develop(bool, UseCASForSwap, false, \ 2263 "Do not use swap instructions, but only CAS (in a loop) on SPARC")\ 2264 \ 2265 product(bool, UseLoopCounter, true, \ 2266 "Increment invocation counter on backward branch") \ 2267 \ 2268 product(bool, UseFastEmptyMethods, true, \ 2269 "Use fast method entry code for empty methods") \ 2270 \ 2271 product(bool, UseFastAccessorMethods, true, \ 2272 "Use fast method entry code for accessor methods") \ 2273 \ 2274 product_pd(bool, UseOnStackReplacement, \ 2275 "Use on stack replacement, calls runtime if invoc. counter " \ 2276 "overflows in loop") \ 2277 \ 2278 notproduct(bool, TraceOnStackReplacement, false, \ 2279 "Trace on stack replacement") \ 2280 \ 2281 develop(bool, PoisonOSREntry, true, \ 2282 "Detect abnormal calls to OSR code") \ 2283 \ 2284 product_pd(bool, PreferInterpreterNativeStubs, \ 2285 "Use always interpreter stubs for native methods invoked via " \ 2286 "interpreter") \ 2287 \ 2288 develop(bool, CountBytecodes, false, \ 2289 "Count number of bytecodes executed") \ 2290 \ 2291 develop(bool, PrintBytecodeHistogram, false, \ 2292 "Print histogram of the executed bytecodes") \ 2293 \ 2294 develop(bool, PrintBytecodePairHistogram, false, \ 2295 "Print histogram of the executed bytecode pairs") \ 2296 \ 2297 develop(bool, PrintSignatureHandlers, false, \ 2298 "Print code generated for native method signature handlers") \ 2299 \ 2300 develop(bool, VerifyOops, false, \ 2301 "Do plausibility checks for oops") \ 2302 \ 2303 develop(bool, CheckUnhandledOops, false, \ 2304 "Check for unhandled oops in VM code") \ 2305 \ 2306 develop(bool, VerifyJNIFields, trueInDebug, \ 2307 "Verify jfieldIDs for instance fields") \ 2308 \ 2309 notproduct(bool, VerifyJNIEnvThread, false, \ 2310 "Verify JNIEnv.thread == Thread::current() when entering VM " \ 2311 "from JNI") \ 2312 \ 2313 develop(bool, VerifyFPU, false, \ 2314 "Verify FPU state (check for NaN's, etc.)") \ 2315 \ 2316 develop(bool, VerifyThread, false, \ 2317 "Watch the thread register for corruption (SPARC only)") \ 2318 \ 2319 develop(bool, VerifyActivationFrameSize, false, \ 2320 "Verify that activation frame didn't become smaller than its " \ 2321 "minimal size") \ 2322 \ 2323 develop(bool, TraceFrequencyInlining, false, \ 2324 "Trace frequency based inlining") \ 2325 \ 2326 notproduct(bool, TraceTypeProfile, false, \ 2327 "Trace type profile") \ 2328 \ 2329 develop_pd(bool, InlineIntrinsics, \ 2330 "Inline intrinsics that can be statically resolved") \ 2331 \ 2332 product_pd(bool, ProfileInterpreter, \ 2333 "Profile at the bytecode level during interpretation") \ 2334 \ 2335 develop_pd(bool, ProfileTraps, \ 2336 "Profile deoptimization traps at the bytecode level") \ 2337 \ 2338 product(intx, ProfileMaturityPercentage, 20, \ 2339 "number of method invocations/branches (expressed as % of " \ 2340 "CompileThreshold) before using the method's profile") \ 2341 \ 2342 develop(bool, PrintMethodData, false, \ 2343 "Print the results of +ProfileInterpreter at end of run") \ 2344 \ 2345 develop(bool, VerifyDataPointer, trueInDebug, \ 2346 "Verify the method data pointer during interpreter profiling") \ 2347 \ 2348 develop(bool, VerifyCompiledCode, false, \ 2349 "Include miscellaneous runtime verifications in nmethod code; " \ 2350 "off by default because it disturbs nmethod size heuristics.") \ 2351 \ 2352 \ 2353 /* compilation */ \ 2354 product(bool, UseCompiler, true, \ 2355 "use compilation") \ 2356 \ 2357 develop(bool, TraceCompilationPolicy, false, \ 2358 "Trace compilation policy") \ 2359 \ 2360 develop(bool, TimeCompilationPolicy, false, \ 2361 "Time the compilation policy") \ 2362 \ 2363 product(bool, UseCounterDecay, true, \ 2364 "adjust recompilation counters") \ 2365 \ 2366 develop(intx, CounterHalfLifeTime, 30, \ 2367 "half-life time of invocation counters (in secs)") \ 2368 \ 2369 develop(intx, CounterDecayMinIntervalLength, 500, \ 2370 "Min. ms. between invocation of CounterDecay") \ 2371 \ 2372 product(bool, AlwaysCompileLoopMethods, false, \ 2373 "when using recompilation, never interpret methods " \ 2374 "containing loops") \ 2375 \ 2376 product(bool, DontCompileHugeMethods, true, \ 2377 "don't compile methods > HugeMethodLimit") \ 2378 \ 2379 /* Bytecode escape analysis estimation. */ \ 2380 product(bool, EstimateArgEscape, true, \ 2381 "Analyze bytecodes to estimate escape state of arguments") \ 2382 \ 2383 product(intx, BCEATraceLevel, 0, \ 2384 "How much tracing to do of bytecode escape analysis estimates") \ 2385 \ 2386 product(intx, MaxBCEAEstimateLevel, 5, \ 2387 "Maximum number of nested calls that are analyzed by BC EA.") \ 2388 \ 2389 product(intx, MaxBCEAEstimateSize, 150, \ 2390 "Maximum bytecode size of a method to be analyzed by BC EA.") \ 2391 \ 2392 product(intx, AllocatePrefetchStyle, 1, \ 2393 "0 = no prefetch, " \ 2394 "1 = prefetch instructions for each allocation, " \ 2395 "2 = use TLAB watermark to gate allocation prefetch") \ 2396 \ 2397 product(intx, AllocatePrefetchDistance, -1, \ 2398 "Distance to prefetch ahead of allocation pointer") \ 2399 \ 2400 product(intx, AllocatePrefetchLines, 1, \ 2401 "Number of lines to prefetch ahead of allocation pointer") \ 2402 \ 2403 product(intx, AllocatePrefetchStepSize, 16, \ 2404 "Step size in bytes of sequential prefetch instructions") \ 2405 \ 2406 product(intx, AllocatePrefetchInstr, 0, \ 2407 "Prefetch instruction to prefetch ahead of allocation pointer") \ 2408 \ 2409 product(intx, ReadPrefetchInstr, 0, \ 2410 "Prefetch instruction to prefetch ahead") \ 2411 \ 2412 /* deoptimization */ \ 2413 develop(bool, TraceDeoptimization, false, \ 2414 "Trace deoptimization") \ 2415 \ 2416 develop(bool, DebugDeoptimization, false, \ 2417 "Tracing various information while debugging deoptimization") \ 2418 \ 2419 product(intx, SelfDestructTimer, 0, \ 2420 "Will cause VM to terminate after a given time (in minutes) " \ 2421 "(0 means off)") \ 2422 \ 2423 product(intx, MaxJavaStackTraceDepth, 1024, \ 2424 "Max. no. of lines in the stack trace for Java exceptions " \ 2425 "(0 means all)") \ 2426 \ 2427 develop(intx, GuaranteedSafepointInterval, 1000, \ 2428 "Guarantee a safepoint (at least) every so many milliseconds " \ 2429 "(0 means none)") \ 2430 \ 2431 product(intx, SafepointTimeoutDelay, 10000, \ 2432 "Delay in milliseconds for option SafepointTimeout") \ 2433 \ 2434 product(intx, NmethodSweepFraction, 4, \ 2435 "Number of invocations of sweeper to cover all nmethods") \ 2436 \ 2437 notproduct(intx, MemProfilingInterval, 500, \ 2438 "Time between each invocation of the MemProfiler") \ 2439 \ 2440 develop(intx, MallocCatchPtr, -1, \ 2441 "Hit breakpoint when mallocing/freeing this pointer") \ 2442 \ 2443 notproduct(intx, AssertRepeat, 1, \ 2444 "number of times to evaluate expression in assert " \ 2445 "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ 2446 \ 2447 notproduct(ccstrlist, SuppressErrorAt, "", \ 2448 "List of assertions (file:line) to muzzle") \ 2449 \ 2450 notproduct(uintx, HandleAllocationLimit, 1024, \ 2451 "Threshold for HandleMark allocation when +TraceHandleAllocation "\ 2452 "is used") \ 2453 \ 2454 develop(uintx, TotalHandleAllocationLimit, 1024, \ 2455 "Threshold for total handle allocation when " \ 2456 "+TraceHandleAllocation is used") \ 2457 \ 2458 develop(intx, StackPrintLimit, 100, \ 2459 "number of stack frames to print in VM-level stack dump") \ 2460 \ 2461 notproduct(intx, MaxElementPrintSize, 256, \ 2462 "maximum number of elements to print") \ 2463 \ 2464 notproduct(intx, MaxSubklassPrintSize, 4, \ 2465 "maximum number of subklasses to print when printing klass") \ 2466 \ 2467 develop(intx, MaxInlineLevel, 9, \ 2468 "maximum number of nested calls that are inlined") \ 2469 \ 2470 develop(intx, MaxRecursiveInlineLevel, 1, \ 2471 "maximum number of nested recursive calls that are inlined") \ 2472 \ 2473 develop(intx, InlineSmallCode, 1000, \ 2474 "Only inline already compiled methods if their code size is " \ 2475 "less than this") \ 2476 \ 2477 product(intx, MaxInlineSize, 35, \ 2478 "maximum bytecode size of a method to be inlined") \ 2479 \ 2480 product_pd(intx, FreqInlineSize, \ 2481 "maximum bytecode size of a frequent method to be inlined") \ 2482 \ 2483 develop(intx, MaxTrivialSize, 6, \ 2484 "maximum bytecode size of a trivial method to be inlined") \ 2485 \ 2486 develop(intx, MinInliningThreshold, 250, \ 2487 "min. invocation count a method needs to have to be inlined") \ 2488 \ 2489 develop(intx, AlignEntryCode, 4, \ 2490 "aligns entry code to specified value (in bytes)") \ 2491 \ 2492 develop(intx, MethodHistogramCutoff, 100, \ 2493 "cutoff value for method invoc. histogram (+CountCalls)") \ 2494 \ 2495 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ 2496 "# of interpreted methods to show in profile") \ 2497 \ 2498 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ 2499 "# of compiled methods to show in profile") \ 2500 \ 2501 develop(intx, ProfilerNumberOfStubMethods, 25, \ 2502 "# of stub methods to show in profile") \ 2503 \ 2504 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ 2505 "# of runtime stub nodes to show in profile") \ 2506 \ 2507 product(intx, ProfileIntervalsTicks, 100, \ 2508 "# of ticks between printing of interval profile " \ 2509 "(+ProfileIntervals)") \ 2510 \ 2511 notproduct(intx, ScavengeALotInterval, 1, \ 2512 "Interval between which scavenge will occur with +ScavengeALot") \ 2513 \ 2514 notproduct(intx, FullGCALotInterval, 1, \ 2515 "Interval between which full gc will occur with +FullGCALot") \ 2516 \ 2517 notproduct(intx, FullGCALotStart, 0, \ 2518 "For which invocation to start FullGCAlot") \ 2519 \ 2520 notproduct(intx, FullGCALotDummies, 32*K, \ 2521 "Dummy object allocated with +FullGCALot, forcing all objects " \ 2522 "to move") \ 2523 \ 2524 develop(intx, DontYieldALotInterval, 10, \ 2525 "Interval between which yields will be dropped (milliseconds)") \ 2526 \ 2527 develop(intx, MinSleepInterval, 1, \ 2528 "Minimum sleep() interval (milliseconds) when " \ 2529 "ConvertSleepToYield is off (used for SOLARIS)") \ 2530 \ 2531 product(intx, EventLogLength, 2000, \ 2532 "maximum nof events in event log") \ 2533 \ 2534 develop(intx, ProfilerPCTickThreshold, 15, \ 2535 "Number of ticks in a PC buckets to be a hotspot") \ 2536 \ 2537 notproduct(intx, DeoptimizeALotInterval, 5, \ 2538 "Number of exits until DeoptimizeALot kicks in") \ 2539 \ 2540 notproduct(intx, ZombieALotInterval, 5, \ 2541 "Number of exits until ZombieALot kicks in") \ 2542 \ 2543 develop(bool, StressNonEntrant, false, \ 2544 "Mark nmethods non-entrant at registration") \ 2545 \ 2546 diagnostic(intx, MallocVerifyInterval, 0, \ 2547 "if non-zero, verify C heap after every N calls to " \ 2548 "malloc/realloc/free") \ 2549 \ 2550 diagnostic(intx, MallocVerifyStart, 0, \ 2551 "if non-zero, start verifying C heap after Nth call to " \ 2552 "malloc/realloc/free") \ 2553 \ 2554 product(intx, TypeProfileWidth, 2, \ 2555 "number of receiver types to record in call/cast profile") \ 2556 \ 2557 develop(intx, BciProfileWidth, 2, \ 2558 "number of return bci's to record in ret profile") \ 2559 \ 2560 product(intx, PerMethodRecompilationCutoff, 400, \ 2561 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ 2562 \ 2563 product(intx, PerBytecodeRecompilationCutoff, 100, \ 2564 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ 2565 \ 2566 product(intx, PerMethodTrapLimit, 100, \ 2567 "Limit on traps (of one kind) in a method (includes inlines)") \ 2568 \ 2569 product(intx, PerBytecodeTrapLimit, 4, \ 2570 "Limit on traps (of one kind) at a particular BCI") \ 2571 \ 2572 develop(intx, FreqCountInvocations, 1, \ 2573 "Scaling factor for branch frequencies (deprecated)") \ 2574 \ 2575 develop(intx, InlineFrequencyRatio, 20, \ 2576 "Ratio of call site execution to caller method invocation") \ 2577 \ 2578 develop_pd(intx, InlineFrequencyCount, \ 2579 "Count of call site execution necessary to trigger frequent " \ 2580 "inlining") \ 2581 \ 2582 develop(intx, InlineThrowCount, 50, \ 2583 "Force inlining of interpreted methods that throw this often") \ 2584 \ 2585 develop(intx, InlineThrowMaxSize, 200, \ 2586 "Force inlining of throwing methods smaller than this") \ 2587 \ 2588 product(intx, AliasLevel, 3, \ 2589 "0 for no aliasing, 1 for oop/field/static/array split, " \ 2590 "2 for class split, 3 for unique instances") \ 2591 \ 2592 develop(bool, VerifyAliases, false, \ 2593 "perform extra checks on the results of alias analysis") \ 2594 \ 2595 develop(intx, ProfilerNodeSize, 1024, \ 2596 "Size in K to allocate for the Profile Nodes of each thread") \ 2597 \ 2598 develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \ 2599 "Number of times to spin wait on a v8 atomic operation lock") \ 2600 \ 2601 product(intx, ReadSpinIterations, 100, \ 2602 "Number of read attempts before a yield (spin inner loop)") \ 2603 \ 2604 product_pd(intx, PreInflateSpin, \ 2605 "Number of times to spin wait before inflation") \ 2606 \ 2607 product(intx, PreBlockSpin, 10, \ 2608 "Number of times to spin in an inflated lock before going to " \ 2609 "an OS lock") \ 2610 \ 2611 /* gc parameters */ \ 2612 product(uintx, MaxHeapSize, ScaleForWordSize(64*M), \ 2613 "Default maximum size for object heap (in bytes)") \ 2614 \ 2615 product_pd(uintx, NewSize, \ 2616 "Default size of new generation (in bytes)") \ 2617 \ 2618 product(uintx, MaxNewSize, max_uintx, \ 2619 "Maximum size of new generation (in bytes)") \ 2620 \ 2621 product(uintx, PretenureSizeThreshold, 0, \ 2622 "Max size in bytes of objects allocated in DefNew generation") \ 2623 \ 2624 product_pd(uintx, TLABSize, \ 2625 "Default (or starting) size of TLAB (in bytes)") \ 2626 \ 2627 product(uintx, MinTLABSize, 2*K, \ 2628 "Minimum allowed TLAB size (in bytes)") \ 2629 \ 2630 product(uintx, TLABAllocationWeight, 35, \ 2631 "Allocation averaging weight") \ 2632 \ 2633 product(uintx, TLABWasteTargetPercent, 1, \ 2634 "Percentage of Eden that can be wasted") \ 2635 \ 2636 product(uintx, TLABRefillWasteFraction, 64, \ 2637 "Max TLAB waste at a refill (internal fragmentation)") \ 2638 \ 2639 product(uintx, TLABWasteIncrement, 4, \ 2640 "Increment allowed waste at slow allocation") \ 2641 \ 2642 product_pd(intx, SurvivorRatio, \ 2643 "Ratio of eden/survivor space size") \ 2644 \ 2645 product_pd(intx, NewRatio, \ 2646 "Ratio of new/old generation sizes") \ 2647 \ 2648 product(uintx, MaxLiveObjectEvacuationRatio, 100, \ 2649 "Max percent of eden objects that will be live at scavenge") \ 2650 \ 2651 product_pd(uintx, NewSizeThreadIncrease, \ 2652 "Additional size added to desired new generation size per " \ 2653 "non-daemon thread (in bytes)") \ 2654 \ 2655 product(uintx, OldSize, ScaleForWordSize(4096*K), \ 2656 "Default size of tenured generation (in bytes)") \ 2657 \ 2658 product_pd(uintx, PermSize, \ 2659 "Default size of permanent generation (in bytes)") \ 2660 \ 2661 product_pd(uintx, MaxPermSize, \ 2662 "Maximum size of permanent generation (in bytes)") \ 2663 \ 2664 product(uintx, MinHeapFreeRatio, 40, \ 2665 "Min percentage of heap free after GC to avoid expansion") \ 2666 \ 2667 product(uintx, MaxHeapFreeRatio, 70, \ 2668 "Max percentage of heap free after GC to avoid shrinking") \ 2669 \ 2670 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ 2671 "Number of milliseconds per MB of free space in the heap") \ 2672 \ 2673 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ 2674 "Min change in heap space due to GC (in bytes)") \ 2675 \ 2676 product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K), \ 2677 "Min expansion of permanent heap (in bytes)") \ 2678 \ 2679 product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M), \ 2680 "Max expansion of permanent heap without full GC (in bytes)") \ 2681 \ 2682 product(intx, QueuedAllocationWarningCount, 0, \ 2683 "Number of times an allocation that queues behind a GC " \ 2684 "will retry before printing a warning") \ 2685 \ 2686 diagnostic(uintx, VerifyGCStartAt, 0, \ 2687 "GC invoke count where +VerifyBefore/AfterGC kicks in") \ 2688 \ 2689 diagnostic(intx, VerifyGCLevel, 0, \ 2690 "Generation level at which to start +VerifyBefore/AfterGC") \ 2691 \ 2692 develop(uintx, ExitAfterGCNum, 0, \ 2693 "If non-zero, exit after this GC.") \ 2694 \ 2695 product(intx, MaxTenuringThreshold, 15, \ 2696 "Maximum value for tenuring threshold") \ 2697 \ 2698 product(intx, InitialTenuringThreshold, 7, \ 2699 "Initial value for tenuring threshold") \ 2700 \ 2701 product(intx, TargetSurvivorRatio, 50, \ 2702 "Desired percentage of survivor space used after scavenge") \ 2703 \ 2704 product(intx, MarkSweepDeadRatio, 5, \ 2705 "Percentage (0-100) of the old gen allowed as dead wood." \ 2706 "Serial mark sweep treats this as both the min and max value." \ 2707 "CMS uses this value only if it falls back to mark sweep." \ 2708 "Par compact uses a variable scale based on the density of the" \ 2709 "generation and treats this as the max value when the heap is" \ 2710 "either completely full or completely empty. Par compact also" \ 2711 "has a smaller default value; see arguments.cpp.") \ 2712 \ 2713 product(intx, PermMarkSweepDeadRatio, 20, \ 2714 "Percentage (0-100) of the perm gen allowed as dead wood." \ 2715 "See MarkSweepDeadRatio for collector-specific comments.") \ 2716 \ 2717 product(intx, MarkSweepAlwaysCompactCount, 4, \ 2718 "How often should we fully compact the heap (ignoring the dead " \ 2719 "space parameters)") \ 2720 \ 2721 product(intx, PrintCMSStatistics, 0, \ 2722 "Statistics for CMS") \ 2723 \ 2724 product(bool, PrintCMSInitiationStatistics, false, \ 2725 "Statistics for initiating a CMS collection") \ 2726 \ 2727 product(intx, PrintFLSStatistics, 0, \ 2728 "Statistics for CMS' FreeListSpace") \ 2729 \ 2730 product(intx, PrintFLSCensus, 0, \ 2731 "Census for CMS' FreeListSpace") \ 2732 \ 2733 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ 2734 "Delay in ms between expansion and allocation") \ 2735 \ 2736 product(intx, DeferThrSuspendLoopCount, 4000, \ 2737 "(Unstable) Number of times to iterate in safepoint loop " \ 2738 " before blocking VM threads ") \ 2739 \ 2740 product(intx, DeferPollingPageLoopCount, -1, \ 2741 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ 2742 "before changing safepoint polling page to RO ") \ 2743 \ 2744 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ 2745 \ 2746 product(bool, UseDepthFirstScavengeOrder, true, \ 2747 "true: the scavenge order will be depth-first, " \ 2748 "false: the scavenge order will be breadth-first") \ 2749 \ 2750 product(bool, PSChunkLargeArrays, true, \ 2751 "true: process large arrays in chunks") \ 2752 \ 2753 product(uintx, GCDrainStackTargetSize, 64, \ 2754 "how many entries we'll try to leave on the stack during " \ 2755 "parallel GC") \ 2756 \ 2757 /* stack parameters */ \ 2758 product_pd(intx, StackYellowPages, \ 2759 "Number of yellow zone (recoverable overflows) pages") \ 2760 \ 2761 product_pd(intx, StackRedPages, \ 2762 "Number of red zone (unrecoverable overflows) pages") \ 2763 \ 2764 product_pd(intx, StackShadowPages, \ 2765 "Number of shadow zone (for overflow checking) pages" \ 2766 " this should exceed the depth of the VM and native call stack") \ 2767 \ 2768 product_pd(intx, ThreadStackSize, \ 2769 "Thread Stack Size (in Kbytes)") \ 2770 \ 2771 product_pd(intx, VMThreadStackSize, \ 2772 "Non-Java Thread Stack Size (in Kbytes)") \ 2773 \ 2774 product_pd(intx, CompilerThreadStackSize, \ 2775 "Compiler Thread Stack Size (in Kbytes)") \ 2776 \ 2777 develop_pd(uintx, JVMInvokeMethodSlack, \ 2778 "Stack space (bytes) required for JVM_InvokeMethod to complete") \ 2779 \ 2780 product(uintx, ThreadSafetyMargin, 50*M, \ 2781 "Thread safety margin is used on fixed-stack LinuxThreads (on " \ 2782 "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ 2783 "disable this feature") \ 2784 \ 2785 /* code cache parameters */ \ 2786 develop(uintx, CodeCacheSegmentSize, 64, \ 2787 "Code cache segment size (in bytes) - smallest unit of " \ 2788 "allocation") \ 2789 \ 2790 develop_pd(intx, CodeEntryAlignment, \ 2791 "Code entry alignment for generated code (in bytes)") \ 2792 \ 2793 product_pd(uintx, InitialCodeCacheSize, \ 2794 "Initial code cache size (in bytes)") \ 2795 \ 2796 product_pd(uintx, ReservedCodeCacheSize, \ 2797 "Reserved code cache size (in bytes) - maximum code cache size") \ 2798 \ 2799 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ 2800 "When less than X space left, we stop compiling.") \ 2801 \ 2802 product_pd(uintx, CodeCacheExpansionSize, \ 2803 "Code cache expansion size (in bytes)") \ 2804 \ 2805 develop_pd(uintx, CodeCacheMinBlockLength, \ 2806 "Minimum number of segments in a code cache block.") \ 2807 \ 2808 notproduct(bool, ExitOnFullCodeCache, false, \ 2809 "Exit the VM if we fill the code cache.") \ 2810 \ 2811 /* interpreter debugging */ \ 2812 develop(intx, BinarySwitchThreshold, 5, \ 2813 "Minimal number of lookupswitch entries for rewriting to binary " \ 2814 "switch") \ 2815 \ 2816 develop(intx, StopInterpreterAt, 0, \ 2817 "Stops interpreter execution at specified bytecode number") \ 2818 \ 2819 develop(intx, TraceBytecodesAt, 0, \ 2820 "Traces bytecodes starting with specified bytecode number") \ 2821 \ 2822 /* compiler interface */ \ 2823 develop(intx, CIStart, 0, \ 2824 "the id of the first compilation to permit") \ 2825 \ 2826 develop(intx, CIStop, -1, \ 2827 "the id of the last compilation to permit") \ 2828 \ 2829 develop(intx, CIStartOSR, 0, \ 2830 "the id of the first osr compilation to permit " \ 2831 "(CICountOSR must be on)") \ 2832 \ 2833 develop(intx, CIStopOSR, -1, \ 2834 "the id of the last osr compilation to permit " \ 2835 "(CICountOSR must be on)") \ 2836 \ 2837 develop(intx, CIBreakAtOSR, -1, \ 2838 "id of osr compilation to break at") \ 2839 \ 2840 develop(intx, CIBreakAt, -1, \ 2841 "id of compilation to break at") \ 2842 \ 2843 product(ccstrlist, CompileOnly, "", \ 2844 "List of methods (pkg/class.name) to restrict compilation to") \ 2845 \ 2846 product(ccstr, CompileCommandFile, NULL, \ 2847 "Read compiler commands from this file [.hotspot_compiler]") \ 2848 \ 2849 product(ccstrlist, CompileCommand, "", \ 2850 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ 2851 \ 2852 product(bool, CICompilerCountPerCPU, false, \ 2853 "1 compiler thread for log(N CPUs)") \ 2854 \ 2855 develop(intx, CIFireOOMAt, -1, \ 2856 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ 2857 "(non-negative value throws OOM after this many CI accesses " \ 2858 "in each compile)") \ 2859 \ 2860 develop(intx, CIFireOOMAtDelay, -1, \ 2861 "Wait for this many CI accesses to occur in all compiles before " \ 2862 "beginning to throw OutOfMemoryErrors in each compile") \ 2863 \ 2864 /* Priorities */ \ 2865 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ 2866 \ 2867 product(intx, ThreadPriorityPolicy, 0, \ 2868 "0 : Normal. "\ 2869 " VM chooses priorities that are appropriate for normal "\ 2870 " applications. On Solaris NORM_PRIORITY and above are mapped "\ 2871 " to normal native priority. Java priorities below NORM_PRIORITY"\ 2872 " map to lower native priority values. On Windows applications"\ 2873 " are allowed to use higher native priorities. However, with "\ 2874 " ThreadPriorityPolicy=0, VM will not use the highest possible"\ 2875 " native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may "\ 2876 " interfere with system threads. On Linux thread priorities "\ 2877 " are ignored because the OS does not support static priority "\ 2878 " in SCHED_OTHER scheduling class which is the only choice for"\ 2879 " non-root, non-realtime applications. "\ 2880 "1 : Aggressive. "\ 2881 " Java thread priorities map over to the entire range of "\ 2882 " native thread priorities. Higher Java thread priorities map "\ 2883 " to higher native thread priorities. This policy should be "\ 2884 " used with care, as sometimes it can cause performance "\ 2885 " degradation in the application and/or the entire system. On "\ 2886 " Linux this policy requires root privilege.") \ 2887 \ 2888 product(bool, ThreadPriorityVerbose, false, \ 2889 "print priority changes") \ 2890 \ 2891 product(intx, DefaultThreadPriority, -1, \ 2892 "what native priority threads run at if not specified elsewhere (-1 means no change)") \ 2893 \ 2894 product(intx, CompilerThreadPriority, -1, \ 2895 "what priority should compiler threads run at (-1 means no change)") \ 2896 \ 2897 product(intx, VMThreadPriority, -1, \ 2898 "what priority should VM threads run at (-1 means no change)") \ 2899 \ 2900 product(bool, CompilerThreadHintNoPreempt, true, \ 2901 "(Solaris only) Give compiler threads an extra quanta") \ 2902 \ 2903 product(bool, VMThreadHintNoPreempt, false, \ 2904 "(Solaris only) Give VM thread an extra quanta") \ 2905 \ 2906 product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2907 product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2908 product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2909 product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2910 product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2911 product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2912 product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2913 product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2914 product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 2915 product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ 2916 \ 2917 /* compiler debugging */ \ 2918 notproduct(intx, CompileTheWorldStartAt, 1, \ 2919 "First class to consider when using +CompileTheWorld") \ 2920 \ 2921 notproduct(intx, CompileTheWorldStopAt, max_jint, \ 2922 "Last class to consider when using +CompileTheWorld") \ 2923 \ 2924 develop(intx, NewCodeParameter, 0, \ 2925 "Testing Only: Create a dedicated integer parameter before " \ 2926 "putback") \ 2927 \ 2928 /* new oopmap storage allocation */ \ 2929 develop(intx, MinOopMapAllocation, 8, \ 2930 "Minimum number of OopMap entries in an OopMapSet") \ 2931 \ 2932 /* Background Compilation */ \ 2933 develop(intx, LongCompileThreshold, 50, \ 2934 "Used with +TraceLongCompiles") \ 2935 \ 2936 product(intx, StarvationMonitorInterval, 200, \ 2937 "Pause between each check in ms") \ 2938 \ 2939 /* recompilation */ \ 2940 product_pd(intx, CompileThreshold, \ 2941 "number of interpreted method invocations before (re-)compiling") \ 2942 \ 2943 product_pd(intx, BackEdgeThreshold, \ 2944 "Interpreter Back edge threshold at which an OSR compilation is invoked")\ 2945 \ 2946 product(intx, Tier1BytecodeLimit, 10, \ 2947 "Must have at least this many bytecodes before tier1" \ 2948 "invocation counters are used") \ 2949 \ 2950 product_pd(intx, Tier2CompileThreshold, \ 2951 "threshold at which a tier 2 compilation is invoked") \ 2952 \ 2953 product_pd(intx, Tier2BackEdgeThreshold, \ 2954 "Back edge threshold at which a tier 2 compilation is invoked") \ 2955 \ 2956 product_pd(intx, Tier3CompileThreshold, \ 2957 "threshold at which a tier 3 compilation is invoked") \ 2958 \ 2959 product_pd(intx, Tier3BackEdgeThreshold, \ 2960 "Back edge threshold at which a tier 3 compilation is invoked") \ 2961 \ 2962 product_pd(intx, Tier4CompileThreshold, \ 2963 "threshold at which a tier 4 compilation is invoked") \ 2964 \ 2965 product_pd(intx, Tier4BackEdgeThreshold, \ 2966 "Back edge threshold at which a tier 4 compilation is invoked") \ 2967 \ 2968 product_pd(bool, TieredCompilation, \ 2969 "Enable two-tier compilation") \ 2970 \ 2971 product(bool, StressTieredRuntime, false, \ 2972 "Alternate client and server compiler on compile requests") \ 2973 \ 2974 product_pd(intx, OnStackReplacePercentage, \ 2975 "NON_TIERED number of method invocations/branches (expressed as %"\ 2976 "of CompileThreshold) before (re-)compiling OSR code") \ 2977 \ 2978 product(intx, InterpreterProfilePercentage, 33, \ 2979 "NON_TIERED number of method invocations/branches (expressed as %"\ 2980 "of CompileThreshold) before profiling in the interpreter") \ 2981 \ 2982 develop(intx, MaxRecompilationSearchLength, 10, \ 2983 "max. # frames to inspect searching for recompilee") \ 2984 \ 2985 develop(intx, MaxInterpretedSearchLength, 3, \ 2986 "max. # interp. frames to skip when searching for recompilee") \ 2987 \ 2988 develop(intx, DesiredMethodLimit, 8000, \ 2989 "desired max. method size (in bytecodes) after inlining") \ 2990 \ 2991 develop(intx, HugeMethodLimit, 8000, \ 2992 "don't compile methods larger than this if " \ 2993 "+DontCompileHugeMethods") \ 2994 \ 2995 /* New JDK 1.4 reflection implementation */ \ 2996 \ 2997 develop(bool, UseNewReflection, true, \ 2998 "Temporary flag for transition to reflection based on dynamic " \ 2999 "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ 3000 "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ 3001 "changes were needed") \ 3002 \ 3003 develop(bool, VerifyReflectionBytecodes, false, \ 3004 "Force verification of 1.4 reflection bytecodes. Does not work " \ 3005 "in situations like that described in 4486457 or for " \ 3006 "constructors generated for serialization, so can not be enabled "\ 3007 "in product.") \ 3008 \ 3009 product(bool, ReflectionWrapResolutionErrors, true, \ 3010 "Temporary flag for transition to AbstractMethodError wrapped " \ 3011 "in InvocationTargetException. See 6531596") \ 3012 \ 3013 \ 3014 develop(intx, FastSuperclassLimit, 8, \ 3015 "Depth of hardwired instanceof accelerator array") \ 3016 \ 3017 /* Properties for Java libraries */ \ 3018 \ 3019 product(intx, MaxDirectMemorySize, -1, \ 3020 "Maximum total size of NIO direct-buffer allocations") \ 3021 \ 3022 /* temporary developer defined flags */ \ 3023 \ 3024 diagnostic(bool, UseNewCode, false, \ 3025 "Testing Only: Use the new version while testing") \ 3026 \ 3027 diagnostic(bool, UseNewCode2, false, \ 3028 "Testing Only: Use the new version while testing") \ 3029 \ 3030 diagnostic(bool, UseNewCode3, false, \ 3031 "Testing Only: Use the new version while testing") \ 3032 \ 3033 /* flags for performance data collection */ \ 3034 \ 3035 product(bool, UsePerfData, true, \ 3036 "Flag to disable jvmstat instrumentation for performance testing" \ 3037 "and problem isolation purposes.") \ 3038 \ 3039 product(bool, PerfDataSaveToFile, false, \ 3040 "Save PerfData memory to hsperfdata_<pid> file on exit") \ 3041 \ 3042 product(ccstr, PerfDataSaveFile, NULL, \ 3043 "Save PerfData memory to the specified absolute pathname," \ 3044 "%p in the file name if present will be replaced by pid") \ 3045 \ 3046 product(intx, PerfDataSamplingInterval, 50 /*ms*/, \ 3047 "Data sampling interval in milliseconds") \ 3048 \ 3049 develop(bool, PerfTraceDataCreation, false, \ 3050 "Trace creation of Performance Data Entries") \ 3051 \ 3052 develop(bool, PerfTraceMemOps, false, \ 3053 "Trace PerfMemory create/attach/detach calls") \ 3054 \ 3055 product(bool, PerfDisableSharedMem, false, \ 3056 "Store performance data in standard memory") \ 3057 \ 3058 product(intx, PerfDataMemorySize, 32*K, \ 3059 "Size of performance data memory region. Will be rounded " \ 3060 "up to a multiple of the native os page size.") \ 3061 \ 3062 product(intx, PerfMaxStringConstLength, 1024, \ 3063 "Maximum PerfStringConstant string length before truncation") \ 3064 \ 3065 product(bool, PerfAllowAtExitRegistration, false, \ 3066 "Allow registration of atexit() methods") \ 3067 \ 3068 product(bool, PerfBypassFileSystemCheck, false, \ 3069 "Bypass Win32 file system criteria checks (Windows Only)") \ 3070 \ 3071 product(intx, UnguardOnExecutionViolation, 0, \ 3072 "Unguard page and retry on no-execute fault (Win32 only)" \ 3073 "0=off, 1=conservative, 2=aggressive") \ 3074 \ 3075 /* Serviceability Support */ \ 3076 \ 3077 product(bool, ManagementServer, false, \ 3078 "Create JMX Management Server") \ 3079 \ 3080 product(bool, DisableAttachMechanism, false, \ 3081 "Disable mechanism that allows tools to attach to this VM") \ 3082 \ 3083 product(bool, StartAttachListener, false, \ 3084 "Always start Attach Listener at VM startup") \ 3085 \ 3086 manageable(bool, PrintConcurrentLocks, false, \ 3087 "Print java.util.concurrent locks in thread dump") \ 3088 \ 3089 /* Shared spaces */ \ 3090 \ 3091 product(bool, UseSharedSpaces, true, \ 3092 "Use shared spaces in the permanent generation") \ 3093 \ 3094 product(bool, RequireSharedSpaces, false, \ 3095 "Require shared spaces in the permanent generation") \ 3096 \ 3097 product(bool, ForceSharedSpaces, false, \ 3098 "Require shared spaces in the permanent generation") \ 3099 \ 3100 product(bool, DumpSharedSpaces, false, \ 3101 "Special mode: JVM reads a class list, loads classes, builds " \ 3102 "shared spaces, and dumps the shared spaces to a file to be " \ 3103 "used in future JVM runs.") \ 3104 \ 3105 product(bool, PrintSharedSpaces, false, \ 3106 "Print usage of shared spaces") \ 3107 \ 3108 product(uintx, SharedDummyBlockSize, 512*M, \ 3109 "Size of dummy block used to shift heap addresses (in bytes)") \ 3110 \ 3111 product(uintx, SharedReadWriteSize, 12*M, \ 3112 "Size of read-write space in permanent generation (in bytes)") \ 3113 \ 3114 product(uintx, SharedReadOnlySize, 8*M, \ 3115 "Size of read-only space in permanent generation (in bytes)") \ 3116 \ 3117 product(uintx, SharedMiscDataSize, 4*M, \ 3118 "Size of the shared data area adjacent to the heap (in bytes)") \ 3119 \ 3120 product(uintx, SharedMiscCodeSize, 4*M, \ 3121 "Size of the shared code area adjacent to the heap (in bytes)") \ 3122 \ 3123 diagnostic(bool, SharedOptimizeColdStart, true, \ 3124 "At dump time, order shared objects to achieve better " \ 3125 "cold startup time.") \ 3126 \ 3127 develop(intx, SharedOptimizeColdStartPolicy, 2, \ 3128 "Reordering policy for SharedOptimizeColdStart " \ 3129 "0=favor classload-time locality, 1=balanced, " \ 3130 "2=favor runtime locality") \ 3131 \ 3132 diagnostic(bool, SharedSkipVerify, false, \ 3133 "Skip assert() and verify() which page-in unwanted shared " \ 3134 "objects. ") \ 3135 \ 3136 product(bool, TaggedStackInterpreter, false, \ 3137 "Insert tags in interpreter execution stack for oopmap generaion")\ 3138 \ 3139 diagnostic(bool, PauseAtStartup, false, \ 3140 "Causes the VM to pause at startup time and wait for the pause " \ 3141 "file to be removed (default: ./vm.paused.<pid>)") \ 3142 \ 3143 diagnostic(ccstr, PauseAtStartupFile, NULL, \ 3144 "The file to create and for whose removal to await when pausing " \ 3145 "at startup. (default: ./vm.paused.<pid>)") \ 3146 \ 3147 product(bool, ExtendedDTraceProbes, false, \ 3148 "Enable performance-impacting dtrace probes") \ 3149 \ 3150 product(bool, DTraceMethodProbes, false, \ 3151 "Enable dtrace probes for method-entry and method-exit") \ 3152 \ 3153 product(bool, DTraceAllocProbes, false, \ 3154 "Enable dtrace probes for object allocation") \ 3155 \ 3156 product(bool, DTraceMonitorProbes, false, \ 3157 "Enable dtrace probes for monitor events") \ 3158 \ 3159 product(bool, RelaxAccessControlCheck, false, \ 3160 "Relax the access control checks in the verifier") \ 3161 \ 3162 product(bool, UseVMInterruptibleIO, true, \ 3163 "(Unstable, Solaris-specific) Thread interrupt before or with " \ 3164 "EINTR for I/O operations results in OS_INTRPT") 3165 3166 3167/* 3168 * Macros for factoring of globals 3169 */ 3170 3171// Interface macros 3172#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3173#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 3174#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 3175#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 3176#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 3177#ifdef PRODUCT 3178#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value; 3179#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name; 3180#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) 3181#else 3182#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 3183#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 3184#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3185#endif 3186 3187// Implementation macros 3188#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; 3189#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; 3190#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; 3191#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; 3192#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; 3193#ifdef PRODUCT 3194#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */ 3195#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) /* flag name is constant */ 3196#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) 3197#else 3198#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; 3199#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; 3200#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; 3201#endif 3202 3203RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG) 3204 3205RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) 3206