globals.hpp revision 2226:b099aaf51bf8
119370Spst/* 219370Spst * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 3130803Smarcel * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4130803Smarcel * 5130803Smarcel * This code is free software; you can redistribute it and/or modify it 6130803Smarcel * under the terms of the GNU General Public License version 2 only, as 798944Sobrien * published by the Free Software Foundation. 819370Spst * 998944Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT 1098944Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1198944Sobrien * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1298944Sobrien * version 2 for more details (a copy is included in the LICENSE file that 1319370Spst * accompanied this code). 1498944Sobrien * 1598944Sobrien * You should have received a copy of the GNU General Public License version 1698944Sobrien * 2 along with this work; if not, write to the Free Software Foundation, 1798944Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1819370Spst * 1998944Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2098944Sobrien * or visit www.oracle.com if you need additional information or have any 2198944Sobrien * questions. 2298944Sobrien * 2319370Spst */ 2419370Spst 2519370Spst#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP 2619370Spst#define SHARE_VM_RUNTIME_GLOBALS_HPP 2719370Spst 2819370Spst#include "utilities/debug.hpp" 2919370Spst#ifdef TARGET_ARCH_x86 3019370Spst# include "globals_x86.hpp" 3119370Spst#endif 3219370Spst#ifdef TARGET_ARCH_sparc 33130803Smarcel# include "globals_sparc.hpp" 3419370Spst#endif 3519370Spst#ifdef TARGET_ARCH_zero 3619370Spst# include "globals_zero.hpp" 3719370Spst#endif 3819370Spst#ifdef TARGET_ARCH_arm 3919370Spst# include "globals_arm.hpp" 4019370Spst#endif 4119370Spst#ifdef TARGET_ARCH_ppc 4219370Spst# include "globals_ppc.hpp" 4319370Spst#endif 4419370Spst#ifdef TARGET_OS_FAMILY_linux 4519370Spst# include "globals_linux.hpp" 4619370Spst#endif 4798944Sobrien#ifdef TARGET_OS_FAMILY_solaris 48130803Smarcel# include "globals_solaris.hpp" 49130803Smarcel#endif 5019370Spst#ifdef TARGET_OS_FAMILY_windows 5119370Spst# include "globals_windows.hpp" 5219370Spst#endif 5319370Spst#ifdef TARGET_OS_ARCH_linux_x86 5498944Sobrien# include "globals_linux_x86.hpp" 5598944Sobrien#endif 5619370Spst#ifdef TARGET_OS_ARCH_linux_sparc 5719370Spst# include "globals_linux_sparc.hpp" 5819370Spst#endif 5998944Sobrien#ifdef TARGET_OS_ARCH_linux_zero 6098944Sobrien# include "globals_linux_zero.hpp" 6119370Spst#endif 6219370Spst#ifdef TARGET_OS_ARCH_solaris_x86 6319370Spst# include "globals_solaris_x86.hpp" 6419370Spst#endif 6519370Spst#ifdef TARGET_OS_ARCH_solaris_sparc 6619370Spst# include "globals_solaris_sparc.hpp" 6719370Spst#endif 6898944Sobrien#ifdef TARGET_OS_ARCH_windows_x86 6998944Sobrien# include "globals_windows_x86.hpp" 7098944Sobrien#endif 7198944Sobrien#ifdef TARGET_OS_ARCH_linux_arm 7219370Spst# include "globals_linux_arm.hpp" 7398944Sobrien#endif 7498944Sobrien#ifdef TARGET_OS_ARCH_linux_ppc 7598944Sobrien# include "globals_linux_ppc.hpp" 7698944Sobrien#endif 7719370Spst#ifdef COMPILER1 7898944Sobrien#ifdef TARGET_ARCH_x86 7998944Sobrien# include "c1_globals_x86.hpp" 8098944Sobrien#endif 8198944Sobrien#ifdef TARGET_ARCH_sparc 8298944Sobrien# include "c1_globals_sparc.hpp" 8398944Sobrien#endif 8498944Sobrien#ifdef TARGET_ARCH_arm 8598944Sobrien# include "c1_globals_arm.hpp" 8698944Sobrien#endif 8798944Sobrien#ifdef TARGET_ARCH_ppc 8819370Spst# include "c1_globals_ppc.hpp" 8946283Sdfr#endif 9098944Sobrien#ifdef TARGET_OS_FAMILY_linux 9198944Sobrien# include "c1_globals_linux.hpp" 9246283Sdfr#endif 9398944Sobrien#ifdef TARGET_OS_FAMILY_solaris 9419370Spst# include "c1_globals_solaris.hpp" 9598944Sobrien#endif 9619370Spst#ifdef TARGET_OS_FAMILY_windows 9798944Sobrien# include "c1_globals_windows.hpp" 9819370Spst#endif 9919370Spst#endif 10098944Sobrien#ifdef COMPILER2 10198944Sobrien#ifdef TARGET_ARCH_x86 10219370Spst# include "c2_globals_x86.hpp" 10398944Sobrien#endif 10419370Spst#ifdef TARGET_ARCH_sparc 10598944Sobrien# include "c2_globals_sparc.hpp" 10619370Spst#endif 107130803Smarcel#ifdef TARGET_ARCH_arm 108130803Smarcel# include "c2_globals_arm.hpp" 10998944Sobrien#endif 11019370Spst#ifdef TARGET_OS_FAMILY_linux 11198944Sobrien# include "c2_globals_linux.hpp" 11219370Spst#endif 11398944Sobrien#ifdef TARGET_OS_FAMILY_solaris 11498944Sobrien# include "c2_globals_solaris.hpp" 11519370Spst#endif 11698944Sobrien#ifdef TARGET_OS_FAMILY_windows 11719370Spst# include "c2_globals_windows.hpp" 11898944Sobrien#endif 11919370Spst#endif 12019370Spst#ifdef SHARK 12198944Sobrien#ifdef TARGET_ARCH_zero 12298944Sobrien# include "shark_globals_zero.hpp" 12319370Spst#endif 12419370Spst#endif 12598944Sobrien 12698944Sobrien#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) 12719370Spstdefine_pd_global(bool, BackgroundCompilation, false); 12819370Spstdefine_pd_global(bool, UseTLAB, false); 12998944Sobriendefine_pd_global(bool, CICompileOSR, false); 13098944Sobriendefine_pd_global(bool, UseTypeProfile, false); 13119370Spstdefine_pd_global(bool, UseOnStackReplacement, false); 13219370Spstdefine_pd_global(bool, InlineIntrinsics, false); 13398944Sobriendefine_pd_global(bool, PreferInterpreterNativeStubs, true); 13498944Sobriendefine_pd_global(bool, ProfileInterpreter, false); 13519370Spstdefine_pd_global(bool, ProfileTraps, false); 13698944Sobriendefine_pd_global(bool, TieredCompilation, false); 13719370Spst 138130803Smarceldefine_pd_global(intx, CompileThreshold, 0); 139130803Smarceldefine_pd_global(intx, BackEdgeThreshold, 0); 14019370Spst 14198944Sobriendefine_pd_global(intx, OnStackReplacePercentage, 0); 142130803Smarceldefine_pd_global(bool, ResizeTLAB, false); 14398944Sobriendefine_pd_global(intx, FreqInlineSize, 0); 14419370Spstdefine_pd_global(intx, InlineSmallCode, 0); 14598944Sobriendefine_pd_global(intx, NewSizeThreadIncrease, 4*K); 14698944Sobriendefine_pd_global(intx, InlineClassNatives, true); 14719370Spstdefine_pd_global(intx, InlineUnsafeOps, true); 148130803Smarceldefine_pd_global(intx, InitialCodeCacheSize, 160*K); 14919370Spstdefine_pd_global(intx, ReservedCodeCacheSize, 32*M); 150130803Smarceldefine_pd_global(intx, CodeCacheExpansionSize, 32*K); 151130803Smarceldefine_pd_global(intx, CodeCacheMinBlockLength, 1); 15219370Spstdefine_pd_global(uintx,PermSize, ScaleForWordSize(4*M)); 15398944Sobriendefine_pd_global(uintx,MaxPermSize, ScaleForWordSize(64*M)); 15498944Sobriendefine_pd_global(bool, NeverActAsServerClassMachine, true); 15519370Spstdefine_pd_global(uint64_t,MaxRAM, 1ULL*G); 156130803Smarcel#define CI_COMPILER_COUNT 0 15746283Sdfr#else 15898944Sobrien 15946283Sdfr#ifdef COMPILER2 16098944Sobrien#define CI_COMPILER_COUNT 2 16119370Spst#else 162130803Smarcel#define CI_COMPILER_COUNT 1 163130803Smarcel#endif // COMPILER2 16498944Sobrien 16519370Spst#endif // no compilers 16619370Spst 16719370Spst 16819370Spst// string type aliases used only in this file 16919370Spsttypedef const char* ccstr; 17098944Sobrientypedef const char* ccstrlist; // represents string arguments which accumulate 17119370Spst 17219370Spstenum FlagValueOrigin { 17319370Spst DEFAULT = 0, 174130803Smarcel COMMAND_LINE = 1, 175130803Smarcel ENVIRON_VAR = 2, 176130803Smarcel CONFIG_FILE = 3, 177130803Smarcel MANAGEMENT = 4, 178130803Smarcel ERGONOMIC = 5, 17919370Spst ATTACH_ON_DEMAND = 6, 180130803Smarcel INTERNAL = 99 181130803Smarcel}; 182130803Smarcel 183130803Smarcelstruct Flag { 184130803Smarcel const char *type; 185130803Smarcel const char *name; 186130803Smarcel void* addr; 18719370Spst 188130803Smarcel NOT_PRODUCT(const char *doc;) 189130803Smarcel 190130803Smarcel const char *kind; 191130803Smarcel FlagValueOrigin origin; 192130803Smarcel 19319370Spst // points to all Flags static array 19419370Spst static Flag *flags; 19519370Spst 19619370Spst // number of flags 19719370Spst static size_t numFlags; 19819370Spst 19919370Spst static Flag* find_flag(char* name, size_t length); 20019370Spst 20119370Spst bool is_bool() const { return strcmp(type, "bool") == 0; } 20219370Spst bool get_bool() const { return *((bool*) addr); } 20319370Spst void set_bool(bool value) { *((bool*) addr) = value; } 20419370Spst 20519370Spst bool is_intx() const { return strcmp(type, "intx") == 0; } 20619370Spst intx get_intx() const { return *((intx*) addr); } 20719370Spst void set_intx(intx value) { *((intx*) addr) = value; } 20819370Spst 20919370Spst bool is_uintx() const { return strcmp(type, "uintx") == 0; } 21019370Spst uintx get_uintx() const { return *((uintx*) addr); } 21119370Spst void set_uintx(uintx value) { *((uintx*) addr) = value; } 21219370Spst 21319370Spst bool is_uint64_t() const { return strcmp(type, "uint64_t") == 0; } 21419370Spst uint64_t get_uint64_t() const { return *((uint64_t*) addr); } 21519370Spst void set_uint64_t(uint64_t value) { *((uint64_t*) addr) = value; } 216130803Smarcel 21798944Sobrien bool is_double() const { return strcmp(type, "double") == 0; } 21819370Spst double get_double() const { return *((double*) addr); } 219130803Smarcel void set_double(double value) { *((double*) addr) = value; } 220130803Smarcel 22119370Spst bool is_ccstr() const { return strcmp(type, "ccstr") == 0 || strcmp(type, "ccstrlist") == 0; } 222130803Smarcel bool ccstr_accumulates() const { return strcmp(type, "ccstrlist") == 0; } 223130803Smarcel ccstr get_ccstr() const { return *((ccstr*) addr); } 22419370Spst void set_ccstr(ccstr value) { *((ccstr*) addr) = value; } 22519370Spst 22619370Spst bool is_unlocker() const; 22719370Spst bool is_unlocked() const; 22819370Spst bool is_writeable() const; 22919370Spst bool is_external() const; 23019370Spst 231130803Smarcel void print_on(outputStream* st, bool withComments = false ); 232130803Smarcel void print_as_flag(outputStream* st); 233130803Smarcel}; 23419370Spst 23519370Spst// debug flags control various aspects of the VM and are global accessible 23619370Spst 23719370Spst// use FlagSetting to temporarily change some debug flag 23819370Spst// e.g. FlagSetting fs(DebugThisAndThat, true); 23919370Spst// restored to previous value upon leaving scope 24019370Spstclass FlagSetting { 24119370Spst bool val; 24219370Spst bool* flag; 24319370Spst public: 24419370Spst FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } 24519370Spst ~FlagSetting() { *flag = val; } 24619370Spst}; 24719370Spst 24898944Sobrien 24919370Spstclass CounterSetting { 25019370Spst intx* counter; 25119370Spst public: 25219370Spst CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } 25398944Sobrien ~CounterSetting() { (*counter)--; } 25419370Spst}; 25519370Spst 25619370Spst 25719370Spstclass IntFlagSetting { 25819370Spst intx val; 25919370Spst intx* flag; 26019370Spst public: 26119370Spst IntFlagSetting(intx& fl, intx newValue) { flag = &fl; val = fl; fl = newValue; } 26219370Spst ~IntFlagSetting() { *flag = val; } 26319370Spst}; 26419370Spst 26519370Spst 26619370Spstclass DoubleFlagSetting { 26719370Spst double val; 26819370Spst double* flag; 26919370Spst public: 27019370Spst DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } 27119370Spst ~DoubleFlagSetting() { *flag = val; } 27219370Spst}; 27319370Spst 27419370Spst 27519370Spstclass CommandLineFlags { 27619370Spst public: 27719370Spst static bool boolAt(char* name, size_t len, bool* value); 27819370Spst static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } 27946283Sdfr static bool boolAtPut(char* name, size_t len, bool* value, FlagValueOrigin origin); 28019370Spst static bool boolAtPut(char* name, bool* value, FlagValueOrigin origin) { return boolAtPut(name, strlen(name), value, origin); } 28119370Spst 28219370Spst static bool intxAt(char* name, size_t len, intx* value); 28319370Spst static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } 28419370Spst static bool intxAtPut(char* name, size_t len, intx* value, FlagValueOrigin origin); 28519370Spst static bool intxAtPut(char* name, intx* value, FlagValueOrigin origin) { return intxAtPut(name, strlen(name), value, origin); } 28619370Spst 28719370Spst static bool uintxAt(char* name, size_t len, uintx* value); 28819370Spst static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } 28919370Spst static bool uintxAtPut(char* name, size_t len, uintx* value, FlagValueOrigin origin); 29019370Spst static bool uintxAtPut(char* name, uintx* value, FlagValueOrigin origin) { return uintxAtPut(name, strlen(name), value, origin); } 29119370Spst 29219370Spst static bool uint64_tAt(char* name, size_t len, uint64_t* value); 29346283Sdfr static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } 29419370Spst static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, FlagValueOrigin origin); 29519370Spst static bool uint64_tAtPut(char* name, uint64_t* value, FlagValueOrigin origin) { return uint64_tAtPut(name, strlen(name), value, origin); } 29619370Spst 29719370Spst static bool doubleAt(char* name, size_t len, double* value); 29819370Spst static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } 29919370Spst static bool doubleAtPut(char* name, size_t len, double* value, FlagValueOrigin origin); 30019370Spst static bool doubleAtPut(char* name, double* value, FlagValueOrigin origin) { return doubleAtPut(name, strlen(name), value, origin); } 30119370Spst 30219370Spst static bool ccstrAt(char* name, size_t len, ccstr* value); 30319370Spst static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } 30419370Spst static bool ccstrAtPut(char* name, size_t len, ccstr* value, FlagValueOrigin origin); 30519370Spst static bool ccstrAtPut(char* name, ccstr* value, FlagValueOrigin origin) { return ccstrAtPut(name, strlen(name), value, origin); } 30619370Spst 30719370Spst // Returns false if name is not a command line flag. 30819370Spst static bool wasSetOnCmdline(const char* name, bool* value); 30919370Spst static void printSetFlags(); 31019370Spst 31119370Spst static void printFlags(bool withComments = false ); 31219370Spst 31319370Spst static void verify() PRODUCT_RETURN; 31419370Spst}; 31519370Spst 31619370Spst// use this for flags that are true by default in the debug version but 31719370Spst// false in the optimized version, and vice versa 31898944Sobrien#ifdef ASSERT 31919370Spst#define trueInDebug true 320130803Smarcel#define falseInDebug false 32119370Spst#else 32219370Spst#define trueInDebug false 32319370Spst#define falseInDebug true 32419370Spst#endif 32519370Spst 32619370Spst// use this for flags that are true per default in the product build 32719370Spst// but false in development builds, and vice versa 32819370Spst#ifdef PRODUCT 32919370Spst#define trueInProduct true 33019370Spst#define falseInProduct false 33119370Spst#else 33219370Spst#define trueInProduct false 33319370Spst#define falseInProduct true 33419370Spst#endif 33519370Spst 33619370Spst// use this for flags that are true per default in the tiered build 33719370Spst// but false in non-tiered builds, and vice versa 33819370Spst#ifdef TIERED 33919370Spst#define trueInTiered true 34019370Spst#define falseInTiered false 34119370Spst#else 34219370Spst#define trueInTiered false 34319370Spst#define falseInTiered true 34498944Sobrien#endif 34598944Sobrien 34619370Spst// develop flags are settable / visible only during development and are constant in the PRODUCT version 34719370Spst// product flags are always settable / visible 34819370Spst// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version 34919370Spst 35019370Spst// A flag must be declared with one of the following types: 35119370Spst// bool, intx, uintx, ccstr. 35219370Spst// The type "ccstr" is an alias for "const char*" and is used 35319370Spst// only in this file, because the macrology requires single-token type names. 35498944Sobrien 35519370Spst// Note: Diagnostic options not meant for VM tuning or for product modes. 35698944Sobrien// They are to be used for VM quality assurance or field diagnosis 35798944Sobrien// of VM bugs. They are hidden so that users will not be encouraged to 35819370Spst// try them as if they were VM ordinary execution options. However, they 35919370Spst// are available in the product version of the VM. Under instruction 36019370Spst// from support engineers, VM customers can turn them on to collect 36198944Sobrien// diagnostic information about VM problems. To use a VM diagnostic 36219370Spst// option, you must first specify +UnlockDiagnosticVMOptions. 36319370Spst// (This master switch also affects the behavior of -Xprintflags.) 36498944Sobrien// 36598944Sobrien// experimental flags are in support of features that are not 36619370Spst// part of the officially supported product, but are available 36798944Sobrien// for experimenting with. They could, for example, be performance 36819370Spst// features that may not have undergone full or rigorous QA, but which may 36919370Spst// help performance in some cases and released for experimentation 37019370Spst// by the community of users and developers. This flag also allows one to 37198944Sobrien// be able to build a fully supported product that nonetheless also 37298944Sobrien// ships with some unsupported, lightly tested, experimental features. 37398944Sobrien// Like the UnlockDiagnosticVMOptions flag above, there is a corresponding 37498944Sobrien// UnlockExperimentalVMOptions flag, which allows the control and 37598944Sobrien// modification of the experimental flags. 37698944Sobrien// 37719370Spst// Nota bene: neither diagnostic nor experimental options should be used casually, 37819370Spst// and they are not supported on production loads, except under explicit 37998944Sobrien// direction from support engineers. 38098944Sobrien// 38119370Spst// manageable flags are writeable external product flags. 382130803Smarcel// They are dynamically writeable through the JDK management interface 38319370Spst// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. 38419370Spst// These flags are external exported interface (see CCC). The list of 38519370Spst// manageable flags can be queried programmatically through the management 386130803Smarcel// interface. 38719370Spst// 388130803Smarcel// A flag can be made as "manageable" only if 389130803Smarcel// - the flag is defined in a CCC as an external exported interface. 39019370Spst// - the VM implementation supports dynamic setting of the flag. 39198944Sobrien// This implies that the VM must *always* query the flag variable 39219370Spst// and not reuse state related to the flag state at any given time. 39319370Spst// - you want the flag to be queried programmatically by the customers. 39419370Spst// 39519370Spst// product_rw flags are writeable internal product flags. 39619370Spst// They are like "manageable" flags but for internal/private use. 39719370Spst// The list of product_rw flags are internal/private flags which 39819370Spst// may be changed/removed in a future release. It can be set 39919370Spst// through the management interface to get/set value 40019370Spst// when the name of flag is supplied. 40119370Spst// 40219370Spst// A flag can be made as "product_rw" only if 40319370Spst// - the VM implementation supports dynamic setting of the flag. 40419370Spst// This implies that the VM must *always* query the flag variable 40519370Spst// and not reuse state related to the flag state at any given time. 40619370Spst// 40719370Spst// Note that when there is a need to support develop flags to be writeable, 40898944Sobrien// it can be done in the same way as product_rw. 40919370Spst 41019370Spst#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ 41119370Spst \ 41219370Spst lp64_product(bool, UseCompressedOops, false, \ 41319370Spst "Use 32-bit object references in 64-bit VM. " \ 41419370Spst "lp64_product means flag is always constant in 32 bit VM") \ 41519370Spst \ 41619370Spst notproduct(bool, CheckCompressedOops, true, \ 41719370Spst "generate checks in encoding/decoding code in debug VM") \ 41819370Spst \ 41919370Spst product_pd(uintx, HeapBaseMinAddress, \ 42019370Spst "OS specific low limit for heap base address") \ 42198944Sobrien \ 42219370Spst diagnostic(bool, PrintCompressedOopsMode, false, \ 42319370Spst "Print compressed oops base address and encoding mode") \ 42419370Spst \ 42519370Spst lp64_product(intx, ObjectAlignmentInBytes, 8, \ 42619370Spst "Default object alignment in bytes, 8 is minimum") \ 42719370Spst \ 42819370Spst /* UseMembar is theoretically a temp flag used for memory barrier \ 42919370Spst * removal testing. It was supposed to be removed before FCS but has \ 43019370Spst * been re-added (see 6401008) */ \ 43119370Spst product_pd(bool, UseMembar, \ 432130803Smarcel "(Unstable) Issues membars on thread state transitions") \ 43319370Spst \ 43419370Spst /* Temp PPC Flag to allow disabling the use of lwsync on ppc platforms \ 43519370Spst * that don't support it. This will be replaced by processor detection \ 43619370Spst * logic. \ 43719370Spst */ \ 43819370Spst product(bool, UsePPCLWSYNC, true, \ 43998944Sobrien "Use lwsync instruction if true, else use slower sync") \ 44098944Sobrien \ 44119370Spst /* Temporary: See 6948537 */ \ 44298944Sobrien experimental(bool, UseMemSetInBOT, true, \ 44398944Sobrien "(Unstable) uses memset in BOT updates in GC code") \ 44419370Spst \ 44519370Spst diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ 44619370Spst "Enable normal processing of flags relating to field diagnostics")\ 44719370Spst \ 44819370Spst experimental(bool, UnlockExperimentalVMOptions, false, \ 44998944Sobrien "Enable normal processing of flags relating to experimental features")\ 45098944Sobrien \ 45119370Spst product(bool, JavaMonitorsInStackTrace, true, \ 45219370Spst "Print info. about Java monitor locks when the stacks are dumped")\ 45319370Spst \ 45419370Spst product_pd(bool, UseLargePages, \ 45519370Spst "Use large page memory") \ 45646283Sdfr \ 45746283Sdfr product_pd(bool, UseLargePagesIndividualAllocation, \ 45846283Sdfr "Allocate large pages individually for better affinity") \ 45946283Sdfr \ 46046283Sdfr develop(bool, LargePagesIndividualAllocationInjectError, false, \ 46146283Sdfr "Fail large pages individual allocation") \ 46246283Sdfr \ 46346283Sdfr develop(bool, TracePageSizes, false, \ 46446283Sdfr "Trace page size selection and usage.") \ 46546283Sdfr \ 46646283Sdfr product(bool, UseNUMA, false, \ 46746283Sdfr "Use NUMA if available") \ 46846283Sdfr \ 46946283Sdfr product(bool, ForceNUMA, false, \ 47046283Sdfr "Force NUMA optimizations on single-node/UMA systems") \ 47146283Sdfr \ 47246283Sdfr product(intx, NUMAChunkResizeWeight, 20, \ 47346283Sdfr "Percentage (0-100) used to weight the current sample when " \ 47446283Sdfr "computing exponentially decaying average for " \ 47598944Sobrien "AdaptiveNUMAChunkSizing") \ 47646283Sdfr \ 47746283Sdfr product(intx, NUMASpaceResizeRate, 1*G, \ 47898944Sobrien "Do not reallocate more that this amount per collection") \ 47946283Sdfr \ 48046283Sdfr product(bool, UseAdaptiveNUMAChunkSizing, true, \ 48146283Sdfr "Enable adaptive chunk sizing for NUMA") \ 48246283Sdfr \ 48398944Sobrien product(bool, NUMAStats, false, \ 48498944Sobrien "Print NUMA stats in detailed heap information") \ 48598944Sobrien \ 48698944Sobrien product(intx, NUMAPageScanRate, 256, \ 48798944Sobrien "Maximum number of pages to include in the page scan procedure") \ 48898944Sobrien \ 48998944Sobrien product_pd(bool, NeedsDeoptSuspend, \ 49098944Sobrien "True for register window machines (sparc/ia64)") \ 49198944Sobrien \ 49298944Sobrien product(intx, UseSSE, 99, \ 49346283Sdfr "Highest supported SSE instructions set on x86/x64") \ 49446283Sdfr \ 49546283Sdfr product(uintx, LargePageSizeInBytes, 0, \ 49646283Sdfr "Large page size (0 to let VM choose the page size") \ 49746283Sdfr \ 49898944Sobrien product(uintx, LargePageHeapSizeThreshold, 128*M, \ 49946283Sdfr "Use large pages if max heap is at least this big") \ 50046283Sdfr \ 50146283Sdfr product(bool, ForceTimeHighResolution, false, \ 50246283Sdfr "Using high time resolution(For Win32 only)") \ 50346283Sdfr \ 50446283Sdfr develop(bool, TraceItables, false, \ 50546283Sdfr "Trace initialization and use of itables") \ 50698944Sobrien \ 50746283Sdfr develop(bool, TracePcPatching, false, \ 50846283Sdfr "Trace usage of frame::patch_pc") \ 50946283Sdfr \ 51046283Sdfr develop(bool, TraceJumps, false, \ 51146283Sdfr "Trace assembly jumps in thread ring buffer") \ 51246283Sdfr \ 51346283Sdfr develop(bool, TraceRelocator, false, \ 51446283Sdfr "Trace the bytecode relocator") \ 51546283Sdfr \ 51646283Sdfr develop(bool, TraceLongCompiles, false, \ 51746283Sdfr "Print out every time compilation is longer than " \ 51846283Sdfr "a given threashold") \ 51946283Sdfr \ 52098944Sobrien develop(bool, SafepointALot, false, \ 52146283Sdfr "Generates a lot of safepoints. Works with " \ 52246283Sdfr "GuaranteedSafepointInterval") \ 52346283Sdfr \ 52446283Sdfr product_pd(bool, BackgroundCompilation, \ 52546283Sdfr "A thread requesting compilation is not blocked during " \ 52646283Sdfr "compilation") \ 52746283Sdfr \ 52846283Sdfr product(bool, PrintVMQWaitTime, false, \ 52946283Sdfr "Prints out the waiting time in VM operation queue") \ 53098944Sobrien \ 53198944Sobrien develop(bool, BailoutToInterpreterForThrows, false, \ 53246283Sdfr "Compiled methods which throws/catches exceptions will be " \ 53346283Sdfr "deopt and intp.") \ 53446283Sdfr \ 53546283Sdfr develop(bool, NoYieldsInMicrolock, false, \ 53698944Sobrien "Disable yields in microlock") \ 53798944Sobrien \ 53898944Sobrien develop(bool, TraceOopMapGeneration, false, \ 53946283Sdfr "Shows oopmap generation") \ 54046283Sdfr \ 54146283Sdfr product(bool, MethodFlushing, true, \ 54246283Sdfr "Reclamation of zombie and not-entrant methods") \ 54346283Sdfr \ 54446283Sdfr develop(bool, VerifyStack, false, \ 54546283Sdfr "Verify stack of each thread when it is entering a runtime call") \ 54646283Sdfr \ 54746283Sdfr develop(bool, ForceUnreachable, false, \ 54846283Sdfr "(amd64) Make all non code cache addresses to be unreachable with rip-rel forcing use of 64bit literal fixups") \ 54946283Sdfr \ 55046283Sdfr notproduct(bool, StressDerivedPointers, false, \ 55146283Sdfr "Force scavenge when a derived pointers is detected on stack " \ 55246283Sdfr "after rtm call") \ 55346283Sdfr \ 55446283Sdfr develop(bool, TraceDerivedPointers, false, \ 55546283Sdfr "Trace traversal of derived pointers on stack") \ 55698944Sobrien \ 55746283Sdfr notproduct(bool, TraceCodeBlobStacks, false, \ 55846283Sdfr "Trace stack-walk of codeblobs") \ 55946283Sdfr \ 56046283Sdfr product(bool, PrintJNIResolving, false, \ 56146283Sdfr "Used to implement -v:jni") \ 56246283Sdfr \ 56346283Sdfr notproduct(bool, PrintRewrites, false, \ 56498944Sobrien "Print methods that are being rewritten") \ 56546283Sdfr \ 56698944Sobrien product(bool, UseInlineCaches, true, \ 56746283Sdfr "Use Inline Caches for virtual calls ") \ 56846283Sdfr \ 56946283Sdfr develop(bool, InlineArrayCopy, true, \ 57046283Sdfr "inline arraycopy native that is known to be part of " \ 57146283Sdfr "base library DLL") \ 57246283Sdfr \ 57346283Sdfr develop(bool, InlineObjectHash, true, \ 57446283Sdfr "inline Object::hashCode() native that is known to be part " \ 57546283Sdfr "of base library DLL") \ 57646283Sdfr \ 57746283Sdfr develop(bool, InlineObjectCopy, true, \ 57846283Sdfr "inline Object.clone and Arrays.copyOf[Range] intrinsics") \ 57919370Spst \ 58098944Sobrien develop(bool, InlineNatives, true, \ 58198944Sobrien "inline natives that are known to be part of base library DLL") \ 58219370Spst \ 583130803Smarcel develop(bool, InlineMathNatives, true, \ 584130803Smarcel "inline SinD, CosD, etc.") \ 58519370Spst \ 58619370Spst develop(bool, InlineClassNatives, true, \ 587130803Smarcel "inline Class.isInstance, etc") \ 58819370Spst \ 58919370Spst develop(bool, InlineAtomicLong, true, \ 59019370Spst "inline sun.misc.AtomicLong") \ 59119370Spst \ 59219370Spst develop(bool, InlineThreadNatives, true, \ 59319370Spst "inline Thread.currentThread, etc") \ 59419370Spst \ 59519370Spst develop(bool, InlineReflectionGetCallerClass, true, \ 59619370Spst "inline sun.reflect.Reflection.getCallerClass(), known to be part "\ 59719370Spst "of base library DLL") \ 59819370Spst \ 59919370Spst develop(bool, InlineUnsafeOps, true, \ 60019370Spst "inline memory ops (native methods) from sun.misc.Unsafe") \ 60119370Spst \ 60219370Spst develop(bool, ConvertCmpD2CmpF, true, \ 60319370Spst "Convert cmpD to cmpF when one input is constant in float range") \ 60419370Spst \ 60519370Spst develop(bool, ConvertFloat2IntClipping, true, \ 60698944Sobrien "Convert float2int clipping idiom to integer clipping") \ 60798944Sobrien \ 60819370Spst develop(bool, SpecialStringCompareTo, true, \ 60919370Spst "special version of string compareTo") \ 61019370Spst \ 61119370Spst develop(bool, SpecialStringIndexOf, true, \ 61219370Spst "special version of string indexOf") \ 61319370Spst \ 61498944Sobrien develop(bool, SpecialStringEquals, true, \ 615130803Smarcel "special version of string equals") \ 61619370Spst \ 61719370Spst develop(bool, SpecialArraysEquals, true, \ 61819370Spst "special version of Arrays.equals(char[],char[])") \ 61919370Spst \ 62019370Spst product(bool, UseSSE42Intrinsics, false, \ 62198944Sobrien "SSE4.2 versions of intrinsics") \ 62219370Spst \ 62319370Spst develop(bool, TraceCallFixup, false, \ 62498944Sobrien "traces all call fixups") \ 62519370Spst \ 62619370Spst develop(bool, DeoptimizeALot, false, \ 62798944Sobrien "deoptimize at every exit from the runtime system") \ 62819370Spst \ 62919370Spst notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ 63019370Spst "a comma separated list of bcis to deoptimize at") \ 63119370Spst \ 63219370Spst product(bool, DeoptimizeRandom, false, \ 63319370Spst "deoptimize random frames on random exit from the runtime system")\ 63498944Sobrien \ 63598944Sobrien notproduct(bool, ZombieALot, false, \ 63619370Spst "creates zombies (non-entrant) at exit from the runt. system") \ 63719370Spst \ 63819370Spst product(bool, UnlinkSymbolsALot, false, \ 63998944Sobrien "unlink unreferenced symbols from the symbol table at safepoints")\ 64019370Spst \ 64119370Spst notproduct(bool, WalkStackALot, false, \ 64219370Spst "trace stack (no print) at every exit from the runtime system") \ 64319370Spst \ 64419370Spst develop(bool, Debugging, false, \ 64519370Spst "set when executing debug methods in debug.ccp " \ 64619370Spst "(to prevent triggering assertions)") \ 64798944Sobrien \ 648130803Smarcel notproduct(bool, StrictSafepointChecks, trueInDebug, \ 649130803Smarcel "Enable strict checks that safepoints cannot happen for threads " \ 65098944Sobrien "that used No_Safepoint_Verifier") \ 65119370Spst \ 65298944Sobrien notproduct(bool, VerifyLastFrame, false, \ 653130803Smarcel "Verify oops on last frame on entry to VM") \ 65498944Sobrien \ 65519370Spst develop(bool, TraceHandleAllocation, false, \ 65698944Sobrien "Prints out warnings when suspicious many handles are allocated") \ 657130803Smarcel \ 658130803Smarcel product(bool, UseCompilerSafepoints, true, \ 65998944Sobrien "Stop at safepoints in compiled code") \ 66019370Spst \ 66198944Sobrien product(bool, UseSplitVerifier, true, \ 66298944Sobrien "use split verifier with StackMapTable attributes") \ 66398944Sobrien \ 66419370Spst product(bool, FailOverToOldVerifier, true, \ 66519370Spst "fail over to old verifier when split verifier fails") \ 66698944Sobrien \ 66798944Sobrien develop(bool, ShowSafepointMsgs, false, \ 66898944Sobrien "Show msg. about safepoint synch.") \ 66919370Spst \ 67019370Spst product(bool, SafepointTimeout, false, \ 67198944Sobrien "Time out and warn or fail after SafepointTimeoutDelay " \ 672130803Smarcel "milliseconds if failed to reach safepoint") \ 673130803Smarcel \ 67498944Sobrien develop(bool, DieOnSafepointTimeout, false, \ 67519370Spst "Die upon failure to reach safepoint (see SafepointTimeout)") \ 67619370Spst \ 67719370Spst /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ 67819370Spst /* typically, at most a few retries are needed */ \ 67919370Spst product(intx, SuspendRetryCount, 50, \ 68098944Sobrien "Maximum retry count for an external suspend request") \ 681130803Smarcel \ 68219370Spst product(intx, SuspendRetryDelay, 5, \ 68319370Spst "Milliseconds to delay per retry (* current_retry_count)") \ 68419370Spst \ 68519370Spst product(bool, AssertOnSuspendWaitFailure, false, \ 68619370Spst "Assert/Guarantee on external suspend wait failure") \ 68719370Spst \ 68819370Spst product(bool, TraceSuspendWaitFailures, false, \ 68919370Spst "Trace external suspend wait failures") \ 69019370Spst \ 69119370Spst product(bool, MaxFDLimit, true, \ 69219370Spst "Bump the number of file descriptors to max in solaris.") \ 69319370Spst \ 69419370Spst notproduct(bool, LogEvents, trueInDebug, \ 69519370Spst "Enable Event log") \ 69619370Spst \ 69719370Spst product(bool, BytecodeVerificationRemote, true, \ 69819370Spst "Enables the Java bytecode verifier for remote classes") \ 69919370Spst \ 70019370Spst product(bool, BytecodeVerificationLocal, false, \ 70119370Spst "Enables the Java bytecode verifier for local classes") \ 70219370Spst \ 70319370Spst develop(bool, ForceFloatExceptions, trueInDebug, \ 70419370Spst "Force exceptions on FP stack under/overflow") \ 70519370Spst \ 70698944Sobrien develop(bool, SoftMatchFailure, trueInProduct, \ 70798944Sobrien "If the DFA fails to match a node, print a message and bail out") \ 70898944Sobrien \ 70998944Sobrien develop(bool, VerifyStackAtCalls, false, \ 71098944Sobrien "Verify that the stack pointer is unchanged after calls") \ 71119370Spst \ 71219370Spst develop(bool, TraceJavaAssertions, false, \ 71319370Spst "Trace java language assertions") \ 71419370Spst \ 715130803Smarcel notproduct(bool, CheckAssertionStatusDirectives, false, \ 71619370Spst "temporary - see javaClasses.cpp") \ 71719370Spst \ 71819370Spst notproduct(bool, PrintMallocFree, false, \ 71919370Spst "Trace calls to C heap malloc/free allocation") \ 72019370Spst \ 72119370Spst product(bool, PrintOopAddress, false, \ 72219370Spst "Always print the location of the oop") \ 72319370Spst \ 72419370Spst notproduct(bool, VerifyCodeCacheOften, false, \ 72519370Spst "Verify compiled-code cache often") \ 72619370Spst \ 72719370Spst develop(bool, ZapDeadCompiledLocals, false, \ 72819370Spst "Zap dead locals in compiler frames") \ 72919370Spst \ 73019370Spst notproduct(bool, ZapDeadLocalsOld, false, \ 73119370Spst "Zap dead locals (old version, zaps all frames when " \ 73219370Spst "entering the VM") \ 73319370Spst \ 73419370Spst notproduct(bool, CheckOopishValues, false, \ 73519370Spst "Warn if value contains oop ( requires ZapDeadLocals)") \ 73619370Spst \ 73719370Spst develop(bool, UseMallocOnly, false, \ 73819370Spst "use only malloc/free for allocation (no resource area/arena)") \ 73919370Spst \ 74019370Spst develop(bool, PrintMalloc, false, \ 741130803Smarcel "print all malloc/free calls") \ 74219370Spst \ 74398944Sobrien develop(bool, PrintMallocStatistics, false, \ 74419370Spst "print malloc/free statistics") \ 74519370Spst \ 74619370Spst develop(bool, ZapResourceArea, trueInDebug, \ 74719370Spst "Zap freed resource/arena space with 0xABABABAB") \ 74819370Spst \ 74919370Spst notproduct(bool, ZapVMHandleArea, trueInDebug, \ 75019370Spst "Zap freed VM handle space with 0xBCBCBCBC") \ 75119370Spst \ 75219370Spst develop(bool, ZapJNIHandleArea, trueInDebug, \ 75319370Spst "Zap freed JNI handle space with 0xFEFEFEFE") \ 75419370Spst \ 75519370Spst notproduct(bool, ZapStackSegments, trueInDebug, \ 75619370Spst "Zap allocated/freed Stack segments with 0xFADFADED") \ 75719370Spst \ 75819370Spst develop(bool, ZapUnusedHeapArea, trueInDebug, \ 75919370Spst "Zap unused heap space with 0xBAADBABE") \ 76019370Spst \ 76119370Spst develop(bool, TraceZapUnusedHeapArea, false, \ 76219370Spst "Trace zapping of unused heap space") \ 76319370Spst \ 76419370Spst develop(bool, CheckZapUnusedHeapArea, false, \ 76519370Spst "Check zapping of unused heap space") \ 76619370Spst \ 76719370Spst develop(bool, ZapFillerObjects, trueInDebug, \ 76819370Spst "Zap filler objects with 0xDEAFBABE") \ 76919370Spst \ 77019370Spst develop(bool, PrintVMMessages, true, \ 77198944Sobrien "Print vm messages on console") \ 77219370Spst \ 77319370Spst product(bool, PrintGCApplicationConcurrentTime, false, \ 77419370Spst "Print the time the application has been running") \ 77519370Spst \ 77619370Spst product(bool, PrintGCApplicationStoppedTime, false, \ 77719370Spst "Print the time the application has been stopped") \ 77819370Spst \ 77919370Spst notproduct(uintx, ErrorHandlerTest, 0, \ 78019370Spst "If > 0, provokes an error after VM initialization; the value" \ 78119370Spst "determines which error to provoke. See test_error_handler()" \ 78219370Spst "in debug.cpp.") \ 78319370Spst \ 78419370Spst develop(bool, Verbose, false, \ 78519370Spst "Prints additional debugging information from other modes") \ 78619370Spst \ 78719370Spst develop(bool, PrintMiscellaneous, false, \ 78819370Spst "Prints uncategorized debugging information (requires +Verbose)") \ 78919370Spst \ 79019370Spst develop(bool, WizardMode, false, \ 79119370Spst "Prints much more debugging information") \ 79219370Spst \ 79319370Spst product(bool, ShowMessageBoxOnError, false, \ 79419370Spst "Keep process alive on VM fatal error") \ 79519370Spst \ 79619370Spst product(bool, CreateMinidumpOnCrash, false, \ 79719370Spst "Create minidump on VM fatal error") \ 79819370Spst \ 79919370Spst product_pd(bool, UseOSErrorReporting, \ 80019370Spst "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ 80119370Spst \ 80219370Spst product(bool, SuppressFatalErrorMessage, false, \ 80319370Spst "Do NO Fatal Error report [Avoid deadlock]") \ 80419370Spst \ 80519370Spst product(ccstrlist, OnError, "", \ 80619370Spst "Run user-defined commands on fatal error; see VMError.cpp " \ 80719370Spst "for examples") \ 808130803Smarcel \ 80919370Spst product(ccstrlist, OnOutOfMemoryError, "", \ 81019370Spst "Run user-defined commands on first java.lang.OutOfMemoryError") \ 81119370Spst \ 81219370Spst manageable(bool, HeapDumpBeforeFullGC, false, \ 81319370Spst "Dump heap to file before any major stop-world GC") \ 81419370Spst \ 81519370Spst manageable(bool, HeapDumpAfterFullGC, false, \ 816130803Smarcel "Dump heap to file after any major stop-world GC") \ 81719370Spst \ 81819370Spst manageable(bool, HeapDumpOnOutOfMemoryError, false, \ 81919370Spst "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ 82019370Spst \ 82119370Spst manageable(ccstr, HeapDumpPath, NULL, \ 82219370Spst "When HeapDumpOnOutOfMemoryError is on, the path (filename or" \ 82319370Spst "directory) of the dump file (defaults to java_pid<pid>.hprof" \ 82419370Spst "in the working directory)") \ 825130803Smarcel \ 82619370Spst develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ 82719370Spst "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ 82819370Spst "when the heap usage is larger than this") \ 82919370Spst \ 83019370Spst develop(uintx, HeapDumpSegmentSize, 1*G, \ 83198944Sobrien "Approximate segment size when generating a segmented heap dump") \ 83298944Sobrien \ 83319370Spst develop(bool, BreakAtWarning, false, \ 83419370Spst "Execute breakpoint upon encountering VM warning") \ 83546283Sdfr \ 836130803Smarcel product_pd(bool, UseVectoredExceptions, \ 837130803Smarcel "Temp Flag - Use Vectored Exceptions rather than SEH (Windows Only)") \ 838130803Smarcel \ 839130803Smarcel develop(bool, TraceVMOperation, false, \ 840130803Smarcel "Trace vm operations") \ 841130803Smarcel \ 842130803Smarcel develop(bool, UseFakeTimers, false, \ 84346283Sdfr "Tells whether the VM should use system time or a fake timer") \ 84419370Spst \ 84519370Spst diagnostic(bool, LogCompilation, false, \ 84619370Spst "Log compilation activity in detail to hotspot.log or LogFile") \ 84746283Sdfr \ 84846283Sdfr product(bool, PrintCompilation, false, \ 84946283Sdfr "Print compilations") \ 85046283Sdfr \ 85146283Sdfr diagnostic(bool, TraceNMethodInstalls, false, \ 85246283Sdfr "Trace nmethod intallation") \ 85346283Sdfr \ 85446283Sdfr diagnostic(intx, ScavengeRootsInCode, 1, \ 85546283Sdfr "0: do not allow scavengable oops in the code cache; " \ 85646283Sdfr "1: allow scavenging from the code cache; " \ 85746283Sdfr "2: emit as many constants as the compiler can see") \ 85846283Sdfr \ 85946283Sdfr diagnostic(bool, TraceOSRBreakpoint, false, \ 86046283Sdfr "Trace OSR Breakpoint ") \ 86146283Sdfr \ 86246283Sdfr diagnostic(bool, TraceCompileTriggered, false, \ 86346283Sdfr "Trace compile triggered") \ 86446283Sdfr \ 86546283Sdfr diagnostic(bool, TraceTriggers, false, \ 86646283Sdfr "Trace triggers") \ 86746283Sdfr \ 86846283Sdfr product(bool, AlwaysRestoreFPU, false, \ 86946283Sdfr "Restore the FPU control word after every JNI call (expensive)") \ 87046283Sdfr \ 87198944Sobrien notproduct(bool, PrintCompilation2, false, \ 87246283Sdfr "Print additional statistics per compilation") \ 87346283Sdfr \ 87446283Sdfr diagnostic(bool, PrintAdapterHandlers, false, \ 87546283Sdfr "Print code generated for i2c/c2i adapters") \ 87646283Sdfr \ 87798944Sobrien develop(bool, VerifyAdapterSharing, false, \ 87898944Sobrien "Verify that the code for shared adapters is the equivalent") \ 87998944Sobrien \ 88098944Sobrien diagnostic(bool, PrintAssembly, false, \ 88198944Sobrien "Print assembly code (using external disassembler.so)") \ 88246283Sdfr \ 88346283Sdfr diagnostic(ccstr, PrintAssemblyOptions, NULL, \ 88498944Sobrien "Options string passed to disassembler.so") \ 88598944Sobrien \ 88646283Sdfr diagnostic(bool, PrintNMethods, false, \ 88746283Sdfr "Print assembly code for nmethods when generated") \ 88846283Sdfr \ 88946283Sdfr diagnostic(bool, PrintNativeNMethods, false, \ 89019370Spst "Print assembly code for native nmethods when generated") \ 89119370Spst \ 89219370Spst develop(bool, PrintDebugInfo, false, \ 89319370Spst "Print debug information for all nmethods when generated") \ 89419370Spst \ 89519370Spst develop(bool, PrintRelocations, false, \ 896130803Smarcel "Print relocation information for all nmethods when generated") \ 89719370Spst \ 89819370Spst develop(bool, PrintDependencies, false, \ 89919370Spst "Print dependency information for all nmethods when generated") \ 90019370Spst \ 90119370Spst develop(bool, PrintExceptionHandlers, false, \ 90298944Sobrien "Print exception handler tables for all nmethods when generated") \ 90398944Sobrien \ 90498944Sobrien develop(bool, InterceptOSException, false, \ 90519370Spst "Starts debugger when an implicit OS (e.g., NULL) " \ 90619370Spst "exception happens") \ 907130803Smarcel \ 90846283Sdfr notproduct(bool, PrintCodeCache, false, \ 90998944Sobrien "Print the compiled_code cache when exiting") \ 91098944Sobrien \ 91198944Sobrien develop(bool, PrintCodeCache2, false, \ 912130803Smarcel "Print detailed info on the compiled_code cache when exiting") \ 91346283Sdfr \ 914130803Smarcel diagnostic(bool, PrintStubCode, false, \ 91598944Sobrien "Print generated stub code") \ 91698944Sobrien \ 91746283Sdfr product(bool, StackTraceInThrowable, true, \ 91819370Spst "Collect backtrace in throwable when exception happens") \ 91919370Spst \ 92019370Spst product(bool, OmitStackTraceInFastThrow, true, \ 92119370Spst "Omit backtraces for some 'hot' exceptions in optimized code") \ 92298944Sobrien \ 92398944Sobrien product(bool, ProfilerPrintByteCodeStatistics, false, \ 92419370Spst "Prints byte code statictics when dumping profiler output") \ 92519370Spst \ 92619370Spst product(bool, ProfilerRecordPC, false, \ 92719370Spst "Collects tick for each 16 byte interval of compiled code") \ 92819370Spst \ 929130803Smarcel product(bool, ProfileVM, false, \ 93019370Spst "Profiles ticks that fall within VM (either in the VM Thread " \ 93119370Spst "or VM code called through stubs)") \ 93219370Spst \ 93319370Spst product(bool, ProfileIntervals, false, \ 93419370Spst "Prints profiles for each interval (see ProfileIntervalsTicks)") \ 93519370Spst \ 93619370Spst notproduct(bool, ProfilerCheckIntervals, false, \ 93719370Spst "Collect and print info on spacing of profiler ticks") \ 93819370Spst \ 93919370Spst develop(bool, PrintJVMWarnings, false, \ 94019370Spst "Prints warnings for unimplemented JVM functions") \ 94119370Spst \ 94298944Sobrien product(bool, PrintWarnings, true, \ 94319370Spst "Prints JVM warnings to output stream") \ 94419370Spst \ 94519370Spst notproduct(uintx, WarnOnStalledSpinLock, 0, \ 94619370Spst "Prints warnings for stalled SpinLocks") \ 947130803Smarcel \ 94819370Spst develop(bool, InitializeJavaLangSystem, true, \ 949130803Smarcel "Initialize java.lang.System - turn off for individual " \ 95019370Spst "method debugging") \ 95119370Spst \ 95298944Sobrien develop(bool, InitializeJavaLangString, true, \ 95319370Spst "Initialize java.lang.String - turn off for individual " \ 95419370Spst "method debugging") \ 95519370Spst \ 95619370Spst develop(bool, InitializeJavaLangExceptionsErrors, true, \ 95719370Spst "Initialize various error and exception classes - turn off for " \ 95819370Spst "individual method debugging") \ 95919370Spst \ 96019370Spst product(bool, RegisterFinalizersAtInit, true, \ 96119370Spst "Register finalizable objects at end of Object.<init> or " \ 96219370Spst "after allocation") \ 96398944Sobrien \ 96498944Sobrien develop(bool, RegisterReferences, true, \ 96598944Sobrien "Tells whether the VM should register soft/weak/final/phantom " \ 96698944Sobrien "references") \ 96798944Sobrien \ 96898944Sobrien develop(bool, IgnoreRewrites, false, \ 96919370Spst "Supress rewrites of bytecodes in the oopmap generator. " \ 97098944Sobrien "This is unsafe!") \ 97198944Sobrien \ 97298944Sobrien develop(bool, PrintCodeCacheExtension, false, \ 97398944Sobrien "Print extension of code cache") \ 97498944Sobrien \ 97519370Spst develop(bool, UsePrivilegedStack, true, \ 97698944Sobrien "Enable the security JVM functions") \ 97798944Sobrien \ 97898944Sobrien develop(bool, IEEEPrecision, true, \ 97998944Sobrien "Enables IEEE precision (for INTEL only)") \ 98019370Spst \ 98198944Sobrien develop(bool, ProtectionDomainVerification, true, \ 98298944Sobrien "Verifies protection domain before resolution in system " \ 98398944Sobrien "dictionary") \ 98498944Sobrien \ 98598944Sobrien product(bool, ClassUnloading, true, \ 98698944Sobrien "Do unloading of classes") \ 98719370Spst \ 98898944Sobrien diagnostic(bool, LinkWellKnownClasses, false, \ 98998944Sobrien "Resolve a well known class as soon as its name is seen") \ 99098944Sobrien \ 99198944Sobrien develop(bool, DisableStartThread, false, \ 99298944Sobrien "Disable starting of additional Java threads " \ 99398944Sobrien "(for debugging only)") \ 99498944Sobrien \ 99598944Sobrien develop(bool, MemProfiling, false, \ 99698944Sobrien "Write memory usage profiling to log file") \ 99798944Sobrien \ 99898944Sobrien notproduct(bool, PrintSystemDictionaryAtExit, false, \ 99919370Spst "Prints the system dictionary at exit") \ 100098944Sobrien \ 100198944Sobrien diagnostic(bool, UnsyncloadClass, false, \ 100298944Sobrien "Unstable: VM calls loadClass unsynchronized. Custom " \ 100398944Sobrien "class loader must call VM synchronized for findClass " \ 100498944Sobrien "and defineClass.") \ 100598944Sobrien \ 100619370Spst product(bool, AlwaysLockClassLoader, false, \ 100798944Sobrien "Require the VM to acquire the class loader lock before calling " \ 100898944Sobrien "loadClass() even for class loaders registering " \ 100998944Sobrien "as parallel capable") \ 101098944Sobrien \ 101198944Sobrien product(bool, AllowParallelDefineClass, false, \ 101298944Sobrien "Allow parallel defineClass requests for class loaders " \ 101398944Sobrien "registering as parallel capable") \ 101498944Sobrien \ 101598944Sobrien product(bool, MustCallLoadClassInternal, false, \ 101698944Sobrien "Call loadClassInternal() rather than loadClass()") \ 101798944Sobrien \ 101898944Sobrien product_pd(bool, DontYieldALot, \ 101998944Sobrien "Throw away obvious excess yield calls (for SOLARIS only)") \ 102098944Sobrien \ 102198944Sobrien product_pd(bool, ConvertSleepToYield, \ 102298944Sobrien "Converts sleep(0) to thread yield " \ 102398944Sobrien "(may be off for SOLARIS to improve GUI)") \ 102498944Sobrien \ 102598944Sobrien product(bool, ConvertYieldToSleep, false, \ 102698944Sobrien "Converts yield to a sleep of MinSleepInterval to simulate Win32 "\ 102798944Sobrien "behavior (SOLARIS only)") \ 102898944Sobrien \ 102998944Sobrien product(bool, UseBoundThreads, true, \ 103098944Sobrien "Bind user level threads to kernel threads (for SOLARIS only)") \ 103198944Sobrien \ 103298944Sobrien develop(bool, UseDetachedThreads, true, \ 103398944Sobrien "Use detached threads that are recycled upon termination " \ 103498944Sobrien "(for SOLARIS only)") \ 103598944Sobrien \ 103698944Sobrien product(bool, UseLWPSynchronization, true, \ 103798944Sobrien "Use LWP-based instead of libthread-based synchronization " \ 103819370Spst "(SPARC only)") \ 103919370Spst \ 104019370Spst product(ccstr, SyncKnobs, NULL, \ 104119370Spst "(Unstable) Various monitor synchronization tunables") \ 104219370Spst \ 104319370Spst product(intx, EmitSync, 0, \ 104419370Spst "(Unsafe,Unstable) " \ 104519370Spst " Controls emission of inline sync fast-path code") \ 104619370Spst \ 104798944Sobrien product(intx, AlwaysInflate, 0, "(Unstable) Force inflation") \ 104819370Spst \ 104919370Spst product(intx, MonitorBound, 0, "Bound Monitor population") \ 105019370Spst \ 105119370Spst product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ 105219370Spst \ 105319370Spst product(intx, Atomics, 0, \ 105498944Sobrien "(Unsafe,Unstable) Diagnostic - Controls emission of atomics") \ 105519370Spst \ 1056130803Smarcel product(intx, FenceInstruction, 0, \ 1057130803Smarcel "(Unsafe,Unstable) Experimental") \ 1058130803Smarcel \ 105998944Sobrien product(intx, SyncFlags, 0, "(Unsafe,Unstable) Experimental Sync flags" ) \ 106019370Spst \ 1061130803Smarcel product(intx, SyncVerbose, 0, "(Unstable)" ) \ 106219370Spst \ 106319370Spst product(intx, ClearFPUAtPark, 0, "(Unsafe,Unstable)" ) \ 106419370Spst \ 106519370Spst product(intx, hashCode, 0, \ 106619370Spst "(Unstable) select hashCode generation algorithm" ) \ 106719370Spst \ 106819370Spst product(intx, WorkAroundNPTLTimedWaitHang, 1, \ 106919370Spst "(Unstable, Linux-specific)" \ 107098944Sobrien " avoid NPTL-FUTEX hang pthread_cond_timedwait" ) \ 107119370Spst \ 1072130803Smarcel product(bool, FilterSpuriousWakeups, true, \ 1073130803Smarcel "Prevent spurious or premature wakeups from object.wait " \ 1074130803Smarcel "(Solaris only)") \ 107598944Sobrien \ 107619370Spst product(intx, NativeMonitorTimeout, -1, "(Unstable)" ) \ 1077130803Smarcel product(intx, NativeMonitorFlags, 0, "(Unstable)" ) \ 107819370Spst product(intx, NativeMonitorSpinLimit, 20, "(Unstable)" ) \ 107919370Spst \ 1080130803Smarcel develop(bool, UsePthreads, false, \ 1081130803Smarcel "Use pthread-based instead of libthread-based synchronization " \ 1082130803Smarcel "(SPARC only)") \ 1083130803Smarcel \ 1084130803Smarcel product(bool, AdjustConcurrency, false, \ 1085130803Smarcel "call thr_setconcurrency at thread create time to avoid " \ 1086130803Smarcel "LWP starvation on MP systems (For Solaris Only)") \ 1087130803Smarcel \ 108819370Spst develop(bool, UpdateHotSpotCompilerFileOnError, true, \ 1089130803Smarcel "Should the system attempt to update the compiler file when " \ 1090130803Smarcel "an error occurs?") \ 1091130803Smarcel \ 1092130803Smarcel product(bool, ReduceSignalUsage, false, \ 1093130803Smarcel "Reduce the use of OS signals in Java and/or the VM") \ 109419370Spst \ 109519370Spst notproduct(bool, ValidateMarkSweep, false, \ 109698944Sobrien "Do extra validation during MarkSweep collection") \ 109719370Spst \ 109819370Spst notproduct(bool, RecordMarkSweepCompaction, false, \ 109919370Spst "Enable GC-to-GC recording and querying of compaction during " \ 110019370Spst "MarkSweep") \ 110119370Spst \ 1102130803Smarcel develop_pd(bool, ShareVtableStubs, \ 1103130803Smarcel "Share vtable stubs (smaller code but worse branch prediction") \ 110419370Spst \ 110519370Spst develop(bool, LoadLineNumberTables, true, \ 110619370Spst "Tells whether the class file parser loads line number tables") \ 110719370Spst \ 110819370Spst develop(bool, LoadLocalVariableTables, true, \ 1109130803Smarcel "Tells whether the class file parser loads local variable tables")\ 1110130803Smarcel \ 111119370Spst develop(bool, LoadLocalVariableTypeTables, true, \ 111219370Spst "Tells whether the class file parser loads local variable type tables")\ 111319370Spst \ 111419370Spst product(bool, AllowUserSignalHandlers, false, \ 111519370Spst "Do not complain if the application installs signal handlers " \ 111619370Spst "(Solaris & Linux only)") \ 111719370Spst \ 111819370Spst product(bool, UseSignalChaining, true, \ 111919370Spst "Use signal-chaining to invoke signal handlers installed " \ 112019370Spst "by the application (Solaris & Linux only)") \ 112198944Sobrien \ 112219370Spst product(bool, UseAltSigs, false, \ 112319370Spst "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ 112498944Sobrien "internal signals (Solaris only)") \ 112519370Spst \ 112619370Spst product(bool, UseSpinning, false, \ 112719370Spst "Use spinning in monitor inflation and before entry") \ 112819370Spst \ 112919370Spst product(bool, PreSpinYield, false, \ 113019370Spst "Yield before inner spinning loop") \ 113119370Spst \ 113219370Spst product(bool, PostSpinYield, true, \ 1133130803Smarcel "Yield after inner spinning loop") \ 113498944Sobrien \ 113598944Sobrien product(bool, AllowJNIEnvProxy, false, \ 1136130803Smarcel "Allow JNIEnv proxies for jdbx") \ 113798944Sobrien \ 113898944Sobrien product(bool, JNIDetachReleasesMonitors, true, \ 1139130803Smarcel "JNI DetachCurrentThread releases monitors owned by thread") \ 114098944Sobrien \ 114198944Sobrien product(bool, RestoreMXCSROnJNICalls, false, \ 114298944Sobrien "Restore MXCSR when returning from JNI calls") \ 114319370Spst \ 1144130803Smarcel product(bool, CheckJNICalls, false, \ 114519370Spst "Verify all arguments to JNI calls") \ 114619370Spst \ 114719370Spst product(bool, UseFastJNIAccessors, true, \ 114819370Spst "Use optimized versions of Get<Primitive>Field") \ 1149130803Smarcel \ 115019370Spst product(bool, EagerXrunInit, false, \ 115119370Spst "Eagerly initialize -Xrun libraries; allows startup profiling, " \ 115219370Spst " but not all -Xrun libraries may support the state of the VM at this time") \ 115398944Sobrien \ 115498944Sobrien product(bool, PreserveAllAnnotations, false, \ 115598944Sobrien "Preserve RuntimeInvisibleAnnotations as well as RuntimeVisibleAnnotations") \ 115619370Spst \ 115719370Spst develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ 115819370Spst "Number of OutOfMemoryErrors preallocated with backtrace") \ 1159130803Smarcel \ 116019370Spst product(bool, LazyBootClassLoader, true, \ 116198944Sobrien "Enable/disable lazy opening of boot class path entries") \ 116298944Sobrien \ 116398944Sobrien diagnostic(bool, UseIncDec, true, \ 116419370Spst "Use INC, DEC instructions on x86") \ 116519370Spst \ 116619370Spst product(bool, UseNewLongLShift, false, \ 116719370Spst "Use optimized bitwise shift left") \ 116819370Spst \ 116919370Spst product(bool, UseStoreImmI16, true, \ 117019370Spst "Use store immediate 16-bits value instruction on x86") \ 117119370Spst \ 117219370Spst product(bool, UseAddressNop, false, \ 117319370Spst "Use '0F 1F [addr]' NOP instructions on x86 cpus") \ 117419370Spst \ 117519370Spst product(bool, UseXmmLoadAndClearUpper, true, \ 117619370Spst "Load low part of XMM register and clear upper part") \ 117719370Spst \ 117819370Spst product(bool, UseXmmRegToRegMoveAll, false, \ 117919370Spst "Copy all XMM register bits when moving value between registers") \ 118019370Spst \ 118119370Spst product(bool, UseXmmI2D, false, \ 118219370Spst "Use SSE2 CVTDQ2PD instruction to convert Integer to Double") \ 118319370Spst \ 1184130803Smarcel product(bool, UseXmmI2F, false, \ 118519370Spst "Use SSE2 CVTDQ2PS instruction to convert Integer to Float") \ 118619370Spst \ 118719370Spst product(bool, UseXMMForArrayCopy, false, \ 118898944Sobrien "Use SSE2 MOVQ instruction for Arraycopy") \ 118998944Sobrien \ 119098944Sobrien product(bool, UseUnalignedLoadStores, false, \ 119198944Sobrien "Use SSE2 MOVDQU instruction for Arraycopy") \ 119298944Sobrien \ 119398944Sobrien product(intx, FieldsAllocationStyle, 1, \ 119498944Sobrien "0 - type based with oops first, 1 - with oops last, " \ 119598944Sobrien "2 - oops in super and sub classes are together") \ 119698944Sobrien \ 119798944Sobrien product(bool, CompactFields, true, \ 119898944Sobrien "Allocate nonstatic fields in gaps between previous fields") \ 119998944Sobrien \ 120019370Spst notproduct(bool, PrintCompactFieldsSavings, false, \ 120198944Sobrien "Print how many words were saved with CompactFields") \ 120219370Spst \ 120398944Sobrien product(bool, UseBiasedLocking, true, \ 120498944Sobrien "Enable biased locking in JVM") \ 120598944Sobrien \ 120698944Sobrien product(intx, BiasedLockingStartupDelay, 4000, \ 120798944Sobrien "Number of milliseconds to wait before enabling biased locking") \ 120898944Sobrien \ 120998944Sobrien diagnostic(bool, PrintBiasedLockingStatistics, false, \ 121098944Sobrien "Print statistics of biased locking in JVM") \ 121198944Sobrien \ 121298944Sobrien product(intx, BiasedLockingBulkRebiasThreshold, 20, \ 121398944Sobrien "Threshold of number of revocations per type to try to " \ 121498944Sobrien "rebias all objects in the heap of that type") \ 121598944Sobrien \ 121698944Sobrien product(intx, BiasedLockingBulkRevokeThreshold, 40, \ 121798944Sobrien "Threshold of number of revocations per type to permanently " \ 121898944Sobrien "revoke biases of all objects in the heap of that type") \ 121998944Sobrien \ 122098944Sobrien product(intx, BiasedLockingDecayTime, 25000, \ 122198944Sobrien "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ 122298944Sobrien "type after previous bulk rebias") \ 122398944Sobrien \ 1224130803Smarcel develop(bool, JavaObjectsInPerm, false, \ 122598944Sobrien "controls whether Classes and interned Strings are allocated" \ 122619370Spst "in perm. This purely intended to allow debugging issues" \ 122719370Spst "in production.") \ 1228130803Smarcel \ 122919370Spst /* tracing */ \ 123019370Spst \ 123119370Spst notproduct(bool, TraceRuntimeCalls, false, \ 123219370Spst "Trace run-time calls") \ 123319370Spst \ 123419370Spst develop(bool, TraceJNICalls, false, \ 123519370Spst "Trace JNI calls") \ 123698944Sobrien \ 123719370Spst notproduct(bool, TraceJVMCalls, false, \ 123819370Spst "Trace JVM calls") \ 123919370Spst \ 124019370Spst product(ccstr, TraceJVMTI, NULL, \ 124119370Spst "Trace flags for JVMTI functions and events") \ 124219370Spst \ 1243130803Smarcel /* This option can change an EMCP method into an obsolete method. */ \ 124419370Spst /* This can affect tests that except specific methods to be EMCP. */ \ 124598944Sobrien /* This option should be used with caution. */ \ 124698944Sobrien product(bool, StressLdcRewrite, false, \ 124798944Sobrien "Force ldc -> ldc_w rewrite during RedefineClasses") \ 124819370Spst \ 124919370Spst product(intx, TraceRedefineClasses, 0, \ 125019370Spst "Trace level for JVMTI RedefineClasses") \ 1251130803Smarcel \ 125219370Spst develop(bool, StressMethodComparator, false, \ 125319370Spst "run the MethodComparator on all loaded methods") \ 1254130803Smarcel \ 125519370Spst /* change to false by default sometime after Mustang */ \ 125619370Spst product(bool, VerifyMergedCPBytecodes, true, \ 125719370Spst "Verify bytecodes after RedefineClasses constant pool merging") \ 125819370Spst \ 125919370Spst develop(bool, TraceJNIHandleAllocation, false, \ 1260130803Smarcel "Trace allocation/deallocation of JNI handle blocks") \ 1261130803Smarcel \ 126219370Spst develop(bool, TraceThreadEvents, false, \ 126319370Spst "Trace all thread events") \ 126419370Spst \ 1265130803Smarcel develop(bool, TraceBytecodes, false, \ 126619370Spst "Trace bytecode execution") \ 126719370Spst \ 1268130803Smarcel develop(bool, TraceClassInitialization, false, \ 126919370Spst "Trace class initialization") \ 127019370Spst \ 127119370Spst develop(bool, TraceExceptions, false, \ 127219370Spst "Trace exceptions") \ 127319370Spst \ 127419370Spst develop(bool, TraceICs, false, \ 127519370Spst "Trace inline cache changes") \ 127619370Spst \ 127719370Spst notproduct(bool, TraceInvocationCounterOverflow, false, \ 127819370Spst "Trace method invocation counter overflow") \ 1279130803Smarcel \ 128098944Sobrien develop(bool, TraceInlineCacheClearing, false, \ 128198944Sobrien "Trace clearing of inline caches in nmethods") \ 1282130803Smarcel \ 128398944Sobrien develop(bool, TraceDependencies, false, \ 128498944Sobrien "Trace dependencies") \ 1285130803Smarcel \ 128698944Sobrien develop(bool, VerifyDependencies, trueInDebug, \ 128798944Sobrien "Exercise and verify the compilation dependency mechanism") \ 128898944Sobrien \ 128919370Spst develop(bool, TraceNewOopMapGeneration, false, \ 1290130803Smarcel "Trace OopMapGeneration") \ 129119370Spst \ 129219370Spst develop(bool, TraceNewOopMapGenerationDetailed, false, \ 129319370Spst "Trace OopMapGeneration: print detailed cell states") \ 129419370Spst \ 129519370Spst develop(bool, TimeOopMap, false, \ 129619370Spst "Time calls to GenerateOopMap::compute_map() in sum") \ 129719370Spst \ 129819370Spst develop(bool, TimeOopMap2, false, \ 1299130803Smarcel "Time calls to GenerateOopMap::compute_map() individually") \ 130019370Spst \ 130119370Spst develop(bool, TraceMonitorMismatch, false, \ 130219370Spst "Trace monitor matching failures during OopMapGeneration") \ 130319370Spst \ 130419370Spst develop(bool, TraceOopMapRewrites, false, \ 130519370Spst "Trace rewritting of method oops during oop map generation") \ 130619370Spst \ 130719370Spst develop(bool, TraceSafepoint, false, \ 130898944Sobrien "Trace safepoint operations") \ 130919370Spst \ 1310130803Smarcel develop(bool, TraceICBuffer, false, \ 1311130803Smarcel "Trace usage of IC buffer") \ 1312130803Smarcel \ 131398944Sobrien develop(bool, TraceCompiledIC, false, \ 131419370Spst "Trace changes of compiled IC") \ 1315130803Smarcel \ 131619370Spst notproduct(bool, TraceZapDeadLocals, false, \ 131719370Spst "Trace zapping dead locals") \ 131819370Spst \ 131919370Spst develop(bool, TraceStartupTime, false, \ 132019370Spst "Trace setup time") \ 132198944Sobrien \ 132298944Sobrien product(ccstr, HPILibPath, NULL, \ 132398944Sobrien "Specify alternate path to HPI library") \ 132419370Spst \ 132519370Spst develop(bool, TraceProtectionDomainVerification, false, \ 132619370Spst "Trace protection domain verifcation") \ 1327130803Smarcel \ 132819370Spst develop(bool, TraceClearedExceptions, false, \ 132919370Spst "Prints when an exception is forcibly cleared") \ 133019370Spst \ 133119370Spst product(bool, TraceClassResolution, false, \ 133219370Spst "Trace all constant pool resolutions (for debugging)") \ 133319370Spst \ 133419370Spst product(bool, TraceBiasedLocking, false, \ 1335130803Smarcel "Trace biased locking in JVM") \ 133619370Spst \ 133719370Spst product(bool, TraceMonitorInflation, false, \ 133819370Spst "Trace monitor inflation in JVM") \ 133919370Spst \ 1340130803Smarcel /* assembler */ \ 1341130803Smarcel product(bool, Use486InstrsOnly, false, \ 1342130803Smarcel "Use 80486 Compliant instruction subset") \ 134319370Spst \ 1344130803Smarcel /* gc */ \ 134546283Sdfr \ 134619370Spst product(bool, UseSerialGC, false, \ 1347130803Smarcel "Use the serial garbage collector") \ 1348130803Smarcel \ 1349130803Smarcel product(bool, UseG1GC, false, \ 1350130803Smarcel "Use the Garbage-First garbage collector") \ 1351130803Smarcel \ 1352130803Smarcel product(bool, UseParallelGC, false, \ 1353130803Smarcel "Use the Parallel Scavenge garbage collector") \ 1354130803Smarcel \ 135519370Spst product(bool, UseParallelOldGC, false, \ 135619370Spst "Use the Parallel Old garbage collector") \ 135719370Spst \ 135819370Spst product(bool, UseParallelOldGCCompacting, true, \ 135919370Spst "In the Parallel Old garbage collector use parallel compaction") \ 136019370Spst \ 136119370Spst product(bool, UseParallelDensePrefixUpdate, true, \ 136219370Spst "In the Parallel Old garbage collector use parallel dense" \ 136319370Spst " prefix update") \ 136419370Spst \ 136519370Spst product(uintx, HeapMaximumCompactionInterval, 20, \ 136619370Spst "How often should we maximally compact the heap (not allowing " \ 136798944Sobrien "any dead space)") \ 136819370Spst \ 136919370Spst product(uintx, HeapFirstMaximumCompactionCount, 3, \ 137019370Spst "The collection count for the first maximum compaction") \ 137119370Spst \ 137219370Spst product(bool, UseMaximumCompactionOnSystemGC, true, \ 137319370Spst "In the Parallel Old garbage collector maximum compaction for " \ 137419370Spst "a system GC") \ 137598944Sobrien \ 137619370Spst product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ 137719370Spst "The mean used by the par compact dead wood" \ 137819370Spst "limiter (a number between 0-100).") \ 137919370Spst \ 138019370Spst product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ 138198944Sobrien "The standard deviation used by the par compact dead wood" \ 138219370Spst "limiter (a number between 0-100).") \ 138398944Sobrien \ 138419370Spst product(bool, UseParallelOldGCDensePrefix, true, \ 138519370Spst "Use a dense prefix with the Parallel Old garbage collector") \ 138619370Spst \ 138719370Spst product(uintx, ParallelGCThreads, 0, \ 138819370Spst "Number of parallel threads parallel gc will use") \ 138919370Spst \ 139098944Sobrien develop(bool, ParallelOldGCSplitALot, false, \ 139119370Spst "Provoke splitting (copying data from a young gen space to" \ 1392130803Smarcel "multiple destination spaces)") \ 139319370Spst \ 139419370Spst develop(uintx, ParallelOldGCSplitInterval, 3, \ 139519370Spst "How often to provoke splitting a young gen space") \ 139619370Spst \ 139719370Spst develop(bool, TraceRegionTasksQueuing, false, \ 139819370Spst "Trace the queuing of the region tasks") \ 139919370Spst \ 140019370Spst product(uintx, ConcGCThreads, 0, \ 140119370Spst "Number of threads concurrent gc will use") \ 140219370Spst \ 140319370Spst product(uintx, YoungPLABSize, 4096, \ 140419370Spst "Size of young gen promotion labs (in HeapWords)") \ 140519370Spst \ 140619370Spst product(uintx, OldPLABSize, 1024, \ 140719370Spst "Size of old gen promotion labs (in HeapWords)") \ 140819370Spst \ 140919370Spst product(uintx, GCTaskTimeStampEntries, 200, \ 141019370Spst "Number of time stamp entries per gc worker thread") \ 141119370Spst \ 141219370Spst product(bool, AlwaysTenure, false, \ 141398944Sobrien "Always tenure objects in eden. (ParallelGC only)") \ 141419370Spst \ 141519370Spst product(bool, NeverTenure, false, \ 141619370Spst "Never tenure objects in eden, May tenure on overflow " \ 141719370Spst "(ParallelGC only)") \ 141819370Spst \ 141919370Spst product(bool, ScavengeBeforeFullGC, true, \ 142019370Spst "Scavenge youngest generation before each full GC, " \ 1421130803Smarcel "used with UseParallelGC") \ 1422130803Smarcel \ 142319370Spst develop(bool, ScavengeWithObjectsInToSpace, false, \ 1424130803Smarcel "Allow scavenges to occur when to_space contains objects.") \ 142519370Spst \ 142619370Spst product(bool, UseConcMarkSweepGC, false, \ 142719370Spst "Use Concurrent Mark-Sweep GC in the old generation") \ 142819370Spst \ 142919370Spst product(bool, ExplicitGCInvokesConcurrent, false, \ 143019370Spst "A System.gc() request invokes a concurrent collection;" \ 143119370Spst " (effective only when UseConcMarkSweepGC)") \ 143219370Spst \ 143319370Spst product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ 143419370Spst "A System.gc() request invokes a concurrent collection and " \ 143519370Spst "also unloads classes during such a concurrent gc cycle " \ 1436130803Smarcel "(effective only when UseConcMarkSweepGC)") \ 1437130803Smarcel \ 1438130803Smarcel product(bool, GCLockerInvokesConcurrent, false, \ 143919370Spst "The exit of a JNI CS necessitating a scavenge also" \ 144019370Spst " kicks off a bkgrd concurrent collection") \ 144119370Spst \ 144219370Spst product(uintx, GCLockerEdenExpansionPercent, 5, \ 144319370Spst "How much the GC can expand the eden by while the GC locker " \ 144419370Spst "is active (as a percentage)") \ 144519370Spst \ 144619370Spst develop(bool, UseCMSAdaptiveFreeLists, true, \ 144719370Spst "Use Adaptive Free Lists in the CMS generation") \ 144898944Sobrien \ 144919370Spst develop(bool, UseAsyncConcMarkSweepGC, true, \ 1450130803Smarcel "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ 1451130803Smarcel \ 1452130803Smarcel develop(bool, RotateCMSCollectionTypes, false, \ 1453130803Smarcel "Rotate the CMS collections among concurrent and STW") \ 1454130803Smarcel \ 145519370Spst product(bool, UseCMSBestFit, true, \ 1456130803Smarcel "Use CMS best fit allocation strategy") \ 1457130803Smarcel \ 1458130803Smarcel product(bool, UseCMSCollectionPassing, true, \ 1459130803Smarcel "Use passing of collection from background to foreground") \ 1460130803Smarcel \ 1461130803Smarcel product(bool, UseParNewGC, false, \ 1462130803Smarcel "Use parallel threads in the new generation.") \ 1463130803Smarcel \ 1464130803Smarcel product(bool, ParallelGCVerbose, false, \ 146519370Spst "Verbose output for parallel GC.") \ 146646283Sdfr \ 146798944Sobrien product(intx, ParallelGCBufferWastePct, 10, \ 146898944Sobrien "wasted fraction of parallel allocation buffer.") \ 146919370Spst \ 147019370Spst product(bool, ParallelGCRetainPLAB, true, \ 147119370Spst "Retain parallel allocation buffers across scavenges.") \ 147219370Spst \ 147398944Sobrien product(intx, TargetPLABWastePct, 10, \ 147419370Spst "target wasted space in last buffer as pct of overall allocation")\ 147519370Spst \ 147619370Spst product(uintx, PLABWeight, 75, \ 147719370Spst "Percentage (0-100) used to weight the current sample when" \ 147898944Sobrien "computing exponentially decaying average for ResizePLAB.") \ 147919370Spst \ 148019370Spst product(bool, ResizePLAB, true, \ 148119370Spst "Dynamically resize (survivor space) promotion labs") \ 148219370Spst \ 148319370Spst product(bool, PrintPLAB, false, \ 148419370Spst "Print (survivor space) promotion labs sizing decisions") \ 148519370Spst \ 148619370Spst product(intx, ParGCArrayScanChunk, 50, \ 148719370Spst "Scan a subset and push remainder, if array is bigger than this") \ 148819370Spst \ 148998944Sobrien product(bool, ParGCUseLocalOverflow, false, \ 149019370Spst "Instead of a global overflow list, use local overflow stacks") \ 149119370Spst \ 149298944Sobrien product(bool, ParGCTrimOverflow, true, \ 149319370Spst "Eagerly trim the local overflow lists (when ParGCUseLocalOverflow") \ 149419370Spst \ 149598944Sobrien notproduct(bool, ParGCWorkQueueOverflowALot, false, \ 149619370Spst "Whether we should simulate work queue overflow in ParNew") \ 149719370Spst \ 149819370Spst notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ 149919370Spst "An `interval' counter that determines how frequently " \ 150019370Spst "we simulate overflow; a smaller number increases frequency") \ 150119370Spst \ 150219370Spst product(uintx, ParGCDesiredObjsFromOverflowList, 20, \ 150319370Spst "The desired number of objects to claim from the overflow list") \ 150419370Spst \ 150519370Spst product(uintx, CMSParPromoteBlocksToClaim, 16, \ 150619370Spst "Number of blocks to attempt to claim when refilling CMS LAB for "\ 150719370Spst "parallel GC.") \ 150819370Spst \ 150919370Spst product(uintx, OldPLABWeight, 50, \ 151019370Spst "Percentage (0-100) used to weight the current sample when" \ 151119370Spst "computing exponentially decaying average for resizing CMSParPromoteBlocksToClaim.") \ 1512130803Smarcel \ 1513130803Smarcel product(bool, ResizeOldPLAB, true, \ 151419370Spst "Dynamically resize (old gen) promotion labs") \ 151519370Spst \ 151619370Spst product(bool, PrintOldPLAB, false, \ 151719370Spst "Print (old gen) promotion labs sizing decisions") \ 151898944Sobrien \ 151946283Sdfr product(uintx, CMSOldPLABMin, 16, \ 152046283Sdfr "Min size of CMS gen promotion lab caches per worker per blksize")\ 152119370Spst \ 152219370Spst product(uintx, CMSOldPLABMax, 1024, \ 152346283Sdfr "Max size of CMS gen promotion lab caches per worker per blksize")\ 152419370Spst \ 152546283Sdfr product(uintx, CMSOldPLABNumRefills, 4, \ 152646283Sdfr "Nominal number of refills of CMS gen promotion lab cache" \ 152746283Sdfr " per worker per block size") \ 152846283Sdfr \ 152946283Sdfr product(bool, CMSOldPLABResizeQuicker, false, \ 153046283Sdfr "Whether to react on-the-fly during a scavenge to a sudden" \ 153146283Sdfr " change in block demand rate") \ 153246283Sdfr \ 153346283Sdfr product(uintx, CMSOldPLABToleranceFactor, 4, \ 153446283Sdfr "The tolerance of the phase-change detector for on-the-fly" \ 153546283Sdfr " PLAB resizing during a scavenge") \ 153646283Sdfr \ 153746283Sdfr product(uintx, CMSOldPLABReactivityFactor, 2, \ 153819370Spst "The gain in the feedback loop for on-the-fly PLAB resizing" \ 153998944Sobrien " during a scavenge") \ 1540130803Smarcel \ 154198944Sobrien product(uintx, CMSOldPLABReactivityCeiling, 10, \ 154219370Spst "The clamping of the gain in the feedback loop for on-the-fly" \ 154319370Spst " PLAB resizing during a scavenge") \ 154498944Sobrien \ 154519370Spst product(bool, AlwaysPreTouch, false, \ 154619370Spst "It forces all freshly committed pages to be pre-touched.") \ 154798944Sobrien \ 154819370Spst product_pd(intx, CMSYoungGenPerWorker, \ 154919370Spst "The maximum size of young gen chosen by default per GC worker " \ 155019370Spst "thread available") \ 155119370Spst \ 155219370Spst product(bool, GCOverheadReporting, false, \ 1553130803Smarcel "Enables the GC overhead reporting facility") \ 1554130803Smarcel \ 1555130803Smarcel product(intx, GCOverheadReportingPeriodMS, 100, \ 155619370Spst "Reporting period for conc GC overhead reporting, in ms ") \ 155719370Spst \ 155819370Spst product(bool, CMSIncrementalMode, false, \ 155919370Spst "Whether CMS GC should operate in \"incremental\" mode") \ 156019370Spst \ 156119370Spst product(uintx, CMSIncrementalDutyCycle, 10, \ 156219370Spst "CMS incremental mode duty cycle (a percentage, 0-100). If" \ 1563130803Smarcel "CMSIncrementalPacing is enabled, then this is just the initial" \ 156419370Spst "value") \ 1565130803Smarcel \ 156619370Spst product(bool, CMSIncrementalPacing, true, \ 1567130803Smarcel "Whether the CMS incremental mode duty cycle should be " \ 156819370Spst "automatically adjusted") \ 1569130803Smarcel \ 1570130803Smarcel product(uintx, CMSIncrementalDutyCycleMin, 0, \ 157119370Spst "Lower bound on the duty cycle when CMSIncrementalPacing is " \ 157219370Spst "enabled (a percentage, 0-100)") \ 157319370Spst \ 157419370Spst product(uintx, CMSIncrementalSafetyFactor, 10, \ 157519370Spst "Percentage (0-100) used to add conservatism when computing the " \ 157619370Spst "duty cycle") \ 157719370Spst \ 157819370Spst product(uintx, CMSIncrementalOffset, 0, \ 157919370Spst "Percentage (0-100) by which the CMS incremental mode duty cycle" \ 158019370Spst " is shifted to the right within the period between young GCs") \ 158119370Spst \ 158219370Spst product(uintx, CMSExpAvgFactor, 50, \ 158398944Sobrien "Percentage (0-100) used to weight the current sample when" \ 158419370Spst "computing exponential averages for CMS statistics.") \ 158519370Spst \ 158619370Spst product(uintx, CMS_FLSWeight, 75, \ 158719370Spst "Percentage (0-100) used to weight the current sample when" \ 158819370Spst "computing exponentially decating averages for CMS FLS statistics.") \ 158919370Spst \ 159098944Sobrien product(uintx, CMS_FLSPadding, 1, \ 159119370Spst "The multiple of deviation from mean to use for buffering" \ 159219370Spst "against volatility in free list demand.") \ 159319370Spst \ 159419370Spst product(uintx, FLSCoalescePolicy, 2, \ 159519370Spst "CMS: Aggression level for coalescing, increasing from 0 to 4") \ 159619370Spst \ 159719370Spst product(bool, FLSAlwaysCoalesceLarge, false, \ 159819370Spst "CMS: Larger free blocks are always available for coalescing") \ 159919370Spst \ 160019370Spst product(double, FLSLargestBlockCoalesceProximity, 0.99, \ 160119370Spst "CMS: the smaller the percentage the greater the coalition force")\ 160246283Sdfr \ 160319370Spst product(double, CMSSmallCoalSurplusPercent, 1.05, \ 160446283Sdfr "CMS: the factor by which to inflate estimated demand of small" \ 160598944Sobrien " block sizes to prevent coalescing with an adjoining block") \ 160619370Spst \ 160746283Sdfr product(double, CMSLargeCoalSurplusPercent, 0.95, \ 160898944Sobrien "CMS: the factor by which to inflate estimated demand of large" \ 160946283Sdfr " block sizes to prevent coalescing with an adjoining block") \ 161046283Sdfr \ 161198944Sobrien product(double, CMSSmallSplitSurplusPercent, 1.10, \ 161298944Sobrien "CMS: the factor by which to inflate estimated demand of small" \ 161346283Sdfr " block sizes to prevent splitting to supply demand for smaller" \ 161446283Sdfr " blocks") \ 161546283Sdfr \ 161646283Sdfr product(double, CMSLargeSplitSurplusPercent, 1.00, \ 161746283Sdfr "CMS: the factor by which to inflate estimated demand of large" \ 161846283Sdfr " block sizes to prevent splitting to supply demand for smaller" \ 161946283Sdfr " blocks") \ 162046283Sdfr \ 162198944Sobrien product(bool, CMSExtrapolateSweep, false, \ 162298944Sobrien "CMS: cushion for block demand during sweep") \ 162398944Sobrien \ 162498944Sobrien product(uintx, CMS_SweepWeight, 75, \ 162598944Sobrien "Percentage (0-100) used to weight the current sample when " \ 1626130803Smarcel "computing exponentially decaying average for inter-sweep " \ 1627130803Smarcel "duration") \ 1628130803Smarcel \ 1629130803Smarcel product(uintx, CMS_SweepPadding, 1, \ 1630130803Smarcel "The multiple of deviation from mean to use for buffering " \ 1631130803Smarcel "against volatility in inter-sweep duration.") \ 1632130803Smarcel \ 1633130803Smarcel product(uintx, CMS_SweepTimerThresholdMillis, 10, \ 1634130803Smarcel "Skip block flux-rate sampling for an epoch unless inter-sweep " \ 1635130803Smarcel "duration exceeds this threhold in milliseconds") \ 1636130803Smarcel \ 1637130803Smarcel develop(bool, CMSTraceIncrementalMode, false, \ 1638130803Smarcel "Trace CMS incremental mode") \ 1639130803Smarcel \ 1640130803Smarcel develop(bool, CMSTraceIncrementalPacing, false, \ 1641130803Smarcel "Trace CMS incremental mode pacing computation") \ 1642130803Smarcel \ 1643130803Smarcel develop(bool, CMSTraceThreadState, false, \ 164498944Sobrien "Trace the CMS thread state (enable the trace_state() method)") \ 164546283Sdfr \ 164646283Sdfr product(bool, CMSClassUnloadingEnabled, false, \ 164746283Sdfr "Whether class unloading enabled when using CMS GC") \ 164819370Spst \ 164919370Spst product(uintx, CMSClassUnloadingMaxInterval, 0, \ 165046283Sdfr "When CMS class unloading is enabled, the maximum CMS cycle count"\ 165146283Sdfr " for which classes may not be unloaded") \ 165219370Spst \ 165319370Spst product(bool, CMSCompactWhenClearAllSoftRefs, true, \ 165446283Sdfr "Compact when asked to collect CMS gen with clear_all_soft_refs") \ 165519370Spst \ 165698944Sobrien product(bool, UseCMSCompactAtFullCollection, true, \ 165798944Sobrien "Use mark sweep compact at full collections") \ 165898944Sobrien \ 165998944Sobrien product(uintx, CMSFullGCsBeforeCompaction, 0, \ 166098944Sobrien "Number of CMS full collection done before compaction if > 0") \ 166198944Sobrien \ 166219370Spst develop(intx, CMSDictionaryChoice, 0, \ 1663130803Smarcel "Use BinaryTreeDictionary as default in the CMS generation") \ 166419370Spst \ 166519370Spst product(uintx, CMSIndexedFreeListReplenish, 4, \ 166619370Spst "Replenish an indexed free list with this number of chunks") \ 166719370Spst \ 166898944Sobrien product(bool, CMSReplenishIntermediate, true, \ 166919370Spst "Replenish all intermediate free-list caches") \ 167019370Spst \ 167119370Spst product(bool, CMSSplitIndexedFreeListBlocks, true, \ 167219370Spst "When satisfying batched demand, split blocks from the " \ 167398944Sobrien "IndexedFreeList whose size is a multiple of requested size") \ 167419370Spst \ 167519370Spst product(bool, CMSLoopWarn, false, \ 167619370Spst "Warn in case of excessive CMS looping") \ 167719370Spst \ 167898944Sobrien develop(bool, CMSOverflowEarlyRestoration, false, \ 167998944Sobrien "Whether preserved marks should be restored early") \ 168098944Sobrien \ 168198944Sobrien product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ 168298944Sobrien "Size of marking stack") \ 168398944Sobrien \ 168498944Sobrien product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ 168598944Sobrien "Max size of marking stack") \ 168698944Sobrien \ 168798944Sobrien notproduct(bool, CMSMarkStackOverflowALot, false, \ 168898944Sobrien "Whether we should simulate frequent marking stack / work queue" \ 168998944Sobrien " overflow") \ 169098944Sobrien \ 169198944Sobrien notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ 169298944Sobrien "An `interval' counter that determines how frequently" \ 169398944Sobrien " we simulate overflow; a smaller number increases frequency") \ 169498944Sobrien \ 169598944Sobrien product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ 169698944Sobrien "(Temporary, subject to experimentation)" \ 169798944Sobrien "Maximum number of abortable preclean iterations, if > 0") \ 169898944Sobrien \ 169998944Sobrien product(intx, CMSMaxAbortablePrecleanTime, 5000, \ 170098944Sobrien "(Temporary, subject to experimentation)" \ 170198944Sobrien "Maximum time in abortable preclean in ms") \ 170298944Sobrien \ 170398944Sobrien product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ 170498944Sobrien "(Temporary, subject to experimentation)" \ 170598944Sobrien "Nominal minimum work per abortable preclean iteration") \ 170698944Sobrien \ 170798944Sobrien manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \ 170898944Sobrien "(Temporary, subject to experimentation)" \ 170998944Sobrien " Time that we sleep between iterations when not given" \ 171098944Sobrien " enough work per iteration") \ 171198944Sobrien \ 171298944Sobrien product(uintx, CMSRescanMultiple, 32, \ 171398944Sobrien "Size (in cards) of CMS parallel rescan task") \ 171498944Sobrien \ 171598944Sobrien product(uintx, CMSConcMarkMultiple, 32, \ 171698944Sobrien "Size (in cards) of CMS concurrent MT marking task") \ 171798944Sobrien \ 1718130803Smarcel product(uintx, CMSRevisitStackSize, 1*M, \ 1719130803Smarcel "Size of CMS KlassKlass revisit stack") \ 1720130803Smarcel \ 172198944Sobrien product(bool, CMSAbortSemantics, false, \ 172298944Sobrien "Whether abort-on-overflow semantics is implemented") \ 172398944Sobrien \ 172498944Sobrien product(bool, CMSParallelRemarkEnabled, true, \ 172598944Sobrien "Whether parallel remark enabled (only if ParNewGC)") \ 172698944Sobrien \ 172798944Sobrien product(bool, CMSParallelSurvivorRemarkEnabled, true, \ 172898944Sobrien "Whether parallel remark of survivor space" \ 172998944Sobrien " enabled (effective only if CMSParallelRemarkEnabled)") \ 173098944Sobrien \ 173198944Sobrien product(bool, CMSPLABRecordAlways, true, \ 173298944Sobrien "Whether to always record survivor space PLAB bdries" \ 173398944Sobrien " (effective only if CMSParallelSurvivorRemarkEnabled)") \ 173498944Sobrien \ 173598944Sobrien product(bool, CMSConcurrentMTEnabled, true, \ 173698944Sobrien "Whether multi-threaded concurrent work enabled (if ParNewGC)") \ 173798944Sobrien \ 173898944Sobrien product(bool, CMSPermGenPrecleaningEnabled, true, \ 173998944Sobrien "Whether concurrent precleaning enabled in perm gen" \ 174098944Sobrien " (effective only when CMSPrecleaningEnabled is true)") \ 174198944Sobrien \ 174298944Sobrien product(bool, CMSPrecleaningEnabled, true, \ 174398944Sobrien "Whether concurrent precleaning enabled") \ 174498944Sobrien \ 174598944Sobrien product(uintx, CMSPrecleanIter, 3, \ 174698944Sobrien "Maximum number of precleaning iteration passes") \ 174798944Sobrien \ 174898944Sobrien product(uintx, CMSPrecleanNumerator, 2, \ 174998944Sobrien "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 175098944Sobrien " ratio") \ 175198944Sobrien \ 175219370Spst product(uintx, CMSPrecleanDenominator, 3, \ 1753244437Semaste "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence" \ 175498944Sobrien " ratio") \ 175519370Spst \ 175619370Spst product(bool, CMSPrecleanRefLists1, true, \ 175798944Sobrien "Preclean ref lists during (initial) preclean phase") \ 175819370Spst \ 1759244437Semaste product(bool, CMSPrecleanRefLists2, false, \ 176098944Sobrien "Preclean ref lists during abortable preclean phase") \ 176119370Spst \ 176219370Spst product(bool, CMSPrecleanSurvivors1, false, \ 176346283Sdfr "Preclean survivors during (initial) preclean phase") \ 176498944Sobrien \ 176598944Sobrien product(bool, CMSPrecleanSurvivors2, true, \ 176646283Sdfr "Preclean survivors during abortable preclean phase") \ 176719370Spst \ 176846283Sdfr product(uintx, CMSPrecleanThreshold, 1000, \ 176946283Sdfr "Don't re-iterate if #dirty cards less than this") \ 177019370Spst \ 177146283Sdfr product(bool, CMSCleanOnEnter, true, \ 177246283Sdfr "Clean-on-enter optimization for reducing number of dirty cards") \ 177346283Sdfr \ 177446283Sdfr product(uintx, CMSRemarkVerifyVariant, 1, \ 177546283Sdfr "Choose variant (1,2) of verification following remark") \ 177646283Sdfr \ 177746283Sdfr product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ 177846283Sdfr "If Eden used is below this value, don't try to schedule remark") \ 177946283Sdfr \ 178098944Sobrien product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ 178198944Sobrien "The Eden occupancy % at which to try and schedule remark pause") \ 178246283Sdfr \ 178346283Sdfr product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ 178446283Sdfr "Start sampling Eden top at least before yg occupancy reaches" \ 178546283Sdfr " 1/<ratio> of the size at which we plan to schedule remark") \ 178646283Sdfr \ 178746283Sdfr product(uintx, CMSSamplingGrain, 16*K, \ 178846283Sdfr "The minimum distance between eden samples for CMS (see above)") \ 178946283Sdfr \ 179098944Sobrien product(bool, CMSScavengeBeforeRemark, false, \ 179146283Sdfr "Attempt scavenge before the CMS remark step") \ 179246283Sdfr \ 179346283Sdfr develop(bool, CMSTraceSweeper, false, \ 1794130803Smarcel "Trace some actions of the CMS sweeper") \ 179546283Sdfr \ 179646283Sdfr product(uintx, CMSWorkQueueDrainThreshold, 10, \ 179746283Sdfr "Don't drain below this size per parallel worker/thief") \ 179846283Sdfr \ 179946283Sdfr manageable(intx, CMSWaitDuration, 2000, \ 1800130803Smarcel "Time in milliseconds that CMS thread waits for young GC") \ 1801130803Smarcel \ 180246283Sdfr product(bool, CMSYield, true, \ 180346283Sdfr "Yield between steps of concurrent mark & sweep") \ 180446283Sdfr \ 1805130803Smarcel product(uintx, CMSBitMapYieldQuantum, 10*M, \ 1806130803Smarcel "Bitmap operations should process at most this many bits" \ 1807130803Smarcel "between yields") \ 1808130803Smarcel \ 1809130803Smarcel product(bool, CMSDumpAtPromotionFailure, false, \ 181046283Sdfr "Dump useful information about the state of the CMS old " \ 181146283Sdfr " generation upon a promotion failure.") \ 181298944Sobrien \ 181346283Sdfr product(bool, CMSPrintChunksInDump, false, \ 181446283Sdfr "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 181546283Sdfr " more detailed information about the free chunks.") \ 181646283Sdfr \ 181746283Sdfr product(bool, CMSPrintObjectsInDump, false, \ 181819370Spst "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 181919370Spst " more detailed information about the allocated objects.") \ 182098944Sobrien \ 182119370Spst diagnostic(bool, FLSVerifyAllHeapReferences, false, \ 182219370Spst "Verify that all refs across the FLS boundary " \ 182319370Spst " are to valid objects") \ 182419370Spst \ 182519370Spst diagnostic(bool, FLSVerifyLists, false, \ 182619370Spst "Do lots of (expensive) FreeListSpace verification") \ 182719370Spst \ 182819370Spst diagnostic(bool, FLSVerifyIndexTable, false, \ 1829130803Smarcel "Do lots of (expensive) FLS index table verification") \ 1830130803Smarcel \ 1831130803Smarcel develop(bool, FLSVerifyDictionary, false, \ 183219370Spst "Do lots of (expensive) FLS dictionary verification") \ 183319370Spst \ 183419370Spst develop(bool, VerifyBlockOffsetArray, false, \ 183519370Spst "Do (expensive!) block offset array verification") \ 183619370Spst \ 183719370Spst product(bool, BlockOffsetArrayUseUnallocatedBlock, false, \ 183819370Spst "Maintain _unallocated_block in BlockOffsetArray" \ 183919370Spst " (currently applicable only to CMS collector)") \ 1840130803Smarcel \ 1841130803Smarcel develop(bool, TraceCMSState, false, \ 184219370Spst "Trace the state of the CMS collection") \ 184319370Spst \ 184419370Spst product(intx, RefDiscoveryPolicy, 0, \ 184519370Spst "Whether reference-based(0) or referent-based(1)") \ 184619370Spst \ 184719370Spst product(bool, ParallelRefProcEnabled, false, \ 184819370Spst "Enable parallel reference processing whenever possible") \ 184919370Spst \ 1850130803Smarcel product(bool, ParallelRefProcBalancingEnabled, true, \ 185119370Spst "Enable balancing of reference processing queues") \ 1852130803Smarcel \ 1853130803Smarcel product(intx, CMSTriggerRatio, 80, \ 185419370Spst "Percentage of MinHeapFreeRatio in CMS generation that is " \ 185519370Spst "allocated before a CMS collection cycle commences") \ 185619370Spst \ 185798944Sobrien product(intx, CMSTriggerPermRatio, 80, \ 185819370Spst "Percentage of MinHeapFreeRatio in the CMS perm generation that " \ 185919370Spst "is allocated before a CMS collection cycle commences, that " \ 186019370Spst "also collects the perm generation") \ 186119370Spst \ 186219370Spst product(uintx, CMSBootstrapOccupancy, 50, \ 186319370Spst "Percentage CMS generation occupancy at which to " \ 186419370Spst "initiate CMS collection for bootstrapping collection stats") \ 186519370Spst \ 186619370Spst product(intx, CMSInitiatingOccupancyFraction, -1, \ 186719370Spst "Percentage CMS generation occupancy to start a CMS collection " \ 186819370Spst "cycle. A negative value means that CMSTriggerRatio is used") \ 186919370Spst \ 187019370Spst product(uintx, InitiatingHeapOccupancyPercent, 45, \ 187119370Spst "Percentage of the (entire) heap occupancy to start a " \ 187298944Sobrien "concurrent GC cycle. It us used by GCs that trigger a " \ 187319370Spst "concurrent GC cycle based on the occupancy of the entire heap, " \ 187419370Spst "not just one of the generations (e.g., G1). A value of 0 " \ 187519370Spst "denotes 'do constant GC cycles'.") \ 187619370Spst \ 187798944Sobrien product(intx, CMSInitiatingPermOccupancyFraction, -1, \ 187898944Sobrien "Percentage CMS perm generation occupancy to start a " \ 187919370Spst "CMScollection cycle. A negative value means that " \ 188019370Spst "CMSTriggerPermRatio is used") \ 188119370Spst \ 188219370Spst product(bool, UseCMSInitiatingOccupancyOnly, false, \ 188319370Spst "Only use occupancy as a crierion for starting a CMS collection") \ 188419370Spst \ 188598944Sobrien product(intx, CMSIsTooFullPercentage, 98, \ 188698944Sobrien "An absolute ceiling above which CMS will always consider the " \ 1887130803Smarcel "perm gen ripe for collection") \ 1888130803Smarcel \ 1889130803Smarcel develop(bool, CMSTestInFreeList, false, \ 1890130803Smarcel "Check if the coalesced range is already in the " \ 1891130803Smarcel "free lists as claimed") \ 1892130803Smarcel \ 1893130803Smarcel notproduct(bool, CMSVerifyReturnedBytes, false, \ 1894130803Smarcel "Check that all the garbage collected was returned to the " \ 1895130803Smarcel "free lists.") \ 1896130803Smarcel \ 1897130803Smarcel notproduct(bool, ScavengeALot, false, \ 1898130803Smarcel "Force scavenge at every Nth exit from the runtime system " \ 1899130803Smarcel "(N=ScavengeALotInterval)") \ 1900130803Smarcel \ 1901130803Smarcel develop(bool, FullGCALot, false, \ 190219370Spst "Force full gc at every Nth exit from the runtime system " \ 190398944Sobrien "(N=FullGCALotInterval)") \ 190419370Spst \ 190519370Spst notproduct(bool, GCALotAtAllSafepoints, false, \ 190619370Spst "Enforce ScavengeALot/GCALot at all potential safepoints") \ 190798944Sobrien \ 190819370Spst product(bool, PrintPromotionFailure, false, \ 190919370Spst "Print additional diagnostic information following " \ 191019370Spst " promotion failure") \ 191119370Spst \ 1912130803Smarcel notproduct(bool, PromotionFailureALot, false, \ 1913130803Smarcel "Use promotion failure handling on every youngest generation " \ 191419370Spst "collection") \ 191519370Spst \ 1916130803Smarcel develop(uintx, PromotionFailureALotCount, 1000, \ 191719370Spst "Number of promotion failures occurring at ParGCAllocBuffer" \ 191898944Sobrien "refill attempts (ParNew) or promotion attempts " \ 191919370Spst "(other young collectors) ") \ 192019370Spst \ 192119370Spst develop(uintx, PromotionFailureALotInterval, 5, \ 192219370Spst "Total collections between promotion failures alot") \ 192319370Spst \ 192419370Spst experimental(intx, WorkStealingSleepMillis, 1, \ 192519370Spst "Sleep time when sleep is used for yields") \ 192619370Spst \ 192798944Sobrien experimental(uintx, WorkStealingYieldsBeforeSleep, 1000, \ 192819370Spst "Number of yields before a sleep is done during workstealing") \ 192919370Spst \ 193019370Spst experimental(uintx, WorkStealingHardSpins, 4096, \ 193119370Spst "Number of iterations in a spin loop between checks on " \ 193219370Spst "time out of hard spin") \ 193319370Spst \ 193419370Spst experimental(uintx, WorkStealingSpinToYieldRatio, 10, \ 193519370Spst "Ratio of hard spins to calls to yield") \ 193619370Spst \ 193719370Spst product(uintx, PreserveMarkStackSize, 1024, \ 193819370Spst "Size for stack used in promotion failure handling") \ 193919370Spst \ 194019370Spst develop(uintx, ObjArrayMarkingStride, 512, \ 194119370Spst "Number of ObjArray elements to push onto the marking stack" \ 194219370Spst "before pushing a continuation entry") \ 194319370Spst \ 194419370Spst product_pd(bool, UseTLAB, "Use thread-local object allocation") \ 194519370Spst \ 194619370Spst product_pd(bool, ResizeTLAB, \ 194719370Spst "Dynamically resize tlab size for threads") \ 194898944Sobrien \ 194919370Spst product(bool, ZeroTLAB, false, \ 195019370Spst "Zero out the newly created TLAB") \ 195119370Spst \ 195219370Spst product(bool, FastTLABRefill, true, \ 195319370Spst "Use fast TLAB refill code") \ 195419370Spst \ 195519370Spst product(bool, PrintTLAB, false, \ 195619370Spst "Print various TLAB related information") \ 195719370Spst \ 1958130803Smarcel product(bool, TLABStats, true, \ 195919370Spst "Print various TLAB related information") \ 196019370Spst \ 196119370Spst product(bool, PrintRevisitStats, false, \ 196219370Spst "Print revisit (klass and MDO) stack related information") \ 196319370Spst \ 196419370Spst EMBEDDED_ONLY(product(bool, LowMemoryProtection, true, \ 196598944Sobrien "Enable LowMemoryProtection")) \ 196619370Spst \ 196719370Spst product_pd(bool, NeverActAsServerClassMachine, \ 196819370Spst "Never act like a server-class machine") \ 196919370Spst \ 197019370Spst product(bool, AlwaysActAsServerClassMachine, false, \ 197119370Spst "Always act like a server-class machine") \ 197219370Spst \ 197319370Spst product_pd(uint64_t, MaxRAM, \ 197419370Spst "Real memory size (in bytes) used to set maximum heap size") \ 197519370Spst \ 197698944Sobrien product(uintx, ErgoHeapSizeLimit, 0, \ 197798944Sobrien "Maximum ergonomically set heap size (in bytes); zero means use " \ 197898944Sobrien "MaxRAM / MaxRAMFraction") \ 197998944Sobrien \ 198019370Spst product(uintx, MaxRAMFraction, 4, \ 198119370Spst "Maximum fraction (1/n) of real memory used for maximum heap " \ 198219370Spst "size") \ 198319370Spst \ 198419370Spst product(uintx, DefaultMaxRAMFraction, 4, \ 198519370Spst "Maximum fraction (1/n) of real memory used for maximum heap " \ 198619370Spst "size; deprecated: to be renamed to MaxRAMFraction") \ 198719370Spst \ 198819370Spst product(uintx, MinRAMFraction, 2, \ 198919370Spst "Minimum fraction (1/n) of real memory used for maxmimum heap " \ 199019370Spst "size on systems with small physical memory size") \ 199119370Spst \ 199219370Spst product(uintx, InitialRAMFraction, 64, \ 199319370Spst "Fraction (1/n) of real memory used for initial heap size") \ 199419370Spst \ 199519370Spst product(bool, UseAutoGCSelectPolicy, false, \ 199619370Spst "Use automatic collection selection policy") \ 199719370Spst \ 199819370Spst product(uintx, AutoGCSelectPauseMillis, 5000, \ 199919370Spst "Automatic GC selection pause threshhold in ms") \ 200019370Spst \ 200119370Spst product(bool, UseAdaptiveSizePolicy, true, \ 200219370Spst "Use adaptive generation sizing policies") \ 200319370Spst \ 200419370Spst product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ 200519370Spst "Use adaptive survivor sizing policies") \ 200619370Spst \ 200719370Spst product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ 200819370Spst "Use adaptive young-old sizing policies at minor collections") \ 200919370Spst \ 201019370Spst product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ 201119370Spst "Use adaptive young-old sizing policies at major collections") \ 201219370Spst \ 201319370Spst product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ 201419370Spst "Use statistics from System.GC for adaptive size policy") \ 201519370Spst \ 201619370Spst product(bool, UseAdaptiveGCBoundary, false, \ 201719370Spst "Allow young-old boundary to move") \ 201819370Spst \ 201919370Spst develop(bool, TraceAdaptiveGCBoundary, false, \ 202019370Spst "Trace young-old boundary moves") \ 202119370Spst \ 202219370Spst develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ 202319370Spst "Resize the virtual spaces of the young or old generations") \ 202419370Spst \ 202519370Spst product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ 202698944Sobrien "Policy for changeing generation size for throughput goals") \ 202798944Sobrien \ 202819370Spst product(uintx, AdaptiveSizePausePolicy, 0, \ 202919370Spst "Policy for changing generation size for pause goals") \ 203019370Spst \ 203119370Spst develop(bool, PSAdjustTenuredGenForMinorPause, false, \ 203219370Spst "Adjust tenured generation to achive a minor pause goal") \ 203319370Spst \ 203419370Spst develop(bool, PSAdjustYoungGenForMajorPause, false, \ 203519370Spst "Adjust young generation to achive a major pause goal") \ 203619370Spst \ 203719370Spst product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ 203819370Spst "Number of steps where heuristics is used before data is used") \ 203919370Spst \ 204019370Spst develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ 204119370Spst "Number of collections before the adaptive sizing is started") \ 204219370Spst \ 204319370Spst product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ 204419370Spst "Collecton interval for printing information; zero => never") \ 204519370Spst \ 204619370Spst product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ 204719370Spst "Use adaptive minimum footprint as a goal") \ 204819370Spst \ 204919370Spst product(uintx, AdaptiveSizePolicyWeight, 10, \ 205019370Spst "Weight given to exponential resizing, between 0 and 100") \ 205119370Spst \ 205219370Spst product(uintx, AdaptiveTimeWeight, 25, \ 205319370Spst "Weight given to time in adaptive policy, between 0 and 100") \ 205419370Spst \ 205519370Spst product(uintx, PausePadding, 1, \ 205619370Spst "How much buffer to keep for pause time") \ 205719370Spst \ 205819370Spst product(uintx, PromotedPadding, 3, \ 205919370Spst "How much buffer to keep for promotion failure") \ 206019370Spst \ 206119370Spst product(uintx, SurvivorPadding, 3, \ 206219370Spst "How much buffer to keep for survivor overflow") \ 206319370Spst \ 206419370Spst product(uintx, AdaptivePermSizeWeight, 20, \ 206519370Spst "Weight for perm gen exponential resizing, between 0 and 100") \ 206619370Spst \ 206719370Spst product(uintx, PermGenPadding, 3, \ 206846283Sdfr "How much buffer to keep for perm gen sizing") \ 2069130803Smarcel \ 2070130803Smarcel product(uintx, ThresholdTolerance, 10, \ 207119370Spst "Allowed collection cost difference between generations") \ 207219370Spst \ 207319370Spst product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ 207446283Sdfr "If collection costs are within margin, reduce both by full " \ 2075130803Smarcel "delta") \ 2076130803Smarcel \ 207719370Spst product(uintx, YoungGenerationSizeIncrement, 20, \ 207819370Spst "Adaptive size percentage change in young generation") \ 207919370Spst \ 208019370Spst product(uintx, YoungGenerationSizeSupplement, 80, \ 208119370Spst "Supplement to YoungedGenerationSizeIncrement used at startup") \ 208219370Spst \ 208319370Spst product(uintx, YoungGenerationSizeSupplementDecay, 8, \ 208419370Spst "Decay factor to YoungedGenerationSizeSupplement") \ 208519370Spst \ 208619370Spst product(uintx, TenuredGenerationSizeIncrement, 20, \ 208719370Spst "Adaptive size percentage change in tenured generation") \ 208819370Spst \ 208919370Spst product(uintx, TenuredGenerationSizeSupplement, 80, \ 209019370Spst "Supplement to TenuredGenerationSizeIncrement used at startup") \ 209119370Spst \ 209219370Spst product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ 209319370Spst "Decay factor to TenuredGenerationSizeIncrement") \ 209419370Spst \ 209519370Spst product(uintx, MaxGCPauseMillis, max_uintx, \ 209619370Spst "Adaptive size policy maximum GC pause time goal in msec, " \ 209719370Spst "or (G1 Only) the max. GC time per MMU time slice") \ 209819370Spst \ 209919370Spst product(uintx, GCPauseIntervalMillis, 0, \ 210019370Spst "Time slice for MMU specification") \ 210119370Spst \ 210219370Spst product(uintx, MaxGCMinorPauseMillis, max_uintx, \ 210319370Spst "Adaptive size policy maximum GC minor pause time goal in msec") \ 210419370Spst \ 210519370Spst product(uintx, GCTimeRatio, 99, \ 210619370Spst "Adaptive size policy application time to GC time ratio") \ 210719370Spst \ 210819370Spst product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ 210919370Spst "Adaptive size scale down factor for shrinking") \ 211019370Spst \ 2111130803Smarcel product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ 2112130803Smarcel "Adaptive size decays the major cost for long major intervals") \ 2113130803Smarcel \ 2114130803Smarcel product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ 2115130803Smarcel "Time scale over which major costs decay") \ 2116130803Smarcel \ 2117130803Smarcel product(uintx, MinSurvivorRatio, 3, \ 2118130803Smarcel "Minimum ratio of young generation/survivor space size") \ 2119130803Smarcel \ 2120130803Smarcel product(uintx, InitialSurvivorRatio, 8, \ 2121130803Smarcel "Initial ratio of eden/survivor space size") \ 2122130803Smarcel \ 2123130803Smarcel product(uintx, BaseFootPrintEstimate, 256*M, \ 2124130803Smarcel "Estimate of footprint other than Java Heap") \ 2125130803Smarcel \ 2126130803Smarcel product(bool, UseGCOverheadLimit, true, \ 2127130803Smarcel "Use policy to limit of proportion of time spent in GC " \ 2128130803Smarcel "before an OutOfMemory error is thrown") \ 2129130803Smarcel \ 2130130803Smarcel product(uintx, GCTimeLimit, 98, \ 2131130803Smarcel "Limit of proportion of time spent in GC before an OutOfMemory" \ 2132130803Smarcel "error is thrown (used with GCHeapFreeLimit)") \ 2133130803Smarcel \ 2134130803Smarcel product(uintx, GCHeapFreeLimit, 2, \ 2135130803Smarcel "Minimum percentage of free space after a full GC before an " \ 213619370Spst "OutOfMemoryError is thrown (used with GCTimeLimit)") \ 213719370Spst \ 213819370Spst develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ 213998944Sobrien "Number of consecutive collections before gc time limit fires") \ 214019370Spst \ 214119370Spst product(bool, PrintAdaptiveSizePolicy, false, \ 214219370Spst "Print information about AdaptiveSizePolicy") \ 214398944Sobrien \ 214419370Spst product(intx, PrefetchCopyIntervalInBytes, -1, \ 214519370Spst "How far ahead to prefetch destination area (<= 0 means off)") \ 214619370Spst \ 214719370Spst product(intx, PrefetchScanIntervalInBytes, -1, \ 214819370Spst "How far ahead to prefetch scan area (<= 0 means off)") \ 214919370Spst \ 215019370Spst product(intx, PrefetchFieldsAhead, -1, \ 215119370Spst "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ 215298944Sobrien \ 215398944Sobrien develop(bool, UsePrefetchQueue, true, \ 215419370Spst "Use the prefetch queue during PS promotion") \ 215519370Spst \ 215619370Spst diagnostic(bool, VerifyBeforeExit, trueInDebug, \ 215719370Spst "Verify system before exiting") \ 215819370Spst \ 215919370Spst diagnostic(bool, VerifyBeforeGC, false, \ 216019370Spst "Verify memory system before GC") \ 216119370Spst \ 216219370Spst diagnostic(bool, VerifyAfterGC, false, \ 216319370Spst "Verify memory system after GC") \ 216419370Spst \ 216519370Spst diagnostic(bool, VerifyDuringGC, false, \ 216698944Sobrien "Verify memory system during GC (between phases)") \ 216798944Sobrien \ 216819370Spst diagnostic(bool, GCParallelVerificationEnabled, true, \ 216919370Spst "Enable parallel memory system verification") \ 217019370Spst \ 217119370Spst diagnostic(bool, DeferInitialCardMark, false, \ 2172130803Smarcel "When +ReduceInitialCardMarks, explicitly defer any that " \ 217398944Sobrien "may arise from new_pre_store_barrier") \ 217419370Spst \ 217519370Spst diagnostic(bool, VerifyRememberedSets, false, \ 217619370Spst "Verify GC remembered sets") \ 217719370Spst \ 217819370Spst diagnostic(bool, VerifyObjectStartArray, true, \ 217919370Spst "Verify GC object start array if verify before/after") \ 218098944Sobrien \ 218198944Sobrien product(bool, DisableExplicitGC, false, \ 218219370Spst "Tells whether calling System.gc() does a full GC") \ 218319370Spst \ 218419370Spst notproduct(bool, CheckMemoryInitialization, false, \ 218519370Spst "Checks memory initialization") \ 218619370Spst \ 218719370Spst product(bool, CollectGen0First, false, \ 218819370Spst "Collect youngest generation before each full GC") \ 218919370Spst \ 219019370Spst diagnostic(bool, BindCMSThreadToCPU, false, \ 219119370Spst "Bind CMS Thread to CPU if possible") \ 219219370Spst \ 219319370Spst diagnostic(uintx, CPUForCMSThread, 0, \ 219419370Spst "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ 219598944Sobrien \ 219619370Spst product(bool, BindGCTaskThreadsToCPUs, false, \ 219719370Spst "Bind GCTaskThreads to CPUs if possible") \ 219898944Sobrien \ 219919370Spst product(bool, UseGCTaskAffinity, false, \ 220098944Sobrien "Use worker affinity when asking for GCTasks") \ 220119370Spst \ 220219370Spst product(uintx, ProcessDistributionStride, 4, \ 220319370Spst "Stride through processors when distributing processes") \ 220419370Spst \ 220519370Spst product(uintx, CMSCoordinatorYieldSleepCount, 10, \ 220619370Spst "number of times the coordinator GC thread will sleep while " \ 220719370Spst "yielding before giving up and resuming GC") \ 220819370Spst \ 220919370Spst product(uintx, CMSYieldSleepCount, 0, \ 221019370Spst "number of times a GC thread (minus the coordinator) " \ 221119370Spst "will sleep while yielding before giving up and resuming GC") \ 2212130803Smarcel \ 221319370Spst /* gc tracing */ \ 221498944Sobrien manageable(bool, PrintGC, false, \ 221519370Spst "Print message at garbage collect") \ 221619370Spst \ 221719370Spst manageable(bool, PrintGCDetails, false, \ 221819370Spst "Print more details at garbage collect") \ 221919370Spst \ 222019370Spst manageable(bool, PrintGCDateStamps, false, \ 222119370Spst "Print date stamps at garbage collect") \ 222219370Spst \ 222319370Spst manageable(bool, PrintGCTimeStamps, false, \ 222419370Spst "Print timestamps at garbage collect") \ 222519370Spst \ 222619370Spst product(bool, PrintGCTaskTimeStamps, false, \ 222719370Spst "Print timestamps for individual gc worker thread tasks") \ 222819370Spst \ 222919370Spst develop(intx, ConcGCYieldTimeout, 0, \ 223019370Spst "If non-zero, assert that GC threads yield within this # of ms.") \ 223119370Spst \ 223219370Spst notproduct(bool, TraceMarkSweep, false, \ 223319370Spst "Trace mark sweep") \ 223498944Sobrien \ 223598944Sobrien product(bool, PrintReferenceGC, false, \ 223619370Spst "Print times spent handling reference objects during GC " \ 223719370Spst " (enabled only when PrintGCDetails)") \ 223819370Spst \ 223919370Spst develop(bool, TraceReferenceGC, false, \ 224098944Sobrien "Trace handling of soft/weak/final/phantom references") \ 224119370Spst \ 224298944Sobrien develop(bool, TraceFinalizerRegistration, false, \ 224319370Spst "Trace registration of final references") \ 224419370Spst \ 224519370Spst notproduct(bool, TraceScavenge, false, \ 224619370Spst "Trace scavenge") \ 224719370Spst \ 224898944Sobrien product_rw(bool, TraceClassLoading, false, \ 224998944Sobrien "Trace all classes loaded") \ 225019370Spst \ 225119370Spst product(bool, TraceClassLoadingPreorder, false, \ 225219370Spst "Trace all classes loaded in order referenced (not loaded)") \ 225319370Spst \ 225419370Spst product_rw(bool, TraceClassUnloading, false, \ 225519370Spst "Trace unloading of classes") \ 225619370Spst \ 225719370Spst product_rw(bool, TraceLoaderConstraints, false, \ 225819370Spst "Trace loader constraints") \ 225998944Sobrien \ 226019370Spst product(bool, TraceGen0Time, false, \ 226119370Spst "Trace accumulated time for Gen 0 collection") \ 226298944Sobrien \ 226319370Spst product(bool, TraceGen1Time, false, \ 226419370Spst "Trace accumulated time for Gen 1 collection") \ 226519370Spst \ 226619370Spst product(bool, PrintTenuringDistribution, false, \ 226719370Spst "Print tenuring age information") \ 226819370Spst \ 226998944Sobrien product_rw(bool, PrintHeapAtGC, false, \ 227019370Spst "Print heap layout before and after each GC") \ 227119370Spst \ 227298944Sobrien product_rw(bool, PrintHeapAtGCExtended, false, \ 227319370Spst "Prints extended information about the layout of the heap " \ 227498944Sobrien "when -XX:+PrintHeapAtGC is set") \ 227598944Sobrien \ 227698944Sobrien product(bool, PrintHeapAtSIGBREAK, true, \ 227719370Spst "Print heap layout in response to SIGBREAK") \ 227898944Sobrien \ 227919370Spst manageable(bool, PrintClassHistogramBeforeFullGC, false, \ 228098944Sobrien "Print a class histogram before any major stop-world GC") \ 228119370Spst \ 228219370Spst manageable(bool, PrintClassHistogramAfterFullGC, false, \ 228319370Spst "Print a class histogram after any major stop-world GC") \ 228498944Sobrien \ 228598944Sobrien manageable(bool, PrintClassHistogram, false, \ 228698944Sobrien "Print a histogram of class instances") \ 228798944Sobrien \ 228898944Sobrien develop(bool, TraceWorkGang, false, \ 228998944Sobrien "Trace activities of work gangs") \ 229019370Spst \ 229198944Sobrien product(bool, TraceParallelOldGCTasks, false, \ 229219370Spst "Trace multithreaded GC activity") \ 229319370Spst \ 229419370Spst develop(bool, TraceBlockOffsetTable, false, \ 229598944Sobrien "Print BlockOffsetTable maps") \ 229698944Sobrien \ 229798944Sobrien develop(bool, TraceCardTableModRefBS, false, \ 229898944Sobrien "Print CardTableModRefBS maps") \ 229998944Sobrien \ 230098944Sobrien develop(bool, TraceGCTaskManager, false, \ 230198944Sobrien "Trace actions of the GC task manager") \ 230298944Sobrien \ 230398944Sobrien develop(bool, TraceGCTaskQueue, false, \ 230498944Sobrien "Trace actions of the GC task queues") \ 230598944Sobrien \ 230698944Sobrien develop(bool, TraceGCTaskThread, false, \ 230798944Sobrien "Trace actions of the GC task threads") \ 230898944Sobrien \ 230998944Sobrien product(bool, PrintParallelOldGCPhaseTimes, false, \ 231098944Sobrien "Print the time taken by each parallel old gc phase." \ 231198944Sobrien "PrintGCDetails must also be enabled.") \ 231298944Sobrien \ 231398944Sobrien develop(bool, TraceParallelOldGCMarkingPhase, false, \ 231498944Sobrien "Trace parallel old gc marking phase") \ 231598944Sobrien \ 231698944Sobrien develop(bool, TraceParallelOldGCSummaryPhase, false, \ 231798944Sobrien "Trace parallel old gc summary phase") \ 231898944Sobrien \ 231998944Sobrien develop(bool, TraceParallelOldGCCompactionPhase, false, \ 2320130803Smarcel "Trace parallel old gc compaction phase") \ 2321130803Smarcel \ 232298944Sobrien develop(bool, TraceParallelOldGCDensePrefix, false, \ 232319370Spst "Trace parallel old gc dense prefix computation") \ 232498944Sobrien \ 232519370Spst develop(bool, IgnoreLibthreadGPFault, false, \ 232619370Spst "Suppress workaround for libthread GP fault") \ 232798944Sobrien \ 232819370Spst product(bool, PrintJNIGCStalls, false, \ 232919370Spst "Print diagnostic message when GC is stalled" \ 233098944Sobrien "by JNI critical section") \ 233119370Spst \ 233219370Spst /* JVMTI heap profiling */ \ 233319370Spst \ 233419370Spst diagnostic(bool, TraceJVMTIObjectTagging, false, \ 233519370Spst "Trace JVMTI object tagging calls") \ 233619370Spst \ 233798944Sobrien diagnostic(bool, VerifyBeforeIteration, false, \ 233819370Spst "Verify memory system before JVMTI iteration") \ 233919370Spst \ 234019370Spst /* compiler interface */ \ 234198944Sobrien \ 234219370Spst develop(bool, CIPrintCompilerName, false, \ 234319370Spst "when CIPrint is active, print the name of the active compiler") \ 234419370Spst \ 234519370Spst develop(bool, CIPrintCompileQueue, false, \ 234698944Sobrien "display the contents of the compile queue whenever a " \ 234719370Spst "compilation is enqueued") \ 234819370Spst \ 234919370Spst develop(bool, CIPrintRequests, false, \ 235019370Spst "display every request for compilation") \ 235119370Spst \ 235219370Spst product(bool, CITime, false, \ 235319370Spst "collect timing information for compilation") \ 235419370Spst \ 235519370Spst develop(bool, CITimeEach, false, \ 235619370Spst "display timing information after each successful compilation") \ 235719370Spst \ 235819370Spst develop(bool, CICountOSR, true, \ 235919370Spst "use a separate counter when assigning ids to osr compilations") \ 236098944Sobrien \ 236119370Spst develop(bool, CICompileNatives, true, \ 236219370Spst "compile native methods if supported by the compiler") \ 236319370Spst \ 236419370Spst develop_pd(bool, CICompileOSR, \ 236519370Spst "compile on stack replacement methods if supported by the " \ 236619370Spst "compiler") \ 236719370Spst \ 236819370Spst develop(bool, CIPrintMethodCodes, false, \ 236919370Spst "print method bytecodes of the compiled code") \ 237019370Spst \ 237119370Spst develop(bool, CIPrintTypeFlow, false, \ 237219370Spst "print the results of ciTypeFlow analysis") \ 237319370Spst \ 237498944Sobrien develop(bool, CITraceTypeFlow, false, \ 237598944Sobrien "detailed per-bytecode tracing of ciTypeFlow analysis") \ 2376130803Smarcel \ 2377130803Smarcel develop(intx, CICloneLoopTestLimit, 100, \ 237898944Sobrien "size limit for blocks heuristically cloned in ciTypeFlow") \ 2379130803Smarcel \ 2380130803Smarcel /* temp diagnostics */ \ 2381130803Smarcel \ 2382130803Smarcel diagnostic(bool, TraceRedundantCompiles, false, \ 2383130803Smarcel "Have compile broker print when a request already in the queue is"\ 2384130803Smarcel " requested again") \ 2385130803Smarcel \ 2386130803Smarcel diagnostic(bool, InitialCompileFast, false, \ 2387130803Smarcel "Initial compile at CompLevel_fast_compile") \ 2388130803Smarcel \ 2389130803Smarcel diagnostic(bool, InitialCompileReallyFast, false, \ 2390130803Smarcel "Initial compile at CompLevel_really_fast_compile (no profile)") \ 2391130803Smarcel \ 2392130803Smarcel diagnostic(bool, FullProfileOnReInterpret, true, \ 2393130803Smarcel "On re-interpret unc-trap compile next at CompLevel_fast_compile")\ 2394130803Smarcel \ 2395130803Smarcel /* compiler */ \ 2396130803Smarcel \ 2397130803Smarcel product(intx, CICompilerCount, CI_COMPILER_COUNT, \ 2398130803Smarcel "Number of compiler threads to run") \ 2399130803Smarcel \ 2400130803Smarcel product(intx, CompilationPolicyChoice, 0, \ 240198944Sobrien "which compilation policy (0/1)") \ 240298944Sobrien \ 2403130803Smarcel develop(bool, UseStackBanging, true, \ 2404130803Smarcel "use stack banging for stack overflow checks (required for " \ 240598944Sobrien "proper StackOverflow handling; disable only to measure cost " \ 240698944Sobrien "of stackbanging)") \ 240798944Sobrien \ 240898944Sobrien develop(bool, Use24BitFPMode, true, \ 240998944Sobrien "Set 24-bit FPU mode on a per-compile basis ") \ 241098944Sobrien \ 241198944Sobrien develop(bool, Use24BitFP, true, \ 241219370Spst "use FP instructions that produce 24-bit precise results") \ 241398944Sobrien \ 241498944Sobrien develop(bool, UseStrictFP, true, \ 241519370Spst "use strict fp if modifier strictfp is set") \ 241619370Spst \ 241719370Spst develop(bool, GenerateSynchronizationCode, true, \ 241819370Spst "generate locking/unlocking code for synchronized methods and " \ 241919370Spst "monitors") \ 242098944Sobrien \ 242119370Spst develop(bool, GenerateCompilerNullChecks, true, \ 2422130803Smarcel "Generate explicit null checks for loads/stores/calls") \ 242398944Sobrien \ 2424130803Smarcel develop(bool, GenerateRangeChecks, true, \ 2425130803Smarcel "Generate range checks for array accesses") \ 2426130803Smarcel \ 2427130803Smarcel develop_pd(bool, ImplicitNullChecks, \ 2428130803Smarcel "generate code for implicit null checks") \ 242919370Spst \ 2430130803Smarcel product(bool, PrintSafepointStatistics, false, \ 243119370Spst "print statistics about safepoint synchronization") \ 2432130803Smarcel \ 2433130803Smarcel product(intx, PrintSafepointStatisticsCount, 300, \ 2434130803Smarcel "total number of safepoint statistics collected " \ 2435130803Smarcel "before printing them out") \ 2436130803Smarcel \ 2437130803Smarcel product(intx, PrintSafepointStatisticsTimeout, -1, \ 243898944Sobrien "print safepoint statistics only when safepoint takes" \ 2439130803Smarcel " more than PrintSafepointSatisticsTimeout in millis") \ 2440130803Smarcel \ 2441130803Smarcel product(bool, TraceSafepointCleanupTime, false, \ 2442130803Smarcel "print the break down of clean up tasks performed during" \ 2443130803Smarcel " safepoint") \ 2444130803Smarcel \ 2445130803Smarcel develop(bool, InlineAccessors, true, \ 2446130803Smarcel "inline accessor methods (get/set)") \ 2447130803Smarcel \ 2448130803Smarcel product(bool, Inline, true, \ 2449130803Smarcel "enable inlining") \ 2450130803Smarcel \ 2451130803Smarcel product(bool, ClipInlining, true, \ 2452130803Smarcel "clip inlining if aggregate method exceeds DesiredMethodLimit") \ 2453130803Smarcel \ 2454130803Smarcel develop(bool, UseCHA, true, \ 2455130803Smarcel "enable CHA") \ 2456130803Smarcel \ 2457130803Smarcel product(bool, UseTypeProfile, true, \ 2458130803Smarcel "Check interpreter profile for historically monomorphic calls") \ 2459130803Smarcel \ 2460130803Smarcel product(intx, TypeProfileMajorReceiverPercent, 90, \ 2461130803Smarcel "% of major receiver type to all profiled receivers") \ 2462130803Smarcel \ 2463130803Smarcel notproduct(bool, TimeCompiler, false, \ 2464130803Smarcel "time the compiler") \ 2465130803Smarcel \ 2466130803Smarcel notproduct(bool, TimeCompiler2, false, \ 2467130803Smarcel "detailed time the compiler (requires +TimeCompiler)") \ 2468130803Smarcel \ 2469130803Smarcel diagnostic(bool, PrintInlining, false, \ 2470130803Smarcel "prints inlining optimizations") \ 2471130803Smarcel \ 2472130803Smarcel diagnostic(bool, PrintIntrinsics, false, \ 2473130803Smarcel "prints attempted and successful inlining of intrinsics") \ 2474130803Smarcel \ 2475130803Smarcel product(bool, UseCountLeadingZerosInstruction, false, \ 2476130803Smarcel "Use count leading zeros instruction") \ 2477130803Smarcel \ 2478130803Smarcel product(bool, UsePopCountInstruction, false, \ 2479130803Smarcel "Use population count instruction") \ 2480130803Smarcel \ 2481130803Smarcel diagnostic(ccstrlist, DisableIntrinsic, "", \ 2482130803Smarcel "do not expand intrinsics whose (internal) names appear here") \ 2483130803Smarcel \ 2484130803Smarcel develop(bool, StressReflectiveCode, false, \ 2485130803Smarcel "Use inexact types at allocations, etc., to test reflection") \ 2486130803Smarcel \ 2487130803Smarcel develop(bool, EagerInitialization, false, \ 2488130803Smarcel "Eagerly initialize classes if possible") \ 2489130803Smarcel \ 2490130803Smarcel develop(bool, TraceMethodReplacement, false, \ 2491130803Smarcel "Print when methods are replaced do to recompilation") \ 2492130803Smarcel \ 2493130803Smarcel develop(bool, PrintMethodFlushing, false, \ 2494130803Smarcel "print the nmethods being flushed") \ 2495130803Smarcel \ 2496130803Smarcel notproduct(bool, LogMultipleMutexLocking, false, \ 2497130803Smarcel "log locking and unlocking of mutexes (only if multiple locks " \ 2498130803Smarcel "are held)") \ 2499130803Smarcel \ 2500130803Smarcel develop(bool, UseRelocIndex, false, \ 2501130803Smarcel "use an index to speed random access to relocations") \ 2502130803Smarcel \ 2503130803Smarcel develop(bool, StressCodeBuffers, false, \ 2504130803Smarcel "Exercise code buffer expansion and other rare state changes") \ 2505130803Smarcel \ 2506130803Smarcel diagnostic(bool, DebugNonSafepoints, trueInDebug, \ 2507130803Smarcel "Generate extra debugging info for non-safepoints in nmethods") \ 2508130803Smarcel \ 2509130803Smarcel diagnostic(bool, DebugInlinedCalls, true, \ 2510130803Smarcel "If false, restricts profiled locations to the root method only") \ 2511130803Smarcel \ 2512130803Smarcel product(bool, PrintVMOptions, trueInDebug, \ 2513130803Smarcel "Print flags that appeared on the command line") \ 2514130803Smarcel \ 2515130803Smarcel product(bool, IgnoreUnrecognizedVMOptions, false, \ 2516130803Smarcel "Ignore unrecognized VM options") \ 2517130803Smarcel \ 2518130803Smarcel product(bool, PrintCommandLineFlags, false, \ 2519130803Smarcel "Print flags specified on command line or set by ergonomics") \ 2520130803Smarcel \ 2521130803Smarcel product(bool, PrintFlagsInitial, false, \ 2522130803Smarcel "Print all VM flags before argument processing and exit VM") \ 2523130803Smarcel \ 2524130803Smarcel product(bool, PrintFlagsFinal, false, \ 2525130803Smarcel "Print all VM flags after argument and ergonomic processing") \ 2526130803Smarcel \ 2527130803Smarcel notproduct(bool, PrintFlagsWithComments, false, \ 2528130803Smarcel "Print all VM flags with default values and descriptions and exit")\ 2529130803Smarcel \ 2530130803Smarcel diagnostic(bool, SerializeVMOutput, true, \ 2531130803Smarcel "Use a mutex to serialize output to tty and hotspot.log") \ 2532130803Smarcel \ 2533130803Smarcel diagnostic(bool, DisplayVMOutput, true, \ 2534130803Smarcel "Display all VM output on the tty, independently of LogVMOutput") \ 2535130803Smarcel \ 2536130803Smarcel diagnostic(bool, LogVMOutput, trueInDebug, \ 2537130803Smarcel "Save VM output to hotspot.log, or to LogFile") \ 2538130803Smarcel \ 2539130803Smarcel diagnostic(ccstr, LogFile, NULL, \ 2540130803Smarcel "If LogVMOutput is on, save VM output to this file [hotspot.log]") \ 2541130803Smarcel \ 2542130803Smarcel product(ccstr, ErrorFile, NULL, \ 2543130803Smarcel "If an error occurs, save the error data to this file " \ 2544130803Smarcel "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ 2545130803Smarcel \ 2546130803Smarcel product(bool, DisplayVMOutputToStderr, false, \ 2547130803Smarcel "If DisplayVMOutput is true, display all VM output to stderr") \ 2548130803Smarcel \ 2549130803Smarcel product(bool, DisplayVMOutputToStdout, false, \ 2550130803Smarcel "If DisplayVMOutput is true, display all VM output to stdout") \ 2551130803Smarcel \ 2552130803Smarcel product(bool, UseHeavyMonitors, false, \ 2553130803Smarcel "use heavyweight instead of lightweight Java monitors") \ 2554130803Smarcel \ 2555130803Smarcel notproduct(bool, PrintSymbolTableSizeHistogram, false, \ 2556130803Smarcel "print histogram of the symbol table") \ 2557130803Smarcel \ 2558130803Smarcel notproduct(bool, ExitVMOnVerifyError, false, \ 2559130803Smarcel "standard exit from VM if bytecode verify error " \ 2560130803Smarcel "(only in debug mode)") \ 2561130803Smarcel \ 2562130803Smarcel notproduct(ccstr, AbortVMOnException, NULL, \ 2563130803Smarcel "Call fatal if this exception is thrown. Example: " \ 2564130803Smarcel "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ 2565130803Smarcel \ 2566130803Smarcel notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \ 2567130803Smarcel "Call fatal if the exception pointed by AbortVMOnException " \ 2568130803Smarcel "has this message.") \ 2569130803Smarcel \ 2570130803Smarcel develop(bool, DebugVtables, false, \ 2571130803Smarcel "add debugging code to vtable dispatch") \ 2572130803Smarcel \ 2573130803Smarcel develop(bool, PrintVtables, false, \ 2574130803Smarcel "print vtables when printing klass") \ 2575130803Smarcel \ 2576130803Smarcel notproduct(bool, PrintVtableStats, false, \ 2577130803Smarcel "print vtables stats at end of run") \ 2578130803Smarcel \ 2579130803Smarcel develop(bool, TraceCreateZombies, false, \ 2580130803Smarcel "trace creation of zombie nmethods") \ 2581130803Smarcel \ 2582130803Smarcel notproduct(bool, IgnoreLockingAssertions, false, \ 2583130803Smarcel "disable locking assertions (for speed)") \ 2584130803Smarcel \ 2585130803Smarcel notproduct(bool, VerifyLoopOptimizations, false, \ 2586130803Smarcel "verify major loop optimizations") \ 2587130803Smarcel \ 2588130803Smarcel product(bool, RangeCheckElimination, true, \ 2589130803Smarcel "Split loop iterations to eliminate range checks") \ 2590130803Smarcel \ 2591130803Smarcel develop_pd(bool, UncommonNullCast, \ 2592130803Smarcel "track occurrences of null in casts; adjust compiler tactics") \ 2593130803Smarcel \ 2594130803Smarcel develop(bool, TypeProfileCasts, true, \ 2595130803Smarcel "treat casts like calls for purposes of type profiling") \ 2596130803Smarcel \ 2597130803Smarcel develop(bool, MonomorphicArrayCheck, true, \ 2598130803Smarcel "Uncommon-trap array store checks that require full type check") \ 2599130803Smarcel \ 2600130803Smarcel diagnostic(bool, ProfileDynamicTypes, true, \ 2601130803Smarcel "do extra type profiling and use it more aggressively") \ 2602130803Smarcel \ 2603130803Smarcel develop(bool, DelayCompilationDuringStartup, true, \ 2604130803Smarcel "Delay invoking the compiler until main application class is " \ 2605130803Smarcel "loaded") \ 2606130803Smarcel \ 2607130803Smarcel develop(bool, CompileTheWorld, false, \ 260819370Spst "Compile all methods in all classes in bootstrap class path " \ 260919370Spst "(stress test)") \ 261019370Spst \ 261119370Spst develop(bool, CompileTheWorldPreloadClasses, true, \ 261219370Spst "Preload all classes used by a class before start loading") \ 261319370Spst \ 261419370Spst notproduct(intx, CompileTheWorldSafepointInterval, 100, \ 261519370Spst "Force a safepoint every n compiles so sweeper can keep up") \ 261619370Spst \ 261719370Spst develop(bool, TraceIterativeGVN, false, \ 261819370Spst "Print progress during Iterative Global Value Numbering") \ 261919370Spst \ 262019370Spst develop(bool, FillDelaySlots, true, \ 262119370Spst "Fill delay slots (on SPARC only)") \ 262219370Spst \ 262319370Spst develop(bool, VerifyIterativeGVN, false, \ 262419370Spst "Verify Def-Use modifications during sparse Iterative Global " \ 262519370Spst "Value Numbering") \ 262619370Spst \ 262719370Spst notproduct(bool, TracePhaseCCP, false, \ 262819370Spst "Print progress during Conditional Constant Propagation") \ 262919370Spst \ 263098944Sobrien develop(bool, TimeLivenessAnalysis, false, \ 263198944Sobrien "Time computation of bytecode liveness analysis") \ 263219370Spst \ 2633130803Smarcel develop(bool, TraceLivenessGen, false, \ 263419370Spst "Trace the generation of liveness analysis information") \ 263519370Spst \ 263619370Spst notproduct(bool, TraceLivenessQuery, false, \ 263719370Spst "Trace queries of liveness analysis information") \ 263819370Spst \ 263919370Spst notproduct(bool, CollectIndexSetStatistics, false, \ 264019370Spst "Collect information about IndexSets") \ 264119370Spst \ 264219370Spst develop(bool, PrintDominators, false, \ 264319370Spst "Print out dominator trees for GVN") \ 264419370Spst \ 264519370Spst develop(bool, UseLoopSafepoints, true, \ 264619370Spst "Generate Safepoint nodes in every loop") \ 264798944Sobrien \ 264898944Sobrien notproduct(bool, TraceCISCSpill, false, \ 264998944Sobrien "Trace allocators use of cisc spillable instructions") \ 265019370Spst \ 265119370Spst notproduct(bool, TraceSpilling, false, \ 265219370Spst "Trace spilling") \ 265319370Spst \ 265419370Spst product(bool, SplitIfBlocks, true, \ 265598944Sobrien "Clone compares and control flow through merge points to fold " \ 265698944Sobrien "some branches") \ 265798944Sobrien \ 265898944Sobrien develop(intx, FastAllocateSizeLimit, 128*K, \ 265998944Sobrien /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ 266098944Sobrien "Inline allocations larger than this in doublewords must go slow")\ 266198944Sobrien \ 2662130803Smarcel product(bool, AggressiveOpts, false, \ 266398944Sobrien "Enable aggressive optimizations - see arguments.cpp") \ 266419370Spst \ 266598944Sobrien product(bool, UseStringCache, false, \ 266698944Sobrien "Enable String cache capabilities on String.java") \ 266798944Sobrien \ 266898944Sobrien /* statistics */ \ 2669130803Smarcel develop(bool, CountCompiledCalls, false, \ 2670130803Smarcel "counts method invocations") \ 2671130803Smarcel \ 267298944Sobrien notproduct(bool, CountRuntimeCalls, false, \ 267398944Sobrien "counts VM runtime calls") \ 267498944Sobrien \ 2675130803Smarcel develop(bool, CountJNICalls, false, \ 267698944Sobrien "counts jni method invocations") \ 267719370Spst \ 267898944Sobrien notproduct(bool, CountJVMCalls, false, \ 2679130803Smarcel "counts jvm method invocations") \ 268098944Sobrien \ 2681130803Smarcel notproduct(bool, CountRemovableExceptions, false, \ 268298944Sobrien "count exceptions that could be replaced by branches due to " \ 268398944Sobrien "inlining") \ 268419370Spst \ 268519370Spst notproduct(bool, ICMissHistogram, false, \ 268619370Spst "produce histogram of IC misses") \ 268798944Sobrien \ 268819370Spst notproduct(bool, PrintClassStatistics, false, \ 268919370Spst "prints class statistics at end of run") \ 269019370Spst \ 269119370Spst notproduct(bool, PrintMethodStatistics, false, \ 2692130803Smarcel "prints method statistics at end of run") \ 269319370Spst \ 269419370Spst /* interpreter */ \ 269519370Spst develop(bool, ClearInterpreterLocals, false, \ 269619370Spst "Always clear local variables of interpreter activations upon " \ 269798944Sobrien "entry") \ 269819370Spst \ 269919370Spst product_pd(bool, RewriteBytecodes, \ 270019370Spst "Allow rewriting of bytecodes (bytecodes are not immutable)") \ 270119370Spst \ 270219370Spst product_pd(bool, RewriteFrequentPairs, \ 270346283Sdfr "Rewrite frequently used bytecode pairs into a single bytecode") \ 270419370Spst \ 270519370Spst diagnostic(bool, PrintInterpreter, false, \ 270619370Spst "Prints the generated interpreter code") \ 270719370Spst \ 270846283Sdfr product(bool, UseInterpreter, true, \ 270919370Spst "Use interpreter for non-compiled methods") \ 271019370Spst \ 271119370Spst develop(bool, UseFastSignatureHandlers, true, \ 271219370Spst "Use fast signature handlers for native calls") \ 2713130803Smarcel \ 271419370Spst develop(bool, UseV8InstrsOnly, false, \ 271598944Sobrien "Use SPARC-V8 Compliant instruction subset") \ 271698944Sobrien \ 271719370Spst product(bool, UseNiagaraInstrs, false, \ 271819370Spst "Use Niagara-efficient instruction subset") \ 271919370Spst \ 272019370Spst develop(bool, UseCASForSwap, false, \ 272119370Spst "Do not use swap instructions, but only CAS (in a loop) on SPARC")\ 272219370Spst \ 272398944Sobrien product(bool, UseLoopCounter, true, \ 272498944Sobrien "Increment invocation counter on backward branch") \ 272519370Spst \ 2726130803Smarcel product(bool, UseFastEmptyMethods, true, \ 2727130803Smarcel "Use fast method entry code for empty methods") \ 272819370Spst \ 272919370Spst product(bool, UseFastAccessorMethods, true, \ 273019370Spst "Use fast method entry code for accessor methods") \ 273119370Spst \ 273219370Spst product_pd(bool, UseOnStackReplacement, \ 273319370Spst "Use on stack replacement, calls runtime if invoc. counter " \ 273498944Sobrien "overflows in loop") \ 273519370Spst \ 273619370Spst notproduct(bool, TraceOnStackReplacement, false, \ 273719370Spst "Trace on stack replacement") \ 273819370Spst \ 273998944Sobrien develop(bool, PoisonOSREntry, true, \ 274019370Spst "Detect abnormal calls to OSR code") \ 274119370Spst \ 274298944Sobrien product_pd(bool, PreferInterpreterNativeStubs, \ 274319370Spst "Use always interpreter stubs for native methods invoked via " \ 274419370Spst "interpreter") \ 274519370Spst \ 274619370Spst develop(bool, CountBytecodes, false, \ 274719370Spst "Count number of bytecodes executed") \ 274819370Spst \ 274919370Spst develop(bool, PrintBytecodeHistogram, false, \ 275098944Sobrien "Print histogram of the executed bytecodes") \ 275119370Spst \ 275219370Spst develop(bool, PrintBytecodePairHistogram, false, \ 275398944Sobrien "Print histogram of the executed bytecode pairs") \ 275498944Sobrien \ 275519370Spst diagnostic(bool, PrintSignatureHandlers, false, \ 275698944Sobrien "Print code generated for native method signature handlers") \ 275719370Spst \ 275819370Spst develop(bool, VerifyOops, false, \ 275919370Spst "Do plausibility checks for oops") \ 276046283Sdfr \ 276146283Sdfr develop(bool, CheckUnhandledOops, false, \ 276219370Spst "Check for unhandled oops in VM code") \ 276319370Spst \ 276419370Spst develop(bool, VerifyJNIFields, trueInDebug, \ 276519370Spst "Verify jfieldIDs for instance fields") \ 276619370Spst \ 276719370Spst notproduct(bool, VerifyJNIEnvThread, false, \ 2768130803Smarcel "Verify JNIEnv.thread == Thread::current() when entering VM " \ 276919370Spst "from JNI") \ 277019370Spst \ 277119370Spst develop(bool, VerifyFPU, false, \ 277219370Spst "Verify FPU state (check for NaN's, etc.)") \ 277319370Spst \ 277419370Spst develop(bool, VerifyThread, false, \ 277519370Spst "Watch the thread register for corruption (SPARC only)") \ 277646283Sdfr \ 277719370Spst develop(bool, VerifyActivationFrameSize, false, \ 277819370Spst "Verify that activation frame didn't become smaller than its " \ 2779130803Smarcel "minimal size") \ 278019370Spst \ 278119370Spst develop(bool, TraceFrequencyInlining, false, \ 278246283Sdfr "Trace frequency based inlining") \ 278319370Spst \ 278419370Spst notproduct(bool, TraceTypeProfile, false, \ 2785130803Smarcel "Trace type profile") \ 278619370Spst \ 278719370Spst develop_pd(bool, InlineIntrinsics, \ 278819370Spst "Inline intrinsics that can be statically resolved") \ 278919370Spst \ 279046283Sdfr product_pd(bool, ProfileInterpreter, \ 279146283Sdfr "Profile at the bytecode level during interpretation") \ 279219370Spst \ 279319370Spst develop_pd(bool, ProfileTraps, \ 279498944Sobrien "Profile deoptimization traps at the bytecode level") \ 279598944Sobrien \ 279698944Sobrien product(intx, ProfileMaturityPercentage, 20, \ 279798944Sobrien "number of method invocations/branches (expressed as % of " \ 279898944Sobrien "CompileThreshold) before using the method's profile") \ 279998944Sobrien \ 280098944Sobrien develop(bool, PrintMethodData, false, \ 280119370Spst "Print the results of +ProfileInterpreter at end of run") \ 280298944Sobrien \ 280398944Sobrien develop(bool, VerifyDataPointer, trueInDebug, \ 280498944Sobrien "Verify the method data pointer during interpreter profiling") \ 280598944Sobrien \ 280619370Spst develop(bool, VerifyCompiledCode, false, \ 280719370Spst "Include miscellaneous runtime verifications in nmethod code; " \ 280898944Sobrien "default off because it disturbs nmethod size heuristics") \ 280919370Spst \ 281019370Spst notproduct(bool, CrashGCForDumpingJavaThread, false, \ 281119370Spst "Manually make GC thread crash then dump java stack trace; " \ 281219370Spst "Test only") \ 281398944Sobrien \ 281498944Sobrien /* compilation */ \ 281598944Sobrien product(bool, UseCompiler, true, \ 281619370Spst "use compilation") \ 281746283Sdfr \ 281846283Sdfr develop(bool, TraceCompilationPolicy, false, \ 281946283Sdfr "Trace compilation policy") \ 282046283Sdfr \ 282146283Sdfr develop(bool, TimeCompilationPolicy, false, \ 282246283Sdfr "Time the compilation policy") \ 282319370Spst \ 282446283Sdfr product(bool, UseCounterDecay, true, \ 282519370Spst "adjust recompilation counters") \ 282698944Sobrien \ 282746283Sdfr develop(intx, CounterHalfLifeTime, 30, \ 282846283Sdfr "half-life time of invocation counters (in secs)") \ 282998944Sobrien \ 283098944Sobrien develop(intx, CounterDecayMinIntervalLength, 500, \ 283119370Spst "Min. ms. between invocation of CounterDecay") \ 283246283Sdfr \ 283319370Spst product(bool, AlwaysCompileLoopMethods, false, \ 283446283Sdfr "when using recompilation, never interpret methods " \ 283519370Spst "containing loops") \ 283619370Spst \ 283719370Spst product(bool, DontCompileHugeMethods, true, \ 283819370Spst "don't compile methods > HugeMethodLimit") \ 283919370Spst \ 284019370Spst /* Bytecode escape analysis estimation. */ \ 284119370Spst product(bool, EstimateArgEscape, true, \ 284298944Sobrien "Analyze bytecodes to estimate escape state of arguments") \ 284319370Spst \ 284419370Spst product(intx, BCEATraceLevel, 0, \ 284519370Spst "How much tracing to do of bytecode escape analysis estimates") \ 284619370Spst \ 284719370Spst product(intx, MaxBCEAEstimateLevel, 5, \ 284819370Spst "Maximum number of nested calls that are analyzed by BC EA.") \ 284919370Spst \ 285019370Spst product(intx, MaxBCEAEstimateSize, 150, \ 285198944Sobrien "Maximum bytecode size of a method to be analyzed by BC EA.") \ 285298944Sobrien \ 285398944Sobrien product(intx, AllocatePrefetchStyle, 1, \ 285498944Sobrien "0 = no prefetch, " \ 285519370Spst "1 = prefetch instructions for each allocation, " \ 285619370Spst "2 = use TLAB watermark to gate allocation prefetch, " \ 285719370Spst "3 = use BIS instruction on Sparc for allocation prefetch") \ 285819370Spst \ 285919370Spst product(intx, AllocatePrefetchDistance, -1, \ 286019370Spst "Distance to prefetch ahead of allocation pointer") \ 286198944Sobrien \ 286298944Sobrien product(intx, AllocatePrefetchLines, 1, \ 286319370Spst "Number of lines to prefetch ahead of allocation pointer") \ 2864130803Smarcel \ 286519370Spst product(intx, AllocatePrefetchStepSize, 16, \ 286619370Spst "Step size in bytes of sequential prefetch instructions") \ 286719370Spst \ 286819370Spst product(intx, AllocatePrefetchInstr, 0, \ 286919370Spst "Prefetch instruction to prefetch ahead of allocation pointer") \ 287019370Spst \ 287119370Spst product(intx, ReadPrefetchInstr, 0, \ 287219370Spst "Prefetch instruction to prefetch ahead") \ 287319370Spst \ 287498944Sobrien /* deoptimization */ \ 287598944Sobrien develop(bool, TraceDeoptimization, false, \ 287619370Spst "Trace deoptimization") \ 287798944Sobrien \ 287819370Spst develop(bool, DebugDeoptimization, false, \ 287919370Spst "Tracing various information while debugging deoptimization") \ 288019370Spst \ 288119370Spst product(intx, SelfDestructTimer, 0, \ 288298944Sobrien "Will cause VM to terminate after a given time (in minutes) " \ 288319370Spst "(0 means off)") \ 288498944Sobrien \ 288598944Sobrien product(intx, MaxJavaStackTraceDepth, 1024, \ 288619370Spst "Max. no. of lines in the stack trace for Java exceptions " \ 288719370Spst "(0 means all)") \ 288819370Spst \ 288919370Spst NOT_EMBEDDED(develop(intx, GuaranteedSafepointInterval, 1000, \ 289019370Spst "Guarantee a safepoint (at least) every so many milliseconds " \ 289198944Sobrien "(0 means none)")) \ 289298944Sobrien \ 289398944Sobrien EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \ 289419370Spst "Guarantee a safepoint (at least) every so many milliseconds " \ 289519370Spst "(0 means none)")) \ 289619370Spst \ 289719370Spst product(intx, SafepointTimeoutDelay, 10000, \ 289819370Spst "Delay in milliseconds for option SafepointTimeout") \ 289919370Spst \ 290019370Spst product(intx, NmethodSweepFraction, 4, \ 290119370Spst "Number of invocations of sweeper to cover all nmethods") \ 290219370Spst \ 290398944Sobrien product(intx, NmethodSweepCheckInterval, 5, \ 290498944Sobrien "Compilers wake up every n seconds to possibly sweep nmethods") \ 290598944Sobrien \ 290619370Spst notproduct(intx, MemProfilingInterval, 500, \ 290798944Sobrien "Time between each invocation of the MemProfiler") \ 290819370Spst \ 290919370Spst develop(intx, MallocCatchPtr, -1, \ 291019370Spst "Hit breakpoint when mallocing/freeing this pointer") \ 291119370Spst \ 291219370Spst notproduct(intx, AssertRepeat, 1, \ 291319370Spst "number of times to evaluate expression in assert " \ 291419370Spst "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ 291519370Spst \ 291619370Spst notproduct(ccstrlist, SuppressErrorAt, "", \ 291719370Spst "List of assertions (file:line) to muzzle") \ 291819370Spst \ 291919370Spst notproduct(uintx, HandleAllocationLimit, 1024, \ 292019370Spst "Threshold for HandleMark allocation when +TraceHandleAllocation "\ 292119370Spst "is used") \ 292219370Spst \ 2923130803Smarcel develop(uintx, TotalHandleAllocationLimit, 1024, \ 2924130803Smarcel "Threshold for total handle allocation when " \ 2925130803Smarcel "+TraceHandleAllocation is used") \ 292698944Sobrien \ 292719370Spst develop(intx, StackPrintLimit, 100, \ 292819370Spst "number of stack frames to print in VM-level stack dump") \ 292919370Spst \ 293098944Sobrien notproduct(intx, MaxElementPrintSize, 256, \ 293119370Spst "maximum number of elements to print") \ 293219370Spst \ 293319370Spst notproduct(intx, MaxSubklassPrintSize, 4, \ 293419370Spst "maximum number of subklasses to print when printing klass") \ 293519370Spst \ 293619370Spst product(intx, MaxInlineLevel, 9, \ 293719370Spst "maximum number of nested calls that are inlined") \ 293819370Spst \ 293919370Spst product(intx, MaxRecursiveInlineLevel, 1, \ 294019370Spst "maximum number of nested recursive calls that are inlined") \ 294119370Spst \ 294219370Spst product_pd(intx, InlineSmallCode, \ 294319370Spst "Only inline already compiled methods if their code size is " \ 294419370Spst "less than this") \ 294519370Spst \ 294619370Spst product(intx, MaxInlineSize, 35, \ 294719370Spst "maximum bytecode size of a method to be inlined") \ 294819370Spst \ 294919370Spst product_pd(intx, FreqInlineSize, \ 295019370Spst "maximum bytecode size of a frequent method to be inlined") \ 295119370Spst \ 295219370Spst product(intx, MaxTrivialSize, 6, \ 295319370Spst "maximum bytecode size of a trivial method to be inlined") \ 295498944Sobrien \ 295519370Spst product(intx, MinInliningThreshold, 250, \ 295698944Sobrien "min. invocation count a method needs to have to be inlined") \ 295798944Sobrien \ 295819370Spst develop(intx, AlignEntryCode, 4, \ 295998944Sobrien "aligns entry code to specified value (in bytes)") \ 296098944Sobrien \ 296119370Spst develop(intx, MethodHistogramCutoff, 100, \ 296219370Spst "cutoff value for method invoc. histogram (+CountCalls)") \ 296319370Spst \ 296419370Spst develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ 296519370Spst "# of interpreted methods to show in profile") \ 296619370Spst \ 296719370Spst develop(intx, ProfilerNumberOfCompiledMethods, 25, \ 296819370Spst "# of compiled methods to show in profile") \ 296919370Spst \ 297019370Spst develop(intx, ProfilerNumberOfStubMethods, 25, \ 297119370Spst "# of stub methods to show in profile") \ 297219370Spst \ 297319370Spst develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ 297419370Spst "# of runtime stub nodes to show in profile") \ 297519370Spst \ 297619370Spst product(intx, ProfileIntervalsTicks, 100, \ 297719370Spst "# of ticks between printing of interval profile " \ 297819370Spst "(+ProfileIntervals)") \ 297919370Spst \ 298019370Spst notproduct(intx, ScavengeALotInterval, 1, \ 298119370Spst "Interval between which scavenge will occur with +ScavengeALot") \ 298219370Spst \ 298319370Spst notproduct(intx, FullGCALotInterval, 1, \ 298419370Spst "Interval between which full gc will occur with +FullGCALot") \ 298519370Spst \ 298619370Spst notproduct(intx, FullGCALotStart, 0, \ 298719370Spst "For which invocation to start FullGCAlot") \ 298819370Spst \ 298919370Spst notproduct(intx, FullGCALotDummies, 32*K, \ 299019370Spst "Dummy object allocated with +FullGCALot, forcing all objects " \ 299119370Spst "to move") \ 299219370Spst \ 299319370Spst develop(intx, DontYieldALotInterval, 10, \ 299419370Spst "Interval between which yields will be dropped (milliseconds)") \ 299519370Spst \ 299619370Spst develop(intx, MinSleepInterval, 1, \ 299719370Spst "Minimum sleep() interval (milliseconds) when " \ 299819370Spst "ConvertSleepToYield is off (used for SOLARIS)") \ 299919370Spst \ 300019370Spst product(intx, EventLogLength, 2000, \ 300119370Spst "maximum nof events in event log") \ 300219370Spst \ 300398944Sobrien develop(intx, ProfilerPCTickThreshold, 15, \ 300419370Spst "Number of ticks in a PC buckets to be a hotspot") \ 300598944Sobrien \ 300698944Sobrien notproduct(intx, DeoptimizeALotInterval, 5, \ 300746283Sdfr "Number of exits until DeoptimizeALot kicks in") \ 300819370Spst \ 300919370Spst notproduct(intx, ZombieALotInterval, 5, \ 301019370Spst "Number of exits until ZombieALot kicks in") \ 301119370Spst \ 301298944Sobrien develop(bool, StressNonEntrant, false, \ 301398944Sobrien "Mark nmethods non-entrant at registration") \ 301498944Sobrien \ 301598944Sobrien diagnostic(intx, MallocVerifyInterval, 0, \ 301698944Sobrien "if non-zero, verify C heap after every N calls to " \ 301798944Sobrien "malloc/realloc/free") \ 301898944Sobrien \ 301998944Sobrien diagnostic(intx, MallocVerifyStart, 0, \ 302098944Sobrien "if non-zero, start verifying C heap after Nth call to " \ 3021130803Smarcel "malloc/realloc/free") \ 3022130803Smarcel \ 302398944Sobrien product(intx, TypeProfileWidth, 2, \ 302419370Spst "number of receiver types to record in call/cast profile") \ 302519370Spst \ 302619370Spst develop(intx, BciProfileWidth, 2, \ 302798944Sobrien "number of return bci's to record in ret profile") \ 302898944Sobrien \ 302919370Spst product(intx, PerMethodRecompilationCutoff, 400, \ 303098944Sobrien "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ 303198944Sobrien \ 303298944Sobrien product(intx, PerBytecodeRecompilationCutoff, 200, \ 303398944Sobrien "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ 303498944Sobrien \ 303598944Sobrien product(intx, PerMethodTrapLimit, 100, \ 303698944Sobrien "Limit on traps (of one kind) in a method (includes inlines)") \ 303798944Sobrien \ 3038130803Smarcel product(intx, PerBytecodeTrapLimit, 4, \ 3039130803Smarcel "Limit on traps (of one kind) at a particular BCI") \ 3040130803Smarcel \ 304198944Sobrien develop(intx, FreqCountInvocations, 1, \ 304298944Sobrien "Scaling factor for branch frequencies (deprecated)") \ 304319370Spst \ 304419370Spst develop(intx, InlineFrequencyRatio, 20, \ 304519370Spst "Ratio of call site execution to caller method invocation") \ 304619370Spst \ 304798944Sobrien develop_pd(intx, InlineFrequencyCount, \ 304819370Spst "Count of call site execution necessary to trigger frequent " \ 304919370Spst "inlining") \ 305019370Spst \ 305119370Spst develop(intx, InlineThrowCount, 50, \ 305246283Sdfr "Force inlining of interpreted methods that throw this often") \ 305319370Spst \ 305419370Spst develop(intx, InlineThrowMaxSize, 200, \ 305519370Spst "Force inlining of throwing methods smaller than this") \ 305619370Spst \ 305719370Spst product(intx, AliasLevel, 3, \ 305898944Sobrien "0 for no aliasing, 1 for oop/field/static/array split, " \ 305998944Sobrien "2 for class split, 3 for unique instances") \ 306019370Spst \ 306198944Sobrien develop(bool, VerifyAliases, false, \ 306298944Sobrien "perform extra checks on the results of alias analysis") \ 306319370Spst \ 306419370Spst develop(intx, ProfilerNodeSize, 1024, \ 306519370Spst "Size in K to allocate for the Profile Nodes of each thread") \ 306619370Spst \ 306719370Spst develop(intx, V8AtomicOperationUnderLockSpinCount, 50, \ 306819370Spst "Number of times to spin wait on a v8 atomic operation lock") \ 306919370Spst \ 307019370Spst product(intx, ReadSpinIterations, 100, \ 307119370Spst "Number of read attempts before a yield (spin inner loop)") \ 307219370Spst \ 307319370Spst product_pd(intx, PreInflateSpin, \ 307419370Spst "Number of times to spin wait before inflation") \ 307519370Spst \ 307619370Spst product(intx, PreBlockSpin, 10, \ 307719370Spst "Number of times to spin in an inflated lock before going to " \ 307819370Spst "an OS lock") \ 307919370Spst \ 308019370Spst /* gc parameters */ \ 308119370Spst product(uintx, InitialHeapSize, 0, \ 308298944Sobrien "Initial heap size (in bytes); zero means OldSize + NewSize") \ 308398944Sobrien \ 308419370Spst product(uintx, MaxHeapSize, ScaleForWordSize(96*M), \ 3085130803Smarcel "Maximum heap size (in bytes)") \ 308619370Spst \ 308719370Spst product(uintx, OldSize, ScaleForWordSize(4*M), \ 308819370Spst "Initial tenured generation size (in bytes)") \ 308919370Spst \ 309019370Spst product(uintx, NewSize, ScaleForWordSize(1*M), \ 309119370Spst "Initial new generation size (in bytes)") \ 309219370Spst \ 309319370Spst product(uintx, MaxNewSize, max_uintx, \ 309419370Spst "Maximum new generation size (in bytes), max_uintx means set " \ 309519370Spst "ergonomically") \ 309619370Spst \ 309719370Spst product(uintx, PretenureSizeThreshold, 0, \ 309819370Spst "Maximum size in bytes of objects allocated in DefNew " \ 309919370Spst "generation; zero means no maximum") \ 310019370Spst \ 310119370Spst product(uintx, TLABSize, 0, \ 310219370Spst "Starting TLAB size (in bytes); zero means set ergonomically") \ 310319370Spst \ 310419370Spst product(uintx, MinTLABSize, 2*K, \ 310519370Spst "Minimum allowed TLAB size (in bytes)") \ 310619370Spst \ 310719370Spst product(uintx, TLABAllocationWeight, 35, \ 310819370Spst "Allocation averaging weight") \ 310919370Spst \ 311019370Spst product(uintx, TLABWasteTargetPercent, 1, \ 311119370Spst "Percentage of Eden that can be wasted") \ 311219370Spst \ 311319370Spst product(uintx, TLABRefillWasteFraction, 64, \ 311419370Spst "Max TLAB waste at a refill (internal fragmentation)") \ 311519370Spst \ 311619370Spst product(uintx, TLABWasteIncrement, 4, \ 311719370Spst "Increment allowed waste at slow allocation") \ 311819370Spst \ 311919370Spst product(intx, SurvivorRatio, 8, \ 312019370Spst "Ratio of eden/survivor space size") \ 312119370Spst \ 312219370Spst product(intx, NewRatio, 2, \ 312319370Spst "Ratio of new/old generation sizes") \ 312419370Spst \ 312519370Spst product_pd(uintx, NewSizeThreadIncrease, \ 312619370Spst "Additional size added to desired new generation size per " \ 312719370Spst "non-daemon thread (in bytes)") \ 312819370Spst \ 312998944Sobrien product_pd(uintx, PermSize, \ 313019370Spst "Initial size of permanent generation (in bytes)") \ 313198944Sobrien \ 313219370Spst product_pd(uintx, MaxPermSize, \ 313319370Spst "Maximum size of permanent generation (in bytes)") \ 313419370Spst \ 313519370Spst product(uintx, MinHeapFreeRatio, 40, \ 313619370Spst "Min percentage of heap free after GC to avoid expansion") \ 3137130803Smarcel \ 3138130803Smarcel product(uintx, MaxHeapFreeRatio, 70, \ 3139130803Smarcel "Max percentage of heap free after GC to avoid shrinking") \ 314019370Spst \ 314119370Spst product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ 314219370Spst "Number of milliseconds per MB of free space in the heap") \ 314319370Spst \ 314419370Spst product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ 314519370Spst "Min change in heap space due to GC (in bytes)") \ 3146130803Smarcel \ 3147130803Smarcel product(uintx, MinPermHeapExpansion, ScaleForWordSize(256*K), \ 3148130803Smarcel "Min expansion of permanent heap (in bytes)") \ 314919370Spst \ 315019370Spst product(uintx, MaxPermHeapExpansion, ScaleForWordSize(4*M), \ 315119370Spst "Max expansion of permanent heap without full GC (in bytes)") \ 315219370Spst \ 315319370Spst product(intx, QueuedAllocationWarningCount, 0, \ 315419370Spst "Number of times an allocation that queues behind a GC " \ 315519370Spst "will retry before printing a warning") \ 315698944Sobrien \ 315719370Spst diagnostic(uintx, VerifyGCStartAt, 0, \ 315819370Spst "GC invoke count where +VerifyBefore/AfterGC kicks in") \ 315919370Spst \ 316019370Spst diagnostic(intx, VerifyGCLevel, 0, \ 316119370Spst "Generation level at which to start +VerifyBefore/AfterGC") \ 316219370Spst \ 316319370Spst develop(uintx, ExitAfterGCNum, 0, \ 3164130803Smarcel "If non-zero, exit after this GC.") \ 316519370Spst \ 3166130803Smarcel product(intx, MaxTenuringThreshold, 15, \ 316719370Spst "Maximum value for tenuring threshold") \ 316819370Spst \ 316998944Sobrien product(intx, InitialTenuringThreshold, 7, \ 317098944Sobrien "Initial value for tenuring threshold") \ 317119370Spst \ 317298944Sobrien product(intx, TargetSurvivorRatio, 50, \ 317398944Sobrien "Desired percentage of survivor space used after scavenge") \ 317419370Spst \ 317519370Spst product(uintx, MarkSweepDeadRatio, 5, \ 317619370Spst "Percentage (0-100) of the old gen allowed as dead wood." \ 317719370Spst "Serial mark sweep treats this as both the min and max value." \ 317819370Spst "CMS uses this value only if it falls back to mark sweep." \ 317919370Spst "Par compact uses a variable scale based on the density of the" \ 318019370Spst "generation and treats this as the max value when the heap is" \ 318119370Spst "either completely full or completely empty. Par compact also" \ 318219370Spst "has a smaller default value; see arguments.cpp.") \ 3183130803Smarcel \ 318498944Sobrien product(uintx, PermMarkSweepDeadRatio, 20, \ 318519370Spst "Percentage (0-100) of the perm gen allowed as dead wood." \ 3186130803Smarcel "See MarkSweepDeadRatio for collector-specific comments.") \ 3187130803Smarcel \ 3188130803Smarcel product(intx, MarkSweepAlwaysCompactCount, 4, \ 318919370Spst "How often should we fully compact the heap (ignoring the dead " \ 319019370Spst "space parameters)") \ 319119370Spst \ 319219370Spst product(intx, PrintCMSStatistics, 0, \ 319319370Spst "Statistics for CMS") \ 319419370Spst \ 319598944Sobrien product(bool, PrintCMSInitiationStatistics, false, \ 319619370Spst "Statistics for initiating a CMS collection") \ 319719370Spst \ 319898944Sobrien product(intx, PrintFLSStatistics, 0, \ 319919370Spst "Statistics for CMS' FreeListSpace") \ 320019370Spst \ 320119370Spst product(intx, PrintFLSCensus, 0, \ 320219370Spst "Census for CMS' FreeListSpace") \ 320319370Spst \ 320419370Spst develop(uintx, GCExpandToAllocateDelayMillis, 0, \ 320519370Spst "Delay in ms between expansion and allocation") \ 320619370Spst \ 320719370Spst product(intx, DeferThrSuspendLoopCount, 4000, \ 320819370Spst "(Unstable) Number of times to iterate in safepoint loop " \ 320919370Spst " before blocking VM threads ") \ 321019370Spst \ 321119370Spst product(intx, DeferPollingPageLoopCount, -1, \ 321219370Spst "(Unsafe,Unstable) Number of iterations in safepoint loop " \ 321319370Spst "before changing safepoint polling page to RO ") \ 321419370Spst \ 321519370Spst product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ 321619370Spst \ 321719370Spst product(bool, PSChunkLargeArrays, true, \ 321819370Spst "true: process large arrays in chunks") \ 321919370Spst \ 322019370Spst product(uintx, GCDrainStackTargetSize, 64, \ 322119370Spst "how many entries we'll try to leave on the stack during " \ 322219370Spst "parallel GC") \ 322319370Spst \ 322419370Spst /* stack parameters */ \ 322519370Spst product_pd(intx, StackYellowPages, \ 322619370Spst "Number of yellow zone (recoverable overflows) pages") \ 322719370Spst \ 322819370Spst product_pd(intx, StackRedPages, \ 322919370Spst "Number of red zone (unrecoverable overflows) pages") \ 323019370Spst \ 323119370Spst product_pd(intx, StackShadowPages, \ 323219370Spst "Number of shadow zone (for overflow checking) pages" \ 323319370Spst " this should exceed the depth of the VM and native call stack") \ 323419370Spst \ 323519370Spst product_pd(intx, ThreadStackSize, \ 323698944Sobrien "Thread Stack Size (in Kbytes)") \ 323798944Sobrien \ 323819370Spst product_pd(intx, VMThreadStackSize, \ 323998944Sobrien "Non-Java Thread Stack Size (in Kbytes)") \ 324098944Sobrien \ 324198944Sobrien product_pd(intx, CompilerThreadStackSize, \ 324219370Spst "Compiler Thread Stack Size (in Kbytes)") \ 324398944Sobrien \ 324498944Sobrien develop_pd(uintx, JVMInvokeMethodSlack, \ 324598944Sobrien "Stack space (bytes) required for JVM_InvokeMethod to complete") \ 324619370Spst \ 324798944Sobrien product(uintx, ThreadSafetyMargin, 50*M, \ 324898944Sobrien "Thread safety margin is used on fixed-stack LinuxThreads (on " \ 324998944Sobrien "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ 325019370Spst "disable this feature") \ 325198944Sobrien \ 325298944Sobrien /* code cache parameters */ \ 325319370Spst develop(uintx, CodeCacheSegmentSize, 64, \ 325498944Sobrien "Code cache segment size (in bytes) - smallest unit of " \ 325598944Sobrien "allocation") \ 325698944Sobrien \ 3257130803Smarcel develop_pd(intx, CodeEntryAlignment, \ 3258130803Smarcel "Code entry alignment for generated code (in bytes)") \ 325998944Sobrien \ 326098944Sobrien product_pd(intx, OptoLoopAlignment, \ 326119370Spst "Align inner loops to zero relative to this modulus") \ 326298944Sobrien \ 326319370Spst product_pd(uintx, InitialCodeCacheSize, \ 326419370Spst "Initial code cache size (in bytes)") \ 326519370Spst \ 326619370Spst product_pd(uintx, ReservedCodeCacheSize, \ 3267130803Smarcel "Reserved code cache size (in bytes) - maximum code cache size") \ 3268130803Smarcel \ 3269130803Smarcel product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ 3270130803Smarcel "When less than X space left, we stop compiling.") \ 3271130803Smarcel \ 3272130803Smarcel product_pd(uintx, CodeCacheExpansionSize, \ 3273130803Smarcel "Code cache expansion size (in bytes)") \ 3274130803Smarcel \ 3275130803Smarcel develop_pd(uintx, CodeCacheMinBlockLength, \ 3276130803Smarcel "Minimum number of segments in a code cache block.") \ 3277130803Smarcel \ 3278130803Smarcel notproduct(bool, ExitOnFullCodeCache, false, \ 3279130803Smarcel "Exit the VM if we fill the code cache.") \ 3280130803Smarcel \ 3281130803Smarcel product(bool, UseCodeCacheFlushing, false, \ 3282130803Smarcel "Attempt to clean the code cache before shutting off compiler") \ 3283130803Smarcel \ 3284130803Smarcel product(intx, MinCodeCacheFlushingInterval, 30, \ 3285130803Smarcel "Min number of seconds between code cache cleaning sessions") \ 3286130803Smarcel \ 3287130803Smarcel product(uintx, CodeCacheFlushingMinimumFreeSpace, 1500*K, \ 3288130803Smarcel "When less than X space left, start code cache cleaning") \ 3289130803Smarcel \ 3290130803Smarcel /* interpreter debugging */ \ 3291130803Smarcel develop(intx, BinarySwitchThreshold, 5, \ 3292130803Smarcel "Minimal number of lookupswitch entries for rewriting to binary " \ 3293130803Smarcel "switch") \ 3294130803Smarcel \ 3295130803Smarcel develop(intx, StopInterpreterAt, 0, \ 3296130803Smarcel "Stops interpreter execution at specified bytecode number") \ 3297130803Smarcel \ 3298130803Smarcel develop(intx, TraceBytecodesAt, 0, \ 3299130803Smarcel "Traces bytecodes starting with specified bytecode number") \ 3300130803Smarcel \ 3301130803Smarcel /* compiler interface */ \ 3302130803Smarcel develop(intx, CIStart, 0, \ 330319370Spst "the id of the first compilation to permit") \ 330419370Spst \ 330519370Spst develop(intx, CIStop, -1, \ 330619370Spst "the id of the last compilation to permit") \ 330719370Spst \ 330819370Spst develop(intx, CIStartOSR, 0, \ 330919370Spst "the id of the first osr compilation to permit " \ 331019370Spst "(CICountOSR must be on)") \ 331119370Spst \ 331219370Spst develop(intx, CIStopOSR, -1, \ 331319370Spst "the id of the last osr compilation to permit " \ 331419370Spst "(CICountOSR must be on)") \ 331598944Sobrien \ 331619370Spst develop(intx, CIBreakAtOSR, -1, \ 331719370Spst "id of osr compilation to break at") \ 3318130803Smarcel \ 3319130803Smarcel develop(intx, CIBreakAt, -1, \ 332019370Spst "id of compilation to break at") \ 332119370Spst \ 332219370Spst product(ccstrlist, CompileOnly, "", \ 332319370Spst "List of methods (pkg/class.name) to restrict compilation to") \ 332419370Spst \ 332519370Spst product(ccstr, CompileCommandFile, NULL, \ 332619370Spst "Read compiler commands from this file [.hotspot_compiler]") \ 3327130803Smarcel \ 3328130803Smarcel product(ccstrlist, CompileCommand, "", \ 3329130803Smarcel "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ 3330130803Smarcel \ 3331130803Smarcel product(bool, CICompilerCountPerCPU, false, \ 3332130803Smarcel "1 compiler thread for log(N CPUs)") \ 3333130803Smarcel \ 3334130803Smarcel develop(intx, CIFireOOMAt, -1, \ 3335130803Smarcel "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ 3336130803Smarcel "(non-negative value throws OOM after this many CI accesses " \ 3337130803Smarcel "in each compile)") \ 3338130803Smarcel \ 3339130803Smarcel develop(intx, CIFireOOMAtDelay, -1, \ 3340130803Smarcel "Wait for this many CI accesses to occur in all compiles before " \ 3341130803Smarcel "beginning to throw OutOfMemoryErrors in each compile") \ 3342130803Smarcel \ 3343130803Smarcel notproduct(bool, CIObjectFactoryVerify, false, \ 3344130803Smarcel "enable potentially expensive verification in ciObjectFactory") \ 3345130803Smarcel \ 3346130803Smarcel /* Priorities */ \ 334719370Spst product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ 334819370Spst \ 334919370Spst product(intx, ThreadPriorityPolicy, 0, \ 3350130803Smarcel "0 : Normal. "\ 335119370Spst " VM chooses priorities that are appropriate for normal "\ 335219370Spst " applications. On Solaris NORM_PRIORITY and above are mapped "\ 335319370Spst " to normal native priority. Java priorities below NORM_PRIORITY"\ 335419370Spst " map to lower native priority values. On Windows applications"\ 335519370Spst " are allowed to use higher native priorities. However, with "\ 335619370Spst " ThreadPriorityPolicy=0, VM will not use the highest possible"\ 335719370Spst " native priority, THREAD_PRIORITY_TIME_CRITICAL, as it may "\ 335819370Spst " interfere with system threads. On Linux thread priorities "\ 335919370Spst " are ignored because the OS does not support static priority "\ 336019370Spst " in SCHED_OTHER scheduling class which is the only choice for"\ 336119370Spst " non-root, non-realtime applications. "\ 336219370Spst "1 : Aggressive. "\ 336319370Spst " Java thread priorities map over to the entire range of "\ 336419370Spst " native thread priorities. Higher Java thread priorities map "\ 336519370Spst " to higher native thread priorities. This policy should be "\ 336619370Spst " used with care, as sometimes it can cause performance "\ 336719370Spst " degradation in the application and/or the entire system. On "\ 336819370Spst " Linux this policy requires root privilege.") \ 336919370Spst \ 337019370Spst product(bool, ThreadPriorityVerbose, false, \ 337119370Spst "print priority changes") \ 337219370Spst \ 337319370Spst product(intx, DefaultThreadPriority, -1, \ 337419370Spst "what native priority threads run at if not specified elsewhere (-1 means no change)") \ 337519370Spst \ 337619370Spst product(intx, CompilerThreadPriority, -1, \ 337719370Spst "what priority should compiler threads run at (-1 means no change)") \ 337819370Spst \ 337919370Spst product(intx, VMThreadPriority, -1, \ 338019370Spst "what priority should VM threads run at (-1 means no change)") \ 338119370Spst \ 338219370Spst product(bool, CompilerThreadHintNoPreempt, true, \ 338319370Spst "(Solaris only) Give compiler threads an extra quanta") \ 338419370Spst \ 338519370Spst product(bool, VMThreadHintNoPreempt, false, \ 338619370Spst "(Solaris only) Give VM thread an extra quanta") \ 3387130803Smarcel \ 338898944Sobrien product(intx, JavaPriority1_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 338919370Spst product(intx, JavaPriority2_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339019370Spst product(intx, JavaPriority3_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339119370Spst product(intx, JavaPriority4_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339219370Spst product(intx, JavaPriority5_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339319370Spst product(intx, JavaPriority6_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339419370Spst product(intx, JavaPriority7_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339519370Spst product(intx, JavaPriority8_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339619370Spst product(intx, JavaPriority9_To_OSPriority, -1, "Map Java priorities to OS priorities") \ 339719370Spst product(intx, JavaPriority10_To_OSPriority,-1, "Map Java priorities to OS priorities") \ 339819370Spst \ 339919370Spst /* compiler debugging */ \ 340019370Spst notproduct(intx, CompileTheWorldStartAt, 1, \ 340119370Spst "First class to consider when using +CompileTheWorld") \ 340219370Spst \ 340319370Spst notproduct(intx, CompileTheWorldStopAt, max_jint, \ 340419370Spst "Last class to consider when using +CompileTheWorld") \ 340519370Spst \ 340619370Spst develop(intx, NewCodeParameter, 0, \ 340719370Spst "Testing Only: Create a dedicated integer parameter before " \ 340819370Spst "putback") \ 340919370Spst \ 341019370Spst /* new oopmap storage allocation */ \ 341119370Spst develop(intx, MinOopMapAllocation, 8, \ 341219370Spst "Minimum number of OopMap entries in an OopMapSet") \ 341319370Spst \ 341419370Spst /* Background Compilation */ \ 3415130803Smarcel develop(intx, LongCompileThreshold, 50, \ 3416130803Smarcel "Used with +TraceLongCompiles") \ 341719370Spst \ 341819370Spst product(intx, StarvationMonitorInterval, 200, \ 341919370Spst "Pause between each check in ms") \ 342019370Spst \ 342119370Spst /* recompilation */ \ 342219370Spst product_pd(intx, CompileThreshold, \ 342319370Spst "number of interpreted method invocations before (re-)compiling") \ 342419370Spst \ 342519370Spst product_pd(intx, BackEdgeThreshold, \ 342619370Spst "Interpreter Back edge threshold at which an OSR compilation is invoked")\ 342719370Spst \ 342898944Sobrien product(intx, Tier0InvokeNotifyFreqLog, 7, \ 342919370Spst "Interpreter (tier 0) invocation notification frequency.") \ 343019370Spst \ 343119370Spst product(intx, Tier2InvokeNotifyFreqLog, 11, \ 343219370Spst "C1 without MDO (tier 2) invocation notification frequency.") \ 343319370Spst \ 343419370Spst product(intx, Tier3InvokeNotifyFreqLog, 10, \ 343519370Spst "C1 with MDO profiling (tier 3) invocation notification " \ 343619370Spst "frequency.") \ 343719370Spst \ 343819370Spst product(intx, Tier0BackedgeNotifyFreqLog, 10, \ 343919370Spst "Interpreter (tier 0) invocation notification frequency.") \ 344019370Spst \ 344119370Spst product(intx, Tier2BackedgeNotifyFreqLog, 14, \ 344219370Spst "C1 without MDO (tier 2) invocation notification frequency.") \ 344319370Spst \ 344419370Spst product(intx, Tier3BackedgeNotifyFreqLog, 13, \ 344519370Spst "C1 with MDO profiling (tier 3) invocation notification " \ 344619370Spst "frequency.") \ 344719370Spst \ 344819370Spst product(intx, Tier2CompileThreshold, 0, \ 344919370Spst "threshold at which tier 2 compilation is invoked") \ 3450130803Smarcel \ 345198944Sobrien product(intx, Tier2BackEdgeThreshold, 0, \ 345219370Spst "Back edge threshold at which tier 2 compilation is invoked") \ 3453130803Smarcel \ 345419370Spst product(intx, Tier3InvocationThreshold, 200, \ 3455130803Smarcel "Compile if number of method invocations crosses this " \ 3456130803Smarcel "threshold") \ 345719370Spst \ 345819370Spst product(intx, Tier3MinInvocationThreshold, 100, \ 345919370Spst "Minimum invocation to compile at tier 3") \ 346019370Spst \ 346119370Spst product(intx, Tier3CompileThreshold, 2000, \ 346219370Spst "Threshold at which tier 3 compilation is invoked (invocation " \ 346319370Spst "minimum must be satisfied.") \ 346419370Spst \ 346519370Spst product(intx, Tier3BackEdgeThreshold, 7000, \ 346619370Spst "Back edge threshold at which tier 3 OSR compilation is invoked") \ 346719370Spst \ 346819370Spst product(intx, Tier4InvocationThreshold, 5000, \ 346919370Spst "Compile if number of method invocations crosses this " \ 347019370Spst "threshold") \ 347119370Spst \ 347219370Spst product(intx, Tier4MinInvocationThreshold, 600, \ 347319370Spst "Minimum invocation to compile at tier 4") \ 347419370Spst \ 347519370Spst product(intx, Tier4CompileThreshold, 15000, \ 347619370Spst "Threshold at which tier 4 compilation is invoked (invocation " \ 347719370Spst "minimum must be satisfied.") \ 347819370Spst \ 347919370Spst product(intx, Tier4BackEdgeThreshold, 40000, \ 348019370Spst "Back edge threshold at which tier 4 OSR compilation is invoked") \ 348119370Spst \ 348298944Sobrien product(intx, Tier3DelayOn, 5, \ 348319370Spst "If C2 queue size grows over this amount per compiler thread " \ 348419370Spst "stop compiling at tier 3 and start compiling at tier 2") \ 348519370Spst \ 348619370Spst product(intx, Tier3DelayOff, 2, \ 348719370Spst "If C2 queue size is less than this amount per compiler thread " \ 348819370Spst "allow methods compiled at tier 2 transition to tier 3") \ 348919370Spst \ 349019370Spst product(intx, Tier3LoadFeedback, 5, \ 349119370Spst "Tier 3 thresholds will increase twofold when C1 queue size " \ 349219370Spst "reaches this amount per compiler thread") \ 349319370Spst \ 349419370Spst product(intx, Tier4LoadFeedback, 3, \ 349598944Sobrien "Tier 4 thresholds will increase twofold when C2 queue size " \ 349698944Sobrien "reaches this amount per compiler thread") \ 3497130803Smarcel \ 349819370Spst product(intx, TieredCompileTaskTimeout, 50, \ 349919370Spst "Kill compile task if method was not used within " \ 350019370Spst "given timeout in milliseconds") \ 350119370Spst \ 350219370Spst product(intx, TieredStopAtLevel, 4, \ 350319370Spst "Stop at given compilation level") \ 3504130803Smarcel \ 350519370Spst product(intx, Tier0ProfilingStartPercentage, 200, \ 3506130803Smarcel "Start profiling in interpreter if the counters exceed tier 3" \ 350798944Sobrien "thresholds by the specified percentage") \ 350819370Spst \ 3509130803Smarcel product(intx, TieredRateUpdateMinTime, 1, \ 351019370Spst "Minimum rate sampling interval (in milliseconds)") \ 351119370Spst \ 351219370Spst product(intx, TieredRateUpdateMaxTime, 25, \ 351319370Spst "Maximum rate sampling interval (in milliseconds)") \ 351419370Spst \ 351519370Spst product_pd(bool, TieredCompilation, \ 351619370Spst "Enable tiered compilation") \ 351719370Spst \ 351819370Spst product(bool, PrintTieredEvents, false, \ 351919370Spst "Print tiered events notifications") \ 352019370Spst \ 352119370Spst product(bool, StressTieredRuntime, false, \ 352219370Spst "Alternate client and server compiler on compile requests") \ 352319370Spst \ 352419370Spst product_pd(intx, OnStackReplacePercentage, \ 352519370Spst "NON_TIERED number of method invocations/branches (expressed as %"\ 352619370Spst "of CompileThreshold) before (re-)compiling OSR code") \ 352719370Spst \ 352819370Spst product(intx, InterpreterProfilePercentage, 33, \ 352919370Spst "NON_TIERED number of method invocations/branches (expressed as %"\ 353019370Spst "of CompileThreshold) before profiling in the interpreter") \ 353119370Spst \ 353219370Spst develop(intx, MaxRecompilationSearchLength, 10, \ 353319370Spst "max. # frames to inspect searching for recompilee") \ 353419370Spst \ 353519370Spst develop(intx, MaxInterpretedSearchLength, 3, \ 353619370Spst "max. # interp. frames to skip when searching for recompilee") \ 353719370Spst \ 353819370Spst develop(intx, DesiredMethodLimit, 8000, \ 353919370Spst "desired max. method size (in bytecodes) after inlining") \ 354019370Spst \ 354119370Spst develop(intx, HugeMethodLimit, 8000, \ 354219370Spst "don't compile methods larger than this if " \ 354319370Spst "+DontCompileHugeMethods") \ 354419370Spst \ 354519370Spst /* New JDK 1.4 reflection implementation */ \ 354619370Spst \ 354719370Spst develop(bool, UseNewReflection, true, \ 3548130803Smarcel "Temporary flag for transition to reflection based on dynamic " \ 354919370Spst "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ 355019370Spst "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ 355119370Spst "changes were needed") \ 355219370Spst \ 355319370Spst develop(bool, VerifyReflectionBytecodes, false, \ 355419370Spst "Force verification of 1.4 reflection bytecodes. Does not work " \ 355519370Spst "in situations like that described in 4486457 or for " \ 355619370Spst "constructors generated for serialization, so can not be enabled "\ 355719370Spst "in product.") \ 355819370Spst \ 355919370Spst product(bool, ReflectionWrapResolutionErrors, true, \ 356019370Spst "Temporary flag for transition to AbstractMethodError wrapped " \ 356119370Spst "in InvocationTargetException. See 6531596") \ 356298944Sobrien \ 356398944Sobrien \ 356498944Sobrien develop(intx, FastSuperclassLimit, 8, \ 356598944Sobrien "Depth of hardwired instanceof accelerator array") \ 356698944Sobrien \ 356719370Spst /* Properties for Java libraries */ \ 356819370Spst \ 356919370Spst product(intx, MaxDirectMemorySize, -1, \ 357019370Spst "Maximum total size of NIO direct-buffer allocations") \ 357119370Spst \ 357219370Spst /* temporary developer defined flags */ \ 357398944Sobrien \ 357419370Spst diagnostic(bool, UseNewCode, false, \ 357519370Spst "Testing Only: Use the new version while testing") \ 357619370Spst \ 357719370Spst diagnostic(bool, UseNewCode2, false, \ 357846283Sdfr "Testing Only: Use the new version while testing") \ 357919370Spst \ 358019370Spst diagnostic(bool, UseNewCode3, false, \ 358119370Spst "Testing Only: Use the new version while testing") \ 358298944Sobrien \ 358398944Sobrien /* flags for performance data collection */ \ 358498944Sobrien \ 358598944Sobrien NOT_EMBEDDED(product(bool, UsePerfData, true, \ 358698944Sobrien "Flag to disable jvmstat instrumentation for performance testing" \ 358798944Sobrien "and problem isolation purposes.")) \ 358898944Sobrien \ 358998944Sobrien EMBEDDED_ONLY(product(bool, UsePerfData, false, \ 359019370Spst "Flag to disable jvmstat instrumentation for performance testing" \ 359119370Spst "and problem isolation purposes.")) \ 359219370Spst \ 359319370Spst product(bool, PerfDataSaveToFile, false, \ 359419370Spst "Save PerfData memory to hsperfdata_<pid> file on exit") \ 359519370Spst \ 359646283Sdfr product(ccstr, PerfDataSaveFile, NULL, \ 359746283Sdfr "Save PerfData memory to the specified absolute pathname," \ 359819370Spst "%p in the file name if present will be replaced by pid") \ 359919370Spst \ 360019370Spst product(intx, PerfDataSamplingInterval, 50 /*ms*/, \ 360146283Sdfr "Data sampling interval in milliseconds") \ 360246283Sdfr \ 360346283Sdfr develop(bool, PerfTraceDataCreation, false, \ 360446283Sdfr "Trace creation of Performance Data Entries") \ 360546283Sdfr \ 360619370Spst develop(bool, PerfTraceMemOps, false, \ 360719370Spst "Trace PerfMemory create/attach/detach calls") \ 360819370Spst \ 360919370Spst product(bool, PerfDisableSharedMem, false, \ 361019370Spst "Store performance data in standard memory") \ 361119370Spst \ 361219370Spst product(intx, PerfDataMemorySize, 32*K, \ 361319370Spst "Size of performance data memory region. Will be rounded " \ 361419370Spst "up to a multiple of the native os page size.") \ 361519370Spst \ 361619370Spst product(intx, PerfMaxStringConstLength, 1024, \ 361719370Spst "Maximum PerfStringConstant string length before truncation") \ 361819370Spst \ 361919370Spst product(bool, PerfAllowAtExitRegistration, false, \ 362019370Spst "Allow registration of atexit() methods") \ 362119370Spst \ 362219370Spst product(bool, PerfBypassFileSystemCheck, false, \ 362319370Spst "Bypass Win32 file system criteria checks (Windows Only)") \ 362419370Spst \ 362519370Spst product(intx, UnguardOnExecutionViolation, 0, \ 362619370Spst "Unguard page and retry on no-execute fault (Win32 only)" \ 362719370Spst "0=off, 1=conservative, 2=aggressive") \ 362819370Spst \ 362919370Spst /* Serviceability Support */ \ 363019370Spst \ 363119370Spst product(bool, ManagementServer, false, \ 363219370Spst "Create JMX Management Server") \ 363319370Spst \ 363419370Spst product(bool, DisableAttachMechanism, false, \ 363598944Sobrien "Disable mechanism that allows tools to attach to this VM") \ 363619370Spst \ 363719370Spst product(bool, StartAttachListener, false, \ 363846283Sdfr "Always start Attach Listener at VM startup") \ 363919370Spst \ 364098944Sobrien manageable(bool, PrintConcurrentLocks, false, \ 364119370Spst "Print java.util.concurrent locks in thread dump") \ 364219370Spst \ 364319370Spst product(bool, TransmitErrorReport, false, \ 364419370Spst "Enable error report transmission on erroneous termination") \ 364598944Sobrien \ 364619370Spst product(ccstr, ErrorReportServer, NULL, \ 364719370Spst "Override built-in error report server address") \ 364819370Spst \ 364919370Spst /* Shared spaces */ \ 3650130803Smarcel \ 365119370Spst product(bool, UseSharedSpaces, true, \ 365219370Spst "Use shared spaces in the permanent generation") \ 365319370Spst \ 365419370Spst product(bool, RequireSharedSpaces, false, \ 365519370Spst "Require shared spaces in the permanent generation") \ 365619370Spst \ 365719370Spst product(bool, DumpSharedSpaces, false, \ 365819370Spst "Special mode: JVM reads a class list, loads classes, builds " \ 365919370Spst "shared spaces, and dumps the shared spaces to a file to be " \ 366019370Spst "used in future JVM runs.") \ 366119370Spst \ 366219370Spst product(bool, PrintSharedSpaces, false, \ 366319370Spst "Print usage of shared spaces") \ 366419370Spst \ 3665130803Smarcel product(uintx, SharedDummyBlockSize, 512*M, \ 3666130803Smarcel "Size of dummy block used to shift heap addresses (in bytes)") \ 3667130803Smarcel \ 3668130803Smarcel product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(13*M), \ 3669130803Smarcel "Size of read-write space in permanent generation (in bytes)") \ 3670130803Smarcel \ 367119370Spst product(uintx, SharedReadOnlySize, 10*M, \ 367219370Spst "Size of read-only space in permanent generation (in bytes)") \ 367319370Spst \ 367419370Spst product(uintx, SharedMiscDataSize, NOT_LP64(4*M) LP64_ONLY(5*M), \ 367519370Spst "Size of the shared data area adjacent to the heap (in bytes)") \ 367619370Spst \ 367719370Spst product(uintx, SharedMiscCodeSize, 4*M, \ 367819370Spst "Size of the shared code area adjacent to the heap (in bytes)") \ 367919370Spst \ 368019370Spst diagnostic(bool, SharedOptimizeColdStart, true, \ 368119370Spst "At dump time, order shared objects to achieve better " \ 368219370Spst "cold startup time.") \ 368319370Spst \ 368419370Spst develop(intx, SharedOptimizeColdStartPolicy, 2, \ 368519370Spst "Reordering policy for SharedOptimizeColdStart " \ 368619370Spst "0=favor classload-time locality, 1=balanced, " \ 368719370Spst "2=favor runtime locality") \ 368898944Sobrien \ 368919370Spst diagnostic(bool, SharedSkipVerify, false, \ 369019370Spst "Skip assert() and verify() which page-in unwanted shared " \ 369119370Spst "objects. ") \ 369219370Spst \ 369319370Spst product(bool, AnonymousClasses, false, \ 369419370Spst "support sun.misc.Unsafe.defineAnonymousClass") \ 369519370Spst \ 369619370Spst experimental(bool, EnableMethodHandles, false, \ 369719370Spst "support method handles (true by default under JSR 292)") \ 369898944Sobrien \ 369919370Spst diagnostic(intx, MethodHandlePushLimit, 3, \ 370019370Spst "number of additional stack slots a method handle may push") \ 370119370Spst \ 370219370Spst develop(bool, TraceMethodHandles, false, \ 370319370Spst "trace internal method handle operations") \ 370419370Spst \ 370519370Spst diagnostic(bool, VerifyMethodHandles, trueInDebug, \ 370619370Spst "perform extra checks when constructing method handles") \ 370719370Spst \ 370819370Spst diagnostic(bool, OptimizeMethodHandles, true, \ 370919370Spst "when constructing method handles, try to improve them") \ 371019370Spst \ 371119370Spst experimental(bool, TrustFinalNonStaticFields, false, \ 371219370Spst "trust final non-static declarations for constant folding") \ 3713130803Smarcel \ 371419370Spst experimental(bool, EnableInvokeDynamic, false, \ 371519370Spst "recognize the invokedynamic instruction") \ 371619370Spst \ 371719370Spst experimental(bool, AllowTransitionalJSR292, true, \ 371819370Spst "recognize pre-PFD formats of invokedynamic") \ 371919370Spst \ 372019370Spst experimental(bool, PreferTransitionalJSR292, false, \ 372119370Spst "prefer pre-PFD APIs on boot class path, if they exist") \ 372219370Spst \ 372319370Spst experimental(bool, AllowInvokeForInvokeGeneric, false, \ 372498944Sobrien "accept MethodHandle.invoke and MethodHandle.invokeGeneric " \ 372519370Spst "as equivalent methods") \ 372698944Sobrien \ 372719370Spst develop(bool, TraceInvokeDynamic, false, \ 372819370Spst "trace internal invoke dynamic operations") \ 372919370Spst \ 373019370Spst diagnostic(bool, PauseAtStartup, false, \ 373119370Spst "Causes the VM to pause at startup time and wait for the pause " \ 373219370Spst "file to be removed (default: ./vm.paused.<pid>)") \ 373319370Spst \ 373419370Spst diagnostic(ccstr, PauseAtStartupFile, NULL, \ 373519370Spst "The file to create and for whose removal to await when pausing " \ 373619370Spst "at startup. (default: ./vm.paused.<pid>)") \ 373719370Spst \ 373819370Spst diagnostic(bool, PauseAtExit, false, \ 373919370Spst "Pause and wait for keypress on exit if a debugger is attached") \ 374019370Spst \ 374119370Spst product(bool, ExtendedDTraceProbes, false, \ 374219370Spst "Enable performance-impacting dtrace probes") \ 374319370Spst \ 374419370Spst product(bool, DTraceMethodProbes, false, \ 374519370Spst "Enable dtrace probes for method-entry and method-exit") \ 374619370Spst \ 374719370Spst product(bool, DTraceAllocProbes, false, \ 374819370Spst "Enable dtrace probes for object allocation") \ 374919370Spst \ 375019370Spst product(bool, DTraceMonitorProbes, false, \ 375119370Spst "Enable dtrace probes for monitor events") \ 375219370Spst \ 375319370Spst product(bool, RelaxAccessControlCheck, false, \ 375419370Spst "Relax the access control checks in the verifier") \ 375519370Spst \ 375619370Spst diagnostic(bool, PrintDTraceDOF, false, \ 375719370Spst "Print the DTrace DOF passed to the system for JSDT probes") \ 375819370Spst \ 375919370Spst product(uintx, StringTableSize, 1009, \ 376019370Spst "Number of buckets in the interned String table") \ 376119370Spst \ 376219370Spst product(bool, UseVMInterruptibleIO, false, \ 376319370Spst "(Unstable, Solaris-specific) Thread interrupt before or with " \ 376419370Spst "EINTR for I/O operations results in OS_INTRPT. The default value"\ 376519370Spst " of this flag is true for JDK 6 and earliers") 376619370Spst 376719370Spst/* 376898944Sobrien * Macros for factoring of globals 376919370Spst */ 377098944Sobrien 377119370Spst// Interface macros 377219370Spst#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 377319370Spst#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 377419370Spst#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 377519370Spst#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; 377619370Spst#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 377719370Spst#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 377819370Spst#ifdef PRODUCT 377919370Spst#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) const type name = value; 378019370Spst#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) const type name = pd_##name; 378119370Spst#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) 378219370Spst#else 378319370Spst#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 378419370Spst#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 378519370Spst#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 378619370Spst#endif 378798944Sobrien// Special LP64 flags, product only needed for now. 378819370Spst#ifdef _LP64 378919370Spst#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 379019370Spst#else 379119370Spst#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; 379219370Spst#endif // _LP64 379319370Spst 379419370Spst// Implementation macros 379519370Spst#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; 379619370Spst#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; 379719370Spst#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; 379819370Spst#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; 379919370Spst#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; 380019370Spst#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; 380119370Spst#ifdef PRODUCT 380219370Spst#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) /* flag name is constant */ 380319370Spst#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) /* flag name is constant */ 380419370Spst#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) 380519370Spst#else 380619370Spst#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; 380719370Spst#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; 380819370Spst#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; 380919370Spst#endif 381019370Spst#ifdef _LP64 381119370Spst#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; 381219370Spst#else 381319370Spst#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ 381419370Spst#endif // _LP64 381519370Spst 381619370SpstRUNTIME_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) 381719370Spst 381819370SpstRUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) 381919370Spst 382019370Spst#endif // SHARE_VM_RUNTIME_GLOBALS_HPP 382119370Spst