globals.hpp revision 1464:1a88d3c58e1d
11558Srgrimes/* 21558Srgrimes * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved. 31558Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41558Srgrimes * 51558Srgrimes * This code is free software; you can redistribute it and/or modify it 61558Srgrimes * under the terms of the GNU General Public License version 2 only, as 71558Srgrimes * published by the Free Software Foundation. 81558Srgrimes * 91558Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 101558Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 111558Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 121558Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 131558Srgrimes * accompanied this code). 141558Srgrimes * 151558Srgrimes * You should have received a copy of the GNU General Public License version 161558Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 171558Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 181558Srgrimes * 191558Srgrimes * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 201558Srgrimes * CA 95054 USA or visit www.sun.com if you need additional information or 211558Srgrimes * have any questions. 221558Srgrimes * 231558Srgrimes */ 241558Srgrimes 251558Srgrimes#if !defined(COMPILER1) && !defined(COMPILER2) 261558Srgrimesdefine_pd_global(bool, BackgroundCompilation, false); 271558Srgrimesdefine_pd_global(bool, UseTLAB, false); 281558Srgrimesdefine_pd_global(bool, CICompileOSR, false); 291558Srgrimesdefine_pd_global(bool, UseTypeProfile, false); 301558Srgrimesdefine_pd_global(bool, UseOnStackReplacement, false); 311558Srgrimesdefine_pd_global(bool, InlineIntrinsics, false); 321558Srgrimesdefine_pd_global(bool, PreferInterpreterNativeStubs, true); 331558Srgrimesdefine_pd_global(bool, ProfileInterpreter, false); 3437663Scharnierdefine_pd_global(bool, ProfileTraps, false); 351558Srgrimesdefine_pd_global(bool, TieredCompilation, false); 361558Srgrimes 372999Swollmandefine_pd_global(intx, CompileThreshold, 0); 381558Srgrimesdefine_pd_global(intx, Tier2CompileThreshold, 0); 39105267Scharnierdefine_pd_global(intx, Tier3CompileThreshold, 0); 401558Srgrimesdefine_pd_global(intx, Tier4CompileThreshold, 0); 4137663Scharnier 42105267Scharnierdefine_pd_global(intx, BackEdgeThreshold, 0); 4337663Scharnierdefine_pd_global(intx, Tier2BackEdgeThreshold, 0); 441558Srgrimesdefine_pd_global(intx, Tier3BackEdgeThreshold, 0); 45105267Scharnierdefine_pd_global(intx, Tier4BackEdgeThreshold, 0); 46105267Scharnier 47105267Scharnierdefine_pd_global(intx, OnStackReplacePercentage, 0); 481558Srgrimesdefine_pd_global(bool, ResizeTLAB, false); 491558Srgrimesdefine_pd_global(intx, FreqInlineSize, 0); 5074462Salfreddefine_pd_global(intx, InlineSmallCode, 0); 511558Srgrimesdefine_pd_global(intx, NewSizeThreadIncrease, 4*K); 521558Srgrimesdefine_pd_global(intx, InlineClassNatives, true); 5324330Sguidodefine_pd_global(intx, InlineUnsafeOps, true); 5496622Siedowsedefine_pd_global(intx, InitialCodeCacheSize, 160*K); 5596622Siedowsedefine_pd_global(intx, ReservedCodeCacheSize, 32*M); 561558Srgrimesdefine_pd_global(intx, CodeCacheExpansionSize, 32*K); 571558Srgrimesdefine_pd_global(intx, CodeCacheMinBlockLength, 1); 58109363Smbrdefine_pd_global(uintx,PermSize, ScaleForWordSize(4*M)); 591558Srgrimesdefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M)); 6074462Salfreddefine_pd_global(bool, NeverActAsServerClassMachine, true); 6174462Salfreddefine_pd_global(uint64_t,MaxRAM, 1ULL*G); 621558Srgrimes#define CI_COMPILER_COUNT 0 639336Sdfr#else 6483653Speter 651558Srgrimes#ifdef COMPILER2 661558Srgrimes#define CI_COMPILER_COUNT 2 671558Srgrimes#else 681558Srgrimes#define CI_COMPILER_COUNT 1 6937663Scharnier#endif // COMPILER2 701558Srgrimes 711558Srgrimes#endif // no compilers 72149433Spjd 73103949Smike 741558Srgrimes// string type aliases used only in this file 751558Srgrimestypedef const char* ccstr; 761558Srgrimestypedef const char* ccstrlist; // represents string arguments which accumulate 771558Srgrimes 781558Srgrimesenum FlagValueOrigin { 791558Srgrimes DEFAULT = 0, 801558Srgrimes COMMAND_LINE = 1, 811558Srgrimes ENVIRON_VAR = 2, 82158857Srodrigc CONFIG_FILE = 3, 831558Srgrimes MANAGEMENT = 4, 841558Srgrimes ERGONOMIC = 5, 851558Srgrimes ATTACH_ON_DEMAND = 6, 861558Srgrimes INTERNAL = 99 871558Srgrimes}; 881558Srgrimes 891558Srgrimesstruct Flag { 901558Srgrimes const char *type; 911558Srgrimes const char *name; 921558Srgrimes void* addr; 931558Srgrimes const char *kind; 941558Srgrimes FlagValueOrigin origin; 951558Srgrimes 961558Srgrimes // points to all Flags static array 971558Srgrimes static Flag *flags; 981558Srgrimes 991558Srgrimes // number of flags 1001558Srgrimes static size_t numFlags; 1011558Srgrimes 1021558Srgrimes static Flag* find_flag(char* name, size_t length); 1031558Srgrimes 1041558Srgrimes bool is_bool() const { return strcmp(type, "bool") == 0; } 1051558Srgrimes bool get_bool() const { return *((bool*) addr); } 1069336Sdfr void set_bool(bool value) { *((bool*) addr) = value; } 1071558Srgrimes 1081558Srgrimes bool is_intx() const { return strcmp(type, "intx") == 0; } 1091558Srgrimes intx get_intx() const { return *((intx*) addr); } 1101558Srgrimes void set_intx(intx value) { *((intx*) addr) = value; } 1111558Srgrimes 1121558Srgrimes bool is_uintx() const { return strcmp(type, "uintx") == 0; } 1131558Srgrimes uintx get_uintx() const { return *((uintx*) addr); } 1141558Srgrimes void set_uintx(uintx value) { *((uintx*) addr) = value; } 11527447Sdfr 1161558Srgrimes bool is_uint64_t() const { return strcmp(type, "uint64_t") == 0; } 1171558Srgrimes uint64_t get_uint64_t() const { return *((uint64_t*) addr); } 1181558Srgrimes void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; } 1191558Srgrimes 1201558Srgrimes bool is_double() const { return strcmp(type, "double") == 0; } 12174462Salfred double get_double() const { return *((double*) addr); } 12275801Siedowse void set_double(double value) { *((double*) addr) = value; } 12342144Sdfr 1241558Srgrimes bool is_ccstr() const { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; } 1251558Srgrimes bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; } 1261558Srgrimes ccstr get_ccstr() const { return *((ccstr*) addr); } 12774462Salfred void set_ccstr(ccstr value) { *((ccstr*) addr) = value; } 1281558Srgrimes 1291558Srgrimes bool is_unlocker() const; 1301558Srgrimes bool is_unlocked() const; 1311558Srgrimes bool is_writeable() const; 1321558Srgrimes bool is_external() const; 1331558Srgrimes 1341558Srgrimes void print_on(outputStream* st); 1351558Srgrimes void print_as_flag(outputStream* st); 1361558Srgrimes}; 1371558Srgrimes 1381558Srgrimes// debug flags control various aspects of the VM and are global accessible 1391558Srgrimes 14075641Siedowse// use FlagSetting to temporarily change some debug flag 1417401Swpaul// e.g. FlagSetting fs(DebugThisAndThat, true); 1421558Srgrimes// restored to previous value upon leaving scope 1431558Srgrimesclass FlagSetting { 1449336Sdfr bool val; 1451558Srgrimes bool* flag; 1461558Srgrimes public: 1471558Srgrimes FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } 1481558Srgrimes ~FlagSetting() { *flag = val; } 1499336Sdfr}; 1509336Sdfr 1519336Sdfr 1529336Sdfrclass CounterSetting { 1539336Sdfr intx* counter; 1549336Sdfr public: 1551558Srgrimes CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } 15692882Simp ~CounterSetting() { (*counter)--; } 15792882Simp}; 15892882Simp 15992882Simp 16092882Simpclass IntFlagSetting { 16192882Simp intx val; 16275801Siedowse intx* flag; 16392882Simp public: 16475635Siedowse IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; } 16592882Simp ~IntFlagSetting() { *flag = val; } 16692882Simp}; 16792882Simp 16892882Simp 16992882Simpclass DoubleFlagSetting { 17092882Simp double val; 17192882Simp double* flag; 17292882Simp public: 17392882Simp DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } 17492882Simp ~DoubleFlagSetting() { *flag = val; } 17592882Simp}; 17692882Simp 17792882Simp 17892882Simpclass CommandLineFlags { 17992882Simp public: 18092882Simp static bool boolAt(char* name, size_t len, bool* value); 18192882Simp static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } 18292882Simp static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin); 18392882Simp static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin) { return boolAtPut(name, strlen(name), value, origin); } 18492882Simp 18592882Simp static bool intxAt(char* name, size_t len, intx* value); 18675754Siedowse static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } 18775801Siedowse static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin); 18892882Simp static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin) { return intxAtPut(name, strlen(name), value, origin); } 18992882Simp 19092882Simp static bool uintxAt(char* name, size_t len, uintx* value); 19192882Simp static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } 192100117Salfred static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin); 19375801Siedowse static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); } 19475801Siedowse 19575801Siedowse static bool uint64_tAt(char* name, size_t len, uint64_t* value); 19692882Simp static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } 19792882Simp static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin); 19892882Simp static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); } 19992882Simp 200100117Salfred static bool doubleAt(char* name, size_t len, double* value); 20192882Simp static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } 20292882Simp static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin); 20392882Simp static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); } 2041558Srgrimes 2051558Srgrimes static bool ccstrAt(char* name, size_t len, ccstr* value); 2061558Srgrimes static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } 2071558Srgrimes static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin); 208166440Spjd static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); } 209166440Spjd 21072650Sgreen // Returns false if name is not a command line flag. 21191354Sdd static bool wasSetOnCmdline(const char* name, bool* value); 21272650Sgreen static void printSetFlags(); 2131558Srgrimes 21472650Sgreen static void printFlags(); 21572650Sgreen 2161558Srgrimes static void verify() PRODUCT_RETURN; 21725087Sdfr}; 2189336Sdfr 2199336Sdfr// use this for flags that are true by default in the debug version but 220121767Speter// false in the optimized version, and vice versa 22175754Siedowse#ifdef ASSERT 22274462Salfred#define trueInDebug true 2231558Srgrimes#define falseInDebug false 22474462Salfred#else 22574462Salfred#define trueInDebug false 226149433Spjd#define falseInDebug true 22775801Siedowse#endif 2281558Srgrimes 2291558Srgrimes// use this for flags that are true per default in the product build 23083653Speter// but false in development builds, and vice versa 2311558Srgrimes#ifdef PRODUCT 2321558Srgrimes#define trueInProduct true 2331558Srgrimes#define falseInProduct false 23475801Siedowse#else 235100336Sjoerg#define trueInProduct false 23674462Salfred#define falseInProduct true 2371558Srgrimes#endif 2381558Srgrimes 2391558Srgrimes// use this for flags that are true per default in the tiered build 24092882Simp// but false in non-tiered builds, and vice versa 2411558Srgrimes#ifdef TIERED 2421558Srgrimes#define trueInTiered true 2431558Srgrimes#define falseInTiered false 2441558Srgrimes#else 2451558Srgrimes#define trueInTiered false 2461558Srgrimes#define falseInTiered true 2471558Srgrimes#endif 2481558Srgrimes 2491558Srgrimes// develop flags are settable / visible only during development and are constant in the PRODUCT version 2501558Srgrimes// product flags are always settable / visible 2511558Srgrimes// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version 2521558Srgrimes 2531558Srgrimes// A flag must be declared with one of the following types: 2541558Srgrimes// bool, intx, uintx, ccstr. 2551558Srgrimes// The type "ccstr" is an alias for "const char*" and is used 2561558Srgrimes// only in this file, because the macrology requires single-token type names. 2571558Srgrimes 25875754Siedowse// Note: Diagnostic options not meant for VM tuning or for product modes. 259126572Sbms// They are to be used for VM quality assurance or field diagnosis 260126572Sbms// of VM bugs. They are hidden so that users will not be encouraged to 261126572Sbms// try them as if they were VM ordinary execution options. However, they 26274462Salfred// are available in the product version of the VM. Under instruction 26374462Salfred// from support engineers, VM customers can turn them on to collect 264149433Spjd// diagnostic information about VM problems. To use a VM diagnostic 26574462Salfred// option, you must first specify +UnlockDiagnosticVMOptions. 26674462Salfred// (This master switch also affects the behavior of -Xprintflags.) 267109363Smbr// 26874462Salfred// experimental flags are in support of features that are not 269126572Sbms// part of the officially supported product, but are available 270126572Sbms// for experimenting with. They could, for example, be performance 2711558Srgrimes// features that may not have undergone full or rigorous QA, but which may 27275635Siedowse// help performance in some cases and released for experimentation 273126643Smarkm// by the community of users and developers. This flag also allows one to 27475635Siedowse// be able to build a fully supported product that nonetheless also 27574462Salfred// ships with some unsupported, lightly tested, experimental features. 276150214Spjd// Like the UnlockDiagnosticVMOptions flag above, there is a corresponding 277149433Spjd// UnlockExperimentalVMOptions flag, which allows the control and 278149433Spjd// modification of the experimental flags. 279149433Spjd// 280149433Spjd// manageable flags are writeable external product flags. 281149433Spjd// They are dynamically writeable through the JDK management interface 28274462Salfred// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. 28374462Salfred// These flags are external exported interface (see CCC). The list of 28474462Salfred// manageable flags can be queried programmatically through the management 28574462Salfred// interface. 28674462Salfred// 28774462Salfred// A flag can be made as "manageable" only if 28883687Speter// - the flag is defined in a CCC as an external exported interface. 28983687Speter// - the VM implementation supports dynamic setting of the flag. 29083687Speter// This implies that the VM must *always* query the flag variable 29183687Speter// and not reuse state related to the flag state at any given time. 2922999Swollman// - you want the flag to be queried programmatically by the customers. 2932999Swollman// 294126572Sbms// product_rw flags are writeable internal product flags. 2951558Srgrimes// They are like "manageable" flags but for internal/private use. 29625087Sdfr// The list of product_rw flags are internal/private flags which 29725087Sdfr// may be changed/removed in a future release. It can be set 29825087Sdfr// through the management interface to get/set value 2999336Sdfr// when the name of flag is supplied. 3009336Sdfr// 3019336Sdfr// A flag can be made as "product_rw" only if 3029336Sdfr// - the VM implementation supports dynamic setting of the flag. 3039336Sdfr// This implies that the VM must *always* query the flag variable 3049336Sdfr// and not reuse state related to the flag state at any given time. 3058688Sphk// 3068688Sphk// Note that when there is a need to support develop flags to be writeable, 3078688Sphk// it can be done in the same way as product_rw. 30831656Sguido 309121767Speter#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ 31031656Sguido \ 311126572Sbms lp64_product(bool, UseCompressedOops, false, \ 312126572Sbms "Use 32-bit object references in 64-bit VM. " \ 313126572Sbms "lp64_product means flag is always constant in 32 bit VM") \ 314126572Sbms \ 315126572Sbms notproduct(bool, CheckCompressedOops, true, \ 316126572Sbms "generate checks in encoding/decoding code in debug VM") \ 317126572Sbms \ 3181558Srgrimes product_pd(uintx, HeapBaseMinAddress, \ 31937663Scharnier "OS specific low limit for heap base address") \ 3201558Srgrimes \ 3211558Srgrimes diagnostic(bool, PrintCompressedOopsMode, false, \ 3221558Srgrimes "Print compressed oops base address and encoding mode") \ 3231558Srgrimes \ 3241558Srgrimes /* UseMembar is theoretically a temp flag used for memory barrier \ 3251558Srgrimes * removal testing. It was supposed to be removed before FCS but has \ 326166440Spjd * been re-added (see 6401008) */ \ 327166440Spjd product(bool, UseMembar, false, \ 328166440Spjd "(Unstable) Issues membars on thread state transitions") \ 329166440Spjd \ 3301558Srgrimes /* Temporary: See 6948537 */ \ 3311558Srgrimes experimental(bool, UseMemSetInBOT, true, \ 33237663Scharnier "(Unstable) uses memset in BOT updates in GC code") \ 3331558Srgrimes \ 3341558Srgrimes diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ 33537663Scharnier "Enable normal processing of flags relating to field diagnostics")\ 3361558Srgrimes \ 3371558Srgrimes experimental(bool, UnlockExperimentalVMOptions, false, \ 33837663Scharnier "Enable normal processing of flags relating to experimental features")\ 3391558Srgrimes \ 3401558Srgrimes product(bool, JavaMonitorsInStackTrace, true, \ 3411558Srgrimes "Print info. about Java monitor locks when the stacks are dumped")\ 3421558Srgrimes \ 3431558Srgrimes product_pd(bool, UseLargePages, \ 34475754Siedowse "Use large page memory") \ 34574462Salfred \ 346164394Srodrigc product_pd(bool, UseLargePagesIndividualAllocation, \ 347149433Spjd "Allocate large pages individually for better affinity") \ 348149433Spjd \ 349149433Spjd develop(bool, LargePagesIndividualAllocationInjectError, false, \ 35074462Salfred "Fail large pages individual allocation") \ 35174462Salfred \ 35274462Salfred develop(bool, TracePageSizes, false, \ 35374462Salfred "Trace page size selection and usage.") \ 35474791Salfred \ 35574791Salfred product(bool, UseNUMA, false, \ 356109363Smbr "Use NUMA if available") \ 357109363Smbr \ 358109363Smbr product(bool, ForceNUMA, false, \ 35974791Salfred "Force NUMA optimizations on single-node/UMA systems") \ 36074791Salfred \ 36174462Salfred product(intx, NUMAChunkResizeWeight, 20, \ 36274462Salfred "Percentage (0-100) used to weight the current sample when " \ 36374462Salfred "computing exponentially decaying average for " \ 36474462Salfred "AdaptiveNUMAChunkSizing") \ 36574462Salfred \ 36674462Salfred product(intx, NUMASpaceResizeRate, 1*G, \ 36774462Salfred "Do not reallocate more that this amount per collection") \ 36874462Salfred \ 369117684Srwatson product(bool, UseAdaptiveNUMAChunkSizing, true, \ 37074462Salfred "Enable adaptive chunk sizing for NUMA") \ 37174462Salfred \ 37274462Salfred product(bool, NUMAStats, false, \ 37374462Salfred "Print NUMA stats in detailed heap information") \ 374117684Srwatson \ 375117684Srwatson product(intx, NUMAPageScanRate, 256, \ 37674462Salfred "Maximum number of pages to include in the page scan procedure") \ 37774462Salfred \ 37874462Salfred product_pd(bool, NeedsDeoptSuspend, \ 37974462Salfred "True for register window machines (sparc/ia64)") \ 38074791Salfred \ 38174791Salfred product(intx, UseSSE, 99, \ 38224759Sguido "Highest supported SSE instructions set on x86/x64") \ 38383687Speter \ 38483687Speter product(uintx, LargePageSizeInBytes, 0, \ 38583687Speter "Large page size (0 to let VM choose the page size") \ 38624759Sguido \ 38724759Sguido product(uintx, LargePageHeapSizeThreshold, 128*M, \ 38824759Sguido "Use large pages if max heap is at least this big") \ 38924330Sguido \ 390126572Sbms product(bool, ForceTimeHighResolution, false, \ 391126572Sbms "Using high time resolution(For Win32 only)") \ 392126572Sbms \ 393126572Sbms develop(bool, TraceItables, false, \ 394126572Sbms "Trace initialization and use of itables") \ 395126572Sbms \ 396126572Sbms develop(bool, TracePcPatching, false, \ 397126572Sbms "Trace usage of frame::patch_pc") \ 398126572Sbms \ 399126572Sbms develop(bool, TraceJumps, false, \ 400126572Sbms "Trace assembly jumps in thread ring buffer") \ 40174462Salfred \ 402126572Sbms develop(bool, TraceRelocator, false, \ 403126572Sbms "Trace the bytecode relocator") \ 404126572Sbms \ 405126572Sbms develop(bool, TraceLongCompiles, false, \ 406126572Sbms "Print out every time compilation is longer than " \ 407126572Sbms "a given threashold") \ 408126572Sbms \ 409126572Sbms develop(bool, SafepointALot, false, \ 41074462Salfred "Generates a lot of safepoints. Works with " \ 41174462Salfred "GuaranteedSafepointInterval") \ 41274462Salfred \ 41374462Salfred product_pd(bool, BackgroundCompilation, \ 41474462Salfred "A thread requesting compilation is not blocked during " \ 41574462Salfred "compilation") \ 41674462Salfred \ 41774462Salfred product(bool, PrintVMQWaitTime, false, \ 41874462Salfred "Prints out the waiting time in VM operation queue") \ 41974462Salfred \ 42074462Salfred develop(bool, BailoutToInterpreterForThrows, false, \ 42174462Salfred "Compiled methods which throws/catches exceptions will be " \ 42274462Salfred "deopt and intp.") \ 42374462Salfred \ 42474462Salfred develop(bool, NoYieldsInMicrolock, false, \ 42574462Salfred "Disable yields in microlock") \ 42674462Salfred \ 42774462Salfred develop(bool, TraceOopMapGeneration, false, \ 42874462Salfred "Shows oopmap generation") \ 429126572Sbms \ 430126572Sbms product(bool, MethodFlushing, true, \ 431126572Sbms "Reclamation of zombie and not-entrant methods") \ 432126572Sbms \ 433126572Sbms develop(bool, VerifyStack, false, \ 434126572Sbms "Verify stack of each thread when it is entering a runtime call") \ 435126572Sbms \ 436126572Sbms develop(bool, ForceUnreachable, false, \ 43774462Salfred "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \ 438109363Smbr \ 43974462Salfred notproduct(bool, StressDerivedPointers, false, \ 44074462Salfred "Force scavenge when a derived pointers is detected on stack " \ 44174462Salfred "after rtm call") \ 44274462Salfred \ 44374462Salfred develop(bool, TraceDerivedPointers, false, \ 44474462Salfred "Trace traversal of derived pointers on stack") \ 44574462Salfred \ 44674462Salfred notproduct(bool, TraceCodeBlobStacks, false, \ 44774462Salfred "Trace stack-walk of codeblobs") \ 44874462Salfred \ 44974462Salfred product(bool, PrintJNIResolving, false, \ 45074462Salfred "Used to implement -v:jni") \ 45174462Salfred \ 45274462Salfred notproduct(bool, PrintRewrites, false, \ 45374462Salfred "Print methods that are being rewritten") \ 45474462Salfred \ 45574462Salfred product(bool, UseInlineCaches, true, \ 45674791Salfred "Use Inline Caches for virtual calls ") \ 457126572Sbms \ 458126572Sbms develop(bool, InlineArrayCopy, true, \ 459126572Sbms "inline arraycopy native that is known to be part of " \ 460126572Sbms "base library DLL") \ 461126572Sbms \ 462126572Sbms develop(bool, InlineObjectHash, true, \ 463126572Sbms "inline Object::hashCode() native that is known to be part " \ 464126572Sbms "of base library DLL") \ 465126572Sbms \ 46674462Salfred develop(bool, InlineObjectCopy, true, \ 46774462Salfred "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ 46874462Salfred \ 46974462Salfred develop(bool, InlineNatives, true, \ 47074462Salfred "inline natives that are known to be part of base library DLL") \ 47174462Salfred \ 47274462Salfred develop(bool, InlineMathNatives, true, \ 47374462Salfred "inline SinD, CosD, etc.") \ 47474462Salfred \ 47574462Salfred develop(bool, InlineClassNatives, true, \ 47674462Salfred "inline Class.isInstance, etc") \ 47774462Salfred \ 47874462Salfred develop(bool, InlineAtomicLong, true, \ 47974462Salfred "inline sun.misc.AtomicLong") \ 48074462Salfred \ 48174462Salfred develop(bool, InlineThreadNatives, true, \ 48274462Salfred "inline Thread.currentThread, etc") \ 48374462Salfred \ 48474791Salfred develop(bool, InlineReflectionGetCallerClass, true, \ 485126572Sbms "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ 486126572Sbms "of base library DLL") \ 487126572Sbms \ 488126572Sbms develop(bool, InlineUnsafeOps, true, \ 489126572Sbms "inline memory ops (native methods) from sun.misc.Unsafe") \ 490126572Sbms \ 491126572Sbms develop(bool, ConvertCmpD2CmpF, true, \ 492126572Sbms "Convert cmpD to cmpF when one input is constant in float range") \ 493126572Sbms \ 49474462Salfred develop(bool, ConvertFloat2IntClipping, true, \ 495109363Smbr "Convert float2int clipping idiom to integer clipping") \ 49674462Salfred \ 49774462Salfred develop(bool, SpecialStringCompareTo, true, \ 49874462Salfred "special version of string compareTo") \ 49974462Salfred \ 50074462Salfred develop(bool, SpecialStringIndexOf, true, \ 50174462Salfred "special version of string indexOf") \ 50274462Salfred \ 50374462Salfred develop(bool, SpecialStringEquals, true, \ 50474462Salfred "special version of string equals") \ 50574462Salfred \ 50674462Salfred develop(bool, SpecialArraysEquals, true, \ 50774462Salfred "special version of Arrays.equals(char[],char[])") \ 50874462Salfred \ 50974462Salfred product(bool, UseSSE42Intrinsics, false, \ 51074462Salfred "SSE4.2 versions of intrinsics") \ 51174462Salfred \ 51274462Salfred develop(bool, TraceCallFixup, false, \ 51374462Salfred "traces all call fixups") \ 51474462Salfred \ 5151558Srgrimes develop(bool, DeoptimizeALot, false, \ 5161558Srgrimes "deoptimize at every exit from the runtime system") \ 51775754Siedowse \ 51875754Siedowse notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ 51975754Siedowse "a comma separated list of bcis to deoptimize at") \ 52075754Siedowse \ 52175754Siedowse product(bool, DeoptimizeRandom, false, \ 52275754Siedowse "deoptimize random frames on random exit from the runtime system")\ 52375754Siedowse \ 52475754Siedowse notproduct(bool, ZombieALot, false, \ 52575754Siedowse "creates zombies (non-entrant) at exit from the runt. system") \ 52675754Siedowse \ 52775754Siedowse notproduct(bool, WalkStackALot, false, \ 52875754Siedowse "trace stack (no print) at every exit from the runtime system") \ 52975754Siedowse \ 53075754Siedowse develop(bool, Debugging, false, \ 53175754Siedowse "set when executing debug methods in debug.ccp " \ 53275754Siedowse "(to prevent triggering assertions)") \ 53375754Siedowse \ 53475754Siedowse notproduct(bool, StrictSafepointChecks, trueInDebug, \ 53575754Siedowse "Enable strict checks that safepoints cannot happen for threads " \ 53675754Siedowse "that used No_Safepoint_Verifier") \ 5371558Srgrimes \ 5381558Srgrimes notproduct(bool, VerifyLastFrame, false, \ 53937663Scharnier "Verify oops on last frame on entry to VM") \ 54037663Scharnier \ 54137663Scharnier develop(bool, TraceHandleAllocation, false, \ 54237663Scharnier "Prints out warnings when suspicious many handles are allocated") \ 543126572Sbms \ 544166440Spjd product(bool, UseCompilerSafepoints, true, \ 54537663Scharnier "Stop at safepoints in compiled code") \ 54637663Scharnier \ 54737663Scharnier product(bool, UseSplitVerifier, true, \ 5481558Srgrimes "use split verifier with StackMapTable attributes") \ 5491558Srgrimes \ 5501558Srgrimes product(bool, FailOverToOldVerifier, true, \ 5511558Srgrimes "fail over to old verifier when split verifier fails") \ 5521558Srgrimes \ 5531558Srgrimes develop(bool, ShowSafepointMsgs, false, \ 5541558Srgrimes "Show msg. about safepoint synch.") \ 5551558Srgrimes \ 5561558Srgrimes product(bool, SafepointTimeout, false, \ 5571558Srgrimes "Time out and warn or fail after SafepointTimeoutDelay " \ 5589336Sdfr "milliseconds if failed to reach safepoint") \ 5591558Srgrimes \ 5601558Srgrimes develop(bool, DieOnSafepointTimeout, false, \ 56174462Salfred "Die upon failure to reach safepoint (see SafepointTimeout)") \ 56274462Salfred \ 56374462Salfred /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ 5649336Sdfr /* typically, at most a few retries are needed */ \ 56523681Speter product(intx, SuspendRetryCount, 50, \ 56628911Sguido "Maximum retry count for an external suspend request") \ 5679336Sdfr \ 5681558Srgrimes product(intx, SuspendRetryDelay, 5, \ 5699336Sdfr "Milliseconds to delay per retry (* current_retry_count)") \ 5709336Sdfr \ 57174462Salfred product(bool, AssertOnSuspendWaitFailure, false, \ 57274462Salfred "Assert/Guarantee on external suspend wait failure") \ 57374462Salfred \ 57475635Siedowse product(bool, TraceSuspendWaitFailures, false, \ 57574462Salfred "Trace external suspend wait failures") \ 57674462Salfred \ 57775635Siedowse product(bool, MaxFDLimit, true, \ 57874462Salfred "Bump the number of file descriptors to max in solaris.") \ 57974462Salfred \ 58074462Salfred notproduct(bool, LogEvents, trueInDebug, \ 58174462Salfred "Enable Event log") \ 58274462Salfred \ 58374462Salfred product(bool, BytecodeVerificationRemote, true, \ 58474462Salfred "Enables the Java bytecode verifier for remote classes") \ 58574462Salfred \ 58674462Salfred product(bool, BytecodeVerificationLocal, false, \ 5871558Srgrimes "Enables the Java bytecode verifier for local classes") \ 5881558Srgrimes \ 589121556Speter develop(bool, ForceFloatExceptions, trueInDebug, \ 59037663Scharnier "Force exceptions on FP stack under/overflow") \ 5911558Srgrimes \ 5921558Srgrimes develop(bool, SoftMatchFailure, trueInProduct, \ 5939336Sdfr "If the DFA fails to match a node, print a message and bail out") \ 59431656Sguido \ 59531656Sguido develop(bool, VerifyStackAtCalls, false, \ 59674462Salfred "Verify that the stack pointer is unchanged after calls") \ 5971558Srgrimes \ 5981558Srgrimes develop(bool, TraceJavaAssertions, false, \ 5991558Srgrimes "Trace java language assertions") \ 600121556Speter \ 60131656Sguido notproduct(bool, CheckAssertionStatusDirectives, false, \ 60274462Salfred "temporary - see javaClasses.cpp") \ 6031558Srgrimes \ 6041558Srgrimes notproduct(bool, PrintMallocFree, false, \ 6051558Srgrimes "Trace calls to C heap malloc/free allocation") \ 6061558Srgrimes \ 6071558Srgrimes notproduct(bool, PrintOopAddress, false, \ 6081558Srgrimes "Always print the location of the oop") \ 6099336Sdfr \ 6109336Sdfr notproduct(bool, VerifyCodeCacheOften, false, \ 6111558Srgrimes "Verify compiled-code cache often") \ 61251968Salfred \ 6131558Srgrimes develop(bool, ZapDeadCompiledLocals, false, \ 6149336Sdfr "Zap dead locals in compiler frames") \ 61574462Salfred \ 6161558Srgrimes notproduct(bool, ZapDeadLocalsOld, false, \ 6171558Srgrimes "Zap dead locals (old version, zaps all frames when " \ 61831656Sguido "entering the VM") \ 61937663Scharnier \ 62074462Salfred notproduct(bool, CheckOopishValues, false, \ 6211558Srgrimes "Warn if value contains oop ( requires ZapDeadLocals)") \ 62237663Scharnier \ 62328911Sguido develop(bool, UseMallocOnly, false, \ 6241558Srgrimes "use only malloc/free for allocation (no resource area/arena)") \ 6251558Srgrimes \ 6261558Srgrimes develop(bool, PrintMalloc, false, \ 6279336Sdfr "print all malloc/free calls") \ 6281558Srgrimes \ 6299336Sdfr develop(bool, ZapResourceArea, trueInDebug, \ 6309336Sdfr "Zap freed resource/arena space with 0xABABABAB") \ 6311558Srgrimes \ 63274462Salfred notproduct(bool, ZapVMHandleArea, trueInDebug, \ 63374462Salfred "Zap freed VM handle space with 0xBCBCBCBC") \ 63474462Salfred \ 63528911Sguido develop(bool, ZapJNIHandleArea, trueInDebug, \ 636121556Speter "Zap freed JNI handle space with 0xFEFEFEFE") \ 63728911Sguido \ 63837663Scharnier develop(bool, ZapUnusedHeapArea, trueInDebug, \ 63928911Sguido "Zap unused heap space with 0xBAADBABE") \ 64028911Sguido \ 64128911Sguido develop(bool, TraceZapUnusedHeapArea, false, \ 6429336Sdfr "Trace zapping of unused heap space") \ 6439336Sdfr \ 6449336Sdfr develop(bool, CheckZapUnusedHeapArea, false, \ 6459336Sdfr "Check zapping of unused heap space") \ 6469336Sdfr \ 6471558Srgrimes develop(bool, ZapFillerObjects, trueInDebug, \ 64823681Speter "Zap filler objects with 0xDEAFBABE") \ 6499336Sdfr \ 6501558Srgrimes develop(bool, PrintVMMessages, true, \ 65137663Scharnier "Print vm messages on console") \ 652121556Speter \ 6531558Srgrimes product(bool, PrintGCApplicationConcurrentTime, false, \ 65437663Scharnier "Print the time the application has been running") \ 6559336Sdfr \ 6561558Srgrimes product(bool, PrintGCApplicationStoppedTime, false, \ 6571558Srgrimes "Print the time the application has been stopped") \ 658121556Speter \ 659121556Speter notproduct(uintx, ErrorHandlerTest, 0, \ 66037663Scharnier "If > 0, provokes an error after VM initialization; the value" \ 66174462Salfred "determines which error to provoke. See test_error_handler()" \ 66274462Salfred "in debug.cpp.") \ 6631558Srgrimes \ 66474462Salfred develop(bool, Verbose, false, \ 6651558Srgrimes "Prints additional debugging information from other modes") \ 66637663Scharnier \ 667121767Speter develop(bool, PrintMiscellaneous, false, \ 66831656Sguido "Prints uncategorized debugging information (requires +Verbose)") \ 66931656Sguido \ 67074462Salfred develop(bool, WizardMode, false, \ 67131656Sguido "Prints much more debugging information") \ 6721558Srgrimes \ 67331656Sguido product(bool, ShowMessageBoxOnError, false, \ 67431656Sguido "Keep process alive on VM fatal error") \ 67574462Salfred \ 67631656Sguido product_pd(bool, UseOSErrorReporting, \ 67728911Sguido "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ 678121556Speter \ 679121556Speter product(bool, SuppressFatalErrorMessage, false, \ 68037663Scharnier "Do NO Fatal Error report [Avoid deadlock]") \ 6819336Sdfr \ 6821558Srgrimes product(ccstrlist, OnError, "", \ 6831558Srgrimes "Run user-defined commands on fatal error; see VMError.cpp " \ 684121556Speter "for examples") \ 68537663Scharnier \ 686121767Speter product(ccstrlist, OnOutOfMemoryError, "", \ 68731656Sguido "Run user-defined commands on first java.lang.OutOfMemoryError") \ 68831656Sguido \ 68974462Salfred manageable(bool, HeapDumpBeforeFullGC, false, \ 6901558Srgrimes "Dump heap to file before any major stop-world GC") \ 6911558Srgrimes \ 6929336Sdfr manageable(bool, HeapDumpAfterFullGC, false, \ 69331656Sguido "Dump heap to file after any major stop-world GC") \ 69431656Sguido \ 69574462Salfred manageable(bool, HeapDumpOnOutOfMemoryError, false, \ 6961558Srgrimes "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ 6971558Srgrimes \ 6981558Srgrimes manageable(ccstr, HeapDumpPath, NULL, \ 699121556Speter "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ 70031656Sguido "directory) of the dump file (defaults to java_pid<pid>.hprof" \ 70174462Salfred "in the working directory)") \ 7021558Srgrimes \ 7031558Srgrimes develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ 7041558Srgrimes "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ 70551968Salfred "when the heap usage is larger than this") \ 70651968Salfred \ 70751968Salfred develop(uintx, HeapDumpSegmentSize, 1*G, \ 70874462Salfred "Approximate segment size when generating a segmented heap dump") \ 70951968Salfred \ 710121556Speter develop(bool, BreakAtWarning, false, \ 71137663Scharnier "Execute breakpoint upon encountering VM warning") \ 71274462Salfred \ 71375635Siedowse product_pd(bool, UseVectoredExceptions, \ 71475635Siedowse "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \ 715121767Speter \ 71631656Sguido develop(bool, TraceVMOperation, false, \ 71731656Sguido "Trace vm operations") \ 71874462Salfred \ 7191558Srgrimes develop(bool, UseFakeTimers, false, \ 7201558Srgrimes "Tells whether the VM should use system time or a fake timer") \ 7219336Sdfr \ 72231656Sguido diagnostic(bool, LogCompilation, false, \ 72331656Sguido "Log compilation activity in detail to hotspot.log or LogFile") \ 72474462Salfred \ 7251558Srgrimes product(bool, PrintCompilation, false, \ 7261558Srgrimes "Print compilations") \ 7271558Srgrimes \ 728121556Speter diagnostic(bool, TraceNMethodInstalls, false, \ 72937663Scharnier "Trace nmethod intallation") \ 73074462Salfred \ 73175635Siedowse diagnostic(intx, ScavengeRootsInCode, 0, \ 73275635Siedowse "0: do not allow scavengable oops in the code cache; " \ 733121767Speter "1: allow scavenging from the code cache; " \ 73431656Sguido "2: emit as many constants as the compiler can see") \ 73531656Sguido \ 73674462Salfred diagnostic(bool, TraceOSRBreakpoint, false, \ 7371558Srgrimes "Trace OSR Breakpoint ") \ 7381558Srgrimes \ 739121556Speter diagnostic(bool, TraceCompileTriggered, false, \ 740121556Speter "Trace compile triggered") \ 741121556Speter \ 742100117Salfred diagnostic(bool, TraceTriggers, false, \ 743121767Speter "Trace triggers") \ 74431656Sguido \ 74531656Sguido product(bool, AlwaysRestoreFPU, false, \ 74674462Salfred "Restore the FPU control word after every JNI call (expensive)") \ 7471558Srgrimes \ 7481558Srgrimes notproduct(bool, PrintCompilation2, false, \ 7491558Srgrimes "Print additional statistics per compilation") \ 7501558Srgrimes \ 7511558Srgrimes diagnostic(bool, PrintAdapterHandlers, false, \ 7521558Srgrimes "Print code generated for i2c/c2i adapters") \ 7531558Srgrimes \ 7541558Srgrimes develop(bool, VerifyAdapterSharing, false, \ 7551558Srgrimes "Verify that the code for shared adapters is the equivalent") \ 7561558Srgrimes \ 7571558Srgrimes diagnostic(bool, PrintAssembly, false, \ 7581558Srgrimes "Print assembly code (using external disassembler.so)") \ 7591558Srgrimes \ 7601558Srgrimes diagnostic(ccstr, PrintAssemblyOptions, NULL, \ 7611558Srgrimes "Options string passed to disassembler.so") \ 7621558Srgrimes \ 7631558Srgrimes diagnostic(bool, PrintNMethods, false, \ 7641558Srgrimes "Print assembly code for nmethods when generated") \ 7651558Srgrimes \ 7669336Sdfr diagnostic(bool, PrintNativeNMethods, false, \ 7671558Srgrimes "Print assembly code for native nmethods when generated") \ 7681558Srgrimes \ 7699336Sdfr develop(bool, PrintDebugInfo, false, \ 7701558Srgrimes "Print debug information for all nmethods when generated") \ 7719336Sdfr \ 7721558Srgrimes develop(bool, PrintRelocations, false, \ 77392806Sobrien "Print relocation information for all nmethods when generated") \ 7749336Sdfr \ 7751558Srgrimes develop(bool, PrintDependencies, false, \ 7761558Srgrimes "Print dependency information for all nmethods when generated") \ 7771558Srgrimes \ 7789336Sdfr develop(bool, PrintExceptionHandlers, false, \ 7799336Sdfr "Print exception handler tables for all nmethods when generated") \ 7809336Sdfr \ 7819336Sdfr develop(bool, InterceptOSException, false, \ 7829336Sdfr "Starts debugger when an implicit OS (e.g., NULL) " \ 7839336Sdfr "exception happens") \ 7849336Sdfr \ 7859336Sdfr notproduct(bool, PrintCodeCache, false, \ 7869336Sdfr "Print the compiled_code cache when exiting") \ 78783653Speter \ 7889336Sdfr develop(bool, PrintCodeCache2, false, \ 7899336Sdfr "Print detailed info on the compiled_code cache when exiting") \ 7909336Sdfr \ 7919336Sdfr diagnostic(bool, PrintStubCode, false, \ 7929336Sdfr "Print generated stub code") \ 7939336Sdfr \ 7941558Srgrimes product(bool, StackTraceInThrowable, true, \ 7951558Srgrimes "Collect backtrace in throwable when exception happens") \ 7961558Srgrimes \ 7971558Srgrimes product(bool, OmitStackTraceInFastThrow, true, \ 7981558Srgrimes "Omit backtraces for some 'hot' exceptions in optimized code") \ 7991558Srgrimes \ 8001558Srgrimes product(bool, ProfilerPrintByteCodeStatistics, false, \ 8011558Srgrimes "Prints byte code statictics when dumping profiler output") \ 8021558Srgrimes \ 8031558Srgrimes product(bool, ProfilerRecordPC, false, \ 8041558Srgrimes "Collects tick for each 16 byte interval of compiled code") \ 8051558Srgrimes \ 8061558Srgrimes product(bool, ProfileVM, false, \ 8071558Srgrimes "Profiles ticks that fall within VM (either in the VM Thread " \ 8081558Srgrimes "or VM code called through stubs)") \ 8091558Srgrimes \ 8101558Srgrimes product(bool, ProfileIntervals, false, \ 8111558Srgrimes "Prints profiles for each interval (see ProfileIntervalsTicks)") \ 8121558Srgrimes \ 8131558Srgrimes notproduct(bool, ProfilerCheckIntervals, false, \ 8141558Srgrimes "Collect and print info on spacing of profiler ticks") \ 8151558Srgrimes \ 8161558Srgrimes develop(bool, PrintJVMWarnings, false, \ 8171558Srgrimes "Prints warnings for unimplemented JVM functions") \ 8181558Srgrimes \ 8191558Srgrimes notproduct(uintx, WarnOnStalledSpinLock, 0, \ 8201558Srgrimes "Prints warnings for stalled SpinLocks") \ 8211558Srgrimes \ 8221558Srgrimes develop(bool, InitializeJavaLangSystem, true, \ 8231558Srgrimes "Initialize java.lang.System - turn off for individual " \ 8241558Srgrimes "method debugging") \ 8251558Srgrimes \ 8261558Srgrimes develop(bool, InitializeJavaLangString, true, \ 827100117Salfred "Initialize java.lang.String - turn off for individual " \ 8281558Srgrimes "method debugging") \ 8291558Srgrimes \ 830100117Salfred develop(bool, InitializeJavaLangExceptionsErrors, true, \ 8311558Srgrimes "Initialize various error and exception classes - turn off for " \ 8321558Srgrimes "individual method debugging") \ 8331558Srgrimes \ 8349336Sdfr product(bool, RegisterFinalizersAtInit, true, \ 8359336Sdfr "Register finalizable objects at end of Object.<init> or " \ 8361558Srgrimes "after allocation") \ 8379336Sdfr \ 8389336Sdfr develop(bool, RegisterReferences, true, \ 8399336Sdfr "Tells whether the VM should register soft/weak/final/phantom " \ 8401558Srgrimes "references") \ 8411558Srgrimes \ 8421558Srgrimes develop(bool, IgnoreRewrites, false, \ 843100117Salfred "Supress rewrites of bytecodes in the oopmap generator. " \ 844100117Salfred "This is unsafe!") \ 8451558Srgrimes \ 8461558Srgrimes develop(bool, PrintCodeCacheExtension, false, \ 8471558Srgrimes "Print extension of code cache") \ 848100117Salfred \ 8491558Srgrimes develop(bool, UsePrivilegedStack, true, \ 8501558Srgrimes "Enable the security JVM functions") \ 8511558Srgrimes \ 8529336Sdfr develop(bool, IEEEPrecision, true, \ 8531558Srgrimes "Enables IEEE precision (for INTEL only)") \ 8541558Srgrimes \ 8551558Srgrimes develop(bool, ProtectionDomainVerification, true, \ 8561558Srgrimes "Verifies protection domain before resolution in system " \ 8579336Sdfr "dictionary") \ 8581558Srgrimes \ 8591558Srgrimes product(bool, ClassUnloading, true, \ 8601558Srgrimes "Do unloading of classes") \ 8611558Srgrimes \ 8621558Srgrimes diagnostic(bool, LinkWellKnownClasses, false, \ 8631558Srgrimes "Resolve a well known class as soon as its name is seen") \ 8641558Srgrimes \ 8651558Srgrimes develop(bool, DisableStartThread, false, \ 866100117Salfred "Disable starting of additional Java threads " \ 8671558Srgrimes "(for debugging only)") \ 8681558Srgrimes \ 8691558Srgrimes develop(bool, MemProfiling, false, \ 8701558Srgrimes "Write memory usage profiling to log file") \ 871100117Salfred \ 8721558Srgrimes notproduct(bool, PrintSystemDictionaryAtExit, false, \ 8731558Srgrimes "Prints the system dictionary at exit") \ 8741558Srgrimes \ 8751558Srgrimes diagnostic(bool, UnsyncloadClass, false, \ 8761558Srgrimes "Unstable: VM calls loadClass unsynchronized. Custom " \ 8771558Srgrimes "class loader must call VM synchronized for findClass " \ 8781558Srgrimes "and defineClass.") \ 8791558Srgrimes \ 8801558Srgrimes product(bool, AlwaysLockClassLoader, false, \ 881100117Salfred "Require the VM to acquire the class loader lock before calling " \ 8821558Srgrimes "loadClass() even for class loaders registering " \ 8831558Srgrimes "as parallel capable") \ 8841558Srgrimes \ 8851558Srgrimes product(bool, AllowParallelDefineClass, false, \ 8861558Srgrimes "Allow parallel defineClass requests for class loaders " \ 8871558Srgrimes "registering as parallel capable") \ 8881558Srgrimes \ 8891558Srgrimes product(bool, MustCallLoadClassInternal, false, \ 8901558Srgrimes "Call loadClassInternal() rather than loadClass()") \ 8911558Srgrimes \ 892100117Salfred product_pd(bool, DontYieldALot, \ 893100117Salfred "Throw away obvious excess yield calls (for SOLARIS only)") \ 894100117Salfred \ 895100117Salfred product_pd(bool, ConvertSleepToYield, \ 896100117Salfred "Converts sleep(0) to thread yield " \ 897100117Salfred "(may be off for SOLARIS to improve GUI)") \ 898100117Salfred \ 8991558Srgrimes product(bool, ConvertYieldToSleep, false, \ 9001558Srgrimes "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ 9011558Srgrimes "behavior (SOLARIS only)") \ 9021558Srgrimes \ 9031558Srgrimes product(bool, UseBoundThreads, true, \ 9041558Srgrimes "Bind user level threads to kernel threads (for SOLARIS only)") \ 9051558Srgrimes \ 90674462Salfred develop(bool, UseDetachedThreads, true, \ 9078871Srgrimes "Use detached threads that are recycled upon termination " \ 9081558Srgrimes "(for SOLARIS only)") \ 9091558Srgrimes \ 9101558Srgrimes product(bool, UseLWPSynchronization, true, \ 9111558Srgrimes "Use LWP-based instead of libthread-based synchronization " \ 9121558Srgrimes "(SPARC only)") \ 9131558Srgrimes \ 9148871Srgrimes product(ccstr, SyncKnobs, NULL, \ 9151558Srgrimes "(Unstable) Various monitor synchronization tunables") \ 9161558Srgrimes \ 9171558Srgrimes product(intx, EmitSync, 0, \ 9181558Srgrimes "(Unsafe,Unstable) " \ 9191558Srgrimes " Controls emission of inline sync fast-path code") \ 9201558Srgrimes \ 9211558Srgrimes product(intx, AlwaysInflate, 0, "(Unstable) Force inflation") \ 9221558Srgrimes \ 9231558Srgrimes product(intx, Atomics, 0, \ 9241558Srgrimes "(Unsafe,Unstable) Diagnostic - Controls emission of atomics") \ 9251558Srgrimes \ 9261558Srgrimes product(intx, FenceInstruction, 0, \ 927100117Salfred "(Unsafe,Unstable) Experimental") \ 9281558Srgrimes \ 9291558Srgrimes product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ 9301558Srgrimes \ 9311558Srgrimes product(intx, SyncVerbose, 0, "(Unstable)" ) \ 9321558Srgrimes \ 933100117Salfred product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ 934100117Salfred \ 935100117Salfred product(intx, hashCode, 0, \ 936100117Salfred "(Unstable) select hashCode generation algorithm" ) \ 937100117Salfred \ 938100117Salfred product(intx, WorkAroundNPTLTimedWaitHang, 1, \ 939100117Salfred "(Unstable, Linux-specific)" \ 940100117Salfred " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ 941100117Salfred \ 942100117Salfred product(bool, FilterSpuriousWakeups, true, \ 943100117Salfred "Prevent spurious or premature wakeups from object.wait " \ 944100117Salfred "(Solaris only)") \ 945100117Salfred \ 946100117Salfred product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ 947100117Salfred product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ 948100117Salfred product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ 949100117Salfred \ 950100117Salfred develop(bool, UsePthreads, false, \ 95196622Siedowse "Use pthread-based instead of libthread-based synchronization " \ 95296622Siedowse "(SPARC only)") \ 9531558Srgrimes \ 9541558Srgrimes product(bool, AdjustConcurrency, false, \ 9551558Srgrimes "call thr_setconcurrency at thread create time to avoid " \ 956166440Spjd "LWP starvation on MP systems (For Solaris Only)") \ 9571558Srgrimes \ 958166440Spjd develop(bool, UpdateHotSpotCompilerFileOnError, true, \ 959166440Spjd "Should the system attempt to update the compiler file when " \ 9601558Srgrimes "an error occurs?") \ 9611558Srgrimes \ 9621558Srgrimes product(bool, ReduceSignalUsage, false, \ 9631558Srgrimes "Reduce the use of OS signals in Java and/or the VM") \ 9641558Srgrimes \ 965166440Spjd notproduct(bool, ValidateMarkSweep, false, \ 96672650Sgreen "Do extra validation during MarkSweep collection") \ 9671558Srgrimes \ 968166440Spjd notproduct(bool, RecordMarkSweepCompaction, false, \ 9691558Srgrimes "Enable GC-to-GC recording and querying of compaction during " \ 9701558Srgrimes "MarkSweep") \ 9711558Srgrimes \ 9721558Srgrimes develop_pd(bool, ShareVtableStubs, \ 97337663Scharnier "Share vtable stubs (smaller code but worse branch prediction") \ 9741558Srgrimes \ 9751558Srgrimes develop(bool, LoadLineNumberTables, true, \ 9761558Srgrimes "Tells whether the class file parser loads line number tables") \ 9771558Srgrimes \ 9781558Srgrimes develop(bool, LoadLocalVariableTables, true, \ 9791558Srgrimes "Tells whether the class file parser loads local variable tables")\ 9801558Srgrimes \ 9811558Srgrimes develop(bool, LoadLocalVariableTypeTables, true, \ 9821558Srgrimes "Tells whether the class file parser loads local variable type tables")\ 9831558Srgrimes \ 9841558Srgrimes product(bool, AllowUserSignalHandlers, false, \ 9851558Srgrimes "Do not complain if the application installs signal handlers " \ 9861558Srgrimes "(Solaris & Linux only)") \ 9871558Srgrimes \ 9881558Srgrimes product(bool, UseSignalChaining, true, \ 9891558Srgrimes "Use signal-chaining to invoke signal handlers installed " \ 9901558Srgrimes "by the application (Solaris & Linux only)") \ 9911558Srgrimes \ 9921558Srgrimes product(bool, UseAltSigs, false, \ 9931558Srgrimes "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ 9941558Srgrimes "internal signals (Solaris only)") \ 9951558Srgrimes \ 9961558Srgrimes product(bool, UseSpinning, false, \ 9971558Srgrimes "Use spinning in monitor inflation and before entry") \ 9981558Srgrimes \ 9991558Srgrimes product(bool, PreSpinYield, false, \ 10001558Srgrimes "Yield before inner spinning loop") \ 10011558Srgrimes \ 10021558Srgrimes product(bool, PostSpinYield, true, \ 10031558Srgrimes "Yield after inner spinning loop") \ 10041558Srgrimes \ 100537663Scharnier product(bool, AllowJNIEnvProxy, false, \ 10061558Srgrimes "Allow JNIEnv proxies for jdbx") \ 10071558Srgrimes \ 10081558Srgrimes product(bool, JNIDetachReleasesMonitors, true, \ 10091558Srgrimes "JNI DetachCurrentThread releases monitors owned by thread") \ 10101558Srgrimes \ 10111558Srgrimes product(bool, RestoreMXCSROnJNICalls, false, \ 10121558Srgrimes "Restore MXCSR when returning from JNI calls") \ 10131558Srgrimes \ 10141558Srgrimes product(bool, CheckJNICalls, false, \ 10151558Srgrimes "Verify all arguments to JNI calls") \ 10161558Srgrimes \ 10171558Srgrimes product(bool, UseFastJNIAccessors, true, \ 101837663Scharnier "Use optimized versions of Get<Primitive>Field") \ 10191558Srgrimes \ 10201558Srgrimes product(bool, EagerXrunInit, false, \ 10211558Srgrimes "Eagerly initialize -Xrun libraries; allows startup profiling, " \ 10221558Srgrimes " but not all -Xrun libraries may support the state of the VM at this time") \ 10231558Srgrimes \ 10241558Srgrimes product(bool, PreserveAllAnnotations, false, \ 10251558Srgrimes "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \ 10261558Srgrimes \ 10271558Srgrimes develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ 10281558Srgrimes "Number of OutOfMemoryErrors preallocated with backtrace") \ 10291558Srgrimes \ 10301558Srgrimes product(bool, LazyBootClassLoader, true, \ 10311558Srgrimes "Enable/disable lazy opening of boot class path entries") \ 10321558Srgrimes \ 10331558Srgrimes diagnostic(bool, UseIncDec, true, \ 10341558Srgrimes "Use INC, DEC instructions on x86") \ 10351558Srgrimes \ 10361558Srgrimes product(bool, UseNewLongLShift, false, \ 10371558Srgrimes "Use optimized bitwise shift left") \ 10381558Srgrimes \ 10391558Srgrimes product(bool, UseStoreImmI16, true, \ 10401558Srgrimes "Use store immediate 16-bits value instruction on x86") \ 10411558Srgrimes \ 10421558Srgrimes product(bool, UseAddressNop, false, \ 10431558Srgrimes "Use '0F 1F [addr]' NOP instructions on x86 cpus") \ 10441558Srgrimes \ 104574462Salfred product(bool, UseXmmLoadAndClearUpper, true, \ 104674462Salfred "Load low part of XMM register and clear upper part") \ 104774462Salfred \ 10481558Srgrimes product(bool, UseXmmRegToRegMoveAll, false, \ 104937663Scharnier "Copy all XMM register bits when moving value between registers") \ 10501558Srgrimes \ 10511558Srgrimes product(bool, UseXmmI2D, false, \ 10521558Srgrimes "Use SSE2 CVTDQ2PD instruction to convert Integer to Double") \ 10531558Srgrimes \ 10541558Srgrimes product(bool, UseXmmI2F, false, \ 10551558Srgrimes "Use SSE2 CVTDQ2PS instruction to convert Integer to Float") \ 10561558Srgrimes \ 10571558Srgrimes product(bool, UseXMMForArrayCopy, false, \ 10581558Srgrimes "Use SSE2 MOVQ instruction for Arraycopy") \ 10591558Srgrimes \ 10601558Srgrimes product(bool, UseUnalignedLoadStores, false, \ 10611558Srgrimes "Use SSE2 MOVDQU instruction for Arraycopy") \ 10621558Srgrimes \ 10631558Srgrimes product(intx, FieldsAllocationStyle, 1, \ 10641558Srgrimes "0 - type based with oops first, 1 - with oops last, " \ 10651558Srgrimes "2 - oops in super and sub classes are together") \ 10661558Srgrimes \ 10671558Srgrimes product(bool, CompactFields, true, \ 10681558Srgrimes "Allocate nonstatic fields in gaps between previous fields") \ 10691558Srgrimes \ 10701558Srgrimes notproduct(bool, PrintCompactFieldsSavings, false, \ 10711558Srgrimes "Print how many words were saved with CompactFields") \ 10721558Srgrimes \ 10731558Srgrimes product(bool, UseBiasedLocking, true, \ 10741558Srgrimes "Enable biased locking in JVM") \ 10751558Srgrimes \ 10761558Srgrimes product(intx, BiasedLockingStartupDelay, 4000, \ 10771558Srgrimes "Number of milliseconds to wait before enabling biased locking") \ 10781558Srgrimes \ 10791558Srgrimes diagnostic(bool, PrintBiasedLockingStatistics, false, \ 10801558Srgrimes "Print statistics of biased locking in JVM") \ 10811558Srgrimes \ 10821558Srgrimes product(intx, BiasedLockingBulkRebiasThreshold, 20, \ 10831558Srgrimes "Threshold of number of revocations per type to try to " \ 108437003Sjoerg "rebias all objects in the heap of that type") \ 108537663Scharnier \ 108637663Scharnier product(intx, BiasedLockingBulkRevokeThreshold, 40, \ 108737004Sjoerg "Threshold of number of revocations per type to permanently " \ 108837003Sjoerg "revoke biases of all objects in the heap of that type") \ 108937663Scharnier \ 109037663Scharnier product(intx, BiasedLockingDecayTime, 25000, \ 109129317Sjlemon "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ 10921558Srgrimes "type after previous bulk rebias") \ 10937401Swpaul \ 109437663Scharnier /* tracing */ \ 109529317Sjlemon \ 10961558Srgrimes notproduct(bool, TraceRuntimeCalls, false, \ 10971558Srgrimes "Trace run-time calls") \ 10981558Srgrimes \ 10991558Srgrimes develop(bool, TraceJNICalls, false, \ 11001558Srgrimes "Trace JNI calls") \ 11011558Srgrimes \ 11021558Srgrimes notproduct(bool, TraceJVMCalls, false, \ 11031558Srgrimes "Trace JVM calls") \ 11041558Srgrimes \ 11051558Srgrimes product(ccstr, TraceJVMTI, NULL, \ 11061558Srgrimes "Trace flags for JVMTI functions and events") \ 11071558Srgrimes \ 11081558Srgrimes product(bool, ForceFullGCJVMTIEpilogues, false, \ 11091558Srgrimes "Force 'Full GC' was done semantics for JVMTI GC epilogues") \ 11101558Srgrimes \ 111175641Siedowse /* This option can change an EMCP method into an obsolete method. */ \ 11121558Srgrimes /* This can affect tests that except specific methods to be EMCP. */ \ 111337663Scharnier /* This option should be used with caution. */ \ 11141558Srgrimes product(bool, StressLdcRewrite, false, \ 11151558Srgrimes "Force ldc -> ldc_w rewrite during RedefineClasses") \ 11161558Srgrimes \ 11171558Srgrimes product(intx, TraceRedefineClasses, 0, \ 11181558Srgrimes "Trace level for JVMTI RedefineClasses") \ 11191558Srgrimes \ 112075801Siedowse /* change to false by default sometime after Mustang */ \ 11211558Srgrimes product(bool, VerifyMergedCPBytecodes, true, \ 11221558Srgrimes "Verify bytecodes after RedefineClasses constant pool merging") \ 112329317Sjlemon \ 112474462Salfred develop(bool, TraceJNIHandleAllocation, false, \ 112574462Salfred "Trace allocation/deallocation of JNI handle blocks") \ 112629317Sjlemon \ 112729317Sjlemon develop(bool, TraceThreadEvents, false, \ 112829317Sjlemon "Trace all thread events") \ 112929317Sjlemon \ 113074462Salfred develop(bool, TraceBytecodes, false, \ 113129317Sjlemon "Trace bytecode execution") \ 113229317Sjlemon \ 113329317Sjlemon develop(bool, TraceClassInitialization, false, \ 113429317Sjlemon "Trace class initialization") \ 113529317Sjlemon \ 11361558Srgrimes develop(bool, TraceExceptions, false, \ 11371558Srgrimes "Trace exceptions") \ 11381558Srgrimes \ 11391558Srgrimes develop(bool, TraceICs, false, \ 11401558Srgrimes "Trace inline cache changes") \ 11411558Srgrimes \ 11421558Srgrimes notproduct(bool, TraceInvocationCounterOverflow, false, \ 11431558Srgrimes "Trace method invocation counter overflow") \ 11441558Srgrimes \ 114575635Siedowse develop(bool, TraceInlineCacheClearing, false, \ 114675635Siedowse "Trace clearing of inline caches in nmethods") \ 114775635Siedowse \ 114875635Siedowse develop(bool, TraceDependencies, false, \ 114975635Siedowse "Trace dependencies") \ 11501558Srgrimes \ 11511558Srgrimes develop(bool, VerifyDependencies, trueInDebug, \ 11521558Srgrimes "Exercise and verify the compilation dependency mechanism") \ 11531558Srgrimes \ 11541558Srgrimes develop(bool, TraceNewOopMapGeneration, false, \ 11551558Srgrimes "Trace OopMapGeneration") \ 11569336Sdfr \ 11571558Srgrimes develop(bool, TraceNewOopMapGenerationDetailed, false, \ 11581558Srgrimes "Trace OopMapGeneration: print detailed cell states") \ 11591558Srgrimes \ 11601558Srgrimes develop(bool, TimeOopMap, false, \ 11619336Sdfr "Time calls to GenerateOopMap::compute_map() in sum") \ 11621558Srgrimes \ 11631558Srgrimes develop(bool, TimeOopMap2, false, \ 11641558Srgrimes "Time calls to GenerateOopMap::compute_map() individually") \ 11651558Srgrimes \ 11661558Srgrimes develop(bool, TraceMonitorMismatch, false, \ 11671558Srgrimes "Trace monitor matching failures during OopMapGeneration") \ 11681558Srgrimes \ 11691558Srgrimes develop(bool, TraceOopMapRewrites, false, \ 11701558Srgrimes "Trace rewritting of method oops during oop map generation") \ 11711558Srgrimes \ 11721558Srgrimes develop(bool, TraceSafepoint, false, \ 11731558Srgrimes "Trace safepoint operations") \ 11741558Srgrimes \ 11751558Srgrimes develop(bool, TraceICBuffer, false, \ 11761558Srgrimes "Trace usage of IC buffer") \ 11771558Srgrimes \ 11781558Srgrimes develop(bool, TraceCompiledIC, false, \ 11791558Srgrimes "Trace changes of compiled IC") \ 11801558Srgrimes \ 11811558Srgrimes notproduct(bool, TraceZapDeadLocals, false, \ 11821558Srgrimes "Trace zapping dead locals") \ 11831558Srgrimes \ 11841558Srgrimes develop(bool, TraceStartupTime, false, \ 11851558Srgrimes "Trace setup time") \ 11861558Srgrimes \ 11871558Srgrimes develop(bool, TraceHPI, false, \ 11881558Srgrimes "Trace Host Porting Interface (HPI)") \ 11891558Srgrimes \ 1190166440Spjd product(ccstr, HPILibPath, NULL, \ 1191166440Spjd "Specify alternate path to HPI library") \ 1192166440Spjd \ 1193166440Spjd develop(bool, TraceProtectionDomainVerification, false, \ 1194166440Spjd "Trace protection domain verifcation") \ 1195166440Spjd \ 1196166440Spjd develop(bool, TraceClearedExceptions, false, \ 1197166440Spjd "Prints when an exception is forcibly cleared") \ 1198166440Spjd \ 1199166440Spjd product(bool, TraceClassResolution, false, \ 1200166440Spjd "Trace all constant pool resolutions (for debugging)") \ 1201166440Spjd \ 1202166440Spjd product(bool, TraceBiasedLocking, false, \ 1203166440Spjd "Trace biased locking in JVM") \ 1204166440Spjd \ 1205166440Spjd product(bool, TraceMonitorInflation, false, \ 1206166440Spjd "Trace monitor inflation in JVM") \ 1207166440Spjd \ 1208166440Spjd /* assembler */ \ 1209166440Spjd product(bool, Use486InstrsOnly, false, \ 1210166440Spjd "Use 80486 Compliant instruction subset") \ 1211166440Spjd \ 1212166440Spjd /* gc */ \ 1213166440Spjd \ 1214166440Spjd product(bool, UseSerialGC, false, \ 1215166440Spjd "Use the serial garbage collector") \ 1216166440Spjd \ 1217166440Spjd product(bool, UseG1GC, false, \ 1218166440Spjd "Use the Garbage-First garbage collector") \ 1219166440Spjd \ 1220166440Spjd product(bool, UseParallelGC, false, \ 1221166440Spjd "Use the Parallel Scavenge garbage collector") \ 1222166440Spjd \ 1223166440Spjd product(bool, UseParallelOldGC, false, \ 1224166440Spjd "Use the Parallel Old garbage collector") \ 1225166440Spjd \ 1226166440Spjd product(bool, UseParallelOldGCCompacting, true, \ 1227166440Spjd "In the Parallel Old garbage collector use parallel compaction") \ 1228166440Spjd \ 1229166440Spjd product(bool, UseParallelDensePrefixUpdate, true, \ 1230166440Spjd "In the Parallel Old garbage collector use parallel dense" \ 1231166440Spjd " prefix update") \ 1232166440Spjd \ 1233166440Spjd product(uintx, HeapMaximumCompactionInterval, 20, \ 1234166440Spjd "How often should we maximally compact the heap (not allowing " \ 1235166440Spjd "any dead space)") \ 1236166440Spjd \ 1237166440Spjd product(uintx, HeapFirstMaximumCompactionCount, 3, \ 1238166440Spjd "The collection count for the first maximum compaction") \ 1239166440Spjd \ 1240166440Spjd product(bool, UseMaximumCompactionOnSystemGC, true, \ 1241166440Spjd "In the Parallel Old garbage collector maximum compaction for " \ 1242166440Spjd "a system GC") \ 1243166440Spjd \ 1244166440Spjd product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ 1245166440Spjd "The mean used by the par compact dead wood" \ 1246166440Spjd "limiter (a number between 0-100).") \ 1247166440Spjd \ 1248166440Spjd product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ 1249166440Spjd "The standard deviation used by the par compact dead wood" \ 1250166440Spjd "limiter (a number between 0-100).") \ 1251166440Spjd \ 1252166440Spjd product(bool, UseParallelOldGCDensePrefix, true, \ 1253166440Spjd "Use a dense prefix with the Parallel Old garbage collector") \ 1254166440Spjd \ 1255166440Spjd product(uintx, ParallelGCThreads, 0, \ 1256166440Spjd "Number of parallel threads parallel gc will use") \ 1257166440Spjd \ 1258166440Spjd develop(bool, ParallelOldGCSplitALot, false, \ 1259166440Spjd "Provoke splitting (copying data from a young gen space to" \ 1260166440Spjd "multiple destination spaces)") \ 1261166440Spjd \ 1262166440Spjd develop(uintx, ParallelOldGCSplitInterval, 3, \ 1263166440Spjd "How often to provoke splitting a young gen space") \ 1264166440Spjd \ 1265166440Spjd develop(bool, TraceRegionTasksQueuing, false, \ 1266166440Spjd "Trace the queuing of the region tasks") \ 1267166440Spjd \ 1268166440Spjd product(uintx, ConcGCThreads, 0, \ 1269166440Spjd "Number of threads concurrent gc will use") \ 1270166440Spjd \ 1271166440Spjd product(uintx, YoungPLABSize, 4096, \ 1272166440Spjd "Size of young gen promotion labs (in HeapWords)") \ 1273166440Spjd \ 1274166440Spjd product(uintx, OldPLABSize, 1024, \ 1275166440Spjd "Size of old gen promotion labs (in HeapWords)") \ 1276166440Spjd \ 1277166440Spjd product(uintx, GCTaskTimeStampEntries, 200, \ 1278166440Spjd "Number of time stamp entries per gc worker thread") \ 1279166440Spjd \ 1280166440Spjd product(bool, AlwaysTenure, false, \ 1281166440Spjd "Always tenure objects in eden. (ParallelGC only)") \ 1282166440Spjd \ 1283166440Spjd product(bool, NeverTenure, false, \ 1284166440Spjd "Never tenure objects in eden, May tenure on overflow " \ 1285166440Spjd "(ParallelGC only)") \ 1286166440Spjd \ 1287166440Spjd product(bool, ScavengeBeforeFullGC, true, \ 1288166440Spjd "Scavenge youngest generation before each full GC, " \ 1289166440Spjd "used with UseParallelGC") \ 1290166440Spjd \ 1291166440Spjd develop(bool, ScavengeWithObjectsInToSpace, false, \ 1292166440Spjd "Allow scavenges to occur when to_space contains objects.") \ 1293166440Spjd \ 1294166440Spjd product(bool, UseConcMarkSweepGC, false, \ 1295166440Spjd "Use Concurrent Mark-Sweep GC in the old generation") \ 1296166440Spjd \ 1297166440Spjd product(bool, ExplicitGCInvokesConcurrent, false, \ 1298166440Spjd "A System.gc() request invokes a concurrent collection;" \ 1299166440Spjd " (effective only when UseConcMarkSweepGC)") \ 1300166440Spjd \ 1301166440Spjd product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ 1302166440Spjd "A System.gc() request invokes a concurrent collection and " \ 1303166440Spjd "also unloads classes during such a concurrent gc cycle " \ 1304166440Spjd "(effective only when UseConcMarkSweepGC)") \ 1305166440Spjd \ 1306166440Spjd product(bool, GCLockerInvokesConcurrent, false, \ 1307166440Spjd "The exit of a JNI CS necessitating a scavenge also" \ 1308166440Spjd " kicks off a bkgrd concurrent collection") \ 1309166440Spjd \ 1310166440Spjd develop(bool, UseCMSAdaptiveFreeLists, true, \ 1311166440Spjd "Use Adaptive Free Lists in the CMS generation") \ 1312166440Spjd \ 1313166440Spjd develop(bool, UseAsyncConcMarkSweepGC, true, \ 1314166440Spjd "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ 1315166440Spjd \ 1316166440Spjd develop(bool, RotateCMSCollectionTypes, false, \ 1317166440Spjd "Rotate the CMS collections among concurrent and STW") \ 1318166440Spjd \ 1319166440Spjd product(bool, UseCMSBestFit, true, \ 13201558Srgrimes "Use CMS best fit allocation strategy") \ 13211558Srgrimes \ 13221558Srgrimes product(bool, UseCMSCollectionPassing, true, \ 13231558Srgrimes "Use passing of collection from background to foreground") \ 13241558Srgrimes \ 13251558Srgrimes product(bool, UseParNewGC, false, \ 13261558Srgrimes "Use parallel threads in the new generation.") \ 13271558Srgrimes \ 13281558Srgrimes product(bool, ParallelGCVerbose, false, \ 13291558Srgrimes "Verbose output for parallel GC.") \ 133023681Speter \ 13311558Srgrimes product(intx, ParallelGCBufferWastePct, 10, \ 13321558Srgrimes "wasted fraction of parallel allocation buffer.") \ 13331558Srgrimes \ 13341558Srgrimes product(bool, ParallelGCRetainPLAB, true, \ 13351558Srgrimes "Retain parallel allocation buffers across scavenges.") \ 13361558Srgrimes \ 13371558Srgrimes product(intx, TargetPLABWastePct, 10, \ 13381558Srgrimes "target wasted space in last buffer as pct of overall allocation")\ 13391558Srgrimes \ 13401558Srgrimes product(uintx, PLABWeight, 75, \ 13411558Srgrimes "Percentage (0-100) used to weight the current sample when" \ 13421558Srgrimes "computing exponentially decaying average for ResizePLAB.") \ 13431558Srgrimes \ 13441558Srgrimes product(bool, ResizePLAB, true, \ 134523681Speter "Dynamically resize (survivor space) promotion labs") \ 13461558Srgrimes \ 13471558Srgrimes product(bool, PrintPLAB, false, \ 13481558Srgrimes "Print (survivor space) promotion labs sizing decisions") \ 13491558Srgrimes \ 13501558Srgrimes product(intx, ParGCArrayScanChunk, 50, \ 13511558Srgrimes "Scan a subset and push remainder, if array is bigger than this") \ 13521558Srgrimes \ 13531558Srgrimes product(bool, ParGCUseLocalOverflow, false, \ 13541558Srgrimes "Instead of a global overflow list, use local overflow stacks") \ 13551558Srgrimes \ 13561558Srgrimes product(bool, ParGCTrimOverflow, true, \ 13571558Srgrimes "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \ 13581558Srgrimes \ 1359100336Sjoerg notproduct(bool, ParGCWorkQueueOverflowALot, false, \ 1360100336Sjoerg "Whether we should simulate work queue overflow in ParNew") \ 13611558Srgrimes \ 13621558Srgrimes notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ 13631558Srgrimes "An `interval' counter that determines how frequently " \ 13641558Srgrimes "we simulate overflow; a smaller number increases frequency") \ 13651558Srgrimes \ 13661558Srgrimes product(uintx, ParGCDesiredObjsFromOverflowList, 20, \ 13671558Srgrimes "The desired number of objects to claim from the overflow list") \ 13681558Srgrimes \ 13691558Srgrimes product(uintx, CMSParPromoteBlocksToClaim, 16, \ 13701558Srgrimes "Number of blocks to attempt to claim when refilling CMS LAB for "\ 13711558Srgrimes "parallel GC.") \ 13721558Srgrimes \ 13731558Srgrimes product(uintx, OldPLABWeight, 50, \ 13741558Srgrimes "Percentage (0-100) used to weight the current sample when" \ 13751558Srgrimes "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \ 13761558Srgrimes \ 13771558Srgrimes product(bool, ResizeOldPLAB, true, \ 13781558Srgrimes "Dynamically resize (old gen) promotion labs") \ 13791558Srgrimes \ 13801558Srgrimes product(bool, PrintOldPLAB, false, \ 13811558Srgrimes "Print (old gen) promotion labs sizing decisions") \ 13821558Srgrimes \ 13831558Srgrimes product(uintx, CMSOldPLABMin, 16, \ 13841558Srgrimes "Min size of CMS gen promotion lab caches per worker per blksize")\ 13851558Srgrimes \ 13861558Srgrimes product(uintx, CMSOldPLABMax, 1024, \ 13871558Srgrimes "Max size of CMS gen promotion lab caches per worker per blksize")\ 13881558Srgrimes \ 13891558Srgrimes product(uintx, CMSOldPLABNumRefills, 4, \ 13901558Srgrimes "Nominal number of refills of CMS gen promotion lab cache" \ 13911558Srgrimes " per worker per block size") \ 13921558Srgrimes \ 13931558Srgrimes product(bool, CMSOldPLABResizeQuicker, false, \ 13941558Srgrimes "Whether to react on-the-fly during a scavenge to a sudden" \ 13951558Srgrimes " change in block demand rate") \ 13961558Srgrimes \ 13971558Srgrimes product(uintx, CMSOldPLABToleranceFactor, 4, \ 13981558Srgrimes "The tolerance of the phase-change detector for on-the-fly" \ 13991558Srgrimes " PLAB resizing during a scavenge") \ 14001558Srgrimes \ 140137663Scharnier product(uintx, CMSOldPLABReactivityFactor, 2, \ 140237663Scharnier "The gain in the feedback loop for on-the-fly PLAB resizing" \ 14031558Srgrimes " during a scavenge") \ 14041558Srgrimes \ 14051558Srgrimes product(uintx, CMSOldPLABReactivityCeiling, 10, \ 14061558Srgrimes "The clamping of the gain in the feedback loop for on-the-fly" \ 14071558Srgrimes " PLAB resizing during a scavenge") \ 14081558Srgrimes \ 14091558Srgrimes product(bool, AlwaysPreTouch, false, \ 14101558Srgrimes "It forces all freshly committed pages to be pre-touched.") \ 14111558Srgrimes \ 14121558Srgrimes product(bool, CMSUseOldDefaults, false, \ 14131558Srgrimes "A flag temporarily introduced to allow reverting to some " \ 14141558Srgrimes "older default settings; older as of 6.0") \ 14151558Srgrimes \ 14161558Srgrimes product(intx, CMSYoungGenPerWorker, 16*M, \ 14179336Sdfr "The amount of young gen chosen by default per GC worker " \ 14181558Srgrimes "thread available") \ 14191558Srgrimes \ 14201558Srgrimes product(bool, GCOverheadReporting, false, \ 14219336Sdfr "Enables the GC overhead reporting facility") \ 14221558Srgrimes \ 14231558Srgrimes product(intx, GCOverheadReportingPeriodMS, 100, \ 14241558Srgrimes "Reporting period for conc GC overhead reporting, in ms ") \ 14251558Srgrimes \ 14269336Sdfr product(bool, CMSIncrementalMode, false, \ 14271558Srgrimes "Whether CMS GC should operate in \"incremental\" mode") \ 14281558Srgrimes \ 14291558Srgrimes product(uintx, CMSIncrementalDutyCycle, 10, \ 14301558Srgrimes "CMS incremental mode duty cycle (a percentage, 0-100). If" \ 14319336Sdfr "CMSIncrementalPacing is enabled, then this is just the initial" \ 14321558Srgrimes "value") \ 14339336Sdfr \ 14341558Srgrimes product(bool, CMSIncrementalPacing, true, \ 14351558Srgrimes "Whether the CMS incremental mode duty cycle should be " \ 14361558Srgrimes "automatically adjusted") \ 14371558Srgrimes \ 14381558Srgrimes product(uintx, CMSIncrementalDutyCycleMin, 0, \ 14391558Srgrimes "Lower bound on the duty cycle when CMSIncrementalPacing is " \ 14401558Srgrimes "enabled (a percentage, 0-100)") \ 14411558Srgrimes \ 14421558Srgrimes product(uintx, CMSIncrementalSafetyFactor, 10, \ 144337663Scharnier "Percentage (0-100) used to add conservatism when computing the " \ 14441558Srgrimes "duty cycle") \ 14451558Srgrimes \ 14461558Srgrimes product(uintx, CMSIncrementalOffset, 0, \ 14479336Sdfr "Percentage (0-100) by which the CMS incremental mode duty cycle" \ 14481558Srgrimes " is shifted to the right within the period between young GCs") \ 14491558Srgrimes \ 14501558Srgrimes product(uintx, CMSExpAvgFactor, 50, \ 14511558Srgrimes "Percentage (0-100) used to weight the current sample when" \ 14521558Srgrimes "computing exponential averages for CMS statistics.") \ 14531558Srgrimes \ 14541558Srgrimes product(uintx, CMS_FLSWeight, 75, \ 14551558Srgrimes "Percentage (0-100) used to weight the current sample when" \ 14561558Srgrimes "computing exponentially decating averages for CMS FLS statistics.") \ 14571558Srgrimes \ 14589336Sdfr product(uintx, CMS_FLSPadding, 1, \ 14591558Srgrimes "The multiple of deviation from mean to use for buffering" \ 14601558Srgrimes "against volatility in free list demand.") \ 14611558Srgrimes \ 14629336Sdfr product(uintx, FLSCoalescePolicy, 2, \ 14631558Srgrimes "CMS: Aggression level for coalescing, increasing from 0 to 4") \ 14641558Srgrimes \ 14651558Srgrimes product(bool, FLSAlwaysCoalesceLarge, false, \ 14661558Srgrimes "CMS: Larger free blocks are always available for coalescing") \ 14671558Srgrimes \ 14681558Srgrimes product(double, FLSLargestBlockCoalesceProximity, 0.99, \ 14691558Srgrimes "CMS: the smaller the percentage the greater the coalition force")\ 14701558Srgrimes \ 14711558Srgrimes product(double, CMSSmallCoalSurplusPercent, 1.05, \ 14729336Sdfr "CMS: the factor by which to inflate estimated demand of small" \ 14731558Srgrimes " block sizes to prevent coalescing with an adjoining block") \ 14741558Srgrimes \ 14759336Sdfr product(double, CMSLargeCoalSurplusPercent, 0.95, \ 14761558Srgrimes "CMS: the factor by which to inflate estimated demand of large" \ 14771558Srgrimes " block sizes to prevent coalescing with an adjoining block") \ 14781558Srgrimes \ 14791558Srgrimes product(double, CMSSmallSplitSurplusPercent, 1.10, \ 14801558Srgrimes "CMS: the factor by which to inflate estimated demand of small" \ 14811558Srgrimes " block sizes to prevent splitting to supply demand for smaller" \ 14821558Srgrimes " blocks") \ 14831558Srgrimes \ 14841558Srgrimes product(double, CMSLargeSplitSurplusPercent, 1.00, \ 14851558Srgrimes "CMS: the factor by which to inflate estimated demand of large" \ 14861558Srgrimes " block sizes to prevent splitting to supply demand for smaller" \ 14871558Srgrimes " blocks") \ 14881558Srgrimes \ 14891558Srgrimes product(bool, CMSExtrapolateSweep, false, \ 14901558Srgrimes "CMS: cushion for block demand during sweep") \ 14911558Srgrimes \ 14921558Srgrimes product(uintx, CMS_SweepWeight, 75, \ 14931558Srgrimes "Percentage (0-100) used to weight the current sample when " \ 14941558Srgrimes "computing exponentially decaying average for inter-sweep " \ 14951558Srgrimes "duration") \ 14969336Sdfr \ 14971558Srgrimes product(uintx, CMS_SweepPadding, 1, \ 14989336Sdfr "The multiple of deviation from mean to use for buffering " \ 14991558Srgrimes "against volatility in inter-sweep duration.") \ 15001558Srgrimes \ 15011558Srgrimes product(uintx, CMS_SweepTimerThresholdMillis, 10, \ 15021558Srgrimes "Skip block flux-rate sampling for an epoch unless inter-sweep " \ 15031558Srgrimes "duration exceeds this threhold in milliseconds") \ 15041558Srgrimes \ 150574462Salfred develop(bool, CMSTraceIncrementalMode, false, \ 15061558Srgrimes "Trace CMS incremental mode") \ 150774462Salfred \ 15081558Srgrimes develop(bool, CMSTraceIncrementalPacing, false, \ 15091558Srgrimes "Trace CMS incremental mode pacing computation") \ 15101558Srgrimes \ 15111558Srgrimes develop(bool, CMSTraceThreadState, false, \ 151274462Salfred "Trace the CMS thread state (enable the trace_state() method)") \ 15131558Srgrimes \ 151474462Salfred product(bool, CMSClassUnloadingEnabled, false, \ 15151558Srgrimes "Whether class unloading enabled when using CMS GC") \ 151674462Salfred \ 15171558Srgrimes product(uintx, CMSClassUnloadingMaxInterval, 0, \ 15181558Srgrimes "When CMS class unloading is enabled, the maximum CMS cycle count"\ 15191558Srgrimes " for which classes may not be unloaded") \ 15201558Srgrimes \ 15211558Srgrimes product(bool, CMSCompactWhenClearAllSoftRefs, true, \ 15221558Srgrimes "Compact when asked to collect CMS gen with clear_all_soft_refs") \ 15231558Srgrimes \ 15241558Srgrimes product(bool, UseCMSCompactAtFullCollection, true, \ 15251558Srgrimes "Use mark sweep compact at full collections") \ 15261558Srgrimes \ 15279336Sdfr product(uintx, CMSFullGCsBeforeCompaction, 0, \ 15281558Srgrimes "Number of CMS full collection done before compaction if > 0") \ 152974462Salfred \ 15301558Srgrimes develop(intx, CMSDictionaryChoice, 0, \ 15319336Sdfr "Use BinaryTreeDictionary as default in the CMS generation") \ 15321558Srgrimes \ 15331558Srgrimes product(uintx, CMSIndexedFreeListReplenish, 4, \ 15341558Srgrimes "Replenish and indexed free list with this number of chunks") \ 153574462Salfred \ 15361558Srgrimes product(bool, CMSReplenishIntermediate, true, \ 15371558Srgrimes "Replenish all intermediate free-list caches") \ 15381558Srgrimes \ 15399336Sdfr product(bool, CMSSplitIndexedFreeListBlocks, true, \ 15401558Srgrimes "When satisfying batched demand, splot blocks from the " \ 15411558Srgrimes "IndexedFreeList whose size is a multiple of requested size") \ 15421558Srgrimes \ 15431558Srgrimes product(bool, CMSLoopWarn, false, \ 15441558Srgrimes "Warn in case of excessive CMS looping") \ 154574462Salfred \ 154674462Salfred develop(bool, CMSOverflowEarlyRestoration, false, \ 154775801Siedowse "Whether preserved marks should be restored early") \ 154874462Salfred \ 154974462Salfred product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ 155074462Salfred "Size of marking stack") \ 155174462Salfred \ 15529336Sdfr product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ 155375801Siedowse "Max size of marking stack") \ 15541558Srgrimes \ 155575801Siedowse notproduct(bool, CMSMarkStackOverflowALot, false, \ 155675801Siedowse "Whether we should simulate frequent marking stack / work queue" \ 155775801Siedowse " overflow") \ 155875801Siedowse \ 155974462Salfred notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ 156074462Salfred "An `interval' counter that determines how frequently" \ 156174462Salfred " we simulate overflow; a smaller number increases frequency") \ 156275801Siedowse \ 156375801Siedowse product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ 15641558Srgrimes "(Temporary, subject to experimentation)" \ 15651558Srgrimes "Maximum number of abortable preclean iterations, if > 0") \ 15661558Srgrimes \ 15671558Srgrimes product(intx, CMSMaxAbortablePrecleanTime, 5000, \ 15681558Srgrimes "(Temporary, subject to experimentation)" \ 15691558Srgrimes "Maximum time in abortable preclean in ms") \ 15701558Srgrimes \ 15711558Srgrimes product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ 15721558Srgrimes "(Temporary, subject to experimentation)" \ 15731558Srgrimes "Nominal minimum work per abortable preclean iteration") \ 15741558Srgrimes \ 15751558Srgrimes product(intx, CMSAbortablePrecleanWaitMillis, 100, \ 157674462Salfred "(Temporary, subject to experimentation)" \ 15771558Srgrimes " Time that we sleep between iterations when not given" \ 15789336Sdfr " enough work per iteration") \ 15791558Srgrimes \ 15801558Srgrimes product(uintx, CMSRescanMultiple, 32, \ 15811558Srgrimes "Size (in cards) of CMS parallel rescan task") \ 15821558Srgrimes \ 15839336Sdfr product(uintx, CMSConcMarkMultiple, 32, \ 15841558Srgrimes "Size (in cards) of CMS concurrent MT marking task") \ 15851558Srgrimes \ 15861558Srgrimes product(uintx, CMSRevisitStackSize, 1*M, \ 15871558Srgrimes "Size of CMS KlassKlass revisit stack") \ 15881558Srgrimes \ 15891558Srgrimes product(bool, CMSAbortSemantics, false, \ 15901558Srgrimes "Whether abort-on-overflow semantics is implemented") \ 15911558Srgrimes \ 15921558Srgrimes product(bool, CMSParallelRemarkEnabled, true, \ 15931558Srgrimes "Whether parallel remark enabled (only if ParNewGC)") \ 15941558Srgrimes \ 15951558Srgrimes product(bool, CMSParallelSurvivorRemarkEnabled, true, \ 15961558Srgrimes "Whether parallel remark of survivor space" \ 15971558Srgrimes " enabled (effective only if CMSParallelRemarkEnabled)") \ 15981558Srgrimes \ 15991558Srgrimes product(bool, CMSPLABRecordAlways, true, \ 16001558Srgrimes "Whether to always record survivor space PLAB bdries" \ 16011558Srgrimes " (effective only if CMSParallelSurvivorRemarkEnabled)") \ 16021558Srgrimes \ 16031558Srgrimes product(bool, CMSConcurrentMTEnabled, true, \ 16041558Srgrimes "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ 16051558Srgrimes \ 16061558Srgrimes product(bool, CMSPermGenPrecleaningEnabled, true, \ 16071558Srgrimes "Whether concurrent precleaning enabled in perm gen" \ 16081558Srgrimes " (effective only when CMSPrecleaningEnabled is true)") \ 16091558Srgrimes \ 16101558Srgrimes product(bool, CMSPrecleaningEnabled, true, \ 16111558Srgrimes "Whether concurrent precleaning enabled") \ 16121558Srgrimes \ 16131558Srgrimes product(uintx, CMSPrecleanIter, 3, \ 16141558Srgrimes "Maximum number of precleaning iteration passes") \ 16151558Srgrimes \ 16161558Srgrimes product(uintx, CMSPrecleanNumerator, 2, \ 16171558Srgrimes "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 16181558Srgrimes " ratio") \ 161972650Sgreen \ 16201558Srgrimes product(uintx, CMSPrecleanDenominator, 3, \ 16211558Srgrimes "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 16221558Srgrimes " ratio") \ 16231558Srgrimes \ 16241558Srgrimes product(bool, CMSPrecleanRefLists1, true, \ 162551968Salfred "Preclean ref lists during (initial) preclean phase") \ 16261558Srgrimes \ 16271558Srgrimes product(bool, CMSPrecleanRefLists2, false, \ 16281558Srgrimes "Preclean ref lists during abortable preclean phase") \ 16291558Srgrimes \ 16301558Srgrimes product(bool, CMSPrecleanSurvivors1, false, \ 16311558Srgrimes "Preclean survivors during (initial) preclean phase") \ 16321558Srgrimes \ 16331558Srgrimes product(bool, CMSPrecleanSurvivors2, true, \ 163437663Scharnier "Preclean survivors during abortable preclean phase") \ 16351558Srgrimes \ 163637663Scharnier product(uintx, CMSPrecleanThreshold, 1000, \ 16371558Srgrimes "Don't re-iterate if #dirty cards less than this") \ 16381558Srgrimes \ 163937663Scharnier product(bool, CMSCleanOnEnter, true, \ 16401558Srgrimes "Clean-on-enter optimization for reducing number of dirty cards") \ 16411558Srgrimes \ 16421558Srgrimes product(uintx, CMSRemarkVerifyVariant, 1, \ 16431558Srgrimes "Choose variant (1,2) of verification following remark") \ 16441558Srgrimes \ 16451558Srgrimes product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ 16461558Srgrimes "If Eden used is below this value, don't try to schedule remark") \ 16471558Srgrimes \ 16481558Srgrimes product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ 16491558Srgrimes "The Eden occupancy % at which to try and schedule remark pause") \ 16501558Srgrimes \ 16511558Srgrimes product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ 16521558Srgrimes "Start sampling Eden top at least before yg occupancy reaches" \ 16531558Srgrimes " 1/<ratio> of the size at which we plan to schedule remark") \ 16541558Srgrimes \ 16551558Srgrimes product(uintx, CMSSamplingGrain, 16*K, \ 16561558Srgrimes "The minimum distance between eden samples for CMS (see above)") \ 16571558Srgrimes \ 16581558Srgrimes product(bool, CMSScavengeBeforeRemark, false, \ 16591558Srgrimes "Attempt scavenge before the CMS remark step") \ 16601558Srgrimes \ 16611558Srgrimes develop(bool, CMSTraceSweeper, false, \ 16621558Srgrimes "Trace some actions of the CMS sweeper") \ 16631558Srgrimes \ 16641558Srgrimes product(uintx, CMSWorkQueueDrainThreshold, 10, \ 16651558Srgrimes "Don't drain below this size per parallel worker/thief") \ 166675801Siedowse \ 16671558Srgrimes product(intx, CMSWaitDuration, 2000, \ 166837663Scharnier "Time in milliseconds that CMS thread waits for young GC") \ 16691558Srgrimes \ 16701558Srgrimes product(bool, CMSYield, true, \ 16711558Srgrimes "Yield between steps of concurrent mark & sweep") \ 16721558Srgrimes \ 16731558Srgrimes product(uintx, CMSBitMapYieldQuantum, 10*M, \ 16741558Srgrimes "Bitmap operations should process at most this many bits" \ 167574462Salfred "between yields") \ 167674462Salfred \ 167774462Salfred product(bool, CMSDumpAtPromotionFailure, false, \ 167874462Salfred "Dump useful information about the state of the CMS old " \ 167974462Salfred " generation upon a promotion failure.") \ 16801558Srgrimes \ 168137663Scharnier product(bool, CMSPrintChunksInDump, false, \ 16821558Srgrimes "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 16831558Srgrimes " more detailed information about the free chunks.") \ 168437663Scharnier \ 16851558Srgrimes product(bool, CMSPrintObjectsInDump, false, \ 16861558Srgrimes "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 16871558Srgrimes " more detailed information about the allocated objects.") \ 16881558Srgrimes \ 16891558Srgrimes diagnostic(bool, FLSVerifyAllHeapReferences, false, \ 16901558Srgrimes "Verify that all refs across the FLS boundary " \ 16911558Srgrimes " are to valid objects") \ 16921558Srgrimes \ 169327447Sdfr diagnostic(bool, FLSVerifyLists, false, \ 169427447Sdfr "Do lots of (expensive) FreeListSpace verification") \ 169527447Sdfr \ 169627447Sdfr diagnostic(bool, FLSVerifyIndexTable, false, \ 169727447Sdfr "Do lots of (expensive) FLS index table verification") \ 169827447Sdfr \ 169927447Sdfr develop(bool, FLSVerifyDictionary, false, \ 1700100336Sjoerg "Do lots of (expensive) FLS dictionary verification") \ 1701100336Sjoerg \ 17021558Srgrimes develop(bool, VerifyBlockOffsetArray, false, \ 170337663Scharnier "Do (expensive!) block offset array verification") \ 17041558Srgrimes \ 17051558Srgrimes product(bool, BlockOffsetArrayUseUnallocatedBlock, trueInDebug, \ 17061558Srgrimes "Maintain _unallocated_block in BlockOffsetArray" \ 17071558Srgrimes " (currently applicable only to CMS collector)") \ 17081558Srgrimes \ 17091558Srgrimes develop(bool, TraceCMSState, false, \ 17101558Srgrimes "Trace the state of the CMS collection") \ 17111558Srgrimes \ 17121558Srgrimes product(intx, RefDiscoveryPolicy, 0, \ 17131558Srgrimes "Whether reference-based(0) or referent-based(1)") \ 17141558Srgrimes \ 17151558Srgrimes product(bool, ParallelRefProcEnabled, false, \ 17161558Srgrimes "Enable parallel reference processing whenever possible") \ 17171558Srgrimes \ 17181558Srgrimes product(bool, ParallelRefProcBalancingEnabled, true, \ 17191558Srgrimes "Enable balancing of reference processing queues") \ 17201558Srgrimes \ 17211558Srgrimes product(intx, CMSTriggerRatio, 80, \ 17221558Srgrimes "Percentage of MinHeapFreeRatio in CMS generation that is " \ 17231558Srgrimes "allocated before a CMS collection cycle commences") \ 17241558Srgrimes \ 17251558Srgrimes product(intx, CMSTriggerPermRatio, 80, \ 17267401Swpaul "Percentage of MinHeapFreeRatio in the CMS perm generation that " \ 17271558Srgrimes "is allocated before a CMS collection cycle commences, that " \ 17281558Srgrimes "also collects the perm generation") \ 17297401Swpaul \ 17301558Srgrimes product(uintx, CMSBootstrapOccupancy, 50, \ 17317401Swpaul "Percentage CMS generation occupancy at which to " \ 173275635Siedowse "initiate CMS collection for bootstrapping collection stats") \ 173374462Salfred \ 173474462Salfred product(intx, CMSInitiatingOccupancyFraction, -1, \ 17351558Srgrimes "Percentage CMS generation occupancy to start a CMS collection " \ 173674462Salfred "cycle. A negative value means that CMSTriggerRatio is used") \ 173774462Salfred \ 17381558Srgrimes product(uintx, InitiatingHeapOccupancyPercent, 45, \ 17391558Srgrimes "Percentage of the (entire) heap occupancy to start a " \ 174074462Salfred "concurrent GC cycle. It us used by GCs that trigger a " \ 174174462Salfred "concurrent GC cycle based on the occupancy of the entire heap, " \ 174274462Salfred "not just one of the generations (e.g., G1). A value of 0 " \ 174374462Salfred "denotes 'do constant GC cycles'.") \ 174474462Salfred \ 174575635Siedowse product(intx, CMSInitiatingPermOccupancyFraction, -1, \ 174674462Salfred "Percentage CMS perm generation occupancy to start a " \ 174774462Salfred "CMScollection cycle. A negative value means that " \ 174874462Salfred "CMSTriggerPermRatio is used") \ 174974462Salfred \ 175074462Salfred product(bool, UseCMSInitiatingOccupancyOnly, false, \ 175174462Salfred "Only use occupancy as a crierion for starting a CMS collection") \ 1752146187Sume \ 175374462Salfred product(intx, CMSIsTooFullPercentage, 98, \ 175474462Salfred "An absolute ceiling above which CMS will always consider the " \ 175574462Salfred "perm gen ripe for collection") \ 175675641Siedowse \ 175774462Salfred develop(bool, CMSTestInFreeList, false, \ 175875635Siedowse "Check if the coalesced range is already in the " \ 175975635Siedowse "free lists as claimed") \ 176075635Siedowse \ 176175635Siedowse notproduct(bool, CMSVerifyReturnedBytes, false, \ 176275635Siedowse "Check that all the garbage collected was returned to the " \ 176375635Siedowse "free lists.") \ 176475635Siedowse \ 176575635Siedowse notproduct(bool, ScavengeALot, false, \ 176675635Siedowse "Force scavenge at every Nth exit from the runtime system " \ 176775635Siedowse "(N=ScavengeALotInterval)") \ 176875635Siedowse \ 176975801Siedowse develop(bool, FullGCALot, false, \ 177075635Siedowse "Force full gc at every Nth exit from the runtime system " \ 177175635Siedowse "(N=FullGCALotInterval)") \ 177275635Siedowse \ 177375635Siedowse notproduct(bool, GCALotAtAllSafepoints, false, \ 177475635Siedowse "Enforce ScavengeALot/GCALot at all potential safepoints") \ 177575635Siedowse \ 177675635Siedowse product(bool, HandlePromotionFailure, true, \ 177775635Siedowse "The youngest generation collection does not require " \ 177875635Siedowse "a guarantee of full promotion of all live objects.") \ 177974462Salfred \ 17801558Srgrimes product(bool, PrintPromotionFailure, false, \ 178175635Siedowse "Print additional diagnostic information following " \ 17821558Srgrimes " promotion failure") \ 17831558Srgrimes \ 17841558Srgrimes notproduct(bool, PromotionFailureALot, false, \ 17851558Srgrimes "Use promotion failure handling on every youngest generation " \ 17861558Srgrimes "collection") \ 17871558Srgrimes \ 17881558Srgrimes develop(uintx, PromotionFailureALotCount, 1000, \ 17891558Srgrimes "Number of promotion failures occurring at ParGCAllocBuffer" \ 17901558Srgrimes "refill attempts (ParNew) or promotion attempts " \ 17911558Srgrimes "(other young collectors) ") \ 17921558Srgrimes \ 17931558Srgrimes develop(uintx, PromotionFailureALotInterval, 5, \ 17941558Srgrimes "Total collections between promotion failures alot") \ 17951558Srgrimes \ 17961558Srgrimes develop(intx, WorkStealingSleepMillis, 1, \ 17971558Srgrimes "Sleep time when sleep is used for yields") \ 17981558Srgrimes \ 179927447Sdfr develop(uintx, WorkStealingYieldsBeforeSleep, 1000, \ 180027447Sdfr "Number of yields before a sleep is done during workstealing") \ 18011558Srgrimes \ 18021558Srgrimes develop(uintx, WorkStealingHardSpins, 4096, \ 18031558Srgrimes "Number of iterations in a spin loop between checks on " \ 18041558Srgrimes "time out of hard spin") \ 18051558Srgrimes \ 18061558Srgrimes develop(uintx, WorkStealingSpinToYieldRatio, 10, \ 18071558Srgrimes "Ratio of hard spins to calls to yield") \ 18081558Srgrimes \ 18091558Srgrimes product(uintx, PreserveMarkStackSize, 1024, \ 18101558Srgrimes "Size for stack used in promotion failure handling") \ 18111558Srgrimes \ 18121558Srgrimes develop(uintx, ObjArrayMarkingStride, 512, \ 18131558Srgrimes "Number of ObjArray elements to push onto the marking stack" \ 18141558Srgrimes "before pushing a continuation entry") \ 18151558Srgrimes \ 18161558Srgrimes product_pd(bool, UseTLAB, "Use thread-local object allocation") \ 18171558Srgrimes \ 18181558Srgrimes product_pd(bool, ResizeTLAB, \ 18191558Srgrimes "Dynamically resize tlab size for threads") \ 18201558Srgrimes \ 18211558Srgrimes product(bool, ZeroTLAB, false, \ 18221558Srgrimes "Zero out the newly created TLAB") \ 18231558Srgrimes \ 18241558Srgrimes product(bool, FastTLABRefill, true, \ 18251558Srgrimes "Use fast TLAB refill code") \ 18261558Srgrimes \ 18271558Srgrimes product(bool, PrintTLAB, false, \ 18281558Srgrimes "Print various TLAB related information") \ 18291558Srgrimes \ 18309336Sdfr product(bool, TLABStats, true, \ 18311558Srgrimes "Print various TLAB related information") \ 18321558Srgrimes \ 18331558Srgrimes product(bool, PrintRevisitStats, false, \ 18341558Srgrimes "Print revisit (klass and MDO) stack related information") \ 18351558Srgrimes \ 18361558Srgrimes product_pd(bool, NeverActAsServerClassMachine, \ 18371558Srgrimes "Never act like a server-class machine") \ 18381558Srgrimes \ 18391558Srgrimes product(bool, AlwaysActAsServerClassMachine, false, \ 18401558Srgrimes "Always act like a server-class machine") \ 184137663Scharnier \ 18421558Srgrimes product_pd(uint64_t, MaxRAM, \ 18431558Srgrimes "Real memory size (in bytes) used to set maximum heap size") \ 18441558Srgrimes \ 18451558Srgrimes product(uintx, ErgoHeapSizeLimit, 0, \ 1846158857Srodrigc "Maximum ergonomically set heap size (in bytes); zero means use " \ 18471558Srgrimes "MaxRAM / MaxRAMFraction") \ 18481558Srgrimes \ 18491558Srgrimes product(uintx, MaxRAMFraction, 4, \ 1850158857Srodrigc "Maximum fraction (1/n) of real memory used for maximum heap " \ 1851158857Srodrigc "size") \ 18521558Srgrimes \ 185375841Siedowse product(uintx, DefaultMaxRAMFraction, 4, \ 185474462Salfred "Maximum fraction (1/n) of real memory used for maximum heap " \ 1855158857Srodrigc "size; deprecated: to be renamed to MaxRAMFraction") \ 1856158857Srodrigc \ 1857158857Srodrigc product(uintx, MinRAMFraction, 2, \ 18581558Srgrimes "Minimum fraction (1/n) of real memory used for maxmimum heap " \ 1859158857Srodrigc "size on systems with small physical memory size") \ 1860158857Srodrigc \ 1861158857Srodrigc product(uintx, InitialRAMFraction, 64, \ 1862158857Srodrigc "Fraction (1/n) of real memory used for initial heap size") \ 18631558Srgrimes \ 1864158857Srodrigc product(bool, UseAutoGCSelectPolicy, false, \ 1865158857Srodrigc "Use automatic collection selection policy") \ 1866158857Srodrigc \ 1867158857Srodrigc product(uintx, AutoGCSelectPauseMillis, 5000, \ 1868158857Srodrigc "Automatic GC selection pause threshhold in ms") \ 186975801Siedowse \ 1870158857Srodrigc product(bool, UseAdaptiveSizePolicy, true, \ 1871158857Srodrigc "Use adaptive generation sizing policies") \ 1872158857Srodrigc \ 1873158857Srodrigc product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ 1874158857Srodrigc "Use adaptive survivor sizing policies") \ 187575641Siedowse \ 187674462Salfred product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ 187775641Siedowse "Use adaptive young-old sizing policies at minor collections") \ 187875641Siedowse \ 18791558Srgrimes product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ 1880158857Srodrigc "Use adaptive young-old sizing policies at major collections") \ 1881158857Srodrigc \ 1882158857Srodrigc product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ 1883158857Srodrigc "Use statistics from System.GC for adaptive size policy") \ 1884158857Srodrigc \ 1885158857Srodrigc product(bool, UseAdaptiveGCBoundary, false, \ 1886158857Srodrigc "Allow young-old boundary to move") \ 1887158857Srodrigc \ 18881558Srgrimes develop(bool, TraceAdaptiveGCBoundary, false, \ 18891558Srgrimes "Trace young-old boundary moves") \ 18901558Srgrimes \ 189175641Siedowse develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ 189274462Salfred "Resize the virtual spaces of the young or old generations") \ 1893158857Srodrigc \ 1894158857Srodrigc product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ 1895158857Srodrigc "Policy for changeing generation size for throughput goals") \ 18961558Srgrimes \ 18971558Srgrimes product(uintx, AdaptiveSizePausePolicy, 0, \ 189875801Siedowse "Policy for changing generation size for pause goals") \ 189974462Salfred \ 190074462Salfred develop(bool, PSAdjustTenuredGenForMinorPause, false, \ 1901158857Srodrigc "Adjust tenured generation to achive a minor pause goal") \ 190275801Siedowse \ 1903158857Srodrigc develop(bool, PSAdjustYoungGenForMajorPause, false, \ 1904158857Srodrigc "Adjust young generation to achive a major pause goal") \ 1905158857Srodrigc \ 190675801Siedowse product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ 1907158857Srodrigc "Number of steps where heuristics is used before data is used") \ 19081558Srgrimes \ 190975641Siedowse develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ 1910158857Srodrigc "Number of collections before the adaptive sizing is started") \ 1911158857Srodrigc \ 1912158857Srodrigc product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ 1913158857Srodrigc "Collecton interval for printing information; zero => never") \ 191475641Siedowse \ 19157401Swpaul product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ 1916158857Srodrigc "Use adaptive minimum footprint as a goal") \ 1917158857Srodrigc \ 19187401Swpaul product(uintx, AdaptiveSizePolicyWeight, 10, \ 19191558Srgrimes "Weight given to exponential resizing, between 0 and 100") \ 192037663Scharnier \ 19211558Srgrimes product(uintx, AdaptiveTimeWeight, 25, \ 19221558Srgrimes "Weight given to time in adaptive policy, between 0 and 100") \ 1923158857Srodrigc \ 1924158857Srodrigc product(uintx, PausePadding, 1, \ 19251558Srgrimes "How much buffer to keep for pause time") \ 19261558Srgrimes \ 19271558Srgrimes product(uintx, PromotedPadding, 3, \ 19281558Srgrimes "How much buffer to keep for promotion failure") \ 19291558Srgrimes \ 19301558Srgrimes product(uintx, SurvivorPadding, 3, \ 19311558Srgrimes "How much buffer to keep for survivor overflow") \ 193296707Strhodes \ 19331558Srgrimes product(uintx, AdaptivePermSizeWeight, 20, \ 1934158857Srodrigc "Weight for perm gen exponential resizing, between 0 and 100") \ 1935158857Srodrigc \ 1936158857Srodrigc product(uintx, PermGenPadding, 3, \ 1937158857Srodrigc "How much buffer to keep for perm gen sizing") \ 1938158857Srodrigc \ 1939158857Srodrigc product(uintx, ThresholdTolerance, 10, \ 1940158857Srodrigc "Allowed collection cost difference between generations") \ 1941163512Srink \ 1942163512Srink product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ 1943163512Srink "If collection costs are within margin, reduce both by full " \ 1944163512Srink "delta") \ 1945163512Srink \ 1946163512Srink product(uintx, YoungGenerationSizeIncrement, 20, \ 19471558Srgrimes "Adaptive size percentage change in young generation") \ 19481558Srgrimes \ 19491558Srgrimes product(uintx, YoungGenerationSizeSupplement, 80, \ 19501558Srgrimes "Supplement to YoungedGenerationSizeIncrement used at startup") \ 1951158857Srodrigc \ 1952158857Srodrigc product(uintx, YoungGenerationSizeSupplementDecay, 8, \ 1953158857Srodrigc "Decay factor to YoungedGenerationSizeSupplement") \ 1954158857Srodrigc \ 19551558Srgrimes product(uintx, TenuredGenerationSizeIncrement, 20, \ 195675635Siedowse "Adaptive size percentage change in tenured generation") \ 195775635Siedowse \ 195875635Siedowse product(uintx, TenuredGenerationSizeSupplement, 80, \ 19591558Srgrimes "Supplement to TenuredGenerationSizeIncrement used at startup") \ 196037663Scharnier \ 1961158857Srodrigc product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ 1962158857Srodrigc "Decay factor to TenuredGenerationSizeIncrement") \ 19631558Srgrimes \ 19641558Srgrimes product(uintx, MaxGCPauseMillis, max_uintx, \ 1965100336Sjoerg "Adaptive size policy maximum GC pause time goal in msec, " \ 1966100336Sjoerg "or (G1 Only) the max. GC time per MMU time slice") \ 1967100336Sjoerg \ 1968100336Sjoerg product(intx, GCPauseIntervalMillis, 500, \ 1969100336Sjoerg "Time slice for MMU specification") \ 1970100336Sjoerg \ 1971100336Sjoerg product(uintx, MaxGCMinorPauseMillis, max_uintx, \ 1972100336Sjoerg "Adaptive size policy maximum GC minor pause time goal in msec") \ 1973158857Srodrigc \ 1974158857Srodrigc product(uintx, GCTimeRatio, 99, \ 19751558Srgrimes "Adaptive size policy application time to GC time ratio") \ 19761558Srgrimes \ 19771558Srgrimes product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ 19781558Srgrimes "Adaptive size scale down factor for shrinking") \ 19791558Srgrimes \ 19801558Srgrimes product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ 19811558Srgrimes "Adaptive size decays the major cost for long major intervals") \ 19821558Srgrimes \ 198337663Scharnier product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ 1984166258Srodrigc "Time scale over which major costs decay") \ 1985166258Srodrigc \ 1986158857Srodrigc product(uintx, MinSurvivorRatio, 3, \ 1987158857Srodrigc "Minimum ratio of young generation/survivor space size") \ 19881558Srgrimes \ 19891558Srgrimes product(uintx, InitialSurvivorRatio, 8, \ 19901558Srgrimes "Initial ratio of eden/survivor space size") \ 199175841Siedowse \ 199275841Siedowse product(uintx, BaseFootPrintEstimate, 256*M, \ 199375841Siedowse "Estimate of footprint other than Java Heap") \ 199475841Siedowse \ 1995166258Srodrigc product(bool, UseGCOverheadLimit, true, \ 1996166258Srodrigc "Use policy to limit of proportion of time spent in GC " \ 1997158857Srodrigc "before an OutOfMemory error is thrown") \ 1998158857Srodrigc \ 199975841Siedowse product(uintx, GCTimeLimit, 98, \ 20001558Srgrimes "Limit of proportion of time spent in GC before an OutOfMemory" \ 200174462Salfred "error is thrown (used with GCHeapFreeLimit)") \ 200275641Siedowse \ 200374462Salfred product(uintx, GCHeapFreeLimit, 2, \ 200475641Siedowse "Minimum percentage of free space after a full GC before an " \ 20051558Srgrimes "OutOfMemoryError is thrown (used with GCTimeLimit)") \ 20061558Srgrimes \ 20071558Srgrimes develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ 20081558Srgrimes "Number of consecutive collections before gc time limit fires") \ 2009158857Srodrigc \ 2010158857Srodrigc product(bool, PrintAdaptiveSizePolicy, false, \ 2011158857Srodrigc "Print information about AdaptiveSizePolicy") \ 2012158857Srodrigc \ 2013158857Srodrigc product(intx, PrefetchCopyIntervalInBytes, -1, \ 2014158857Srodrigc "How far ahead to prefetch destination area (<= 0 means off)") \ 2015158857Srodrigc \ 2016158857Srodrigc product(intx, PrefetchScanIntervalInBytes, -1, \ 2017158857Srodrigc "How far ahead to prefetch scan area (<= 0 means off)") \ 2018158857Srodrigc \ 2019158857Srodrigc product(intx, PrefetchFieldsAhead, -1, \ 2020158857Srodrigc "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ 2021158857Srodrigc \ 2022158857Srodrigc develop(bool, UsePrefetchQueue, true, \ 20231558Srgrimes "Use the prefetch queue during PS promotion") \ 20241558Srgrimes \ 20251558Srgrimes diagnostic(bool, VerifyBeforeExit, trueInDebug, \ 20261558Srgrimes "Verify system before exiting") \ 202775801Siedowse \ 202875801Siedowse diagnostic(bool, VerifyBeforeGC, false, \ 20291558Srgrimes "Verify memory system before GC") \ 20301558Srgrimes \ 20311558Srgrimes diagnostic(bool, VerifyAfterGC, false, \ 20321558Srgrimes "Verify memory system after GC") \ 20331558Srgrimes \ 20341558Srgrimes diagnostic(bool, VerifyDuringGC, false, \ 20351558Srgrimes "Verify memory system during GC (between phases)") \ 203675861Siedowse \ 203774462Salfred diagnostic(bool, GCParallelVerificationEnabled, true, \ 203875801Siedowse "Enable parallel memory system verification") \ 203975861Siedowse \ 204074462Salfred diagnostic(bool, DeferInitialCardMark, false, \ 204174462Salfred "When +ReduceInitialCardMarks, explicitly defer any that " \ 204274462Salfred "may arise from new_pre_store_barrier") \ 20431558Srgrimes \ 204475635Siedowse diagnostic(bool, VerifyRememberedSets, false, \ 204574462Salfred "Verify GC remembered sets") \ 204674462Salfred \ 204774462Salfred diagnostic(bool, VerifyObjectStartArray, true, \ 204874462Salfred "Verify GC object start array if verify before/after") \ 204974462Salfred \ 205074462Salfred product(bool, DisableExplicitGC, false, \ 205175861Siedowse "Tells whether calling System.gc() does a full GC") \ 205275861Siedowse \ 205375861Siedowse notproduct(bool, CheckMemoryInitialization, false, \ 205475861Siedowse "Checks memory initialization") \ 205575861Siedowse \ 205674462Salfred product(bool, CollectGen0First, false, \ 205775801Siedowse "Collect youngest generation before each full GC") \ 205875801Siedowse \ 205975801Siedowse diagnostic(bool, BindCMSThreadToCPU, false, \ 206075801Siedowse "Bind CMS Thread to CPU if possible") \ 206175801Siedowse \ 206275801Siedowse diagnostic(uintx, CPUForCMSThread, 0, \ 206375801Siedowse "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ 206474462Salfred \ 206575861Siedowse product(bool, BindGCTaskThreadsToCPUs, false, \ 206675861Siedowse "Bind GCTaskThreads to CPUs if possible") \ 206775861Siedowse \ 206874462Salfred product(bool, UseGCTaskAffinity, false, \ 206975801Siedowse "Use worker affinity when asking for GCTasks") \ 207075801Siedowse \ 207175801Siedowse product(uintx, ProcessDistributionStride, 4, \ 207274462Salfred "Stride through processors when distributing processes") \ 207375801Siedowse \ 207474462Salfred product(uintx, CMSCoordinatorYieldSleepCount, 10, \ 207574462Salfred "number of times the coordinator GC thread will sleep while " \ 207675801Siedowse "yielding before giving up and resuming GC") \ 207774462Salfred \ 207875801Siedowse product(uintx, CMSYieldSleepCount, 0, \ 207975801Siedowse "number of times a GC thread (minus the coordinator) " \ 208074462Salfred "will sleep while yielding before giving up and resuming GC") \ 208175861Siedowse \ 208275861Siedowse /* gc tracing */ \ 208375861Siedowse manageable(bool, PrintGC, false, \ 208475861Siedowse "Print message at garbage collect") \ 208575861Siedowse \ 208675861Siedowse manageable(bool, PrintGCDetails, false, \ 208775861Siedowse "Print more details at garbage collect") \ 208875861Siedowse \ 208975861Siedowse manageable(bool, PrintGCDateStamps, false, \ 209075861Siedowse "Print date stamps at garbage collect") \ 209174462Salfred \ 209225318Spst manageable(bool, PrintGCTimeStamps, false, \ 209375801Siedowse "Print timestamps at garbage collect") \ 209475801Siedowse \ 209575801Siedowse product(bool, PrintGCTaskTimeStamps, false, \ 209675801Siedowse "Print timestamps for individual gc worker thread tasks") \ 209775801Siedowse \ 209875801Siedowse develop(intx, ConcGCYieldTimeout, 0, \ 209975801Siedowse "If non-zero, assert that GC threads yield within this # of ms.") \ 210075801Siedowse \ 210175801Siedowse notproduct(bool, TraceMarkSweep, false, \ 210274462Salfred "Trace mark sweep") \ 210375801Siedowse \ 210475801Siedowse product(bool, PrintReferenceGC, false, \ 210575801Siedowse "Print times spent handling reference objects during GC " \ 210675801Siedowse " (enabled only when PrintGCDetails)") \ 2107146187Sume \ 210875801Siedowse develop(bool, TraceReferenceGC, false, \ 210975801Siedowse "Trace handling of soft/weak/final/phantom references") \ 211075801Siedowse \ 211175801Siedowse develop(bool, TraceFinalizerRegistration, false, \ 211275801Siedowse "Trace registration of final references") \ 211375801Siedowse \ 211475801Siedowse notproduct(bool, TraceScavenge, false, \ 211575801Siedowse "Trace scavenge") \ 211675801Siedowse \ 211775801Siedowse product_rw(bool, TraceClassLoading, false, \ 211875801Siedowse "Trace all classes loaded") \ 211974462Salfred \ 212074462Salfred product(bool, TraceClassLoadingPreorder, false, \ 212175801Siedowse "Trace all classes loaded in order referenced (not loaded)") \ 212274462Salfred \ 212375801Siedowse product_rw(bool, TraceClassUnloading, false, \ 212475801Siedowse "Trace unloading of classes") \ 212575801Siedowse \ 212675801Siedowse product_rw(bool, TraceLoaderConstraints, false, \ 212774462Salfred "Trace loader constraints") \ 212875801Siedowse \ 212975801Siedowse product(bool, TraceGen0Time, false, \ 213075801Siedowse "Trace accumulated time for Gen 0 collection") \ 213174462Salfred \ 213275801Siedowse product(bool, TraceGen1Time, false, \ 213375801Siedowse "Trace accumulated time for Gen 1 collection") \ 213475801Siedowse \ 213575801Siedowse product(bool, PrintTenuringDistribution, false, \ 213675801Siedowse "Print tenuring age information") \ 213775801Siedowse \ 213875801Siedowse product_rw(bool, PrintHeapAtGC, false, \ 213975801Siedowse "Print heap layout before and after each GC") \ 214075801Siedowse \ 214175801Siedowse product_rw(bool, PrintHeapAtGCExtended, false, \ 214275801Siedowse "Prints extended information about the layout of the heap " \ 214375801Siedowse "when -XX:+PrintHeapAtGC is set") \ 214475801Siedowse \ 214575801Siedowse product(bool, PrintHeapAtSIGBREAK, true, \ 214675801Siedowse "Print heap layout in response to SIGBREAK") \ 214774462Salfred \ 214874462Salfred manageable(bool, PrintClassHistogramBeforeFullGC, false, \ 214974462Salfred "Print a class histogram before any major stop-world GC") \ 215074462Salfred \ 215174462Salfred manageable(bool, PrintClassHistogramAfterFullGC, false, \ 215274462Salfred "Print a class histogram after any major stop-world GC") \ 215374462Salfred \ 215474462Salfred manageable(bool, PrintClassHistogram, false, \ 215574462Salfred "Print a histogram of class instances") \ 215674462Salfred \ 215774462Salfred develop(bool, TraceWorkGang, false, \ 21581558Srgrimes "Trace activities of work gangs") \ 21591558Srgrimes \ 21601558Srgrimes product(bool, TraceParallelOldGCTasks, false, \ 21611558Srgrimes "Trace multithreaded GC activity") \ 21621558Srgrimes \ 21631558Srgrimes develop(bool, TraceBlockOffsetTable, false, \ 21641558Srgrimes "Print BlockOffsetTable maps") \ 21651558Srgrimes \ 21661558Srgrimes develop(bool, TraceCardTableModRefBS, false, \ 21671558Srgrimes "Print CardTableModRefBS maps") \ 21681558Srgrimes \ 21691558Srgrimes develop(bool, TraceGCTaskManager, false, \ 21701558Srgrimes "Trace actions of the GC task manager") \ 21711558Srgrimes \ 21721558Srgrimes develop(bool, TraceGCTaskQueue, false, \ 21731558Srgrimes "Trace actions of the GC task queues") \ 21741558Srgrimes \ 21751558Srgrimes develop(bool, TraceGCTaskThread, false, \ 21761558Srgrimes "Trace actions of the GC task threads") \ 21771558Srgrimes \ 21781558Srgrimes product(bool, PrintParallelOldGCPhaseTimes, false, \ 21791558Srgrimes "Print the time taken by each parallel old gc phase." \ 21801558Srgrimes "PrintGCDetails must also be enabled.") \ 21811558Srgrimes \ 21821558Srgrimes develop(bool, TraceParallelOldGCMarkingPhase, false, \ 21831558Srgrimes "Trace parallel old gc marking phase") \ 21841558Srgrimes \ 21851558Srgrimes develop(bool, TraceParallelOldGCSummaryPhase, false, \ 21861558Srgrimes "Trace parallel old gc summary phase") \ 21871558Srgrimes \ 21881558Srgrimes develop(bool, TraceParallelOldGCCompactionPhase, false, \ 21891558Srgrimes "Trace parallel old gc compaction phase") \ 21901558Srgrimes \ 219196622Siedowse develop(bool, TraceParallelOldGCDensePrefix, false, \ 21921558Srgrimes "Trace parallel old gc dense prefix computation") \ 21931558Srgrimes \ 21941558Srgrimes develop(bool, IgnoreLibthreadGPFault, false, \ 21951558Srgrimes "Suppress workaround for libthread GP fault") \ 21961558Srgrimes \ 21971558Srgrimes product(bool, PrintJNIGCStalls, false, \ 21981558Srgrimes "Print diagnostic message when GC is stalled" \ 21991558Srgrimes "by JNI critical section") \ 220096622Siedowse \ 22011558Srgrimes /* JVMTI heap profiling */ \ 22021558Srgrimes \ 22031558Srgrimes diagnostic(bool, TraceJVMTIObjectTagging, false, \ 22041558Srgrimes "Trace JVMTI object tagging calls") \ 22051558Srgrimes \ 22061558Srgrimes diagnostic(bool, VerifyBeforeIteration, false, \ 22071558Srgrimes "Verify memory system before JVMTI iteration") \ 22081558Srgrimes \ 22091558Srgrimes /* compiler interface */ \ 22101558Srgrimes \ 221179117Sdd develop(bool, CIPrintCompilerName, false, \ 221279117Sdd "when CIPrint is active, print the name of the active compiler") \ 221379117Sdd \ 221479117Sdd develop(bool, CIPrintCompileQueue, false, \ 221596622Siedowse "display the contents of the compile queue whenever a " \ 221696622Siedowse "compilation is enqueued") \ 221796622Siedowse \ 221896622Siedowse develop(bool, CIPrintRequests, false, \ 221996622Siedowse "display every request for compilation") \ 22201558Srgrimes \ 222196622Siedowse product(bool, CITime, false, \ 222296622Siedowse "collect timing information for compilation") \ 222396622Siedowse \ 22241558Srgrimes develop(bool, CITimeEach, false, \ 22251558Srgrimes "display timing information after each successful compilation") \ 22261558Srgrimes \ 22271558Srgrimes develop(bool, CICountOSR, true, \ 22281558Srgrimes "use a separate counter when assigning ids to osr compilations") \ 22291558Srgrimes \ 22301558Srgrimes develop(bool, CICompileNatives, true, \ 22311558Srgrimes "compile native methods if supported by the compiler") \ 22321558Srgrimes \ 22331558Srgrimes develop_pd(bool, CICompileOSR, \ 223472650Sgreen "compile on stack replacement methods if supported by the " \ 22351558Srgrimes "compiler") \ 22361558Srgrimes \ 22371558Srgrimes develop(bool, CIPrintMethodCodes, false, \ 22381558Srgrimes "print method bytecodes of the compiled code") \ 22391558Srgrimes \ 22401558Srgrimes develop(bool, CIPrintTypeFlow, false, \ 2241136051Sstefanf "print the results of ciTypeFlow analysis") \ 2242136051Sstefanf \ 22431558Srgrimes develop(bool, CITraceTypeFlow, false, \ 224491354Sdd "detailed per-bytecode tracing of ciTypeFlow analysis") \ 22451558Srgrimes \ 224637663Scharnier develop(intx, CICloneLoopTestLimit, 100, \ 22471558Srgrimes "size limit for blocks heuristically cloned in ciTypeFlow") \ 22481558Srgrimes \ 22491558Srgrimes /* temp diagnostics */ \ 22501558Srgrimes \ 22511558Srgrimes diagnostic(bool, TraceRedundantCompiles, false, \ 22521558Srgrimes "Have compile broker print when a request already in the queue is"\ 22531558Srgrimes " requested again") \ 22541558Srgrimes \ 22551558Srgrimes diagnostic(bool, InitialCompileFast, false, \ 22561558Srgrimes "Initial compile at CompLevel_fast_compile") \ 22571558Srgrimes \ 22581558Srgrimes diagnostic(bool, InitialCompileReallyFast, false, \ 22591558Srgrimes "Initial compile at CompLevel_really_fast_compile (no profile)") \ 22601558Srgrimes \ 22611558Srgrimes diagnostic(bool, FullProfileOnReInterpret, true, \ 22621558Srgrimes "On re-interpret unc-trap compile next at CompLevel_fast_compile")\ 22631558Srgrimes \ 22641558Srgrimes /* compiler */ \ 226537663Scharnier \ 22661558Srgrimes product(intx, CICompilerCount, CI_COMPILER_COUNT, \ 22671558Srgrimes "Number of compiler threads to run") \ 22681558Srgrimes \ 22691558Srgrimes product(intx, CompilationPolicyChoice, 0, \ 22701558Srgrimes "which compilation policy (0/1)") \ 227137663Scharnier \ 22721558Srgrimes develop(bool, UseStackBanging, true, \ 2273136051Sstefanf "use stack banging for stack overflow checks (required for " \ 22741558Srgrimes "proper StackOverflow handling; disable only to measure cost " \ 22751558Srgrimes "of stackbanging)") \ 22761558Srgrimes \ 22771558Srgrimes develop(bool, Use24BitFPMode, true, \ 22781558Srgrimes "Set 24-bit FPU mode on a per-compile basis ") \ 22791558Srgrimes \ 22801558Srgrimes develop(bool, Use24BitFP, true, \ 22811558Srgrimes "use FP instructions that produce 24-bit precise results") \ 22821558Srgrimes \ 22831558Srgrimes develop(bool, UseStrictFP, true, \ 22841558Srgrimes "use strict fp if modifier strictfp is set") \ 22851558Srgrimes \ 22861558Srgrimes develop(bool, GenerateSynchronizationCode, true, \ 22871558Srgrimes "generate locking/unlocking code for synchronized methods and " \ 22881558Srgrimes "monitors") \ 22891558Srgrimes \ 229037663Scharnier develop(bool, GenerateCompilerNullChecks, true, \ 22911558Srgrimes "Generate explicit null checks for loads/stores/calls") \ 22921558Srgrimes \ 22931558Srgrimes develop(bool, GenerateRangeChecks, true, \ 22941558Srgrimes "Generate range checks for array accesses") \ 22951558Srgrimes \ 22961558Srgrimes develop_pd(bool, ImplicitNullChecks, \ 22971558Srgrimes "generate code for implicit null checks") \ 22981558Srgrimes \ 22991558Srgrimes product(bool, PrintSafepointStatistics, false, \ 230037663Scharnier "print statistics about safepoint synchronization") \ 23011558Srgrimes \ 23021558Srgrimes product(intx, PrintSafepointStatisticsCount, 300, \ 23031558Srgrimes "total number of safepoint statistics collected " \ 23041558Srgrimes "before printing them out") \ 23051558Srgrimes \ 23061558Srgrimes product(intx, PrintSafepointStatisticsTimeout, -1, \ 230737663Scharnier "print safepoint statistics only when safepoint takes" \ 23081558Srgrimes " more than PrintSafepointSatisticsTimeout in millis") \ 23091558Srgrimes \ 23101558Srgrimes product(bool, TraceSafepointCleanupTime, false, \ 23111558Srgrimes "print the break down of clean up tasks performed during" \ 23121558Srgrimes " safepoint") \ 23131558Srgrimes \ 23141558Srgrimes develop(bool, InlineAccessors, true, \ 23151558Srgrimes "inline accessor methods (get/set)") \ 23161558Srgrimes \ 23171558Srgrimes product(bool, Inline, true, \ 231823681Speter "enable inlining") \ 23191558Srgrimes \ 23201558Srgrimes product(bool, ClipInlining, true, \ 23211558Srgrimes "clip inlining if aggregate method exceeds DesiredMethodLimit") \ 23221558Srgrimes \ 232353117Sbillf develop(bool, UseCHA, true, \ 232453117Sbillf "enable CHA") \ 232553117Sbillf \ 232653117Sbillf product(bool, UseTypeProfile, true, \ 232753117Sbillf "Check interpreter profile for historically monomorphic calls") \ 232853117Sbillf \ 23291558Srgrimes product(intx, TypeProfileMajorReceiverPercent, 90, \ 23301558Srgrimes "% of major receiver type to all profiled receivers") \ 23311558Srgrimes \ 233223681Speter notproduct(bool, TimeCompiler, false, \ 233323681Speter "time the compiler") \ 233423681Speter \ 233523681Speter notproduct(bool, TimeCompiler2, false, \ 23361558Srgrimes "detailed time the compiler (requires +TimeCompiler)") \ 23371558Srgrimes \ 233837663Scharnier diagnostic(bool, PrintInlining, false, \ 233937663Scharnier "prints inlining optimizations") \ 234023681Speter \ 234123681Speter diagnostic(bool, PrintIntrinsics, false, \ 234223681Speter "prints attempted and successful inlining of intrinsics") \ 234323681Speter \ 23441558Srgrimes product(bool, UseCountLeadingZerosInstruction, false, \ 23451558Srgrimes "Use count leading zeros instruction") \ 23461558Srgrimes \ 23471558Srgrimes product(bool, UsePopCountInstruction, false, \ 23481558Srgrimes "Use population count instruction") \ 23491558Srgrimes \ 23501558Srgrimes diagnostic(ccstrlist, DisableIntrinsic, "", \ 235175635Siedowse "do not expand intrinsics whose (internal) names appear here") \ 235275635Siedowse \ 23531558Srgrimes develop(bool, StressReflectiveCode, false, \ 23541558Srgrimes "Use inexact types at allocations, etc., to test reflection") \ 23551558Srgrimes \ 23561558Srgrimes develop(bool, EagerInitialization, false, \ 23571558Srgrimes "Eagerly initialize classes if possible") \ 23581558Srgrimes \ 23591558Srgrimes product(bool, Tier1UpdateMethodData, trueInTiered, \ 23601558Srgrimes "Update methodDataOops in Tier1-generated code") \ 23611558Srgrimes \ 23621558Srgrimes develop(bool, TraceMethodReplacement, false, \ 23631558Srgrimes "Print when methods are replaced do to recompilation") \ 23641558Srgrimes \ 23651558Srgrimes develop(bool, PrintMethodFlushing, false, \ 23661558Srgrimes "print the nmethods being flushed") \ 23671558Srgrimes \ 23681558Srgrimes notproduct(bool, LogMultipleMutexLocking, false, \ 23691558Srgrimes "log locking and unlocking of mutexes (only if multiple locks " \ 23701558Srgrimes "are held)") \ 23711558Srgrimes \ 23721558Srgrimes develop(bool, UseRelocIndex, false, \ 23731558Srgrimes "use an index to speed random access to relocations") \ 23741558Srgrimes \ 237537663Scharnier develop(bool, StressCodeBuffers, false, \ 23761558Srgrimes "Exercise code buffer expansion and other rare state changes") \ 23771558Srgrimes \ 23781558Srgrimes diagnostic(bool, DebugNonSafepoints, trueInDebug, \ 23791558Srgrimes "Generate extra debugging info for non-safepoints in nmethods") \ 23801558Srgrimes \ 23811558Srgrimes diagnostic(bool, DebugInlinedCalls, true, \ 23821558Srgrimes "If false, restricts profiled locations to the root method only") \ 23831558Srgrimes \ 23841558Srgrimes product(bool, PrintVMOptions, trueInDebug, \ 23851558Srgrimes "Print flags that appeared on the command line") \ 23861558Srgrimes \ 23871558Srgrimes product(bool, IgnoreUnrecognizedVMOptions, false, \ 23881558Srgrimes "Ignore unrecognized VM options") \ 23891558Srgrimes \ 23901558Srgrimes product(bool, PrintCommandLineFlags, false, \ 23911558Srgrimes "Print flags specified on command line or set by ergonomics") \ 23921558Srgrimes \ 23931558Srgrimes product(bool, PrintFlagsInitial, false, \ 23941558Srgrimes "Print all VM flags before argument processing and exit VM") \ 23951558Srgrimes \ 23961558Srgrimes product(bool, PrintFlagsFinal, false, \ 23971558Srgrimes "Print all VM flags after argument and ergonomic processing") \ 23981558Srgrimes \ 23991558Srgrimes diagnostic(bool, SerializeVMOutput, true, \ 24001558Srgrimes "Use a mutex to serialize output to tty and hotspot.log") \ 24011558Srgrimes \ 24021558Srgrimes diagnostic(bool, DisplayVMOutput, true, \ 240337663Scharnier "Display all VM output on the tty, independently of LogVMOutput") \ 240437663Scharnier \ 24051558Srgrimes diagnostic(bool, LogVMOutput, trueInDebug, \ 24061558Srgrimes "Save VM output to hotspot.log, or to LogFile") \ 24071558Srgrimes \ 24081558Srgrimes diagnostic(ccstr, LogFile, NULL, \ 24091558Srgrimes "If LogVMOutput is on, save VM output to this file [hotspot.log]") \ 24101558Srgrimes \ 24111558Srgrimes product(ccstr, ErrorFile, NULL, \ 241237663Scharnier "If an error occurs, save the error data to this file " \ 24131558Srgrimes "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ 24141558Srgrimes \ 24151558Srgrimes product(bool, DisplayVMOutputToStderr, false, \ 24161558Srgrimes "If DisplayVMOutput is true, display all VM output to stderr") \ 24171558Srgrimes \ 24181558Srgrimes product(bool, DisplayVMOutputToStdout, false, \ 24191558Srgrimes "If DisplayVMOutput is true, display all VM output to stdout") \ 24201558Srgrimes \ 24211558Srgrimes product(bool, UseHeavyMonitors, false, \ 24221558Srgrimes "use heavyweight instead of lightweight Java monitors") \ 24231558Srgrimes \ 24241558Srgrimes notproduct(bool, PrintSymbolTableSizeHistogram, false, \ 24251558Srgrimes "print histogram of the symbol table") \ 24261558Srgrimes \ 242774462Salfred notproduct(bool, ExitVMOnVerifyError, false, \ 242874462Salfred "standard exit from VM if bytecode verify error " \ 24291558Srgrimes "(only in debug mode)") \ 24301558Srgrimes \ 24311558Srgrimes notproduct(ccstr, AbortVMOnException, NULL, \ 24321558Srgrimes "Call fatal if this exception is thrown. Example: " \ 24331558Srgrimes "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ 24341558Srgrimes \ 24351558Srgrimes develop(bool, DebugVtables, false, \ 24361558Srgrimes "add debugging code to vtable dispatch") \ 24371558Srgrimes \ 24381558Srgrimes develop(bool, PrintVtables, false, \ 24391558Srgrimes "print vtables when printing klass") \ 24401558Srgrimes \ 24411558Srgrimes notproduct(bool, PrintVtableStats, false, \ 24421558Srgrimes "print vtables stats at end of run") \ 24431558Srgrimes \ 24441558Srgrimes develop(bool, TraceCreateZombies, false, \ 24451558Srgrimes "trace creation of zombie nmethods") \ 24461558Srgrimes \ 24471558Srgrimes notproduct(bool, IgnoreLockingAssertions, false, \ 24481558Srgrimes "disable locking assertions (for speed)") \ 24491558Srgrimes \ 24501558Srgrimes notproduct(bool, VerifyLoopOptimizations, false, \ 24511558Srgrimes "verify major loop optimizations") \ 24521558Srgrimes \ 24531558Srgrimes product(bool, RangeCheckElimination, true, \ 24541558Srgrimes "Split loop iterations to eliminate range checks") \ 24551558Srgrimes \ 24561558Srgrimes develop_pd(bool, UncommonNullCast, \ 24571558Srgrimes "track occurrences of null in casts; adjust compiler tactics") \ 245883653Speter \ 245983653Speter develop(bool, TypeProfileCasts, true, \ 24601558Srgrimes "treat casts like calls for purposes of type profiling") \ 24611558Srgrimes \ 24621558Srgrimes develop(bool, MonomorphicArrayCheck, true, \ 246375801Siedowse "Uncommon-trap array store checks that require full type check") \ 246475801Siedowse \ 24651558Srgrimes develop(bool, DelayCompilationDuringStartup, true, \ 246675801Siedowse "Delay invoking the compiler until main application class is " \ 246775801Siedowse "loaded") \ 246875801Siedowse \ 246975801Siedowse develop(bool, CompileTheWorld, false, \ 247075801Siedowse "Compile all methods in all classes in bootstrap class path " \ 247175801Siedowse "(stress test)") \ 247275801Siedowse \ 247375801Siedowse develop(bool, CompileTheWorldPreloadClasses, true, \ 24741558Srgrimes "Preload all classes used by a class before start loading") \ 247545927Salex \ 24761558Srgrimes notproduct(bool, CompileTheWorldIgnoreInitErrors, false, \ 24771558Srgrimes "Compile all methods although class initializer failed") \ 24781558Srgrimes \ 24791558Srgrimes notproduct(intx, CompileTheWorldSafepointInterval, 100, \ 24801558Srgrimes "Force a safepoint every n compiles so sweeper can keep up") \ 24811558Srgrimes \ 24821558Srgrimes develop(bool, TraceIterativeGVN, false, \ 24831558Srgrimes "Print progress during Iterative Global Value Numbering") \ 24841558Srgrimes \ 24851558Srgrimes develop(bool, FillDelaySlots, true, \ 24861558Srgrimes "Fill delay slots (on SPARC only)") \ 24871558Srgrimes \ 24881558Srgrimes develop(bool, VerifyIterativeGVN, false, \ 24891558Srgrimes "Verify Def-Use modifications during sparse Iterative Global " \ 24901558Srgrimes "Value Numbering") \ 24911558Srgrimes \ 24921558Srgrimes notproduct(bool, TracePhaseCCP, false, \ 24931558Srgrimes "Print progress during Conditional Constant Propagation") \ 24941558Srgrimes \ 24951558Srgrimes develop(bool, TimeLivenessAnalysis, false, \ 24969336Sdfr "Time computation of bytecode liveness analysis") \ 24971558Srgrimes \ 24981558Srgrimes develop(bool, TraceLivenessGen, false, \ 24991558Srgrimes "Trace the generation of liveness analysis information") \ 25001558Srgrimes \ 25011558Srgrimes notproduct(bool, TraceLivenessQuery, false, \ 25029336Sdfr "Trace queries of liveness analysis information") \ 25031558Srgrimes \ 25041558Srgrimes notproduct(bool, CollectIndexSetStatistics, false, \ 25051558Srgrimes "Collect information about IndexSets") \ 25069336Sdfr \ 250775801Siedowse develop(bool, PrintDominators, false, \ 250875801Siedowse "Print out dominator trees for GVN") \ 250975801Siedowse \ 251075801Siedowse develop(bool, UseLoopSafepoints, true, \ 251175801Siedowse "Generate Safepoint nodes in every loop") \ 251275801Siedowse \ 251374462Salfred notproduct(bool, TraceCISCSpill, false, \ 251475801Siedowse "Trace allocators use of cisc spillable instructions") \ 251575801Siedowse \ 251674462Salfred notproduct(bool, TraceSpilling, false, \ 251775801Siedowse "Trace spilling") \ 251875801Siedowse \ 2519103949Smike product(bool, SplitIfBlocks, true, \ 252075801Siedowse "Clone compares and control flow through merge points to fold " \ 252174462Salfred "some branches") \ 252275801Siedowse \ 2523103949Smike develop(intx, FastAllocateSizeLimit, 128*K, \ 252475801Siedowse /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ 252575801Siedowse "Inline allocations larger than this in doublewords must go slow")\ 252674462Salfred \ 252775801Siedowse product(bool, AggressiveOpts, false, \ 252874462Salfred "Enable aggressive optimizations - see arguments.cpp") \ 252974462Salfred \ 253075801Siedowse product(bool, UseStringCache, false, \ 253175801Siedowse "Enable String cache capabilities on String.java") \ 253275801Siedowse \ 253375801Siedowse /* statistics */ \ 253475801Siedowse develop(bool, UseVTune, false, \ 253575801Siedowse "enable support for Intel's VTune profiler") \ 253674462Salfred \ 253775801Siedowse develop(bool, CountCompiledCalls, false, \ 253875801Siedowse "counts method invocations") \ 253974462Salfred \ 254075801Siedowse notproduct(bool, CountRuntimeCalls, false, \ 254175801Siedowse "counts VM runtime calls") \ 254275801Siedowse \ 254375801Siedowse develop(bool, CountJNICalls, false, \ 254475801Siedowse "counts jni method invocations") \ 254575801Siedowse \ 254675801Siedowse notproduct(bool, CountJVMCalls, false, \ 254775801Siedowse "counts jvm method invocations") \ 254875801Siedowse \ 254975801Siedowse notproduct(bool, CountRemovableExceptions, false, \ 255074462Salfred "count exceptions that could be replaced by branches due to " \ 255175801Siedowse "inlining") \ 255275801Siedowse \ 255375801Siedowse notproduct(bool, ICMissHistogram, false, \ 255475801Siedowse "produce histogram of IC misses") \ 255574462Salfred \ 255674462Salfred notproduct(bool, PrintClassStatistics, false, \ 255775801Siedowse "prints class statistics at end of run") \ 255875801Siedowse \ 255975801Siedowse notproduct(bool, PrintMethodStatistics, false, \ 256075801Siedowse "prints method statistics at end of run") \ 256175801Siedowse \ 256275801Siedowse /* interpreter */ \ 256375801Siedowse develop(bool, ClearInterpreterLocals, false, \ 256474462Salfred "Always clear local variables of interpreter activations upon " \ 256575801Siedowse "entry") \ 256675801Siedowse \ 256774462Salfred product_pd(bool, RewriteBytecodes, \ 256875801Siedowse "Allow rewriting of bytecodes (bytecodes are not immutable)") \ 256975801Siedowse \ 257075801Siedowse product_pd(bool, RewriteFrequentPairs, \ 257175801Siedowse "Rewrite frequently used bytecode pairs into a single bytecode") \ 257275801Siedowse \ 257375801Siedowse diagnostic(bool, PrintInterpreter, false, \ 257474462Salfred "Prints the generated interpreter code") \ 257575801Siedowse \ 257675801Siedowse product(bool, UseInterpreter, true, \ 257775801Siedowse "Use interpreter for non-compiled methods") \ 257874462Salfred \ 257974462Salfred develop(bool, UseFastSignatureHandlers, true, \ 258074462Salfred "Use fast signature handlers for native calls") \ 258175801Siedowse \ 258275801Siedowse develop(bool, UseV8InstrsOnly, false, \ 258375801Siedowse "Use SPARC-V8 Compliant instruction subset") \ 258474462Salfred \ 258575801Siedowse product(bool, UseNiagaraInstrs, false, \ 258675801Siedowse "Use Niagara-efficient instruction subset") \ 258775801Siedowse \ 258875801Siedowse develop(bool, UseCASForSwap, false, \ 258974462Salfred "Do not use swap instructions, but only CAS (in a loop) on SPARC")\ 259075801Siedowse \ 259175801Siedowse product(bool, UseLoopCounter, true, \ 259275801Siedowse "Increment invocation counter on backward branch") \ 259375801Siedowse \ 259474462Salfred product(bool, UseFastEmptyMethods, true, \ 259574462Salfred "Use fast method entry code for empty methods") \ 259675801Siedowse \ 259775801Siedowse product(bool, UseFastAccessorMethods, true, \ 259875801Siedowse "Use fast method entry code for accessor methods") \ 259975801Siedowse \ 260075801Siedowse product_pd(bool, UseOnStackReplacement, \ 260175801Siedowse "Use on stack replacement, calls runtime if invoc. counter " \ 260275801Siedowse "overflows in loop") \ 260375801Siedowse \ 260474462Salfred notproduct(bool, TraceOnStackReplacement, false, \ 260574462Salfred "Trace on stack replacement") \ 260675801Siedowse \ 260774462Salfred develop(bool, PoisonOSREntry, true, \ 260875801Siedowse "Detect abnormal calls to OSR code") \ 260975801Siedowse \ 261074462Salfred product_pd(bool, PreferInterpreterNativeStubs, \ 261174462Salfred "Use always interpreter stubs for native methods invoked via " \ 261275801Siedowse "interpreter") \ 261375801Siedowse \ 261474462Salfred develop(bool, CountBytecodes, false, \ 261574462Salfred "Count number of bytecodes executed") \ 261675801Siedowse \ 261775801Siedowse develop(bool, PrintBytecodeHistogram, false, \ 261874462Salfred "Print histogram of the executed bytecodes") \ 261974462Salfred \ 262075801Siedowse develop(bool, PrintBytecodePairHistogram, false, \ 262175801Siedowse "Print histogram of the executed bytecode pairs") \ 262275801Siedowse \ 262374462Salfred diagnostic(bool, PrintSignatureHandlers, false, \ 262474462Salfred "Print code generated for native method signature handlers") \ 262575754Siedowse \ 262675754Siedowse develop(bool, VerifyOops, false, \ 262775754Siedowse "Do plausibility checks for oops") \ 262875754Siedowse \ 262975754Siedowse develop(bool, CheckUnhandledOops, false, \ 263075754Siedowse "Check for unhandled oops in VM code") \ 263174462Salfred \ 263274462Salfred develop(bool, VerifyJNIFields, trueInDebug, \ 263374462Salfred "Verify jfieldIDs for instance fields") \ 2634149433Spjd \ 263574792Salfred notproduct(bool, VerifyJNIEnvThread, false, \ 263674792Salfred "Verify JNIEnv.thread == Thread::current() when entering VM " \ 263774462Salfred "from JNI") \ 263874462Salfred \ 2639 develop(bool, VerifyFPU, false, \ 2640 "Verify FPU state (check for NaN's, etc.)") \ 2641 \ 2642 develop(bool, VerifyThread, false, \ 2643 "Watch the thread register for corruption (SPARC only)") \ 2644 \ 2645 develop(bool, VerifyActivationFrameSize, false, \ 2646 "Verify that activation frame didn't become smaller than its " \ 2647 "minimal size") \ 2648 \ 2649 develop(bool, TraceFrequencyInlining, false, \ 2650 "Trace frequency based inlining") \ 2651 \ 2652 notproduct(bool, TraceTypeProfile, false, \ 2653 "Trace type profile") \ 2654 \ 2655 develop_pd(bool, InlineIntrinsics, \ 2656 "Inline intrinsics that can be statically resolved") \ 2657 \ 2658 product_pd(bool, ProfileInterpreter, \ 2659 "Profile at the bytecode level during interpretation") \ 2660 \ 2661 develop_pd(bool, ProfileTraps, \ 2662 "Profile deoptimization traps at the bytecode level") \ 2663 \ 2664 product(intx, ProfileMaturityPercentage, 20, \ 2665 "number of method invocations/branches (expressed as % of " \ 2666 "CompileThreshold) before using the method's profile") \ 2667 \ 2668 develop(bool, PrintMethodData, false, \ 2669 "Print the results of +ProfileInterpreter at end of run") \ 2670 \ 2671 develop(bool, VerifyDataPointer, trueInDebug, \ 2672 "Verify the method data pointer during interpreter profiling") \ 2673 \ 2674 develop(bool, VerifyCompiledCode, false, \ 2675 "Include miscellaneous runtime verifications in nmethod code; " \ 2676 "default off because it disturbs nmethod size heuristics") \ 2677 \ 2678 notproduct(bool, CrashGCForDumpingJavaThread, false, \ 2679 "Manually make GC thread crash then dump java stack trace; " \ 2680 "Test only") \ 2681 \ 2682 /* compilation */ \ 2683 product(bool, UseCompiler, true, \ 2684 "use compilation") \ 2685 \ 2686 develop(bool, TraceCompilationPolicy, false, \ 2687 "Trace compilation policy") \ 2688 \ 2689 develop(bool, TimeCompilationPolicy, false, \ 2690 "Time the compilation policy") \ 2691 \ 2692 product(bool, UseCounterDecay, true, \ 2693 "adjust recompilation counters") \ 2694 \ 2695 develop(intx, CounterHalfLifeTime, 30, \ 2696 "half-life time of invocation counters (in secs)") \ 2697 \ 2698 develop(intx, CounterDecayMinIntervalLength, 500, \ 2699 "Min. ms. between invocation of CounterDecay") \ 2700 \ 2701 product(bool, AlwaysCompileLoopMethods, false, \ 2702 "when using recompilation, never interpret methods " \ 2703 "containing loops") \ 2704 \ 2705 product(bool, DontCompileHugeMethods, true, \ 2706 "don't compile methods > HugeMethodLimit") \ 2707 \ 2708 /* Bytecode escape analysis estimation. */ \ 2709 product(bool, EstimateArgEscape, true, \ 2710 "Analyze bytecodes to estimate escape state of arguments") \ 2711 \ 2712 product(intx, BCEATraceLevel, 0, \ 2713 "How much tracing to do of bytecode escape analysis estimates") \ 2714 \ 2715 product(intx, MaxBCEAEstimateLevel, 5, \ 2716 "Maximum number of nested calls that are analyzed by BC EA.") \ 2717 \ 2718 product(intx, MaxBCEAEstimateSize, 150, \ 2719 "Maximum bytecode size of a method to be analyzed by BC EA.") \ 2720 \ 2721 product(intx, AllocatePrefetchStyle, 1, \ 2722 "0 = no prefetch, " \ 2723 "1 = prefetch instructions for each allocation, " \ 2724 "2 = use TLAB watermark to gate allocation prefetch, " \ 2725 "3 = use BIS instruction on Sparc for allocation prefetch") \ 2726 \ 2727 product(intx, AllocatePrefetchDistance, -1, \ 2728 "Distance to prefetch ahead of allocation pointer") \ 2729 \ 2730 product(intx, AllocatePrefetchLines, 1, \ 2731 "Number of lines to prefetch ahead of allocation pointer") \ 2732 \ 2733 product(intx, AllocatePrefetchStepSize, 16, \ 2734 "Step size in bytes of sequential prefetch instructions") \ 2735 \ 2736 product(intx, AllocatePrefetchInstr, 0, \ 2737 "Prefetch instruction to prefetch ahead of allocation pointer") \ 2738 \ 2739 product(intx, ReadPrefetchInstr, 0, \ 2740 "Prefetch instruction to prefetch ahead") \ 2741 \ 2742 /* deoptimization */ \ 2743 develop(bool, TraceDeoptimization, false, \ 2744 "Trace deoptimization") \ 2745 \ 2746 develop(bool, DebugDeoptimization, false, \ 2747 "Tracing various information while debugging deoptimization") \ 2748 \ 2749 product(intx, SelfDestructTimer, 0, \ 2750 "Will cause VM to terminate after a given time (in minutes) " \ 2751 "(0 means off)") \ 2752 \ 2753 product(intx, MaxJavaStackTraceDepth, 1024, \ 2754 "Max. no. of lines in the stack trace for Java exceptions " \ 2755 "(0 means all)") \ 2756 \ 2757 develop(intx, GuaranteedSafepointInterval, 1000, \ 2758 "Guarantee a safepoint (at least) every so many milliseconds " \ 2759 "(0 means none)") \ 2760 \ 2761 product(intx, SafepointTimeoutDelay, 10000, \ 2762 "Delay in milliseconds for option SafepointTimeout") \ 2763 \ 2764 product(intx, NmethodSweepFraction, 4, \ 2765 "Number of invocations of sweeper to cover all nmethods") \ 2766 \ 2767 product(intx, NmethodSweepCheckInterval, 5, \ 2768 "Compilers wake up every n seconds to possibly sweep nmethods") \ 2769 \ 2770 notproduct(intx, MemProfilingInterval, 500, \ 2771 "Time between each invocation of the MemProfiler") \ 2772 \ 2773 develop(intx, MallocCatchPtr, -1, \ 2774 "Hit breakpoint when mallocing/freeing this pointer") \ 2775 \ 2776 notproduct(intx, AssertRepeat, 1, \ 2777 "number of times to evaluate expression in assert " \ 2778 "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ 2779 \ 2780 notproduct(ccstrlist, SuppressErrorAt, "", \ 2781 "List of assertions (file:line) to muzzle") \ 2782 \ 2783 notproduct(uintx, HandleAllocationLimit, 1024, \ 2784 "Threshold for HandleMark allocation when +TraceHandleAllocation "\ 2785 "is used") \ 2786 \ 2787 develop(uintx, TotalHandleAllocationLimit, 1024, \ 2788 "Threshold for total handle allocation when " \ 2789 "+TraceHandleAllocation is used") \ 2790 \ 2791 develop(intx, StackPrintLimit, 100, \ 2792 "number of stack frames to print in VM-level stack dump") \ 2793 \ 2794 notproduct(intx, MaxElementPrintSize, 256, \ 2795 "maximum number of elements to print") \ 2796 \ 2797 notproduct(intx, MaxSubklassPrintSize, 4, \ 2798 "maximum number of subklasses to print when printing klass") \ 2799 \ 2800 product(intx, MaxInlineLevel, 9, \ 2801 "maximum number of nested calls that are inlined") \ 2802 \ 2803 product(intx, MaxRecursiveInlineLevel, 1, \ 2804 "maximum number of nested recursive calls that are inlined") \ 2805 \ 2806 product_pd(intx, InlineSmallCode, \ 2807 "Only inline already compiled methods if their code size is " \ 2808 "less than this") \ 2809 \ 2810 product(intx, MaxInlineSize, 35, \ 2811 "maximum bytecode size of a method to be inlined") \ 2812 \ 2813 product_pd(intx, FreqInlineSize, \ 2814 "maximum bytecode size of a frequent method to be inlined") \ 2815 \ 2816 product(intx, MaxTrivialSize, 6, \ 2817 "maximum bytecode size of a trivial method to be inlined") \ 2818 \ 2819 product(intx, MinInliningThreshold, 250, \ 2820 "min. invocation count a method needs to have to be inlined") \ 2821 \ 2822 develop(intx, AlignEntryCode, 4, \ 2823 "aligns entry code to specified value (in bytes)") \ 2824 \ 2825 develop(intx, MethodHistogramCutoff, 100, \ 2826 "cutoff value for method invoc. histogram (+CountCalls)") \ 2827 \ 2828 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ 2829 "# of interpreted methods to show in profile") \ 2830 \ 2831 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ 2832 "# of compiled methods to show in profile") \ 2833 \ 2834 develop(intx, ProfilerNumberOfStubMethods, 25, \ 2835 "# of stub methods to show in profile") \ 2836 \ 2837 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ 2838 "# of runtime stub nodes to show in profile") \ 2839 \ 2840 product(intx, ProfileIntervalsTicks, 100, \ 2841 "# of ticks between printing of interval profile " \ 2842 "(+ProfileIntervals)") \ 2843 \ 2844 notproduct(intx, ScavengeALotInterval, 1, \ 2845 "Interval between which scavenge will occur with +ScavengeALot") \ 2846 \ 2847 notproduct(intx, FullGCALotInterval, 1, \ 2848 "Interval between which full gc will occur with +FullGCALot") \ 2849 \ 2850 notproduct(intx, FullGCALotStart, 0, \ 2851 "For which invocation to start FullGCAlot") \ 2852 \ 2853 notproduct(intx, FullGCALotDummies, 32*K, \ 2854 "Dummy object allocated with +FullGCALot, forcing all objects " \ 2855 "to move") \ 2856 \ 2857 develop(intx, DontYieldALotInterval, 10, \ 2858 "Interval between which yields will be dropped (milliseconds)") \ 2859 \ 2860 develop(intx, MinSleepInterval, 1, \ 2861 "Minimum sleep() interval (milliseconds) when " \ 2862 "ConvertSleepToYield is off (used for SOLARIS)") \ 2863 \ 2864 product(intx, EventLogLength, 2000, \ 2865 "maximum nof events in event log") \ 2866 \ 2867 develop(intx, ProfilerPCTickThreshold, 15, \ 2868 "Number of ticks in a PC buckets to be a hotspot") \ 2869 \ 2870 notproduct(intx, DeoptimizeALotInterval, 5, \ 2871 "Number of exits until DeoptimizeALot kicks in") \ 2872 \ 2873 notproduct(intx, ZombieALotInterval, 5, \ 2874 "Number of exits until ZombieALot kicks in") \ 2875 \ 2876 develop(bool, StressNonEntrant, false, \ 2877 "Mark nmethods non-entrant at registration") \ 2878 \ 2879 diagnostic(intx, MallocVerifyInterval, 0, \ 2880 "if non-zero, verify C heap after every N calls to " \ 2881 "malloc/realloc/free") \ 2882 \ 2883 diagnostic(intx, MallocVerifyStart, 0, \ 2884 "if non-zero, start verifying C heap after Nth call to " \ 2885 "malloc/realloc/free") \ 2886 \ 2887 product(intx, TypeProfileWidth, 2, \ 2888 "number of receiver types to record in call/cast profile") \ 2889 \ 2890 develop(intx, BciProfileWidth, 2, \ 2891 "number of return bci's to record in ret profile") \ 2892 \ 2893 product(intx, PerMethodRecompilationCutoff, 400, \ 2894 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ 2895 \ 2896 product(intx, PerBytecodeRecompilationCutoff, 200, \ 2897 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ 2898 \ 2899 product(intx, PerMethodTrapLimit, 100, \ 2900 "Limit on traps (of one kind) in a method (includes inlines)") \ 2901 \ 2902 product(intx, PerBytecodeTrapLimit, 4, \ 2903 "Limit on traps (of one kind) at a particular BCI") \ 2904 \ 2905 develop(intx, FreqCountInvocations, 1, \ 2906 "Scaling factor for branch frequencies (deprecated)") \ 2907 \ 2908 develop(intx, InlineFrequencyRatio, 20, \ 2909 "Ratio of call site execution to caller method invocation") \ 2910 \ 2911 develop_pd(intx, InlineFrequencyCount, \ 2912 "Count of call site execution necessary to trigger frequent " \ 2913 "inlining") \ 2914 \ 2915 develop(intx, InlineThrowCount, 50, \ 2916 "Force inlining of interpreted methods that throw this often") \ 2917 \ 2918 develop(intx, InlineThrowMaxSize, 200, \ 2919 "Force inlining of throwing methods smaller than this") \ 2920 \ 2921 product(intx, AliasLevel, 3, \ 2922 "0 for no aliasing, 1 for oop/field/static/array split, " \ 2923 "2 for class split, 3 for unique instances") \ 2924 \ 2925 develop(bool, VerifyAliases, false, \ 2926 "perform extra checks on the results of alias analysis") \ 2927 \ 2928 develop(intx, ProfilerNodeSize, 1024, \ 2929 "Size in K to allocate for the Profile Nodes of each thread") \ 2930 \ 2931 develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \ 2932 "Number of times to spin wait on a v8 atomic operation lock") \ 2933 \ 2934 product(intx, ReadSpinIterations, 100, \ 2935 "Number of read attempts before a yield (spin inner loop)") \ 2936 \ 2937 product_pd(intx, PreInflateSpin, \ 2938 "Number of times to spin wait before inflation") \ 2939 \ 2940 product(intx, PreBlockSpin, 10, \ 2941 "Number of times to spin in an inflated lock before going to " \ 2942 "an OS lock") \ 2943 \ 2944 /* gc parameters */ \ 2945 product(uintx, InitialHeapSize, 0, \ 2946 "Initial heap size (in bytes); zero means OldSize + NewSize") \ 2947 \ 2948 product(uintx, MaxHeapSize, ScaleForWordSize(96*M), \ 2949 "Maximum heap size (in bytes)") \ 2950 \ 2951 product(uintx, OldSize, ScaleForWordSize(4*M), \ 2952 "Initial tenured generation size (in bytes)") \ 2953 \ 2954 product(uintx, NewSize, ScaleForWordSize(1*M), \ 2955 "Initial new generation size (in bytes)") \ 2956 \ 2957 product(uintx, MaxNewSize, max_uintx, \ 2958 "Maximum new generation size (in bytes), max_uintx means set " \ 2959 "ergonomically") \ 2960 \ 2961 product(uintx, PretenureSizeThreshold, 0, \ 2962 "Maximum size in bytes of objects allocated in DefNew " \ 2963 "generation; zero means no maximum") \ 2964 \ 2965 product(uintx, TLABSize, 0, \ 2966 "Starting TLAB size (in bytes); zero means set ergonomically") \ 2967 \ 2968 product(uintx, MinTLABSize, 2*K, \ 2969 "Minimum allowed TLAB size (in bytes)") \ 2970 \ 2971 product(uintx, TLABAllocationWeight, 35, \ 2972 "Allocation averaging weight") \ 2973 \ 2974 product(uintx, TLABWasteTargetPercent, 1, \ 2975 "Percentage of Eden that can be wasted") \ 2976 \ 2977 product(uintx, TLABRefillWasteFraction, 64, \ 2978 "Max TLAB waste at a refill (internal fragmentation)") \ 2979 \ 2980 product(uintx, TLABWasteIncrement, 4, \ 2981 "Increment allowed waste at slow allocation") \ 2982 \ 2983 product(intx, SurvivorRatio, 8, \ 2984 "Ratio of eden/survivor space size") \ 2985 \ 2986 product(intx, NewRatio, 2, \ 2987 "Ratio of new/old generation sizes") \ 2988 \ 2989 product(uintx, MaxLiveObjectEvacuationRatio, 100, \ 2990 "Max percent of eden objects that will be live at scavenge") \ 2991 \ 2992 product_pd(uintx, NewSizeThreadIncrease, \ 2993 "Additional size added to desired new generation size per " \ 2994 "non-daemon thread (in bytes)") \ 2995 \ 2996 product_pd(uintx, PermSize, \ 2997 "Initial size of permanent generation (in bytes)") \ 2998 \ 2999 product_pd(uintx, MaxPermSize, \ 3000 "Maximum size of permanent generation (in bytes)") \ 3001 \ 3002 product(uintx, MinHeapFreeRatio, 40, \ 3003 "Min percentage of heap free after GC to avoid expansion") \ 3004 \ 3005 product(uintx, MaxHeapFreeRatio, 70, \ 3006 "Max percentage of heap free after GC to avoid shrinking") \ 3007 \ 3008 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ 3009 "Number of milliseconds per MB of free space in the heap") \ 3010 \ 3011 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ 3012 "Min change in heap space due to GC (in bytes)") \ 3013 \ 3014 product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K), \ 3015 "Min expansion of permanent heap (in bytes)") \ 3016 \ 3017 product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M), \ 3018 "Max expansion of permanent heap without full GC (in bytes)") \ 3019 \ 3020 product(intx, QueuedAllocationWarningCount, 0, \ 3021 "Number of times an allocation that queues behind a GC " \ 3022 "will retry before printing a warning") \ 3023 \ 3024 diagnostic(uintx, VerifyGCStartAt, 0, \ 3025 "GC invoke count where +VerifyBefore/AfterGC kicks in") \ 3026 \ 3027 diagnostic(intx, VerifyGCLevel, 0, \ 3028 "Generation level at which to start +VerifyBefore/AfterGC") \ 3029 \ 3030 develop(uintx, ExitAfterGCNum, 0, \ 3031 "If non-zero, exit after this GC.") \ 3032 \ 3033 product(intx, MaxTenuringThreshold, 15, \ 3034 "Maximum value for tenuring threshold") \ 3035 \ 3036 product(intx, InitialTenuringThreshold, 7, \ 3037 "Initial value for tenuring threshold") \ 3038 \ 3039 product(intx, TargetSurvivorRatio, 50, \ 3040 "Desired percentage of survivor space used after scavenge") \ 3041 \ 3042 product(uintx, MarkSweepDeadRatio, 5, \ 3043 "Percentage (0-100) of the old gen allowed as dead wood." \ 3044 "Serial mark sweep treats this as both the min and max value." \ 3045 "CMS uses this value only if it falls back to mark sweep." \ 3046 "Par compact uses a variable scale based on the density of the" \ 3047 "generation and treats this as the max value when the heap is" \ 3048 "either completely full or completely empty. Par compact also" \ 3049 "has a smaller default value; see arguments.cpp.") \ 3050 \ 3051 product(uintx, PermMarkSweepDeadRatio, 20, \ 3052 "Percentage (0-100) of the perm gen allowed as dead wood." \ 3053 "See MarkSweepDeadRatio for collector-specific comments.") \ 3054 \ 3055 product(intx, MarkSweepAlwaysCompactCount, 4, \ 3056 "How often should we fully compact the heap (ignoring the dead " \ 3057 "space parameters)") \ 3058 \ 3059 product(intx, PrintCMSStatistics, 0, \ 3060 "Statistics for CMS") \ 3061 \ 3062 product(bool, PrintCMSInitiationStatistics, false, \ 3063 "Statistics for initiating a CMS collection") \ 3064 \ 3065 product(intx, PrintFLSStatistics, 0, \ 3066 "Statistics for CMS' FreeListSpace") \ 3067 \ 3068 product(intx, PrintFLSCensus, 0, \ 3069 "Census for CMS' FreeListSpace") \ 3070 \ 3071 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ 3072 "Delay in ms between expansion and allocation") \ 3073 \ 3074 product(intx, DeferThrSuspendLoopCount, 4000, \ 3075 "(Unstable) Number of times to iterate in safepoint loop " \ 3076 " before blocking VM threads ") \ 3077 \ 3078 product(intx, DeferPollingPageLoopCount, -1, \ 3079 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ 3080 "before changing safepoint polling page to RO ") \ 3081 \ 3082 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ 3083 \ 3084 product(bool, UseDepthFirstScavengeOrder, true, \ 3085 "true: the scavenge order will be depth-first, " \ 3086 "false: the scavenge order will be breadth-first") \ 3087 \ 3088 product(bool, PSChunkLargeArrays, true, \ 3089 "true: process large arrays in chunks") \ 3090 \ 3091 product(uintx, GCDrainStackTargetSize, 64, \ 3092 "how many entries we'll try to leave on the stack during " \ 3093 "parallel GC") \ 3094 \ 3095 /* stack parameters */ \ 3096 product_pd(intx, StackYellowPages, \ 3097 "Number of yellow zone (recoverable overflows) pages") \ 3098 \ 3099 product_pd(intx, StackRedPages, \ 3100 "Number of red zone (unrecoverable overflows) pages") \ 3101 \ 3102 product_pd(intx, StackShadowPages, \ 3103 "Number of shadow zone (for overflow checking) pages" \ 3104 " this should exceed the depth of the VM and native call stack") \ 3105 \ 3106 product_pd(intx, ThreadStackSize, \ 3107 "Thread Stack Size (in Kbytes)") \ 3108 \ 3109 product_pd(intx, VMThreadStackSize, \ 3110 "Non-Java Thread Stack Size (in Kbytes)") \ 3111 \ 3112 product_pd(intx, CompilerThreadStackSize, \ 3113 "Compiler Thread Stack Size (in Kbytes)") \ 3114 \ 3115 develop_pd(uintx, JVMInvokeMethodSlack, \ 3116 "Stack space (bytes) required for JVM_InvokeMethod to complete") \ 3117 \ 3118 product(uintx, ThreadSafetyMargin, 50*M, \ 3119 "Thread safety margin is used on fixed-stack LinuxThreads (on " \ 3120 "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ 3121 "disable this feature") \ 3122 \ 3123 /* code cache parameters */ \ 3124 develop(uintx, CodeCacheSegmentSize, 64, \ 3125 "Code cache segment size (in bytes) - smallest unit of " \ 3126 "allocation") \ 3127 \ 3128 develop_pd(intx, CodeEntryAlignment, \ 3129 "Code entry alignment for generated code (in bytes)") \ 3130 \ 3131 product_pd(intx, OptoLoopAlignment, \ 3132 "Align inner loops to zero relative to this modulus") \ 3133 \ 3134 product_pd(uintx, InitialCodeCacheSize, \ 3135 "Initial code cache size (in bytes)") \ 3136 \ 3137 product_pd(uintx, ReservedCodeCacheSize, \ 3138 "Reserved code cache size (in bytes) - maximum code cache size") \ 3139 \ 3140 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ 3141 "When less than X space left, we stop compiling.") \ 3142 \ 3143 product_pd(uintx, CodeCacheExpansionSize, \ 3144 "Code cache expansion size (in bytes)") \ 3145 \ 3146 develop_pd(uintx, CodeCacheMinBlockLength, \ 3147 "Minimum number of segments in a code cache block.") \ 3148 \ 3149 notproduct(bool, ExitOnFullCodeCache, false, \ 3150 "Exit the VM if we fill the code cache.") \ 3151 \ 3152 product(bool, UseCodeCacheFlushing, false, \ 3153 "Attempt to clean the code cache before shutting off compiler") \ 3154 \ 3155 product(intx, MinCodeCacheFlushingInterval, 30, \ 3156 "Min number of seconds between code cache cleaning sessions") \ 3157 \ 3158 product(uintx, CodeCacheFlushingMinimumFreeSpace, 1500*K, \ 3159 "When less than X space left, start code cache cleaning") \ 3160 \ 3161 /* interpreter debugging */ \ 3162 develop(intx, BinarySwitchThreshold, 5, \ 3163 "Minimal number of lookupswitch entries for rewriting to binary " \ 3164 "switch") \ 3165 \ 3166 develop(intx, StopInterpreterAt, 0, \ 3167 "Stops interpreter execution at specified bytecode number") \ 3168 \ 3169 develop(intx, TraceBytecodesAt, 0, \ 3170 "Traces bytecodes starting with specified bytecode number") \ 3171 \ 3172 /* compiler interface */ \ 3173 develop(intx, CIStart, 0, \ 3174 "the id of the first compilation to permit") \ 3175 \ 3176 develop(intx, CIStop, -1, \ 3177 "the id of the last compilation to permit") \ 3178 \ 3179 develop(intx, CIStartOSR, 0, \ 3180 "the id of the first osr compilation to permit " \ 3181 "(CICountOSR must be on)") \ 3182 \ 3183 develop(intx, CIStopOSR, -1, \ 3184 "the id of the last osr compilation to permit " \ 3185 "(CICountOSR must be on)") \ 3186 \ 3187 develop(intx, CIBreakAtOSR, -1, \ 3188 "id of osr compilation to break at") \ 3189 \ 3190 develop(intx, CIBreakAt, -1, \ 3191 "id of compilation to break at") \ 3192 \ 3193 product(ccstrlist, CompileOnly, "", \ 3194 "List of methods (pkg/class.name) to restrict compilation to") \ 3195 \ 3196 product(ccstr, CompileCommandFile, NULL, \ 3197 "Read compiler commands from this file [.hotspot_compiler]") \ 3198 \ 3199 product(ccstrlist, CompileCommand, "", \ 3200 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ 3201 \ 3202 product(bool, CICompilerCountPerCPU, false, \ 3203 "1 compiler thread for log(N CPUs)") \ 3204 \ 3205 develop(intx, CIFireOOMAt, -1, \ 3206 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ 3207 "(non-negative value throws OOM after this many CI accesses " \ 3208 "in each compile)") \ 3209 \ 3210 develop(intx, CIFireOOMAtDelay, -1, \ 3211 "Wait for this many CI accesses to occur in all compiles before " \ 3212 "beginning to throw OutOfMemoryErrors in each compile") \ 3213 \ 3214 notproduct(bool, CIObjectFactoryVerify, false, \ 3215 "enable potentially expensive verification in ciObjectFactory") \ 3216 \ 3217 /* Priorities */ \ 3218 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ 3219 \ 3220 product(intx, ThreadPriorityPolicy, 0, \ 3221 "0 : Normal. "\ 3222 " VM chooses priorities that are appropriate for normal "\ 3223 " applications. On Solaris NORM_PRIORITY and above are mapped "\ 3224 " to normal native priority. Java priorities below NORM_PRIORITY"\ 3225 " map to lower native priority values. On Windows applications"\ 3226 " are allowed to use higher native priorities. However, with "\ 3227 " ThreadPriorityPolicy=0, VM will not use the highest possible"\ 3228 " native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may "\ 3229 " interfere with system threads. On Linux thread priorities "\ 3230 " are ignored because the OS does not support static priority "\ 3231 " in SCHED_OTHER scheduling class which is the only choice for"\ 3232 " non-root, non-realtime applications. "\ 3233 "1 : Aggressive. "\ 3234 " Java thread priorities map over to the entire range of "\ 3235 " native thread priorities. Higher Java thread priorities map "\ 3236 " to higher native thread priorities. This policy should be "\ 3237 " used with care, as sometimes it can cause performance "\ 3238 " degradation in the application and/or the entire system. On "\ 3239 " Linux this policy requires root privilege.") \ 3240 \ 3241 product(bool, ThreadPriorityVerbose, false, \ 3242 "print priority changes") \ 3243 \ 3244 product(intx, DefaultThreadPriority, -1, \ 3245 "what native priority threads run at if not specified elsewhere (-1 means no change)") \ 3246 \ 3247 product(intx, CompilerThreadPriority, -1, \ 3248 "what priority should compiler threads run at (-1 means no change)") \ 3249 \ 3250 product(intx, VMThreadPriority, -1, \ 3251 "what priority should VM threads run at (-1 means no change)") \ 3252 \ 3253 product(bool, CompilerThreadHintNoPreempt, true, \ 3254 "(Solaris only) Give compiler threads an extra quanta") \ 3255 \ 3256 product(bool, VMThreadHintNoPreempt, false, \ 3257 "(Solaris only) Give VM thread an extra quanta") \ 3258 \ 3259 product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3260 product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3261 product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3262 product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3263 product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3264 product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3265 product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3266 product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3267 product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 3268 product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ 3269 \ 3270 /* compiler debugging */ \ 3271 notproduct(intx, CompileTheWorldStartAt, 1, \ 3272 "First class to consider when using +CompileTheWorld") \ 3273 \ 3274 notproduct(intx, CompileTheWorldStopAt, max_jint, \ 3275 "Last class to consider when using +CompileTheWorld") \ 3276 \ 3277 develop(intx, NewCodeParameter, 0, \ 3278 "Testing Only: Create a dedicated integer parameter before " \ 3279 "putback") \ 3280 \ 3281 /* new oopmap storage allocation */ \ 3282 develop(intx, MinOopMapAllocation, 8, \ 3283 "Minimum number of OopMap entries in an OopMapSet") \ 3284 \ 3285 /* Background Compilation */ \ 3286 develop(intx, LongCompileThreshold, 50, \ 3287 "Used with +TraceLongCompiles") \ 3288 \ 3289 product(intx, StarvationMonitorInterval, 200, \ 3290 "Pause between each check in ms") \ 3291 \ 3292 /* recompilation */ \ 3293 product_pd(intx, CompileThreshold, \ 3294 "number of interpreted method invocations before (re-)compiling") \ 3295 \ 3296 product_pd(intx, BackEdgeThreshold, \ 3297 "Interpreter Back edge threshold at which an OSR compilation is invoked")\ 3298 \ 3299 product(intx, Tier1BytecodeLimit, 10, \ 3300 "Must have at least this many bytecodes before tier1" \ 3301 "invocation counters are used") \ 3302 \ 3303 product_pd(intx, Tier2CompileThreshold, \ 3304 "threshold at which a tier 2 compilation is invoked") \ 3305 \ 3306 product_pd(intx, Tier2BackEdgeThreshold, \ 3307 "Back edge threshold at which a tier 2 compilation is invoked") \ 3308 \ 3309 product_pd(intx, Tier3CompileThreshold, \ 3310 "threshold at which a tier 3 compilation is invoked") \ 3311 \ 3312 product_pd(intx, Tier3BackEdgeThreshold, \ 3313 "Back edge threshold at which a tier 3 compilation is invoked") \ 3314 \ 3315 product_pd(intx, Tier4CompileThreshold, \ 3316 "threshold at which a tier 4 compilation is invoked") \ 3317 \ 3318 product_pd(intx, Tier4BackEdgeThreshold, \ 3319 "Back edge threshold at which a tier 4 compilation is invoked") \ 3320 \ 3321 product_pd(bool, TieredCompilation, \ 3322 "Enable two-tier compilation") \ 3323 \ 3324 product(bool, StressTieredRuntime, false, \ 3325 "Alternate client and server compiler on compile requests") \ 3326 \ 3327 product_pd(intx, OnStackReplacePercentage, \ 3328 "NON_TIERED number of method invocations/branches (expressed as %"\ 3329 "of CompileThreshold) before (re-)compiling OSR code") \ 3330 \ 3331 product(intx, InterpreterProfilePercentage, 33, \ 3332 "NON_TIERED number of method invocations/branches (expressed as %"\ 3333 "of CompileThreshold) before profiling in the interpreter") \ 3334 \ 3335 develop(intx, MaxRecompilationSearchLength, 10, \ 3336 "max. # frames to inspect searching for recompilee") \ 3337 \ 3338 develop(intx, MaxInterpretedSearchLength, 3, \ 3339 "max. # interp. frames to skip when searching for recompilee") \ 3340 \ 3341 develop(intx, DesiredMethodLimit, 8000, \ 3342 "desired max. method size (in bytecodes) after inlining") \ 3343 \ 3344 develop(intx, HugeMethodLimit, 8000, \ 3345 "don't compile methods larger than this if " \ 3346 "+DontCompileHugeMethods") \ 3347 \ 3348 /* New JDK 1.4 reflection implementation */ \ 3349 \ 3350 develop(bool, UseNewReflection, true, \ 3351 "Temporary flag for transition to reflection based on dynamic " \ 3352 "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ 3353 "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ 3354 "changes were needed") \ 3355 \ 3356 develop(bool, VerifyReflectionBytecodes, false, \ 3357 "Force verification of 1.4 reflection bytecodes. Does not work " \ 3358 "in situations like that described in 4486457 or for " \ 3359 "constructors generated for serialization, so can not be enabled "\ 3360 "in product.") \ 3361 \ 3362 product(bool, ReflectionWrapResolutionErrors, true, \ 3363 "Temporary flag for transition to AbstractMethodError wrapped " \ 3364 "in InvocationTargetException. See 6531596") \ 3365 \ 3366 \ 3367 develop(intx, FastSuperclassLimit, 8, \ 3368 "Depth of hardwired instanceof accelerator array") \ 3369 \ 3370 /* Properties for Java libraries */ \ 3371 \ 3372 product(intx, MaxDirectMemorySize, -1, \ 3373 "Maximum total size of NIO direct-buffer allocations") \ 3374 \ 3375 /* temporary developer defined flags */ \ 3376 \ 3377 diagnostic(bool, UseNewCode, false, \ 3378 "Testing Only: Use the new version while testing") \ 3379 \ 3380 diagnostic(bool, UseNewCode2, false, \ 3381 "Testing Only: Use the new version while testing") \ 3382 \ 3383 diagnostic(bool, UseNewCode3, false, \ 3384 "Testing Only: Use the new version while testing") \ 3385 \ 3386 /* flags for performance data collection */ \ 3387 \ 3388 product(bool, UsePerfData, true, \ 3389 "Flag to disable jvmstat instrumentation for performance testing" \ 3390 "and problem isolation purposes.") \ 3391 \ 3392 product(bool, PerfDataSaveToFile, false, \ 3393 "Save PerfData memory to hsperfdata_<pid> file on exit") \ 3394 \ 3395 product(ccstr, PerfDataSaveFile, NULL, \ 3396 "Save PerfData memory to the specified absolute pathname," \ 3397 "%p in the file name if present will be replaced by pid") \ 3398 \ 3399 product(intx, PerfDataSamplingInterval, 50 /*ms*/, \ 3400 "Data sampling interval in milliseconds") \ 3401 \ 3402 develop(bool, PerfTraceDataCreation, false, \ 3403 "Trace creation of Performance Data Entries") \ 3404 \ 3405 develop(bool, PerfTraceMemOps, false, \ 3406 "Trace PerfMemory create/attach/detach calls") \ 3407 \ 3408 product(bool, PerfDisableSharedMem, false, \ 3409 "Store performance data in standard memory") \ 3410 \ 3411 product(intx, PerfDataMemorySize, 32*K, \ 3412 "Size of performance data memory region. Will be rounded " \ 3413 "up to a multiple of the native os page size.") \ 3414 \ 3415 product(intx, PerfMaxStringConstLength, 1024, \ 3416 "Maximum PerfStringConstant string length before truncation") \ 3417 \ 3418 product(bool, PerfAllowAtExitRegistration, false, \ 3419 "Allow registration of atexit() methods") \ 3420 \ 3421 product(bool, PerfBypassFileSystemCheck, false, \ 3422 "Bypass Win32 file system criteria checks (Windows Only)") \ 3423 \ 3424 product(intx, UnguardOnExecutionViolation, 0, \ 3425 "Unguard page and retry on no-execute fault (Win32 only)" \ 3426 "0=off, 1=conservative, 2=aggressive") \ 3427 \ 3428 /* Serviceability Support */ \ 3429 \ 3430 product(bool, ManagementServer, false, \ 3431 "Create JMX Management Server") \ 3432 \ 3433 product(bool, DisableAttachMechanism, false, \ 3434 "Disable mechanism that allows tools to attach to this VM") \ 3435 \ 3436 product(bool, StartAttachListener, false, \ 3437 "Always start Attach Listener at VM startup") \ 3438 \ 3439 manageable(bool, PrintConcurrentLocks, false, \ 3440 "Print java.util.concurrent locks in thread dump") \ 3441 \ 3442 /* Shared spaces */ \ 3443 \ 3444 product(bool, UseSharedSpaces, true, \ 3445 "Use shared spaces in the permanent generation") \ 3446 \ 3447 product(bool, RequireSharedSpaces, false, \ 3448 "Require shared spaces in the permanent generation") \ 3449 \ 3450 product(bool, ForceSharedSpaces, false, \ 3451 "Require shared spaces in the permanent generation") \ 3452 \ 3453 product(bool, DumpSharedSpaces, false, \ 3454 "Special mode: JVM reads a class list, loads classes, builds " \ 3455 "shared spaces, and dumps the shared spaces to a file to be " \ 3456 "used in future JVM runs.") \ 3457 \ 3458 product(bool, PrintSharedSpaces, false, \ 3459 "Print usage of shared spaces") \ 3460 \ 3461 product(uintx, SharedDummyBlockSize, 512*M, \ 3462 "Size of dummy block used to shift heap addresses (in bytes)") \ 3463 \ 3464 product(uintx, SharedReadWriteSize, 12*M, \ 3465 "Size of read-write space in permanent generation (in bytes)") \ 3466 \ 3467 product(uintx, SharedReadOnlySize, 10*M, \ 3468 "Size of read-only space in permanent generation (in bytes)") \ 3469 \ 3470 product(uintx, SharedMiscDataSize, 4*M, \ 3471 "Size of the shared data area adjacent to the heap (in bytes)") \ 3472 \ 3473 product(uintx, SharedMiscCodeSize, 4*M, \ 3474 "Size of the shared code area adjacent to the heap (in bytes)") \ 3475 \ 3476 diagnostic(bool, SharedOptimizeColdStart, true, \ 3477 "At dump time, order shared objects to achieve better " \ 3478 "cold startup time.") \ 3479 \ 3480 develop(intx, SharedOptimizeColdStartPolicy, 2, \ 3481 "Reordering policy for SharedOptimizeColdStart " \ 3482 "0=favor classload-time locality, 1=balanced, " \ 3483 "2=favor runtime locality") \ 3484 \ 3485 diagnostic(bool, SharedSkipVerify, false, \ 3486 "Skip assert() and verify() which page-in unwanted shared " \ 3487 "objects. ") \ 3488 \ 3489 product(bool, AnonymousClasses, false, \ 3490 "support sun.misc.Unsafe.defineAnonymousClass") \ 3491 \ 3492 experimental(bool, EnableMethodHandles, false, \ 3493 "support method handles (true by default under JSR 292)") \ 3494 \ 3495 diagnostic(intx, MethodHandlePushLimit, 3, \ 3496 "number of additional stack slots a method handle may push") \ 3497 \ 3498 develop(bool, TraceMethodHandles, false, \ 3499 "trace internal method handle operations") \ 3500 \ 3501 diagnostic(bool, VerifyMethodHandles, trueInDebug, \ 3502 "perform extra checks when constructing method handles") \ 3503 \ 3504 diagnostic(bool, OptimizeMethodHandles, true, \ 3505 "when constructing method handles, try to improve them") \ 3506 \ 3507 experimental(bool, TrustFinalNonStaticFields, false, \ 3508 "trust final non-static declarations for constant folding") \ 3509 \ 3510 experimental(bool, EnableInvokeDynamic, false, \ 3511 "recognize the invokedynamic instruction") \ 3512 \ 3513 develop(bool, TraceInvokeDynamic, false, \ 3514 "trace internal invoke dynamic operations") \ 3515 \ 3516 diagnostic(bool, PauseAtStartup, false, \ 3517 "Causes the VM to pause at startup time and wait for the pause " \ 3518 "file to be removed (default: ./vm.paused.<pid>)") \ 3519 \ 3520 diagnostic(ccstr, PauseAtStartupFile, NULL, \ 3521 "The file to create and for whose removal to await when pausing " \ 3522 "at startup. (default: ./vm.paused.<pid>)") \ 3523 \ 3524 product(bool, ExtendedDTraceProbes, false, \ 3525 "Enable performance-impacting dtrace probes") \ 3526 \ 3527 product(bool, DTraceMethodProbes, false, \ 3528 "Enable dtrace probes for method-entry and method-exit") \ 3529 \ 3530 product(bool, DTraceAllocProbes, false, \ 3531 "Enable dtrace probes for object allocation") \ 3532 \ 3533 product(bool, DTraceMonitorProbes, false, \ 3534 "Enable dtrace probes for monitor events") \ 3535 \ 3536 product(bool, RelaxAccessControlCheck, false, \ 3537 "Relax the access control checks in the verifier") \ 3538 \ 3539 diagnostic(bool, PrintDTraceDOF, false, \ 3540 "Print the DTrace DOF passed to the system for JSDT probes") \ 3541 \ 3542 product(bool, UseVMInterruptibleIO, false, \ 3543 "(Unstable, Solaris-specific) Thread interrupt before or with " \ 3544 "EINTR for I/O operations results in OS_INTRPT. The default value"\ 3545 " of this flag is true for JDK 6 and earliers") 3546 3547 3548/* 3549 * Macros for factoring of globals 3550 */ 3551 3552// Interface macros 3553#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3554#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 3555#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 3556#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; 3557#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 3558#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 3559#ifdef PRODUCT 3560#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value; 3561#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name; 3562#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) 3563#else 3564#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 3565#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 3566#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3567#endif 3568// Special LP64 flags, product only needed for now. 3569#ifdef _LP64 3570#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 3571#else 3572#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; 3573#endif // _LP64 3574 3575// Implementation macros 3576#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; 3577#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; 3578#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; 3579#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; 3580#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; 3581#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; 3582#ifdef PRODUCT 3583#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */ 3584#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) /* flag name is constant */ 3585#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) 3586#else 3587#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; 3588#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; 3589#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; 3590#endif 3591#ifdef _LP64 3592#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; 3593#else 3594#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ 3595#endif // _LP64 3596 3597RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG, DECLARE_LP64_PRODUCT_FLAG) 3598 3599RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) 3600