globals.hpp revision 9114:0300297e7df3
150397Sobrien/* 250397Sobrien * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. 350397Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 450397Sobrien * 550397Sobrien * This code is free software; you can redistribute it and/or modify it 650397Sobrien * under the terms of the GNU General Public License version 2 only, as 750397Sobrien * published by the Free Software Foundation. 850397Sobrien * 950397Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT 1050397Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1150397Sobrien * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1250397Sobrien * version 2 for more details (a copy is included in the LICENSE file that 1350397Sobrien * accompanied this code). 1450397Sobrien * 1550397Sobrien * You should have received a copy of the GNU General Public License version 1650397Sobrien * 2 along with this work; if not, write to the Free Software Foundation, 1750397Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1850397Sobrien * 1950397Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2050397Sobrien * or visit www.oracle.com if you need additional information or have any 2150397Sobrien * questions. 2250397Sobrien * 2350397Sobrien */ 2450397Sobrien 2550397Sobrien#ifndef SHARE_VM_RUNTIME_GLOBALS_HPP 2650397Sobrien#define SHARE_VM_RUNTIME_GLOBALS_HPP 2750397Sobrien 2850397Sobrien#include <float.h> 2950397Sobrien#include "utilities/debug.hpp" 3050397Sobrien 3150397Sobrien// use this for flags that are true per default in the tiered build 3250397Sobrien// but false in non-tiered builds, and vice versa 3350397Sobrien#ifdef TIERED 3450397Sobrien#define trueInTiered true 3550397Sobrien#define falseInTiered false 3650397Sobrien#else 3750397Sobrien#define trueInTiered false 3850397Sobrien#define falseInTiered true 3950397Sobrien#endif 4050397Sobrien 4150397Sobrien#ifdef TARGET_ARCH_x86 4250397Sobrien# include "globals_x86.hpp" 4350397Sobrien#endif 4450397Sobrien#ifdef TARGET_ARCH_sparc 4550397Sobrien# include "globals_sparc.hpp" 4650397Sobrien#endif 4750397Sobrien#ifdef TARGET_ARCH_zero 4850397Sobrien# include "globals_zero.hpp" 4950397Sobrien#endif 5050397Sobrien#ifdef TARGET_ARCH_arm 5150397Sobrien# include "globals_arm.hpp" 5250397Sobrien#endif 5350397Sobrien#ifdef TARGET_ARCH_ppc 5450397Sobrien# include "globals_ppc.hpp" 5550397Sobrien#endif 5650397Sobrien#ifdef TARGET_ARCH_aarch64 5750397Sobrien# include "globals_aarch64.hpp" 5850397Sobrien#endif 5950397Sobrien#ifdef TARGET_OS_FAMILY_linux 6050397Sobrien# include "globals_linux.hpp" 6150397Sobrien#endif 6250397Sobrien#ifdef TARGET_OS_FAMILY_solaris 6350397Sobrien# include "globals_solaris.hpp" 6450397Sobrien#endif 6550397Sobrien#ifdef TARGET_OS_FAMILY_windows 6650397Sobrien# include "globals_windows.hpp" 6750397Sobrien#endif 6850397Sobrien#ifdef TARGET_OS_FAMILY_aix 6950397Sobrien# include "globals_aix.hpp" 7050397Sobrien#endif 7150397Sobrien#ifdef TARGET_OS_FAMILY_bsd 7250397Sobrien# include "globals_bsd.hpp" 7350397Sobrien#endif 7450397Sobrien#ifdef TARGET_OS_ARCH_linux_x86 7550397Sobrien# include "globals_linux_x86.hpp" 7650397Sobrien#endif 7750397Sobrien#ifdef TARGET_OS_ARCH_linux_sparc 7850397Sobrien# include "globals_linux_sparc.hpp" 7950397Sobrien#endif 8050397Sobrien#ifdef TARGET_OS_ARCH_linux_zero 8150397Sobrien# include "globals_linux_zero.hpp" 8250397Sobrien#endif 8350397Sobrien#ifdef TARGET_OS_ARCH_solaris_x86 8450397Sobrien# include "globals_solaris_x86.hpp" 8550397Sobrien#endif 8650397Sobrien#ifdef TARGET_OS_ARCH_solaris_sparc 8750397Sobrien# include "globals_solaris_sparc.hpp" 8850397Sobrien#endif 8950397Sobrien#ifdef TARGET_OS_ARCH_windows_x86 9050397Sobrien# include "globals_windows_x86.hpp" 9150397Sobrien#endif 9250397Sobrien#ifdef TARGET_OS_ARCH_linux_arm 9350397Sobrien# include "globals_linux_arm.hpp" 9450397Sobrien#endif 9550397Sobrien#ifdef TARGET_OS_ARCH_linux_ppc 9650397Sobrien# include "globals_linux_ppc.hpp" 9750397Sobrien#endif 9850397Sobrien#ifdef TARGET_OS_ARCH_linux_aarch64 9950397Sobrien# include "globals_linux_aarch64.hpp" 10050397Sobrien#endif 10150397Sobrien#ifdef TARGET_OS_ARCH_aix_ppc 10250397Sobrien# include "globals_aix_ppc.hpp" 10350397Sobrien#endif 10450397Sobrien#ifdef TARGET_OS_ARCH_bsd_x86 10550397Sobrien# include "globals_bsd_x86.hpp" 10650397Sobrien#endif 10750397Sobrien#ifdef TARGET_OS_ARCH_bsd_zero 10850397Sobrien# include "globals_bsd_zero.hpp" 10950397Sobrien#endif 11050397Sobrien#ifdef COMPILER1 11150397Sobrien#ifdef TARGET_ARCH_x86 11250397Sobrien# include "c1_globals_x86.hpp" 11350397Sobrien#endif 11450397Sobrien#ifdef TARGET_ARCH_sparc 11550397Sobrien# include "c1_globals_sparc.hpp" 11650397Sobrien#endif 11750397Sobrien#ifdef TARGET_ARCH_arm 11850397Sobrien# include "c1_globals_arm.hpp" 11950397Sobrien#endif 12050397Sobrien#ifdef TARGET_ARCH_aarch64 12150397Sobrien# include "c1_globals_aarch64.hpp" 12250397Sobrien#endif 12350397Sobrien#ifdef TARGET_OS_FAMILY_linux 12450397Sobrien# include "c1_globals_linux.hpp" 12550397Sobrien#endif 12650397Sobrien#ifdef TARGET_OS_FAMILY_solaris 12750397Sobrien# include "c1_globals_solaris.hpp" 12850397Sobrien#endif 12950397Sobrien#ifdef TARGET_OS_FAMILY_windows 13050397Sobrien# include "c1_globals_windows.hpp" 13150397Sobrien#endif 13250397Sobrien#ifdef TARGET_OS_FAMILY_aix 13350397Sobrien# include "c1_globals_aix.hpp" 13450397Sobrien#endif 13550397Sobrien#ifdef TARGET_OS_FAMILY_bsd 13650397Sobrien# include "c1_globals_bsd.hpp" 13750397Sobrien#endif 13850397Sobrien#ifdef TARGET_ARCH_ppc 13950397Sobrien# include "c1_globals_ppc.hpp" 14050397Sobrien#endif 14150397Sobrien#endif 14250397Sobrien#ifdef COMPILER2 14350397Sobrien#ifdef TARGET_ARCH_x86 14450397Sobrien# include "c2_globals_x86.hpp" 14550397Sobrien#endif 14650397Sobrien#ifdef TARGET_ARCH_sparc 14750397Sobrien# include "c2_globals_sparc.hpp" 14850397Sobrien#endif 14950397Sobrien#ifdef TARGET_ARCH_arm 15050397Sobrien# include "c2_globals_arm.hpp" 15150397Sobrien#endif 15250397Sobrien#ifdef TARGET_ARCH_ppc 15350397Sobrien# include "c2_globals_ppc.hpp" 15450397Sobrien#endif 15550397Sobrien#ifdef TARGET_ARCH_aarch64 15650397Sobrien# include "c2_globals_aarch64.hpp" 15750397Sobrien#endif 15850397Sobrien#ifdef TARGET_OS_FAMILY_linux 15950397Sobrien# include "c2_globals_linux.hpp" 16050397Sobrien#endif 16150397Sobrien#ifdef TARGET_OS_FAMILY_solaris 16250397Sobrien# include "c2_globals_solaris.hpp" 16350397Sobrien#endif 16450397Sobrien#ifdef TARGET_OS_FAMILY_windows 16550397Sobrien# include "c2_globals_windows.hpp" 16650397Sobrien#endif 16750397Sobrien#ifdef TARGET_OS_FAMILY_aix 16850397Sobrien# include "c2_globals_aix.hpp" 16950397Sobrien#endif 17050397Sobrien#ifdef TARGET_OS_FAMILY_bsd 17150397Sobrien# include "c2_globals_bsd.hpp" 17250397Sobrien#endif 17350397Sobrien#endif 17450397Sobrien#ifdef SHARK 17550397Sobrien#ifdef TARGET_ARCH_zero 17650397Sobrien# include "shark_globals_zero.hpp" 17750397Sobrien#endif 17850397Sobrien#endif 17950397Sobrien 18050397Sobrien#if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) && !INCLUDE_JVMCI 18150397Sobriendefine_pd_global(bool, BackgroundCompilation, false); 18250397Sobriendefine_pd_global(bool, UseTLAB, false); 18350397Sobriendefine_pd_global(bool, CICompileOSR, false); 18450397Sobriendefine_pd_global(bool, UseTypeProfile, false); 18550397Sobriendefine_pd_global(bool, UseOnStackReplacement, false); 18650397Sobriendefine_pd_global(bool, InlineIntrinsics, false); 18750397Sobriendefine_pd_global(bool, PreferInterpreterNativeStubs, true); 18850397Sobriendefine_pd_global(bool, ProfileInterpreter, false); 18950397Sobriendefine_pd_global(bool, ProfileTraps, false); 19050397Sobriendefine_pd_global(bool, TieredCompilation, false); 19150397Sobrien 19250397Sobriendefine_pd_global(intx, CompileThreshold, 0); 19350397Sobrien 19450397Sobriendefine_pd_global(intx, OnStackReplacePercentage, 0); 19550397Sobriendefine_pd_global(bool, ResizeTLAB, false); 19650397Sobriendefine_pd_global(intx, FreqInlineSize, 0); 19750397Sobriendefine_pd_global(size_t, NewSizeThreadIncrease, 4*K); 19850397Sobriendefine_pd_global(intx, InlineClassNatives, true); 19950397Sobriendefine_pd_global(intx, InlineUnsafeOps, true); 20050397Sobriendefine_pd_global(intx, InitialCodeCacheSize, 160*K); 20150397Sobriendefine_pd_global(intx, ReservedCodeCacheSize, 32*M); 20250397Sobriendefine_pd_global(intx, NonProfiledCodeHeapSize, 0); 20350397Sobriendefine_pd_global(intx, ProfiledCodeHeapSize, 0); 20450397Sobriendefine_pd_global(intx, NonNMethodCodeHeapSize, 32*M); 20550397Sobrien 20650397Sobriendefine_pd_global(intx, CodeCacheExpansionSize, 32*K); 20750397Sobriendefine_pd_global(intx, CodeCacheMinBlockLength, 1); 20850397Sobriendefine_pd_global(intx, CodeCacheMinimumUseSpace, 200*K); 20950397Sobriendefine_pd_global(size_t, MetaspaceSize, ScaleForWordSize(4*M)); 21050397Sobriendefine_pd_global(bool, NeverActAsServerClassMachine, true); 21150397Sobriendefine_pd_global(uint64_t,MaxRAM, 1ULL*G); 21250397Sobrien#define CI_COMPILER_COUNT 0 21350397Sobrien#else 21450397Sobrien 21550397Sobrien#if defined(COMPILER2) || INCLUDE_JVMCI 21650397Sobrien#define CI_COMPILER_COUNT 2 21750397Sobrien#else 21850397Sobrien#define CI_COMPILER_COUNT 1 21950397Sobrien#endif // COMPILER2 || INCLUDE_JVMCI 22050397Sobrien 22150397Sobrien#endif // no compilers 22250397Sobrien 22350397Sobrien// string type aliases used only in this file 22450397Sobrientypedef const char* ccstr; 22550397Sobrientypedef const char* ccstrlist; // represents string arguments which accumulate 22650397Sobrien 22750397Sobrienstruct Flag { 22850397Sobrien enum Flags { 22950397Sobrien // value origin 23050397Sobrien DEFAULT = 0, 23150397Sobrien COMMAND_LINE = 1, 23250397Sobrien ENVIRON_VAR = 2, 23350397Sobrien CONFIG_FILE = 3, 23450397Sobrien MANAGEMENT = 4, 23550397Sobrien ERGONOMIC = 5, 23650397Sobrien ATTACH_ON_DEMAND = 6, 23750397Sobrien INTERNAL = 7, 23850397Sobrien 23950397Sobrien LAST_VALUE_ORIGIN = INTERNAL, 24050397Sobrien VALUE_ORIGIN_BITS = 4, 24150397Sobrien VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS), 24250397Sobrien 24350397Sobrien // flag kind 24450397Sobrien KIND_PRODUCT = 1 << 4, 24550397Sobrien KIND_MANAGEABLE = 1 << 5, 24650397Sobrien KIND_DIAGNOSTIC = 1 << 6, 24750397Sobrien KIND_EXPERIMENTAL = 1 << 7, 24850397Sobrien KIND_NOT_PRODUCT = 1 << 8, 24950397Sobrien KIND_DEVELOP = 1 << 9, 25050397Sobrien KIND_PLATFORM_DEPENDENT = 1 << 10, 25150397Sobrien KIND_READ_WRITE = 1 << 11, 25250397Sobrien KIND_C1 = 1 << 12, 25350397Sobrien KIND_C2 = 1 << 13, 25450397Sobrien KIND_ARCH = 1 << 14, 25550397Sobrien KIND_SHARK = 1 << 15, 25650397Sobrien KIND_LP64_PRODUCT = 1 << 16, 25750397Sobrien KIND_COMMERCIAL = 1 << 17, 25850397Sobrien KIND_JVMCI = 1 << 18, 25950397Sobrien 26050397Sobrien KIND_MASK = ~VALUE_ORIGIN_MASK 26150397Sobrien }; 26250397Sobrien 26350397Sobrien enum Error { 26450397Sobrien // no error 26550397Sobrien SUCCESS = 0, 26650397Sobrien // flag name is missing 26750397Sobrien MISSING_NAME, 26850397Sobrien // flag value is missing 26950397Sobrien MISSING_VALUE, 27050397Sobrien // error parsing the textual form of the value 27150397Sobrien WRONG_FORMAT, 27250397Sobrien // flag is not writeable 27350397Sobrien NON_WRITABLE, 27450397Sobrien // flag value is outside of its bounds 27550397Sobrien OUT_OF_BOUNDS, 27650397Sobrien // flag value violates its constraint 27750397Sobrien VIOLATES_CONSTRAINT, 27850397Sobrien // there is no flag with the given name 27950397Sobrien INVALID_FLAG, 28050397Sobrien // other, unspecified error related to setting the flag 28150397Sobrien ERR_OTHER 28250397Sobrien }; 28350397Sobrien 28450397Sobrien const char* _type; 28550397Sobrien const char* _name; 28650397Sobrien void* _addr; 28750397Sobrien NOT_PRODUCT(const char* _doc;) 28850397Sobrien Flags _flags; 28950397Sobrien 29050397Sobrien // points to all Flags static array 29150397Sobrien static Flag* flags; 29250397Sobrien 29350397Sobrien // number of flags 29450397Sobrien static size_t numFlags; 29550397Sobrien 29650397Sobrien static Flag* find_flag(const char* name) { return find_flag(name, strlen(name), true, true); }; 29750397Sobrien static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false); 29850397Sobrien static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false); 29950397Sobrien 30050397Sobrien void check_writable(); 30150397Sobrien 30250397Sobrien bool is_bool() const; 30350397Sobrien bool get_bool() const; 30450397Sobrien void set_bool(bool value); 30550397Sobrien 30650397Sobrien bool is_int() const; 30750397Sobrien int get_int() const; 30850397Sobrien void set_int(int value); 30950397Sobrien 31050397Sobrien bool is_uint() const; 31150397Sobrien uint get_uint() const; 31250397Sobrien void set_uint(uint value); 31350397Sobrien 31450397Sobrien bool is_intx() const; 31550397Sobrien intx get_intx() const; 31650397Sobrien void set_intx(intx value); 31750397Sobrien 31850397Sobrien bool is_uintx() const; 31950397Sobrien uintx get_uintx() const; 32050397Sobrien void set_uintx(uintx value); 32150397Sobrien 32250397Sobrien bool is_uint64_t() const; 32350397Sobrien uint64_t get_uint64_t() const; 32450397Sobrien void set_uint64_t(uint64_t value); 32550397Sobrien 32650397Sobrien bool is_size_t() const; 32750397Sobrien size_t get_size_t() const; 32850397Sobrien void set_size_t(size_t value); 32950397Sobrien 33050397Sobrien bool is_double() const; 33150397Sobrien double get_double() const; 33250397Sobrien void set_double(double value); 33350397Sobrien 33450397Sobrien bool is_ccstr() const; 33550397Sobrien bool ccstr_accumulates() const; 33650397Sobrien ccstr get_ccstr() const; 33750397Sobrien void set_ccstr(ccstr value); 33850397Sobrien 33950397Sobrien Flags get_origin(); 34050397Sobrien void set_origin(Flags origin); 34150397Sobrien 34250397Sobrien bool is_default(); 34350397Sobrien bool is_ergonomic(); 34450397Sobrien bool is_command_line(); 34550397Sobrien 34650397Sobrien bool is_product() const; 34750397Sobrien bool is_manageable() const; 34850397Sobrien bool is_diagnostic() const; 34950397Sobrien bool is_experimental() const; 35050397Sobrien bool is_notproduct() const; 35150397Sobrien bool is_develop() const; 35250397Sobrien bool is_read_write() const; 35350397Sobrien bool is_commercial() const; 35450397Sobrien 35550397Sobrien bool is_constant_in_binary() const; 35650397Sobrien 35750397Sobrien bool is_unlocker() const; 35850397Sobrien bool is_unlocked() const; 35950397Sobrien bool is_writeable() const; 36050397Sobrien bool is_external() const; 36150397Sobrien 36250397Sobrien bool is_unlocker_ext() const; 36350397Sobrien bool is_unlocked_ext() const; 36450397Sobrien bool is_writeable_ext() const; 36550397Sobrien bool is_external_ext() const; 36650397Sobrien 36750397Sobrien void unlock_diagnostic(); 36850397Sobrien 36950397Sobrien void get_locked_message(char*, int) const; 37050397Sobrien void get_locked_message_ext(char*, int) const; 37150397Sobrien 37250397Sobrien // printRanges will print out flags type, name and range values as expected by -XX:+PrintFlagsRanges 37350397Sobrien void print_on(outputStream* st, bool withComments = false, bool printRanges = false); 37450397Sobrien void print_kind(outputStream* st); 37550397Sobrien void print_as_flag(outputStream* st); 37650397Sobrien 37750397Sobrien static const char* flag_error_str(Flag::Error error); 37850397Sobrien}; 37950397Sobrien 38050397Sobrien// debug flags control various aspects of the VM and are global accessible 38150397Sobrien 38250397Sobrien// use FlagSetting to temporarily change some debug flag 38350397Sobrien// e.g. FlagSetting fs(DebugThisAndThat, true); 38450397Sobrien// restored to previous value upon leaving scope 38550397Sobrienclass FlagSetting { 38650397Sobrien bool val; 38750397Sobrien bool* flag; 38850397Sobrien public: 38950397Sobrien FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } 39050397Sobrien ~FlagSetting() { *flag = val; } 39150397Sobrien}; 39250397Sobrien 39350397Sobrien 39450397Sobrienclass CounterSetting { 39550397Sobrien intx* counter; 39650397Sobrien public: 39750397Sobrien CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } 39850397Sobrien ~CounterSetting() { (*counter)--; } 39950397Sobrien}; 40050397Sobrien 40150397Sobrienclass IntFlagSetting { 40250397Sobrien int val; 40350397Sobrien int* flag; 40450397Sobrien public: 40550397Sobrien IntFlagSetting(int& fl, int newValue) { flag = &fl; val = fl; fl = newValue; } 40650397Sobrien ~IntFlagSetting() { *flag = val; } 40750397Sobrien}; 40850397Sobrien 40952284Sobrienclass UIntFlagSetting { 41052284Sobrien uint val; 41150397Sobrien uint* flag; 41250397Sobrien public: 41350397Sobrien UIntFlagSetting(uint& fl, uint newValue) { flag = &fl; val = fl; fl = newValue; } 41450397Sobrien ~UIntFlagSetting() { *flag = val; } 41550397Sobrien}; 41650397Sobrien 41750397Sobrienclass UIntXFlagSetting { 41850397Sobrien uintx val; 41950397Sobrien uintx* flag; 42050397Sobrien public: 42150397Sobrien UIntXFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; } 42250397Sobrien ~UIntXFlagSetting() { *flag = val; } 42350397Sobrien}; 42450397Sobrien 42550397Sobrienclass DoubleFlagSetting { 42650397Sobrien double val; 42750397Sobrien double* flag; 42850397Sobrien public: 42950397Sobrien DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } 43050397Sobrien ~DoubleFlagSetting() { *flag = val; } 43150397Sobrien}; 43250397Sobrien 43350397Sobrienclass SizeTFlagSetting { 43450397Sobrien size_t val; 43550397Sobrien size_t* flag; 43650397Sobrien public: 43750397Sobrien SizeTFlagSetting(size_t& fl, size_t newValue) { flag = &fl; val = fl; fl = newValue; } 43850397Sobrien ~SizeTFlagSetting() { *flag = val; } 43950397Sobrien}; 44050397Sobrien 44150397Sobrien 44250397Sobrienclass CommandLineFlags { 44350397Sobrienpublic: 44450397Sobrien static Flag::Error boolAt(const char* name, size_t len, bool* value, bool allow_locked = false, bool return_flag = false); 44550397Sobrien static Flag::Error boolAt(const char* name, bool* value, bool allow_locked = false, bool return_flag = false) { return boolAt(name, strlen(name), value, allow_locked, return_flag); } 44650397Sobrien static Flag::Error boolAtPut(const char* name, size_t len, bool* value, Flag::Flags origin); 44750397Sobrien static Flag::Error boolAtPut(const char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); } 44850397Sobrien 44950397Sobrien static Flag::Error intAt(const char* name, size_t len, int* value, bool allow_locked = false, bool return_flag = false); 45050397Sobrien static Flag::Error intAt(const char* name, int* value, bool allow_locked = false, bool return_flag = false) { return intAt(name, strlen(name), value, allow_locked, return_flag); } 45150397Sobrien static Flag::Error intAtPut(const char* name, size_t len, int* value, Flag::Flags origin); 45250397Sobrien static Flag::Error intAtPut(const char* name, int* value, Flag::Flags origin) { return intAtPut(name, strlen(name), value, origin); } 45350397Sobrien 45450397Sobrien static Flag::Error uintAt(const char* name, size_t len, uint* value, bool allow_locked = false, bool return_flag = false); 45550397Sobrien static Flag::Error uintAt(const char* name, uint* value, bool allow_locked = false, bool return_flag = false) { return uintAt(name, strlen(name), value, allow_locked, return_flag); } 45650397Sobrien static Flag::Error uintAtPut(const char* name, size_t len, uint* value, Flag::Flags origin); 45750397Sobrien static Flag::Error uintAtPut(const char* name, uint* value, Flag::Flags origin) { return uintAtPut(name, strlen(name), value, origin); } 45850397Sobrien 45950397Sobrien static Flag::Error intxAt(const char* name, size_t len, intx* value, bool allow_locked = false, bool return_flag = false); 46050397Sobrien static Flag::Error intxAt(const char* name, intx* value, bool allow_locked = false, bool return_flag = false) { return intxAt(name, strlen(name), value, allow_locked, return_flag); } 46150397Sobrien static Flag::Error intxAtPut(const char* name, size_t len, intx* value, Flag::Flags origin); 46250397Sobrien static Flag::Error intxAtPut(const char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); } 46350397Sobrien 46450397Sobrien static Flag::Error uintxAt(const char* name, size_t len, uintx* value, bool allow_locked = false, bool return_flag = false); 46550397Sobrien static Flag::Error uintxAt(const char* name, uintx* value, bool allow_locked = false, bool return_flag = false) { return uintxAt(name, strlen(name), value, allow_locked, return_flag); } 46650397Sobrien static Flag::Error uintxAtPut(const char* name, size_t len, uintx* value, Flag::Flags origin); 46750397Sobrien static Flag::Error uintxAtPut(const char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); } 46850397Sobrien 46950397Sobrien static Flag::Error size_tAt(const char* name, size_t len, size_t* value, bool allow_locked = false, bool return_flag = false); 47050397Sobrien static Flag::Error size_tAt(const char* name, size_t* value, bool allow_locked = false, bool return_flag = false) { return size_tAt(name, strlen(name), value, allow_locked, return_flag); } 47150397Sobrien static Flag::Error size_tAtPut(const char* name, size_t len, size_t* value, Flag::Flags origin); 47250397Sobrien static Flag::Error size_tAtPut(const char* name, size_t* value, Flag::Flags origin) { return size_tAtPut(name, strlen(name), value, origin); } 47350397Sobrien 47450397Sobrien static Flag::Error uint64_tAt(const char* name, size_t len, uint64_t* value, bool allow_locked = false, bool return_flag = false); 47550397Sobrien static Flag::Error uint64_tAt(const char* name, uint64_t* value, bool allow_locked = false, bool return_flag = false) { return uint64_tAt(name, strlen(name), value, allow_locked, return_flag); } 47650397Sobrien static Flag::Error uint64_tAtPut(const char* name, size_t len, uint64_t* value, Flag::Flags origin); 47750397Sobrien static Flag::Error uint64_tAtPut(const char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); } 47850397Sobrien 47950397Sobrien static Flag::Error doubleAt(const char* name, size_t len, double* value, bool allow_locked = false, bool return_flag = false); 48050397Sobrien static Flag::Error doubleAt(const char* name, double* value, bool allow_locked = false, bool return_flag = false) { return doubleAt(name, strlen(name), value, allow_locked, return_flag); } 48150397Sobrien static Flag::Error doubleAtPut(const char* name, size_t len, double* value, Flag::Flags origin); 48250397Sobrien static Flag::Error doubleAtPut(const char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } 48350397Sobrien 48450397Sobrien static Flag::Error ccstrAt(const char* name, size_t len, ccstr* value, bool allow_locked = false, bool return_flag = false); 48550397Sobrien static Flag::Error ccstrAt(const char* name, ccstr* value, bool allow_locked = false, bool return_flag = false) { return ccstrAt(name, strlen(name), value, allow_locked, return_flag); } 48650397Sobrien // Contract: Flag will make private copy of the incoming value. 48750397Sobrien // Outgoing value is always malloc-ed, and caller MUST call free. 48850397Sobrien static Flag::Error ccstrAtPut(const char* name, size_t len, ccstr* value, Flag::Flags origin); 48950397Sobrien static Flag::Error ccstrAtPut(const char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } 49050397Sobrien 49150397Sobrien // Returns false if name is not a command line flag. 49250397Sobrien static bool wasSetOnCmdline(const char* name, bool* value); 49350397Sobrien static void printSetFlags(outputStream* out); 49450397Sobrien 49552284Sobrien // printRanges will print out flags type, name and range values as expected by -XX:+PrintFlagsRanges 49652284Sobrien static void printFlags(outputStream* out, bool withComments, bool printRanges = false); 49752284Sobrien 49852284Sobrien static void verify() PRODUCT_RETURN; 49952284Sobrien}; 50052284Sobrien 50152284Sobrien// use this for flags that are true by default in the debug version but 50252284Sobrien// false in the optimized version, and vice versa 50352284Sobrien#ifdef ASSERT 50452284Sobrien#define trueInDebug true 50552284Sobrien#define falseInDebug false 50652284Sobrien#else 50752284Sobrien#define trueInDebug false 50852284Sobrien#define falseInDebug true 50952284Sobrien#endif 51052284Sobrien 51152284Sobrien// use this for flags that are true per default in the product build 51252284Sobrien// but false in development builds, and vice versa 51352284Sobrien#ifdef PRODUCT 51452284Sobrien#define trueInProduct true 51552284Sobrien#define falseInProduct false 51652284Sobrien#else 51752284Sobrien#define trueInProduct false 51850397Sobrien#define falseInProduct true 51950397Sobrien#endif 52050397Sobrien 52150397Sobrien#ifdef JAVASE_EMBEDDED 52250397Sobrien#define falseInEmbedded false 52350397Sobrien#else 52450397Sobrien#define falseInEmbedded true 52550397Sobrien#endif 52650397Sobrien 52750397Sobrien// develop flags are settable / visible only during development and are constant in the PRODUCT version 52850397Sobrien// product flags are always settable / visible 52952284Sobrien// notproduct flags are settable / visible only during development and are not declared in the PRODUCT version 53050397Sobrien 53150397Sobrien// A flag must be declared with one of the following types: 53250397Sobrien// bool, int, uint, intx, uintx, size_t, ccstr, double, or uint64_t. 53350397Sobrien// The type "ccstr" is an alias for "const char*" and is used 53450397Sobrien// only in this file, because the macrology requires single-token type names. 53550397Sobrien 53650397Sobrien// Note: Diagnostic options not meant for VM tuning or for product modes. 53750397Sobrien// They are to be used for VM quality assurance or field diagnosis 53850397Sobrien// of VM bugs. They are hidden so that users will not be encouraged to 53950397Sobrien// try them as if they were VM ordinary execution options. However, they 54052284Sobrien// are available in the product version of the VM. Under instruction 54152284Sobrien// from support engineers, VM customers can turn them on to collect 54252284Sobrien// diagnostic information about VM problems. To use a VM diagnostic 54352284Sobrien// option, you must first specify +UnlockDiagnosticVMOptions. 54452284Sobrien// (This master switch also affects the behavior of -Xprintflags.) 54552284Sobrien// 54652284Sobrien// experimental flags are in support of features that are not 54752284Sobrien// part of the officially supported product, but are available 54852284Sobrien// for experimenting with. They could, for example, be performance 54952284Sobrien// features that may not have undergone full or rigorous QA, but which may 55052284Sobrien// help performance in some cases and released for experimentation 55152284Sobrien// by the community of users and developers. This flag also allows one to 55252284Sobrien// be able to build a fully supported product that nonetheless also 55352284Sobrien// ships with some unsupported, lightly tested, experimental features. 55452284Sobrien// Like the UnlockDiagnosticVMOptions flag above, there is a corresponding 55552284Sobrien// UnlockExperimentalVMOptions flag, which allows the control and 55652284Sobrien// modification of the experimental flags. 55752284Sobrien// 55852284Sobrien// Nota bene: neither diagnostic nor experimental options should be used casually, 55952284Sobrien// and they are not supported on production loads, except under explicit 56052284Sobrien// direction from support engineers. 56152284Sobrien// 56252284Sobrien// manageable flags are writeable external product flags. 56350397Sobrien// They are dynamically writeable through the JDK management interface 56450397Sobrien// (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. 56550397Sobrien// These flags are external exported interface (see CCC). The list of 56650397Sobrien// manageable flags can be queried programmatically through the management 56750397Sobrien// interface. 56850397Sobrien// 56950397Sobrien// A flag can be made as "manageable" only if 57050397Sobrien// - the flag is defined in a CCC as an external exported interface. 57150397Sobrien// - the VM implementation supports dynamic setting of the flag. 57250397Sobrien// This implies that the VM must *always* query the flag variable 57350397Sobrien// and not reuse state related to the flag state at any given time. 57450397Sobrien// - you want the flag to be queried programmatically by the customers. 57550397Sobrien// 57650397Sobrien// product_rw flags are writeable internal product flags. 57750397Sobrien// They are like "manageable" flags but for internal/private use. 57850397Sobrien// The list of product_rw flags are internal/private flags which 57950397Sobrien// may be changed/removed in a future release. It can be set 58050397Sobrien// through the management interface to get/set value 58150397Sobrien// when the name of flag is supplied. 58250397Sobrien// 58350397Sobrien// A flag can be made as "product_rw" only if 58450397Sobrien// - the VM implementation supports dynamic setting of the flag. 58550397Sobrien// This implies that the VM must *always* query the flag variable 58650397Sobrien// and not reuse state related to the flag state at any given time. 58750397Sobrien// 58850397Sobrien// Note that when there is a need to support develop flags to be writeable, 58950397Sobrien// it can be done in the same way as product_rw. 59050397Sobrien// 59150397Sobrien// range is a macro that will expand to min and max arguments for range 59250397Sobrien// checking code if provided - see commandLineFlagRangeList.hpp 59350397Sobrien// 59450397Sobrien// constraint is a macro that will expand to custom function call 59550397Sobrien// for constraint checking if provided - see commandLineFlagConstraintList.hpp 59650397Sobrien// 59750397Sobrien 59850397Sobrien#define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product, range, constraint) \ 59950397Sobrien \ 60050397Sobrien lp64_product(bool, UseCompressedOops, false, \ 60150397Sobrien "Use 32-bit object references in 64-bit VM. " \ 60250397Sobrien "lp64_product means flag is always constant in 32 bit VM") \ 60350397Sobrien \ 60450397Sobrien lp64_product(bool, UseCompressedClassPointers, false, \ 60550397Sobrien "Use 32-bit class pointers in 64-bit VM. " \ 60650397Sobrien "lp64_product means flag is always constant in 32 bit VM") \ 60750397Sobrien \ 60850397Sobrien notproduct(bool, CheckCompressedOops, true, \ 60950397Sobrien "Generate checks in encoding/decoding code in debug VM") \ 61050397Sobrien \ 61150397Sobrien product_pd(size_t, HeapBaseMinAddress, \ 61250397Sobrien "OS specific low limit for heap base address") \ 61350397Sobrien \ 61450397Sobrien product(uintx, HeapSearchSteps, 3 PPC64_ONLY(+17), \ 61550397Sobrien "Heap allocation steps through preferred address regions to find" \ 61650397Sobrien " where it can allocate the heap. Number of steps to take per " \ 61750397Sobrien "region.") \ 61850397Sobrien range(1, max_uintx) \ 61950397Sobrien \ 62050397Sobrien diagnostic(bool, PrintCompressedOopsMode, false, \ 62150397Sobrien "Print compressed oops base address and encoding mode") \ 62250397Sobrien \ 62350397Sobrien lp64_product(intx, ObjectAlignmentInBytes, 8, \ 62450397Sobrien "Default object alignment in bytes, 8 is minimum") \ 62550397Sobrien range(8, 256) \ 62650397Sobrien constraint(ObjectAlignmentInBytesConstraintFunc,AtParse) \ 62750397Sobrien \ 62850397Sobrien product(bool, AssumeMP, false, \ 62950397Sobrien "Instruct the VM to assume multiple processors are available") \ 63050397Sobrien \ 63150397Sobrien /* UseMembar is theoretically a temp flag used for memory barrier */ \ 63250397Sobrien /* removal testing. It was supposed to be removed before FCS but has */ \ 63352284Sobrien /* been re-added (see 6401008) */ \ 63450397Sobrien product_pd(bool, UseMembar, \ 63550397Sobrien "(Unstable) Issues membars on thread state transitions") \ 63652284Sobrien \ 63752284Sobrien develop(bool, CleanChunkPoolAsync, falseInEmbedded, \ 63852284Sobrien "Clean the chunk pool asynchronously") \ 63952284Sobrien \ 64052284Sobrien experimental(bool, AlwaysSafeConstructors, false, \ 64152284Sobrien "Force safe construction, as if all fields are final.") \ 64252284Sobrien \ 64350397Sobrien diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ 64450397Sobrien "Enable normal processing of flags relating to field diagnostics")\ 64550397Sobrien \ 64650397Sobrien experimental(bool, UnlockExperimentalVMOptions, false, \ 64750397Sobrien "Enable normal processing of flags relating to experimental " \ 64850397Sobrien "features") \ 64950397Sobrien \ 65050397Sobrien product(bool, JavaMonitorsInStackTrace, true, \ 65150397Sobrien "Print information about Java monitor locks when the stacks are" \ 65250397Sobrien "dumped") \ 65350397Sobrien \ 65450397Sobrien product_pd(bool, UseLargePages, \ 65550397Sobrien "Use large page memory") \ 65650397Sobrien \ 65750397Sobrien product_pd(bool, UseLargePagesIndividualAllocation, \ 65850397Sobrien "Allocate large pages individually for better affinity") \ 65950397Sobrien \ 66050397Sobrien develop(bool, LargePagesIndividualAllocationInjectError, false, \ 66150397Sobrien "Fail large pages individual allocation") \ 66250397Sobrien \ 66350397Sobrien product(bool, UseLargePagesInMetaspace, false, \ 66450397Sobrien "Use large page memory in metaspace. " \ 66550397Sobrien "Only used if UseLargePages is enabled.") \ 66650397Sobrien \ 66750397Sobrien develop(bool, TracePageSizes, false, \ 66850397Sobrien "Trace page size selection and usage") \ 66950397Sobrien \ 67050397Sobrien product(bool, UseNUMA, false, \ 67150397Sobrien "Use NUMA if available") \ 67250397Sobrien \ 67350397Sobrien product(bool, UseNUMAInterleaving, false, \ 67450397Sobrien "Interleave memory across NUMA nodes if available") \ 67550397Sobrien \ 67650397Sobrien product(size_t, NUMAInterleaveGranularity, 2*M, \ 67750397Sobrien "Granularity to use for NUMA interleaving on Windows OS") \ 67850397Sobrien \ 67950397Sobrien product(bool, ForceNUMA, false, \ 68050397Sobrien "Force NUMA optimizations on single-node/UMA systems") \ 68150397Sobrien \ 68250397Sobrien product(uintx, NUMAChunkResizeWeight, 20, \ 68350397Sobrien "Percentage (0-100) used to weight the current sample when " \ 68450397Sobrien "computing exponentially decaying average for " \ 68550397Sobrien "AdaptiveNUMAChunkSizing") \ 68650397Sobrien range(0, 100) \ 68750397Sobrien \ 68850397Sobrien product(size_t, NUMASpaceResizeRate, 1*G, \ 68950397Sobrien "Do not reallocate more than this amount per collection") \ 69050397Sobrien \ 69150397Sobrien product(bool, UseAdaptiveNUMAChunkSizing, true, \ 69250397Sobrien "Enable adaptive chunk sizing for NUMA") \ 69350397Sobrien \ 69450397Sobrien product(bool, NUMAStats, false, \ 69550397Sobrien "Print NUMA stats in detailed heap information") \ 69650397Sobrien \ 69750397Sobrien product(uintx, NUMAPageScanRate, 256, \ 69850397Sobrien "Maximum number of pages to include in the page scan procedure") \ 69950397Sobrien \ 70050397Sobrien product_pd(bool, NeedsDeoptSuspend, \ 70150397Sobrien "True for register window machines (sparc/ia64)") \ 70250397Sobrien \ 70350397Sobrien product(intx, UseSSE, 99, \ 70450397Sobrien "Highest supported SSE instructions set on x86/x64") \ 70550397Sobrien range(0, 99) \ 70650397Sobrien \ 70750397Sobrien product(bool, UseAES, false, \ 70850397Sobrien "Control whether AES instructions can be used on x86/x64") \ 70950397Sobrien \ 71050397Sobrien product(bool, UseSHA, false, \ 71150397Sobrien "Control whether SHA instructions can be used " \ 71250397Sobrien "on SPARC and on ARM") \ 71350397Sobrien \ 71450397Sobrien product(bool, UseGHASHIntrinsics, false, \ 71550397Sobrien "Use intrinsics for GHASH versions of crypto") \ 71650397Sobrien \ 71750397Sobrien product(size_t, LargePageSizeInBytes, 0, \ 71850397Sobrien "Large page size (0 to let VM choose the page size)") \ 71950397Sobrien \ 72050397Sobrien product(size_t, LargePageHeapSizeThreshold, 128*M, \ 72150397Sobrien "Use large pages if maximum heap is at least this big") \ 72250397Sobrien \ 72350397Sobrien product(bool, ForceTimeHighResolution, false, \ 72450397Sobrien "Using high time resolution (for Win32 only)") \ 72550397Sobrien \ 72650397Sobrien develop(bool, TraceItables, false, \ 72750397Sobrien "Trace initialization and use of itables") \ 72850397Sobrien \ 72950397Sobrien develop(bool, TracePcPatching, false, \ 73050397Sobrien "Trace usage of frame::patch_pc") \ 73150397Sobrien \ 73250397Sobrien develop(bool, TraceJumps, false, \ 73350397Sobrien "Trace assembly jumps in thread ring buffer") \ 73450397Sobrien \ 73550397Sobrien develop(bool, TraceRelocator, false, \ 73650397Sobrien "Trace the bytecode relocator") \ 73750397Sobrien \ 73850397Sobrien develop(bool, TraceLongCompiles, false, \ 73950397Sobrien "Print out every time compilation is longer than " \ 74050397Sobrien "a given threshold") \ 74150397Sobrien \ 74250397Sobrien develop(bool, SafepointALot, false, \ 74350397Sobrien "Generate a lot of safepoints. This works with " \ 74450397Sobrien "GuaranteedSafepointInterval") \ 74552284Sobrien \ 74650397Sobrien product_pd(bool, BackgroundCompilation, \ 74750397Sobrien "A thread requesting compilation is not blocked during " \ 74850397Sobrien "compilation") \ 74950397Sobrien \ 75050397Sobrien product(bool, PrintVMQWaitTime, false, \ 75150397Sobrien "Print out the waiting time in VM operation queue") \ 75250397Sobrien \ 75350397Sobrien develop(bool, TraceOopMapGeneration, false, \ 75450397Sobrien "Show OopMapGeneration") \ 75550397Sobrien \ 75650397Sobrien product(bool, MethodFlushing, true, \ 75750397Sobrien "Reclamation of zombie and not-entrant methods") \ 75852284Sobrien \ 75952284Sobrien develop(bool, VerifyStack, false, \ 76050397Sobrien "Verify stack of each thread when it is entering a runtime call") \ 76150397Sobrien \ 76252284Sobrien diagnostic(bool, ForceUnreachable, false, \ 76352284Sobrien "Make all non code cache addresses to be unreachable by " \ 76450397Sobrien "forcing use of 64bit literal fixups") \ 76552284Sobrien \ 76650397Sobrien notproduct(bool, StressDerivedPointers, false, \ 76750397Sobrien "Force scavenge when a derived pointer is detected on stack " \ 76850397Sobrien "after rtm call") \ 76950397Sobrien \ 77050397Sobrien develop(bool, TraceDerivedPointers, false, \ 77150397Sobrien "Trace traversal of derived pointers on stack") \ 77250397Sobrien \ 77350397Sobrien notproduct(bool, TraceCodeBlobStacks, false, \ 77450397Sobrien "Trace stack-walk of codeblobs") \ 77550397Sobrien \ 77650397Sobrien product(bool, PrintJNIResolving, false, \ 77750397Sobrien "Used to implement -v:jni") \ 77850397Sobrien \ 77950397Sobrien notproduct(bool, PrintRewrites, false, \ 78050397Sobrien "Print methods that are being rewritten") \ 78150397Sobrien \ 78250397Sobrien product(bool, UseInlineCaches, true, \ 78352284Sobrien "Use Inline Caches for virtual calls ") \ 78452284Sobrien \ 78552284Sobrien develop(bool, InlineArrayCopy, true, \ 78652284Sobrien "Inline arraycopy native that is known to be part of " \ 78752284Sobrien "base library DLL") \ 78850397Sobrien \ 78950397Sobrien develop(bool, InlineObjectHash, true, \ 79050397Sobrien "Inline Object::hashCode() native that is known to be part " \ 79150397Sobrien "of base library DLL") \ 79250397Sobrien \ 79350397Sobrien develop(bool, InlineNatives, true, \ 79450397Sobrien "Inline natives that are known to be part of base library DLL") \ 79550397Sobrien \ 79650397Sobrien develop(bool, InlineMathNatives, true, \ 79750397Sobrien "Inline SinD, CosD, etc.") \ 79850397Sobrien \ 79950397Sobrien develop(bool, InlineClassNatives, true, \ 80050397Sobrien "Inline Class.isInstance, etc") \ 80150397Sobrien \ 80250397Sobrien develop(bool, InlineThreadNatives, true, \ 80350397Sobrien "Inline Thread.currentThread, etc") \ 80450397Sobrien \ 80550397Sobrien develop(bool, InlineUnsafeOps, true, \ 80650397Sobrien "Inline memory ops (native methods) from sun.misc.Unsafe") \ 80750397Sobrien \ 80850397Sobrien product(bool, CriticalJNINatives, true, \ 80950397Sobrien "Check for critical JNI entry points") \ 81050397Sobrien \ 81150397Sobrien notproduct(bool, StressCriticalJNINatives, false, \ 81250397Sobrien "Exercise register saving code in critical natives") \ 81352284Sobrien \ 81452284Sobrien product(bool, UseSSE42Intrinsics, false, \ 81552284Sobrien "SSE4.2 versions of intrinsics") \ 81652284Sobrien \ 81752284Sobrien product(bool, UseAESIntrinsics, false, \ 81852284Sobrien "Use intrinsics for AES versions of crypto") \ 81952284Sobrien \ 82050397Sobrien product(bool, UseSHA1Intrinsics, false, \ 82150397Sobrien "Use intrinsics for SHA-1 crypto hash function. " \ 82250397Sobrien "Requires that UseSHA is enabled.") \ 82350397Sobrien \ 82450397Sobrien product(bool, UseSHA256Intrinsics, false, \ 82550397Sobrien "Use intrinsics for SHA-224 and SHA-256 crypto hash functions. " \ 82650397Sobrien "Requires that UseSHA is enabled.") \ 82750397Sobrien \ 82850397Sobrien product(bool, UseSHA512Intrinsics, false, \ 82950397Sobrien "Use intrinsics for SHA-384 and SHA-512 crypto hash functions. " \ 83050397Sobrien "Requires that UseSHA is enabled.") \ 83150397Sobrien \ 83250397Sobrien product(bool, UseCRC32Intrinsics, false, \ 83350397Sobrien "use intrinsics for java.util.zip.CRC32") \ 83450397Sobrien \ 83550397Sobrien product(bool, UseCRC32CIntrinsics, false, \ 83650397Sobrien "use intrinsics for java.util.zip.CRC32C") \ 83750397Sobrien \ 83850397Sobrien product(bool, UseAdler32Intrinsics, false, \ 83950397Sobrien "use intrinsics for java.util.zip.Adler32") \ 84050397Sobrien \ 84150397Sobrien diagnostic(ccstrlist, DisableIntrinsic, "", \ 84250397Sobrien "do not expand intrinsics whose (internal) names appear here") \ 84350397Sobrien \ 84450397Sobrien develop(bool, TraceCallFixup, false, \ 84550397Sobrien "Trace all call fixups") \ 84650397Sobrien \ 84750397Sobrien develop(bool, DeoptimizeALot, false, \ 84850397Sobrien "Deoptimize at every exit from the runtime system") \ 84950397Sobrien \ 85050397Sobrien notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ 85150397Sobrien "A comma separated list of bcis to deoptimize at") \ 85250397Sobrien \ 85350397Sobrien product(bool, DeoptimizeRandom, false, \ 85450397Sobrien "Deoptimize random frames on random exit from the runtime system")\ 85550397Sobrien \ 85650397Sobrien notproduct(bool, ZombieALot, false, \ 85750397Sobrien "Create zombies (non-entrant) at exit from the runtime system") \ 85850397Sobrien \ 85950397Sobrien product(bool, UnlinkSymbolsALot, false, \ 86050397Sobrien "Unlink unreferenced symbols from the symbol table at safepoints")\ 86150397Sobrien \ 86250397Sobrien notproduct(bool, WalkStackALot, false, \ 86350397Sobrien "Trace stack (no print) at every exit from the runtime system") \ 86450397Sobrien \ 86550397Sobrien product(bool, Debugging, false, \ 86650397Sobrien "Set when executing debug methods in debug.cpp " \ 86750397Sobrien "(to prevent triggering assertions)") \ 86850397Sobrien \ 86950397Sobrien notproduct(bool, StrictSafepointChecks, trueInDebug, \ 87050397Sobrien "Enable strict checks that safepoints cannot happen for threads " \ 87150397Sobrien "that use No_Safepoint_Verifier") \ 87250397Sobrien \ 87350397Sobrien notproduct(bool, VerifyLastFrame, false, \ 87450397Sobrien "Verify oops on last frame on entry to VM") \ 87550397Sobrien \ 87650397Sobrien develop(bool, TraceHandleAllocation, false, \ 87750397Sobrien "Print out warnings when suspiciously many handles are allocated")\ 87850397Sobrien \ 87950397Sobrien product(bool, FailOverToOldVerifier, true, \ 88050397Sobrien "Fail over to old verifier when split verifier fails") \ 88150397Sobrien \ 88250397Sobrien develop(bool, ShowSafepointMsgs, false, \ 88350397Sobrien "Show message about safepoint synchronization") \ 88450397Sobrien \ 88550397Sobrien product(bool, SafepointTimeout, false, \ 88650397Sobrien "Time out and warn or fail after SafepointTimeoutDelay " \ 88750397Sobrien "milliseconds if failed to reach safepoint") \ 88850397Sobrien \ 88950397Sobrien develop(bool, DieOnSafepointTimeout, false, \ 89050397Sobrien "Die upon failure to reach safepoint (see SafepointTimeout)") \ 89150397Sobrien \ 89250397Sobrien /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ 89350397Sobrien /* typically, at most a few retries are needed */ \ 89450397Sobrien product(intx, SuspendRetryCount, 50, \ 89550397Sobrien "Maximum retry count for an external suspend request") \ 89650397Sobrien \ 89750397Sobrien product(intx, SuspendRetryDelay, 5, \ 89850397Sobrien "Milliseconds to delay per retry (* current_retry_count)") \ 89950397Sobrien \ 90050397Sobrien product(bool, AssertOnSuspendWaitFailure, false, \ 90150397Sobrien "Assert/Guarantee on external suspend wait failure") \ 90250397Sobrien \ 90350397Sobrien product(bool, TraceSuspendWaitFailures, false, \ 90450397Sobrien "Trace external suspend wait failures") \ 90550397Sobrien \ 90650397Sobrien product(bool, MaxFDLimit, true, \ 90750397Sobrien "Bump the number of file descriptors to maximum in Solaris") \ 90850397Sobrien \ 90950397Sobrien diagnostic(bool, LogEvents, true, \ 91050397Sobrien "Enable the various ring buffer event logs") \ 91150397Sobrien \ 91250397Sobrien diagnostic(uintx, LogEventsBufferEntries, 10, \ 91350397Sobrien "Number of ring buffer event logs") \ 91450397Sobrien range(1, NOT_LP64(1*K) LP64_ONLY(1*M)) \ 91550397Sobrien \ 91650397Sobrien product(bool, BytecodeVerificationRemote, true, \ 91750397Sobrien "Enable the Java bytecode verifier for remote classes") \ 91850397Sobrien \ 91950397Sobrien product(bool, BytecodeVerificationLocal, false, \ 92050397Sobrien "Enable the Java bytecode verifier for local classes") \ 92150397Sobrien \ 92250397Sobrien develop(bool, ForceFloatExceptions, trueInDebug, \ 92350397Sobrien "Force exceptions on FP stack under/overflow") \ 92452284Sobrien \ 92550397Sobrien develop(bool, VerifyStackAtCalls, false, \ 92650397Sobrien "Verify that the stack pointer is unchanged after calls") \ 92750397Sobrien \ 92850397Sobrien develop(bool, TraceJavaAssertions, false, \ 92950397Sobrien "Trace java language assertions") \ 93050397Sobrien \ 93150397Sobrien notproduct(bool, CheckAssertionStatusDirectives, false, \ 93250397Sobrien "Temporary - see javaClasses.cpp") \ 93350397Sobrien \ 93450397Sobrien notproduct(bool, PrintMallocFree, false, \ 93550397Sobrien "Trace calls to C heap malloc/free allocation") \ 93650397Sobrien \ 93750397Sobrien product(bool, PrintOopAddress, false, \ 93850397Sobrien "Always print the location of the oop") \ 93950397Sobrien \ 94050397Sobrien notproduct(bool, VerifyCodeCache, false, \ 94150397Sobrien "Verify code cache on memory allocation/deallocation") \ 94250397Sobrien \ 94350397Sobrien develop(bool, UseMallocOnly, false, \ 94450397Sobrien "Use only malloc/free for allocation (no resource area/arena)") \ 94550397Sobrien \ 94650397Sobrien develop(bool, PrintMalloc, false, \ 94750397Sobrien "Print all malloc/free calls") \ 94850397Sobrien \ 94950397Sobrien develop(bool, PrintMallocStatistics, false, \ 95050397Sobrien "Print malloc/free statistics") \ 95150397Sobrien \ 95250397Sobrien develop(bool, ZapResourceArea, trueInDebug, \ 95350397Sobrien "Zap freed resource/arena space with 0xABABABAB") \ 95450397Sobrien \ 95550397Sobrien notproduct(bool, ZapVMHandleArea, trueInDebug, \ 95650397Sobrien "Zap freed VM handle space with 0xBCBCBCBC") \ 95750397Sobrien \ 95850397Sobrien develop(bool, ZapJNIHandleArea, trueInDebug, \ 95950397Sobrien "Zap freed JNI handle space with 0xFEFEFEFE") \ 96050397Sobrien \ 96150397Sobrien notproduct(bool, ZapStackSegments, trueInDebug, \ 96250397Sobrien "Zap allocated/freed stack segments with 0xFADFADED") \ 96350397Sobrien \ 96450397Sobrien develop(bool, ZapUnusedHeapArea, trueInDebug, \ 96550397Sobrien "Zap unused heap space with 0xBAADBABE") \ 96650397Sobrien \ 96750397Sobrien develop(bool, TraceZapUnusedHeapArea, false, \ 96850397Sobrien "Trace zapping of unused heap space") \ 96950397Sobrien \ 97050397Sobrien develop(bool, CheckZapUnusedHeapArea, false, \ 97150397Sobrien "Check zapping of unused heap space") \ 97250397Sobrien \ 97350397Sobrien develop(bool, ZapFillerObjects, trueInDebug, \ 97450397Sobrien "Zap filler objects with 0xDEAFBABE") \ 97550397Sobrien \ 97652284Sobrien develop(bool, PrintVMMessages, true, \ 97752284Sobrien "Print VM messages on console") \ 97850397Sobrien \ 97950397Sobrien product(bool, PrintGCApplicationConcurrentTime, false, \ 98052284Sobrien "Print the time the application has been running") \ 98150397Sobrien \ 98252284Sobrien product(bool, PrintGCApplicationStoppedTime, false, \ 98350397Sobrien "Print the time the application has been stopped") \ 98450397Sobrien \ 98550397Sobrien diagnostic(bool, VerboseVerification, false, \ 98650397Sobrien "Display detailed verification details") \ 98750397Sobrien \ 98850397Sobrien notproduct(uintx, ErrorHandlerTest, 0, \ 98952284Sobrien "If > 0, provokes an error after VM initialization; the value " \ 99050397Sobrien "determines which error to provoke. See test_error_handler() " \ 99152284Sobrien "in debug.cpp.") \ 99252284Sobrien \ 99352284Sobrien notproduct(uintx, TestCrashInErrorHandler, 0, \ 99452284Sobrien "If > 0, provokes an error inside VM error handler (a secondary " \ 99550397Sobrien "crash). see test_error_handler() in debug.cpp.") \ 99652284Sobrien \ 99752284Sobrien notproduct(bool, TestSafeFetchInErrorHandler, false, \ 99850397Sobrien "If true, tests SafeFetch inside error handler.") \ 99950397Sobrien \ 100050397Sobrien develop(bool, Verbose, false, \ 100150397Sobrien "Print additional debugging information from other modes") \ 100252284Sobrien \ 100350397Sobrien develop(bool, PrintMiscellaneous, false, \ 100450397Sobrien "Print uncategorized debugging information (requires +Verbose)") \ 100550397Sobrien \ 100650397Sobrien develop(bool, WizardMode, false, \ 100750397Sobrien "Print much more debugging information") \ 100850397Sobrien \ 100952284Sobrien product(bool, ShowMessageBoxOnError, false, \ 101052284Sobrien "Keep process alive on VM fatal error") \ 101152284Sobrien \ 101252284Sobrien product(bool, CreateCoredumpOnCrash, true, \ 101352284Sobrien "Create core/mini dump on VM fatal error") \ 101452284Sobrien \ 101552284Sobrien product(uintx, ErrorLogTimeout, 2 * 60, \ 101652284Sobrien "Timeout, in seconds, to limit the time spent on writing an " \ 101752284Sobrien "error log in case of a crash.") \ 101852284Sobrien \ 101952284Sobrien product_pd(bool, UseOSErrorReporting, \ 102052284Sobrien "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ 102152284Sobrien \ 102252284Sobrien product(bool, SuppressFatalErrorMessage, false, \ 102352284Sobrien "Report NO fatal error message (avoid deadlock)") \ 102452284Sobrien \ 102552284Sobrien product(ccstrlist, OnError, "", \ 102652284Sobrien "Run user-defined commands on fatal error; see VMError.cpp " \ 102752284Sobrien "for examples") \ 102852284Sobrien \ 102952284Sobrien product(ccstrlist, OnOutOfMemoryError, "", \ 103052284Sobrien "Run user-defined commands on first java.lang.OutOfMemoryError") \ 103152284Sobrien \ 103252284Sobrien manageable(bool, HeapDumpBeforeFullGC, false, \ 103352284Sobrien "Dump heap to file before any major stop-the-world GC") \ 103452284Sobrien \ 103552284Sobrien manageable(bool, HeapDumpAfterFullGC, false, \ 103652284Sobrien "Dump heap to file after any major stop-the-world GC") \ 103752284Sobrien \ 103852284Sobrien manageable(bool, HeapDumpOnOutOfMemoryError, false, \ 103952284Sobrien "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ 104052284Sobrien \ 104152284Sobrien manageable(ccstr, HeapDumpPath, NULL, \ 104252284Sobrien "When HeapDumpOnOutOfMemoryError is on, the path (filename or " \ 104352284Sobrien "directory) of the dump file (defaults to java_pid<pid>.hprof " \ 104452284Sobrien "in the working directory)") \ 104552284Sobrien \ 104652284Sobrien develop(size_t, SegmentedHeapDumpThreshold, 2*G, \ 104752284Sobrien "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ 104852284Sobrien "when the heap usage is larger than this") \ 104952284Sobrien \ 105052284Sobrien develop(size_t, HeapDumpSegmentSize, 1*G, \ 105152284Sobrien "Approximate segment size when generating a segmented heap dump") \ 105252284Sobrien \ 105352284Sobrien develop(bool, BreakAtWarning, false, \ 105452284Sobrien "Execute breakpoint upon encountering VM warning") \ 105552284Sobrien \ 105652284Sobrien develop(bool, TraceVMOperation, false, \ 105752284Sobrien "Trace VM operations") \ 105852284Sobrien \ 105952284Sobrien develop(bool, UseFakeTimers, false, \ 106052284Sobrien "Tell whether the VM should use system time or a fake timer") \ 106152284Sobrien \ 106252284Sobrien product(ccstr, NativeMemoryTracking, "off", \ 106352284Sobrien "Native memory tracking options") \ 106452284Sobrien \ 106552284Sobrien diagnostic(bool, PrintNMTStatistics, false, \ 106652284Sobrien "Print native memory tracking summary data if it is on") \ 106750397Sobrien \ 106850397Sobrien diagnostic(bool, LogCompilation, false, \ 106950397Sobrien "Log compilation activity in detail to LogFile") \ 107050397Sobrien \ 107150397Sobrien product(bool, PrintCompilation, false, \ 107250397Sobrien "Print compilations") \ 107350397Sobrien \ 107450397Sobrien diagnostic(bool, TraceNMethodInstalls, false, \ 107550397Sobrien "Trace nmethod installation") \ 107650397Sobrien \ 107750397Sobrien diagnostic(intx, ScavengeRootsInCode, 2, \ 107850397Sobrien "0: do not allow scavengable oops in the code cache; " \ 107950397Sobrien "1: allow scavenging from the code cache; " \ 108050397Sobrien "2: emit as many constants as the compiler can see") \ 108150397Sobrien range(0, 2) \ 108250397Sobrien \ 108350397Sobrien product(bool, AlwaysRestoreFPU, false, \ 108450397Sobrien "Restore the FPU control word after every JNI call (expensive)") \ 108550397Sobrien \ 108650397Sobrien diagnostic(bool, PrintCompilation2, false, \ 108750397Sobrien "Print additional statistics per compilation") \ 108850397Sobrien \ 108950397Sobrien diagnostic(bool, PrintAdapterHandlers, false, \ 109050397Sobrien "Print code generated for i2c/c2i adapters") \ 109150397Sobrien \ 109250397Sobrien diagnostic(bool, VerifyAdapterCalls, trueInDebug, \ 109350397Sobrien "Verify that i2c/c2i adapters are called properly") \ 109450397Sobrien \ 109550397Sobrien develop(bool, VerifyAdapterSharing, false, \ 109650397Sobrien "Verify that the code for shared adapters is the equivalent") \ 109750397Sobrien \ 109850397Sobrien diagnostic(bool, PrintAssembly, false, \ 109950397Sobrien "Print assembly code (using external disassembler.so)") \ 110050397Sobrien \ 110150397Sobrien diagnostic(ccstr, PrintAssemblyOptions, NULL, \ 110250397Sobrien "Print options string passed to disassembler.so") \ 110350397Sobrien \ 110450397Sobrien notproduct(bool, PrintNMethodStatistics, false, \ 110550397Sobrien "Print a summary statistic for the generated nmethods") \ 110650397Sobrien \ 110750397Sobrien diagnostic(bool, PrintNMethods, false, \ 110850397Sobrien "Print assembly code for nmethods when generated") \ 110950397Sobrien \ 111050397Sobrien diagnostic(intx, PrintNMethodsAtLevel, -1, \ 111150397Sobrien "Only print code for nmethods at the given compilation level") \ 111250397Sobrien \ 111350397Sobrien diagnostic(bool, PrintNativeNMethods, false, \ 111450397Sobrien "Print assembly code for native nmethods when generated") \ 111550397Sobrien \ 111650397Sobrien develop(bool, PrintDebugInfo, false, \ 111750397Sobrien "Print debug information for all nmethods when generated") \ 111850397Sobrien \ 111950397Sobrien develop(bool, PrintRelocations, false, \ 112050397Sobrien "Print relocation information for all nmethods when generated") \ 112150397Sobrien \ 112250397Sobrien develop(bool, PrintDependencies, false, \ 112350397Sobrien "Print dependency information for all nmethods when generated") \ 112450397Sobrien \ 112550397Sobrien develop(bool, PrintExceptionHandlers, false, \ 112650397Sobrien "Print exception handler tables for all nmethods when generated") \ 112750397Sobrien \ 112850397Sobrien develop(bool, StressCompiledExceptionHandlers, false, \ 112950397Sobrien "Exercise compiled exception handlers") \ 113050397Sobrien \ 113150397Sobrien develop(bool, InterceptOSException, false, \ 113250397Sobrien "Start debugger when an implicit OS (e.g. NULL) " \ 113350397Sobrien "exception happens") \ 113450397Sobrien \ 113550397Sobrien product(bool, PrintCodeCache, false, \ 113650397Sobrien "Print the code cache memory usage when exiting") \ 113750397Sobrien \ 113850397Sobrien develop(bool, PrintCodeCache2, false, \ 113950397Sobrien "Print detailed usage information on the code cache when exiting")\ 114050397Sobrien \ 114150397Sobrien product(bool, PrintCodeCacheOnCompilation, false, \ 114250397Sobrien "Print the code cache memory usage each time a method is " \ 114350397Sobrien "compiled") \ 114450397Sobrien \ 114550397Sobrien diagnostic(bool, PrintStubCode, false, \ 114650397Sobrien "Print generated stub code") \ 114750397Sobrien \ 114850397Sobrien product(bool, StackTraceInThrowable, true, \ 114950397Sobrien "Collect backtrace in throwable when exception happens") \ 115050397Sobrien \ 115150397Sobrien product(bool, OmitStackTraceInFastThrow, true, \ 115250397Sobrien "Omit backtraces for some 'hot' exceptions in optimized code") \ 115350397Sobrien \ 115450397Sobrien product(bool, ProfilerPrintByteCodeStatistics, false, \ 115550397Sobrien "Print bytecode statistics when dumping profiler output") \ 115650397Sobrien \ 115750397Sobrien product(bool, ProfilerRecordPC, false, \ 115850397Sobrien "Collect ticks for each 16 byte interval of compiled code") \ 115950397Sobrien \ 116050397Sobrien product(bool, ProfileVM, false, \ 116150397Sobrien "Profile ticks that fall within VM (either in the VM Thread " \ 116250397Sobrien "or VM code called through stubs)") \ 116350397Sobrien \ 116450397Sobrien product(bool, ProfileIntervals, false, \ 116550397Sobrien "Print profiles for each interval (see ProfileIntervalsTicks)") \ 116650397Sobrien \ 116750397Sobrien notproduct(bool, ProfilerCheckIntervals, false, \ 116850397Sobrien "Collect and print information on spacing of profiler ticks") \ 116950397Sobrien \ 117050397Sobrien product(bool, PrintWarnings, true, \ 117150397Sobrien "Print JVM warnings to output stream") \ 117250397Sobrien \ 117350397Sobrien notproduct(uintx, WarnOnStalledSpinLock, 0, \ 117450397Sobrien "Print warnings for stalled SpinLocks") \ 117550397Sobrien \ 117650397Sobrien product(bool, RegisterFinalizersAtInit, true, \ 117750397Sobrien "Register finalizable objects at end of Object.<init> or " \ 117850397Sobrien "after allocation") \ 117950397Sobrien \ 118050397Sobrien develop(bool, RegisterReferences, true, \ 118150397Sobrien "Tell whether the VM should register soft/weak/final/phantom " \ 118250397Sobrien "references") \ 118350397Sobrien \ 118450397Sobrien develop(bool, IgnoreRewrites, false, \ 118550397Sobrien "Suppress rewrites of bytecodes in the oopmap generator. " \ 118650397Sobrien "This is unsafe!") \ 118750397Sobrien \ 118850397Sobrien develop(bool, PrintCodeCacheExtension, false, \ 118950397Sobrien "Print extension of code cache") \ 119050397Sobrien \ 119150397Sobrien develop(bool, UsePrivilegedStack, true, \ 119250397Sobrien "Enable the security JVM functions") \ 119350397Sobrien \ 119450397Sobrien develop(bool, ProtectionDomainVerification, true, \ 119550397Sobrien "Verify protection domain before resolution in system dictionary")\ 119650397Sobrien \ 119750397Sobrien product(bool, ClassUnloading, true, \ 119850397Sobrien "Do unloading of classes") \ 119950397Sobrien \ 120050397Sobrien product(bool, ClassUnloadingWithConcurrentMark, true, \ 120150397Sobrien "Do unloading of classes with a concurrent marking cycle") \ 120250397Sobrien \ 120350397Sobrien develop(bool, DisableStartThread, false, \ 120450397Sobrien "Disable starting of additional Java threads " \ 120550397Sobrien "(for debugging only)") \ 120650397Sobrien \ 120750397Sobrien develop(bool, MemProfiling, false, \ 120850397Sobrien "Write memory usage profiling to log file") \ 120950397Sobrien \ 121050397Sobrien notproduct(bool, PrintSystemDictionaryAtExit, false, \ 121150397Sobrien "Print the system dictionary at exit") \ 121250397Sobrien \ 121350397Sobrien experimental(intx, PredictedLoadedClassCount, 0, \ 121450397Sobrien "Experimental: Tune loaded class cache starting size") \ 121550397Sobrien \ 121650397Sobrien diagnostic(bool, UnsyncloadClass, false, \ 121750397Sobrien "Unstable: VM calls loadClass unsynchronized. Custom " \ 121850397Sobrien "class loader must call VM synchronized for findClass " \ 121950397Sobrien "and defineClass.") \ 122050397Sobrien \ 122150397Sobrien product(bool, AlwaysLockClassLoader, false, \ 122250397Sobrien "Require the VM to acquire the class loader lock before calling " \ 122350397Sobrien "loadClass() even for class loaders registering " \ 122450397Sobrien "as parallel capable") \ 122550397Sobrien \ 122650397Sobrien product(bool, AllowParallelDefineClass, false, \ 122750397Sobrien "Allow parallel defineClass requests for class loaders " \ 122850397Sobrien "registering as parallel capable") \ 122950397Sobrien \ 123050397Sobrien product(bool, MustCallLoadClassInternal, false, \ 123150397Sobrien "Call loadClassInternal() rather than loadClass()") \ 123250397Sobrien \ 123350397Sobrien product_pd(bool, DontYieldALot, \ 123450397Sobrien "Throw away obvious excess yield calls") \ 123550397Sobrien \ 123650397Sobrien product_pd(bool, ConvertSleepToYield, \ 123750397Sobrien "Convert sleep(0) to thread yield " \ 123850397Sobrien "(may be off for Solaris to improve GUI)") \ 123950397Sobrien \ 124050397Sobrien product(bool, ConvertYieldToSleep, false, \ 124150397Sobrien "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \ 124250397Sobrien "behavior") \ 124350397Sobrien \ 124450397Sobrien develop(bool, UseDetachedThreads, true, \ 124550397Sobrien "Use detached threads that are recycled upon termination " \ 124650397Sobrien "(for Solaris only)") \ 124750397Sobrien \ 124850397Sobrien product(bool, UseLWPSynchronization, true, \ 124950397Sobrien "Use LWP-based instead of libthread-based synchronization " \ 125050397Sobrien "(SPARC only)") \ 125150397Sobrien \ 125250397Sobrien experimental(ccstr, SyncKnobs, NULL, \ 125350397Sobrien "(Unstable) Various monitor synchronization tunables") \ 125450397Sobrien \ 125550397Sobrien experimental(intx, EmitSync, 0, \ 125650397Sobrien "(Unsafe, Unstable) " \ 125750397Sobrien "Control emission of inline sync fast-path code") \ 125850397Sobrien \ 125950397Sobrien product(intx, MonitorBound, 0, "Bound Monitor population") \ 126050397Sobrien range(0, max_jint) \ 126150397Sobrien \ 126250397Sobrien product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ 126350397Sobrien \ 126450397Sobrien experimental(intx, SyncFlags, 0, "(Unsafe, Unstable) " \ 126550397Sobrien "Experimental Sync flags") \ 126650397Sobrien \ 126750397Sobrien experimental(intx, SyncVerbose, 0, "(Unstable)") \ 126850397Sobrien \ 126950397Sobrien diagnostic(bool, InlineNotify, true, "intrinsify subset of notify") \ 127050397Sobrien \ 127150397Sobrien experimental(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)") \ 127250397Sobrien \ 127350397Sobrien experimental(intx, hashCode, 5, \ 127450397Sobrien "(Unstable) select hashCode generation algorithm") \ 127550397Sobrien \ 127650397Sobrien experimental(intx, WorkAroundNPTLTimedWaitHang, 0, \ 127750397Sobrien "(Unstable, Linux-specific) " \ 127850397Sobrien "avoid NPTL-FUTEX hang pthread_cond_timedwait") \ 127950397Sobrien \ 128050397Sobrien product(bool, FilterSpuriousWakeups, true, \ 128150397Sobrien "When true prevents OS-level spurious, or premature, wakeups " \ 128250397Sobrien "from Object.wait (Ignored for Windows)") \ 128350397Sobrien \ 128450397Sobrien experimental(intx, NativeMonitorTimeout, -1, "(Unstable)") \ 128550397Sobrien \ 128650397Sobrien experimental(intx, NativeMonitorFlags, 0, "(Unstable)") \ 128750397Sobrien \ 128850397Sobrien experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)") \ 128950397Sobrien \ 129050397Sobrien develop(bool, UsePthreads, false, \ 129150397Sobrien "Use pthread-based instead of libthread-based synchronization " \ 129250397Sobrien "(SPARC only)") \ 129350397Sobrien \ 129450397Sobrien product(bool, ReduceSignalUsage, false, \ 129550397Sobrien "Reduce the use of OS signals in Java and/or the VM") \ 129650397Sobrien \ 129750397Sobrien develop_pd(bool, ShareVtableStubs, \ 129850397Sobrien "Share vtable stubs (smaller code but worse branch prediction") \ 129950397Sobrien \ 130050397Sobrien develop(bool, LoadLineNumberTables, true, \ 130150397Sobrien "Tell whether the class file parser loads line number tables") \ 130250397Sobrien \ 130350397Sobrien develop(bool, LoadLocalVariableTables, true, \ 130450397Sobrien "Tell whether the class file parser loads local variable tables") \ 130550397Sobrien \ 130650397Sobrien develop(bool, LoadLocalVariableTypeTables, true, \ 130750397Sobrien "Tell whether the class file parser loads local variable type" \ 130850397Sobrien "tables") \ 130950397Sobrien \ 131050397Sobrien product(bool, AllowUserSignalHandlers, false, \ 131150397Sobrien "Do not complain if the application installs signal handlers " \ 131250397Sobrien "(Solaris & Linux only)") \ 131350397Sobrien \ 131450397Sobrien product(bool, UseSignalChaining, true, \ 131550397Sobrien "Use signal-chaining to invoke signal handlers installed " \ 131650397Sobrien "by the application (Solaris & Linux only)") \ 131750397Sobrien \ 131850397Sobrien product(bool, UseAltSigs, false, \ 131950397Sobrien "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ 132050397Sobrien "internal signals (Solaris only)") \ 132150397Sobrien \ 132250397Sobrien product(bool, AllowJNIEnvProxy, false, \ 132350397Sobrien "Allow JNIEnv proxies for jdbx") \ 132450397Sobrien \ 132550397Sobrien product(bool, JNIDetachReleasesMonitors, true, \ 132650397Sobrien "JNI DetachCurrentThread releases monitors owned by thread") \ 132750397Sobrien \ 132850397Sobrien product(bool, RestoreMXCSROnJNICalls, false, \ 132950397Sobrien "Restore MXCSR when returning from JNI calls") \ 133050397Sobrien \ 133150397Sobrien product(bool, CheckJNICalls, false, \ 133250397Sobrien "Verify all arguments to JNI calls") \ 133350397Sobrien \ 133450397Sobrien product(bool, CheckEndorsedAndExtDirs, false, \ 133550397Sobrien "Verify the endorsed and extension directories are not used") \ 133650397Sobrien \ 133750397Sobrien product(bool, UseFastJNIAccessors, true, \ 133850397Sobrien "Use optimized versions of Get<Primitive>Field") \ 133950397Sobrien \ 134050397Sobrien product(intx, MaxJNILocalCapacity, 65536, \ 134150397Sobrien "Maximum allowable local JNI handle capacity to " \ 134250397Sobrien "EnsureLocalCapacity() and PushLocalFrame(), " \ 134350397Sobrien "where <= 0 is unlimited, default: 65536") \ 134450397Sobrien \ 134550397Sobrien product(bool, EagerXrunInit, false, \ 134650397Sobrien "Eagerly initialize -Xrun libraries; allows startup profiling, " \ 134750397Sobrien "but not all -Xrun libraries may support the state of the VM " \ 134850397Sobrien "at this time") \ 134950397Sobrien \ 135050397Sobrien product(bool, PreserveAllAnnotations, false, \ 135150397Sobrien "Preserve RuntimeInvisibleAnnotations as well " \ 135250397Sobrien "as RuntimeVisibleAnnotations") \ 135350397Sobrien \ 135450397Sobrien develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ 135550397Sobrien "Number of OutOfMemoryErrors preallocated with backtrace") \ 135650397Sobrien \ 135750397Sobrien product(bool, UseXMMForArrayCopy, false, \ 135850397Sobrien "Use SSE2 MOVQ instruction for Arraycopy") \ 135950397Sobrien \ 136050397Sobrien product(intx, FieldsAllocationStyle, 1, \ 136150397Sobrien "0 - type based with oops first, " \ 136250397Sobrien "1 - with oops last, " \ 136350397Sobrien "2 - oops in super and sub classes are together") \ 136450397Sobrien range(0, 2) \ 136550397Sobrien \ 136650397Sobrien product(bool, CompactFields, true, \ 136750397Sobrien "Allocate nonstatic fields in gaps between previous fields") \ 136850397Sobrien \ 136950397Sobrien notproduct(bool, PrintFieldLayout, false, \ 137050397Sobrien "Print field layout for each class") \ 137150397Sobrien \ 137250397Sobrien /* Need to limit the extent of the padding to reasonable size. */\ 137350397Sobrien /* 8K is well beyond the reasonable HW cache line size, even with */\ 137450397Sobrien /* aggressive prefetching, while still leaving the room for segregating */\ 137550397Sobrien /* among the distinct pages. */\ 137650397Sobrien product(intx, ContendedPaddingWidth, 128, \ 137750397Sobrien "How many bytes to pad the fields/classes marked @Contended with")\ 137850397Sobrien range(0, 8192) \ 137950397Sobrien constraint(ContendedPaddingWidthConstraintFunc,AtParse) \ 138050397Sobrien \ 138152284Sobrien product(bool, EnableContended, true, \ 138250397Sobrien "Enable @Contended annotation support") \ 138350397Sobrien \ 138450397Sobrien product(bool, RestrictContended, true, \ 138550397Sobrien "Restrict @Contended to trusted classes") \ 138650397Sobrien \ 138750397Sobrien product(bool, UseBiasedLocking, true, \ 138850397Sobrien "Enable biased locking in JVM") \ 138950397Sobrien \ 139050397Sobrien product(intx, BiasedLockingStartupDelay, 4000, \ 139150397Sobrien "Number of milliseconds to wait before enabling biased locking") \ 139250397Sobrien \ 139350397Sobrien diagnostic(bool, PrintBiasedLockingStatistics, false, \ 139450397Sobrien "Print statistics of biased locking in JVM") \ 139550397Sobrien \ 139650397Sobrien product(intx, BiasedLockingBulkRebiasThreshold, 20, \ 139750397Sobrien "Threshold of number of revocations per type to try to " \ 139850397Sobrien "rebias all objects in the heap of that type") \ 139950397Sobrien \ 140050397Sobrien product(intx, BiasedLockingBulkRevokeThreshold, 40, \ 140150397Sobrien "Threshold of number of revocations per type to permanently " \ 140250397Sobrien "revoke biases of all objects in the heap of that type") \ 140350397Sobrien \ 140450397Sobrien product(intx, BiasedLockingDecayTime, 25000, \ 140550397Sobrien "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ 140650397Sobrien "type after previous bulk rebias") \ 140750397Sobrien \ 140850397Sobrien /* tracing */ \ 140950397Sobrien \ 141050397Sobrien notproduct(bool, TraceRuntimeCalls, false, \ 141150397Sobrien "Trace run-time calls") \ 141250397Sobrien \ 141350397Sobrien develop(bool, TraceJNICalls, false, \ 141450397Sobrien "Trace JNI calls") \ 141550397Sobrien \ 141650397Sobrien develop(bool, StressRewriter, false, \ 141750397Sobrien "Stress linktime bytecode rewriting") \ 141850397Sobrien \ 141950397Sobrien notproduct(bool, TraceJVMCalls, false, \ 142050397Sobrien "Trace JVM calls") \ 142150397Sobrien \ 142250397Sobrien product(ccstr, TraceJVMTI, NULL, \ 142350397Sobrien "Trace flags for JVMTI functions and events") \ 142450397Sobrien \ 142550397Sobrien /* This option can change an EMCP method into an obsolete method. */ \ 142650397Sobrien /* This can affect tests that except specific methods to be EMCP. */ \ 142750397Sobrien /* This option should be used with caution. */ \ 142850397Sobrien product(bool, StressLdcRewrite, false, \ 142950397Sobrien "Force ldc -> ldc_w rewrite during RedefineClasses") \ 143050397Sobrien \ 143150397Sobrien product(intx, TraceRedefineClasses, 0, \ 143250397Sobrien "Trace level for JVMTI RedefineClasses") \ 143350397Sobrien \ 143450397Sobrien /* change to false by default sometime after Mustang */ \ 143550397Sobrien product(bool, VerifyMergedCPBytecodes, true, \ 143650397Sobrien "Verify bytecodes after RedefineClasses constant pool merging") \ 143750397Sobrien \ 143850397Sobrien develop(bool, TraceJNIHandleAllocation, false, \ 143950397Sobrien "Trace allocation/deallocation of JNI handle blocks") \ 144050397Sobrien \ 144150397Sobrien develop(bool, TraceBytecodes, false, \ 144250397Sobrien "Trace bytecode execution") \ 144350397Sobrien \ 144450397Sobrien develop(bool, TraceClassInitialization, false, \ 144550397Sobrien "Trace class initialization") \ 144650397Sobrien \ 144750397Sobrien product(bool, TraceExceptions, false, \ 144850397Sobrien "Trace exceptions") \ 144950397Sobrien \ 145050397Sobrien develop(bool, TraceICs, false, \ 145150397Sobrien "Trace inline cache changes") \ 145250397Sobrien \ 145350397Sobrien notproduct(bool, TraceInvocationCounterOverflow, false, \ 145450397Sobrien "Trace method invocation counter overflow") \ 145550397Sobrien \ 145650397Sobrien develop(bool, TraceInlineCacheClearing, false, \ 145750397Sobrien "Trace clearing of inline caches in nmethods") \ 145850397Sobrien \ 145950397Sobrien develop(bool, TraceDependencies, false, \ 146050397Sobrien "Trace dependencies") \ 146150397Sobrien \ 146250397Sobrien develop(bool, VerifyDependencies, trueInDebug, \ 146350397Sobrien "Exercise and verify the compilation dependency mechanism") \ 146450397Sobrien \ 146550397Sobrien develop(bool, TraceNewOopMapGeneration, false, \ 146650397Sobrien "Trace OopMapGeneration") \ 146750397Sobrien \ 146850397Sobrien develop(bool, TraceNewOopMapGenerationDetailed, false, \ 146950397Sobrien "Trace OopMapGeneration: print detailed cell states") \ 147050397Sobrien \ 147150397Sobrien develop(bool, TimeOopMap, false, \ 147250397Sobrien "Time calls to GenerateOopMap::compute_map() in sum") \ 147350397Sobrien \ 147450397Sobrien develop(bool, TimeOopMap2, false, \ 147550397Sobrien "Time calls to GenerateOopMap::compute_map() individually") \ 147650397Sobrien \ 147750397Sobrien develop(bool, TraceMonitorMismatch, false, \ 147850397Sobrien "Trace monitor matching failures during OopMapGeneration") \ 147950397Sobrien \ 148050397Sobrien develop(bool, TraceOopMapRewrites, false, \ 148150397Sobrien "Trace rewriting of method oops during oop map generation") \ 148250397Sobrien \ 148350397Sobrien develop(bool, TraceSafepoint, false, \ 148450397Sobrien "Trace safepoint operations") \ 148550397Sobrien \ 148650397Sobrien develop(bool, TraceICBuffer, false, \ 148750397Sobrien "Trace usage of IC buffer") \ 148850397Sobrien \ 148950397Sobrien develop(bool, TraceCompiledIC, false, \ 149050397Sobrien "Trace changes of compiled IC") \ 149150397Sobrien \ 149250397Sobrien develop(bool, TraceStartupTime, false, \ 149350397Sobrien "Trace setup time") \ 149450397Sobrien \ 149550397Sobrien develop(bool, TraceProtectionDomainVerification, false, \ 149650397Sobrien "Trace protection domain verification") \ 149750397Sobrien \ 149850397Sobrien develop(bool, TraceClearedExceptions, false, \ 149950397Sobrien "Print when an exception is forcibly cleared") \ 150050397Sobrien \ 150150397Sobrien product(bool, TraceClassResolution, false, \ 150250397Sobrien "Trace all constant pool resolutions (for debugging)") \ 150350397Sobrien \ 150450397Sobrien product(bool, TraceBiasedLocking, false, \ 150550397Sobrien "Trace biased locking in JVM") \ 150650397Sobrien \ 150750397Sobrien product(bool, TraceMonitorInflation, false, \ 150850397Sobrien "Trace monitor inflation in JVM") \ 150950397Sobrien \ 151050397Sobrien /* gc */ \ 151150397Sobrien \ 151250397Sobrien product(bool, UseSerialGC, false, \ 151350397Sobrien "Use the Serial garbage collector") \ 151450397Sobrien \ 151550397Sobrien product(bool, UseG1GC, false, \ 151650397Sobrien "Use the Garbage-First garbage collector") \ 151750397Sobrien \ 151850397Sobrien product(bool, UseParallelGC, false, \ 151950397Sobrien "Use the Parallel Scavenge garbage collector") \ 152052284Sobrien \ 152150397Sobrien product(bool, UseParallelOldGC, false, \ 152250397Sobrien "Use the Parallel Old garbage collector") \ 152350397Sobrien \ 152450397Sobrien product(uintx, HeapMaximumCompactionInterval, 20, \ 152550397Sobrien "How often should we maximally compact the heap (not allowing " \ 152650397Sobrien "any dead space)") \ 152750397Sobrien \ 152852284Sobrien product(uintx, HeapFirstMaximumCompactionCount, 3, \ 152950397Sobrien "The collection count for the first maximum compaction") \ 153052284Sobrien \ 153150397Sobrien product(bool, UseMaximumCompactionOnSystemGC, true, \ 153250397Sobrien "Use maximum compaction in the Parallel Old garbage collector " \ 153350397Sobrien "for a system GC") \ 153450397Sobrien \ 153550397Sobrien product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ 153650397Sobrien "The mean used by the parallel compact dead wood " \ 153750397Sobrien "limiter (a number between 0-100)") \ 153850397Sobrien range(0, 100) \ 153950397Sobrien \ 154050397Sobrien product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ 154150397Sobrien "The standard deviation used by the parallel compact dead wood " \ 154250397Sobrien "limiter (a number between 0-100)") \ 154350397Sobrien range(0, 100) \ 154450397Sobrien \ 154550397Sobrien product(uint, ParallelGCThreads, 0, \ 154650397Sobrien "Number of parallel threads parallel gc will use") \ 154750397Sobrien \ 154850397Sobrien diagnostic(bool, UseSemaphoreGCThreadsSynchronization, true, \ 154950397Sobrien "Use semaphore synchronization for the GC Threads, " \ 155052284Sobrien "instead of synchronization based on mutexes") \ 155150397Sobrien \ 155250397Sobrien product(bool, UseDynamicNumberOfGCThreads, false, \ 155350397Sobrien "Dynamically choose the number of parallel threads " \ 155450397Sobrien "parallel gc will use") \ 155550397Sobrien \ 155650397Sobrien diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \ 155750397Sobrien "Force dynamic selection of the number of " \ 155850397Sobrien "parallel threads parallel gc will use to aid debugging") \ 155950397Sobrien \ 156050397Sobrien product(size_t, HeapSizePerGCThread, ScaleForWordSize(64*M), \ 156150397Sobrien "Size of heap (bytes) per GC thread used in calculating the " \ 156250397Sobrien "number of GC threads") \ 156350397Sobrien range((size_t)os::vm_page_size(), (size_t)max_uintx) \ 156450397Sobrien \ 156550397Sobrien product(bool, TraceDynamicGCThreads, false, \ 156650397Sobrien "Trace the dynamic GC thread usage") \ 156750397Sobrien \ 156850397Sobrien develop(bool, ParallelOldGCSplitALot, false, \ 156950397Sobrien "Provoke splitting (copying data from a young gen space to " \ 157050397Sobrien "multiple destination spaces)") \ 157150397Sobrien \ 157250397Sobrien develop(uintx, ParallelOldGCSplitInterval, 3, \ 157350397Sobrien "How often to provoke splitting a young gen space") \ 157450397Sobrien range(0, max_uintx) \ 157550397Sobrien \ 157650397Sobrien product(uint, ConcGCThreads, 0, \ 157750397Sobrien "Number of threads concurrent gc will use") \ 157850397Sobrien \ 157950397Sobrien product(size_t, YoungPLABSize, 4096, \ 158050397Sobrien "Size of young gen promotion LAB's (in HeapWords)") \ 158150397Sobrien constraint(YoungPLABSizeConstraintFunc,AfterMemoryInit) \ 158250397Sobrien \ 158350397Sobrien product(size_t, OldPLABSize, 1024, \ 158450397Sobrien "Size of old gen promotion LAB's (in HeapWords), or Number \ 158550397Sobrien of blocks to attempt to claim when refilling CMS LAB's") \ 158650397Sobrien \ 158750397Sobrien product(uintx, GCTaskTimeStampEntries, 200, \ 158850397Sobrien "Number of time stamp entries per gc worker thread") \ 158950397Sobrien range(1, max_uintx) \ 159050397Sobrien \ 159150397Sobrien product(bool, AlwaysTenure, false, \ 159250397Sobrien "Always tenure objects in eden (ParallelGC only)") \ 159350397Sobrien \ 159450397Sobrien product(bool, NeverTenure, false, \ 159550397Sobrien "Never tenure objects in eden, may tenure on overflow " \ 159650397Sobrien "(ParallelGC only)") \ 159750397Sobrien \ 159850397Sobrien product(bool, ScavengeBeforeFullGC, true, \ 159950397Sobrien "Scavenge youngest generation before each full GC.") \ 160050397Sobrien \ 160150397Sobrien develop(bool, ScavengeWithObjectsInToSpace, false, \ 160250397Sobrien "Allow scavenges to occur when to-space contains objects") \ 160350397Sobrien \ 160450397Sobrien product(bool, UseConcMarkSweepGC, false, \ 160550397Sobrien "Use Concurrent Mark-Sweep GC in the old generation") \ 160650397Sobrien \ 160750397Sobrien product(bool, ExplicitGCInvokesConcurrent, false, \ 160850397Sobrien "A System.gc() request invokes a concurrent collection; " \ 160950397Sobrien "(effective only when using concurrent collectors)") \ 161050397Sobrien \ 161150397Sobrien product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ 161250397Sobrien "A System.gc() request invokes a concurrent collection and " \ 161350397Sobrien "also unloads classes during such a concurrent gc cycle " \ 161450397Sobrien "(effective only when UseConcMarkSweepGC)") \ 161550397Sobrien \ 161650397Sobrien product(bool, GCLockerInvokesConcurrent, false, \ 161750397Sobrien "The exit of a JNI critical section necessitating a scavenge, " \ 161850397Sobrien "also kicks off a background concurrent collection") \ 161950397Sobrien \ 162050397Sobrien product(uintx, GCLockerEdenExpansionPercent, 5, \ 162150397Sobrien "How much the GC can expand the eden by while the GC locker " \ 162250397Sobrien "is active (as a percentage)") \ 162350397Sobrien range(0, 100) \ 162450397Sobrien \ 162550397Sobrien diagnostic(uintx, GCLockerRetryAllocationCount, 2, \ 162650397Sobrien "Number of times to retry allocations when " \ 162750397Sobrien "blocked by the GC locker") \ 162850397Sobrien \ 162950397Sobrien develop(bool, UseCMSAdaptiveFreeLists, true, \ 163050397Sobrien "Use adaptive free lists in the CMS generation") \ 163150397Sobrien \ 163250397Sobrien develop(bool, UseAsyncConcMarkSweepGC, true, \ 163350397Sobrien "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ 163450397Sobrien \ 163550397Sobrien product(bool, UseCMSBestFit, true, \ 163650397Sobrien "Use CMS best fit allocation strategy") \ 163750397Sobrien \ 163850397Sobrien product(bool, UseParNewGC, false, \ 163950397Sobrien "Use parallel threads in the new generation") \ 164050397Sobrien \ 164150397Sobrien product(bool, PrintTaskqueue, false, \ 164250397Sobrien "Print taskqueue statistics for parallel collectors") \ 164350397Sobrien \ 164450397Sobrien product(bool, PrintTerminationStats, false, \ 164550397Sobrien "Print termination statistics for parallel collectors") \ 164650397Sobrien \ 164750397Sobrien product(uintx, ParallelGCBufferWastePct, 10, \ 164850397Sobrien "Wasted fraction of parallel allocation buffer") \ 164950397Sobrien range(0, 100) \ 165050397Sobrien \ 165150397Sobrien product(uintx, TargetPLABWastePct, 10, \ 165250397Sobrien "Target wasted space in last buffer as percent of overall " \ 165350397Sobrien "allocation") \ 165450397Sobrien range(1, 100) \ 165550397Sobrien \ 165650397Sobrien product(uintx, PLABWeight, 75, \ 165750397Sobrien "Percentage (0-100) used to weight the current sample when " \ 165850397Sobrien "computing exponentially decaying average for ResizePLAB") \ 165950397Sobrien range(0, 100) \ 166050397Sobrien \ 166150397Sobrien product(bool, ResizePLAB, true, \ 166250397Sobrien "Dynamically resize (survivor space) promotion LAB's") \ 166350397Sobrien \ 166450397Sobrien product(bool, PrintPLAB, false, \ 166550397Sobrien "Print (survivor space) promotion LAB's sizing decisions") \ 166650397Sobrien \ 166750397Sobrien product(intx, ParGCArrayScanChunk, 50, \ 166850397Sobrien "Scan a subset of object array and push remainder, if array is " \ 166950397Sobrien "bigger than this") \ 167050397Sobrien range(1, max_intx) \ 167150397Sobrien \ 167250397Sobrien product(bool, ParGCUseLocalOverflow, false, \ 167350397Sobrien "Instead of a global overflow list, use local overflow stacks") \ 167450397Sobrien \ 167550397Sobrien product(bool, ParGCTrimOverflow, true, \ 167650397Sobrien "Eagerly trim the local overflow lists " \ 167750397Sobrien "(when ParGCUseLocalOverflow)") \ 167850397Sobrien \ 167950397Sobrien notproduct(bool, ParGCWorkQueueOverflowALot, false, \ 168050397Sobrien "Simulate work queue overflow in ParNew") \ 168150397Sobrien \ 168250397Sobrien notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ 168350397Sobrien "An `interval' counter that determines how frequently " \ 168450397Sobrien "we simulate overflow; a smaller number increases frequency") \ 168550397Sobrien \ 168650397Sobrien product(uintx, ParGCDesiredObjsFromOverflowList, 20, \ 168750397Sobrien "The desired number of objects to claim from the overflow list") \ 168850397Sobrien \ 168950397Sobrien diagnostic(uintx, ParGCStridesPerThread, 2, \ 169050397Sobrien "The number of strides per worker thread that we divide up the " \ 169150397Sobrien "card table scanning work into") \ 169250397Sobrien range(1, max_uintx) \ 169350397Sobrien \ 169450397Sobrien diagnostic(intx, ParGCCardsPerStrideChunk, 256, \ 169550397Sobrien "The number of cards in each chunk of the parallel chunks used " \ 169650397Sobrien "during card table scanning") \ 169750397Sobrien range(1, max_intx) \ 169850397Sobrien \ 169950397Sobrien product(uintx, OldPLABWeight, 50, \ 170050397Sobrien "Percentage (0-100) used to weight the current sample when " \ 170150397Sobrien "computing exponentially decaying average for resizing " \ 170250397Sobrien "OldPLABSize") \ 170350397Sobrien range(0, 100) \ 170450397Sobrien \ 170550397Sobrien product(bool, ResizeOldPLAB, true, \ 170650397Sobrien "Dynamically resize (old gen) promotion LAB's") \ 170750397Sobrien \ 170850397Sobrien product(bool, PrintOldPLAB, false, \ 170950397Sobrien "Print (old gen) promotion LAB's sizing decisions") \ 171050397Sobrien \ 171150397Sobrien product(size_t, CMSOldPLABMax, 1024, \ 171250397Sobrien "Maximum size of CMS gen promotion LAB caches per worker " \ 171350397Sobrien "per block size") \ 171450397Sobrien range(1, max_uintx) \ 171550397Sobrien \ 171650397Sobrien product(size_t, CMSOldPLABMin, 16, \ 171750397Sobrien "Minimum size of CMS gen promotion LAB caches per worker " \ 171850397Sobrien "per block size") \ 171950397Sobrien range(1, max_uintx) \ 172050397Sobrien constraint(CMSOldPLABMinConstraintFunc,AfterErgo) \ 172150397Sobrien \ 172250397Sobrien product(uintx, CMSOldPLABNumRefills, 4, \ 172350397Sobrien "Nominal number of refills of CMS gen promotion LAB cache " \ 172450397Sobrien "per worker per block size") \ 172550397Sobrien range(1, max_uintx) \ 172650397Sobrien \ 172750397Sobrien product(bool, CMSOldPLABResizeQuicker, false, \ 172850397Sobrien "React on-the-fly during a scavenge to a sudden " \ 172950397Sobrien "change in block demand rate") \ 173050397Sobrien \ 173150397Sobrien product(uintx, CMSOldPLABToleranceFactor, 4, \ 173250397Sobrien "The tolerance of the phase-change detector for on-the-fly " \ 173350397Sobrien "PLAB resizing during a scavenge") \ 173450397Sobrien range(1, max_uintx) \ 173550397Sobrien \ 173650397Sobrien product(uintx, CMSOldPLABReactivityFactor, 2, \ 173750397Sobrien "The gain in the feedback loop for on-the-fly PLAB resizing " \ 173850397Sobrien "during a scavenge") \ 173950397Sobrien \ 174050397Sobrien product(bool, AlwaysPreTouch, false, \ 174150397Sobrien "Force all freshly committed pages to be pre-touched") \ 174250397Sobrien \ 174350397Sobrien product_pd(size_t, CMSYoungGenPerWorker, \ 174450397Sobrien "The maximum size of young gen chosen by default per GC worker " \ 174550397Sobrien "thread available") \ 174652284Sobrien range(1, max_uintx) \ 174752284Sobrien \ 174852284Sobrien product(uintx, CMSIncrementalSafetyFactor, 10, \ 174952284Sobrien "Percentage (0-100) used to add conservatism when computing the " \ 175052284Sobrien "duty cycle") \ 175152284Sobrien range(0, 100) \ 175252284Sobrien \ 175352284Sobrien product(uintx, CMSExpAvgFactor, 50, \ 175452284Sobrien "Percentage (0-100) used to weight the current sample when " \ 175552284Sobrien "computing exponential averages for CMS statistics") \ 175652284Sobrien range(0, 100) \ 175752284Sobrien \ 175852284Sobrien product(uintx, CMS_FLSWeight, 75, \ 175952284Sobrien "Percentage (0-100) used to weight the current sample when " \ 176052284Sobrien "computing exponentially decaying averages for CMS FLS " \ 176152284Sobrien "statistics") \ 176252284Sobrien range(0, 100) \ 176352284Sobrien \ 176452284Sobrien product(uintx, CMS_FLSPadding, 1, \ 176552284Sobrien "The multiple of deviation from mean to use for buffering " \ 176652284Sobrien "against volatility in free list demand") \ 176752284Sobrien \ 176852284Sobrien product(uintx, FLSCoalescePolicy, 2, \ 176952284Sobrien "CMS: aggressiveness level for coalescing, increasing " \ 177052284Sobrien "from 0 to 4") \ 177152284Sobrien range(0, 4) \ 177252284Sobrien \ 177352284Sobrien product(bool, FLSAlwaysCoalesceLarge, false, \ 177452284Sobrien "CMS: larger free blocks are always available for coalescing") \ 177552284Sobrien \ 177652284Sobrien product(double, FLSLargestBlockCoalesceProximity, 0.99, \ 177752284Sobrien "CMS: the smaller the percentage the greater the coalescing " \ 177850397Sobrien "force") \ 177950397Sobrien \ 178052284Sobrien product(double, CMSSmallCoalSurplusPercent, 1.05, \ 178152284Sobrien "CMS: the factor by which to inflate estimated demand of small " \ 178252284Sobrien "block sizes to prevent coalescing with an adjoining block") \ 178352284Sobrien \ 178452284Sobrien product(double, CMSLargeCoalSurplusPercent, 0.95, \ 178552284Sobrien "CMS: the factor by which to inflate estimated demand of large " \ 178652284Sobrien "block sizes to prevent coalescing with an adjoining block") \ 178752284Sobrien \ 178852284Sobrien product(double, CMSSmallSplitSurplusPercent, 1.10, \ 178952284Sobrien "CMS: the factor by which to inflate estimated demand of small " \ 179052284Sobrien "block sizes to prevent splitting to supply demand for smaller " \ 179152284Sobrien "blocks") \ 179252284Sobrien \ 179352284Sobrien product(double, CMSLargeSplitSurplusPercent, 1.00, \ 179452284Sobrien "CMS: the factor by which to inflate estimated demand of large " \ 179552284Sobrien "block sizes to prevent splitting to supply demand for smaller " \ 179652284Sobrien "blocks") \ 179752284Sobrien \ 179852284Sobrien product(bool, CMSExtrapolateSweep, false, \ 179952284Sobrien "CMS: cushion for block demand during sweep") \ 180052284Sobrien \ 180152284Sobrien product(uintx, CMS_SweepWeight, 75, \ 180252284Sobrien "Percentage (0-100) used to weight the current sample when " \ 180352284Sobrien "computing exponentially decaying average for inter-sweep " \ 180450397Sobrien "duration") \ 180550397Sobrien range(0, 100) \ 180650397Sobrien \ 180750397Sobrien product(uintx, CMS_SweepPadding, 1, \ 180850397Sobrien "The multiple of deviation from mean to use for buffering " \ 180950397Sobrien "against volatility in inter-sweep duration") \ 181050397Sobrien \ 181150397Sobrien product(uintx, CMS_SweepTimerThresholdMillis, 10, \ 181250397Sobrien "Skip block flux-rate sampling for an epoch unless inter-sweep " \ 181350397Sobrien "duration exceeds this threshold in milliseconds") \ 181450397Sobrien \ 181550397Sobrien product(bool, CMSClassUnloadingEnabled, true, \ 181650397Sobrien "Whether class unloading enabled when using CMS GC") \ 181750397Sobrien \ 181850397Sobrien product(uintx, CMSClassUnloadingMaxInterval, 0, \ 181950397Sobrien "When CMS class unloading is enabled, the maximum CMS cycle " \ 182050397Sobrien "count for which classes may not be unloaded") \ 182150397Sobrien \ 182250397Sobrien develop(intx, CMSDictionaryChoice, 0, \ 182350397Sobrien "Use BinaryTreeDictionary as default in the CMS generation") \ 182450397Sobrien \ 182550397Sobrien product(uintx, CMSIndexedFreeListReplenish, 4, \ 182650397Sobrien "Replenish an indexed free list with this number of chunks") \ 182750397Sobrien \ 182850397Sobrien product(bool, CMSReplenishIntermediate, true, \ 182950397Sobrien "Replenish all intermediate free-list caches") \ 183050397Sobrien \ 183150397Sobrien product(bool, CMSSplitIndexedFreeListBlocks, true, \ 183250397Sobrien "When satisfying batched demand, split blocks from the " \ 183350397Sobrien "IndexedFreeList whose size is a multiple of requested size") \ 183450397Sobrien \ 183550397Sobrien product(bool, CMSLoopWarn, false, \ 183650397Sobrien "Warn in case of excessive CMS looping") \ 183750397Sobrien \ 183850397Sobrien develop(bool, CMSOverflowEarlyRestoration, false, \ 183950397Sobrien "Restore preserved marks early") \ 184050397Sobrien \ 184150397Sobrien product(size_t, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ 184250397Sobrien "Size of marking stack") \ 184350397Sobrien \ 184450397Sobrien /* where does the range max value of (max_jint - 1) come from? */ \ 184550397Sobrien product(size_t, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ 184650397Sobrien "Maximum size of marking stack") \ 184750397Sobrien range(1, (max_jint - 1)) \ 184850397Sobrien \ 184950397Sobrien notproduct(bool, CMSMarkStackOverflowALot, false, \ 185050397Sobrien "Simulate frequent marking stack / work queue overflow") \ 185150397Sobrien \ 185250397Sobrien notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ 185350397Sobrien "An \"interval\" counter that determines how frequently " \ 185450397Sobrien "to simulate overflow; a smaller number increases frequency") \ 185550397Sobrien \ 185650397Sobrien product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ 185750397Sobrien "Maximum number of abortable preclean iterations, if > 0") \ 185850397Sobrien \ 185950397Sobrien product(intx, CMSMaxAbortablePrecleanTime, 5000, \ 186050397Sobrien "Maximum time in abortable preclean (in milliseconds)") \ 186150397Sobrien \ 186250397Sobrien product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ 186350397Sobrien "Nominal minimum work per abortable preclean iteration") \ 186450397Sobrien \ 186550397Sobrien manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \ 186650397Sobrien "Time that we sleep between iterations when not given " \ 186750397Sobrien "enough work per iteration") \ 186850397Sobrien \ 186950397Sobrien product(size_t, CMSRescanMultiple, 32, \ 187050397Sobrien "Size (in cards) of CMS parallel rescan task") \ 187150397Sobrien range(1, max_uintx) \ 187250397Sobrien \ 187350397Sobrien product(size_t, CMSConcMarkMultiple, 32, \ 187450397Sobrien "Size (in cards) of CMS concurrent MT marking task") \ 187550397Sobrien range(1, max_uintx) \ 187650397Sobrien \ 187750397Sobrien product(bool, CMSAbortSemantics, false, \ 187850397Sobrien "Whether abort-on-overflow semantics is implemented") \ 187950397Sobrien \ 188050397Sobrien product(bool, CMSParallelInitialMarkEnabled, true, \ 188150397Sobrien "Use the parallel initial mark.") \ 188250397Sobrien \ 188350397Sobrien product(bool, CMSParallelRemarkEnabled, true, \ 188450397Sobrien "Whether parallel remark enabled (only if ParNewGC)") \ 188550397Sobrien \ 188650397Sobrien product(bool, CMSParallelSurvivorRemarkEnabled, true, \ 188750397Sobrien "Whether parallel remark of survivor space " \ 188850397Sobrien "enabled (effective only if CMSParallelRemarkEnabled)") \ 188950397Sobrien \ 189050397Sobrien product(bool, CMSPLABRecordAlways, true, \ 189150397Sobrien "Always record survivor space PLAB boundaries (effective only " \ 189250397Sobrien "if CMSParallelSurvivorRemarkEnabled)") \ 189350397Sobrien \ 189450397Sobrien product(bool, CMSEdenChunksRecordAlways, true, \ 189550397Sobrien "Always record eden chunks used for the parallel initial mark " \ 189650397Sobrien "or remark of eden") \ 189750397Sobrien \ 189850397Sobrien product(bool, CMSPrintEdenSurvivorChunks, false, \ 189950397Sobrien "Print the eden and the survivor chunks used for the parallel " \ 190050397Sobrien "initial mark or remark of the eden/survivor spaces") \ 190150397Sobrien \ 190250397Sobrien product(bool, CMSConcurrentMTEnabled, true, \ 190350397Sobrien "Whether multi-threaded concurrent work enabled " \ 190450397Sobrien "(effective only if ParNewGC)") \ 190550397Sobrien \ 190652284Sobrien product(bool, CMSPrecleaningEnabled, true, \ 190750397Sobrien "Whether concurrent precleaning enabled") \ 190850397Sobrien \ 190950397Sobrien product(uintx, CMSPrecleanIter, 3, \ 191050397Sobrien "Maximum number of precleaning iteration passes") \ 191150397Sobrien range(0, 9) \ 191250397Sobrien \ 191350397Sobrien product(uintx, CMSPrecleanDenominator, 3, \ 191450397Sobrien "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ 191550397Sobrien "ratio") \ 191650397Sobrien range(1, max_uintx) \ 191750397Sobrien constraint(CMSPrecleanDenominatorConstraintFunc,AfterErgo) \ 191852284Sobrien \ 191950397Sobrien product(uintx, CMSPrecleanNumerator, 2, \ 192050397Sobrien "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ 192150397Sobrien "ratio") \ 192252284Sobrien range(0, max_uintx-1) \ 192352284Sobrien constraint(CMSPrecleanNumeratorConstraintFunc,AfterErgo) \ 192452284Sobrien \ 192552284Sobrien product(bool, CMSPrecleanRefLists1, true, \ 192650397Sobrien "Preclean ref lists during (initial) preclean phase") \ 192752284Sobrien \ 192852284Sobrien product(bool, CMSPrecleanRefLists2, false, \ 192950397Sobrien "Preclean ref lists during abortable preclean phase") \ 193050397Sobrien \ 193150397Sobrien product(bool, CMSPrecleanSurvivors1, false, \ 193250397Sobrien "Preclean survivors during (initial) preclean phase") \ 193350397Sobrien \ 193450397Sobrien product(bool, CMSPrecleanSurvivors2, true, \ 193550397Sobrien "Preclean survivors during abortable preclean phase") \ 193650397Sobrien \ 193750397Sobrien product(uintx, CMSPrecleanThreshold, 1000, \ 193850397Sobrien "Do not iterate again if number of dirty cards is less than this")\ 193950397Sobrien range(100, max_uintx) \ 194050397Sobrien \ 194150397Sobrien product(bool, CMSCleanOnEnter, true, \ 194250397Sobrien "Clean-on-enter optimization for reducing number of dirty cards") \ 194350397Sobrien \ 194450397Sobrien product(uintx, CMSRemarkVerifyVariant, 1, \ 194550397Sobrien "Choose variant (1,2) of verification following remark") \ 194650397Sobrien range(1, 2) \ 194750397Sobrien \ 194850397Sobrien product(size_t, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ 194950397Sobrien "If Eden size is below this, do not try to schedule remark") \ 195050397Sobrien \ 195150397Sobrien product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ 195250397Sobrien "The Eden occupancy percentage (0-100) at which " \ 195350397Sobrien "to try and schedule remark pause") \ 195450397Sobrien range(0, 100) \ 195550397Sobrien \ 195650397Sobrien product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ 195750397Sobrien "Start sampling eden top at least before young gen " \ 195850397Sobrien "occupancy reaches 1/<ratio> of the size at which " \ 195950397Sobrien "we plan to schedule remark") \ 196050397Sobrien range(1, max_uintx) \ 196150397Sobrien \ 196250397Sobrien product(uintx, CMSSamplingGrain, 16*K, \ 196350397Sobrien "The minimum distance between eden samples for CMS (see above)") \ 196450397Sobrien range(1, max_uintx) \ 196550397Sobrien \ 196650397Sobrien product(bool, CMSScavengeBeforeRemark, false, \ 196752284Sobrien "Attempt scavenge before the CMS remark step") \ 196852284Sobrien \ 196952284Sobrien develop(bool, CMSTraceSweeper, false, \ 197052284Sobrien "Trace some actions of the CMS sweeper") \ 197152284Sobrien \ 197252284Sobrien product(uintx, CMSWorkQueueDrainThreshold, 10, \ 197352284Sobrien "Don't drain below this size per parallel worker/thief") \ 197452284Sobrien \ 197552284Sobrien manageable(intx, CMSWaitDuration, 2000, \ 197652284Sobrien "Time in milliseconds that CMS thread waits for young GC") \ 197752284Sobrien \ 197852284Sobrien develop(uintx, CMSCheckInterval, 1000, \ 197952284Sobrien "Interval in milliseconds that CMS thread checks if it " \ 198052284Sobrien "should start a collection cycle") \ 198152284Sobrien \ 198252284Sobrien product(bool, CMSYield, true, \ 198352284Sobrien "Yield between steps of CMS") \ 198452284Sobrien \ 198552284Sobrien product(size_t, CMSBitMapYieldQuantum, 10*M, \ 198652284Sobrien "Bitmap operations should process at most this many bits " \ 198752284Sobrien "between yields") \ 198852284Sobrien range(1, max_uintx) \ 198950397Sobrien \ 199050397Sobrien product(bool, CMSDumpAtPromotionFailure, false, \ 199150397Sobrien "Dump useful information about the state of the CMS old " \ 199250397Sobrien "generation upon a promotion failure") \ 199350397Sobrien \ 199450397Sobrien product(bool, CMSPrintChunksInDump, false, \ 199550397Sobrien "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 199650397Sobrien "more detailed information about the free chunks") \ 199750397Sobrien \ 199850397Sobrien product(bool, CMSPrintObjectsInDump, false, \ 199950397Sobrien "In a dump enabled by CMSDumpAtPromotionFailure, include " \ 200050397Sobrien "more detailed information about the allocated objects") \ 200150397Sobrien \ 200250397Sobrien diagnostic(bool, FLSVerifyAllHeapReferences, false, \ 200350397Sobrien "Verify that all references across the FLS boundary " \ 200450397Sobrien "are to valid objects") \ 200550397Sobrien \ 200650397Sobrien diagnostic(bool, FLSVerifyLists, false, \ 200750397Sobrien "Do lots of (expensive) FreeListSpace verification") \ 200850397Sobrien \ 200950397Sobrien diagnostic(bool, FLSVerifyIndexTable, false, \ 201050397Sobrien "Do lots of (expensive) FLS index table verification") \ 201150397Sobrien \ 201250397Sobrien develop(bool, FLSVerifyDictionary, false, \ 201350397Sobrien "Do lots of (expensive) FLS dictionary verification") \ 201450397Sobrien \ 201550397Sobrien develop(bool, VerifyBlockOffsetArray, false, \ 201650397Sobrien "Do (expensive) block offset array verification") \ 201750397Sobrien \ 201850397Sobrien diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false, \ 201950397Sobrien "Maintain _unallocated_block in BlockOffsetArray " \ 202050397Sobrien "(currently applicable only to CMS collector)") \ 202150397Sobrien \ 202250397Sobrien develop(bool, TraceCMSState, false, \ 202350397Sobrien "Trace the state of the CMS collection") \ 202450397Sobrien \ 202550397Sobrien product(intx, RefDiscoveryPolicy, 0, \ 202650397Sobrien "Select type of reference discovery policy: " \ 202750397Sobrien "reference-based(0) or referent-based(1)") \ 202850397Sobrien range(ReferenceProcessor::DiscoveryPolicyMin, \ 202950397Sobrien ReferenceProcessor::DiscoveryPolicyMax) \ 203050397Sobrien \ 203150397Sobrien product(bool, ParallelRefProcEnabled, false, \ 203250397Sobrien "Enable parallel reference processing whenever possible") \ 203350397Sobrien \ 203450397Sobrien product(bool, ParallelRefProcBalancingEnabled, true, \ 203550397Sobrien "Enable balancing of reference processing queues") \ 203650397Sobrien \ 203750397Sobrien product(uintx, CMSTriggerRatio, 80, \ 203850397Sobrien "Percentage of MinHeapFreeRatio in CMS generation that is " \ 203950397Sobrien "allocated before a CMS collection cycle commences") \ 204050397Sobrien range(0, 100) \ 204150397Sobrien \ 204250397Sobrien product(uintx, CMSBootstrapOccupancy, 50, \ 204350397Sobrien "Percentage CMS generation occupancy at which to " \ 204450397Sobrien "initiate CMS collection for bootstrapping collection stats") \ 204550397Sobrien range(0, 100) \ 204650397Sobrien \ 204750397Sobrien product(intx, CMSInitiatingOccupancyFraction, -1, \ 204850397Sobrien "Percentage CMS generation occupancy to start a CMS collection " \ 204950397Sobrien "cycle. A negative value means that CMSTriggerRatio is used") \ 205050397Sobrien range(min_intx, 100) \ 205150397Sobrien \ 205250397Sobrien product(uintx, InitiatingHeapOccupancyPercent, 45, \ 205350397Sobrien "Percentage of the (entire) heap occupancy to start a " \ 205450397Sobrien "concurrent GC cycle. It is used by GCs that trigger a " \ 205550397Sobrien "concurrent GC cycle based on the occupancy of the entire heap, " \ 205650397Sobrien "not just one of the generations (e.g., G1). A value of 0 " \ 205750397Sobrien "denotes 'do constant GC cycles'.") \ 205850397Sobrien range(0, 100) \ 205950397Sobrien \ 206050397Sobrien manageable(intx, CMSTriggerInterval, -1, \ 206150397Sobrien "Commence a CMS collection cycle (at least) every so many " \ 206250397Sobrien "milliseconds (0 permanently, -1 disabled)") \ 206350397Sobrien range(-1, max_intx) \ 206450397Sobrien \ 206550397Sobrien product(bool, UseCMSInitiatingOccupancyOnly, false, \ 206650397Sobrien "Only use occupancy as a criterion for starting a CMS collection")\ 206750397Sobrien \ 206850397Sobrien product(uintx, CMSIsTooFullPercentage, 98, \ 206950397Sobrien "An absolute ceiling above which CMS will always consider the " \ 207050397Sobrien "unloading of classes when class unloading is enabled") \ 207150397Sobrien range(0, 100) \ 207250397Sobrien \ 207350397Sobrien develop(bool, CMSTestInFreeList, false, \ 207450397Sobrien "Check if the coalesced range is already in the " \ 207550397Sobrien "free lists as claimed") \ 207650397Sobrien \ 207750397Sobrien notproduct(bool, CMSVerifyReturnedBytes, false, \ 207850397Sobrien "Check that all the garbage collected was returned to the " \ 207950397Sobrien "free lists") \ 208050397Sobrien \ 208150397Sobrien notproduct(bool, ScavengeALot, false, \ 208250397Sobrien "Force scavenge at every Nth exit from the runtime system " \ 208350397Sobrien "(N=ScavengeALotInterval)") \ 208450397Sobrien \ 208550397Sobrien develop(bool, FullGCALot, false, \ 208650397Sobrien "Force full gc at every Nth exit from the runtime system " \ 208750397Sobrien "(N=FullGCALotInterval)") \ 208850397Sobrien \ 208950397Sobrien notproduct(bool, GCALotAtAllSafepoints, false, \ 209050397Sobrien "Enforce ScavengeALot/GCALot at all potential safepoints") \ 209150397Sobrien \ 209250397Sobrien product(bool, PrintPromotionFailure, false, \ 209350397Sobrien "Print additional diagnostic information following " \ 209450397Sobrien "promotion failure") \ 209550397Sobrien \ 209650397Sobrien notproduct(bool, PromotionFailureALot, false, \ 209750397Sobrien "Use promotion failure handling on every youngest generation " \ 209850397Sobrien "collection") \ 209950397Sobrien \ 210050397Sobrien develop(uintx, PromotionFailureALotCount, 1000, \ 210150397Sobrien "Number of promotion failures occurring at PLAB " \ 210250397Sobrien "refill attempts (ParNew) or promotion attempts " \ 210350397Sobrien "(other young collectors)") \ 210450397Sobrien \ 210550397Sobrien develop(uintx, PromotionFailureALotInterval, 5, \ 210650397Sobrien "Total collections between promotion failures a lot") \ 210750397Sobrien \ 210850397Sobrien experimental(uintx, WorkStealingSleepMillis, 1, \ 210950397Sobrien "Sleep time when sleep is used for yields") \ 211050397Sobrien \ 211150397Sobrien experimental(uintx, WorkStealingYieldsBeforeSleep, 5000, \ 211250397Sobrien "Number of yields before a sleep is done during work stealing") \ 211350397Sobrien \ 211450397Sobrien experimental(uintx, WorkStealingHardSpins, 4096, \ 211550397Sobrien "Number of iterations in a spin loop between checks on " \ 211650397Sobrien "time out of hard spin") \ 211750397Sobrien \ 211850397Sobrien experimental(uintx, WorkStealingSpinToYieldRatio, 10, \ 211950397Sobrien "Ratio of hard spins to calls to yield") \ 212050397Sobrien \ 212150397Sobrien develop(uintx, ObjArrayMarkingStride, 512, \ 212252284Sobrien "Number of object array elements to push onto the marking stack " \ 212352284Sobrien "before pushing a continuation entry") \ 212452284Sobrien \ 212552284Sobrien develop(bool, MetadataAllocationFailALot, false, \ 212652284Sobrien "Fail metadata allocations at intervals controlled by " \ 212752284Sobrien "MetadataAllocationFailALotInterval") \ 212852284Sobrien \ 212952284Sobrien develop(uintx, MetadataAllocationFailALotInterval, 1000, \ 213052284Sobrien "Metadata allocation failure a lot interval") \ 213152284Sobrien \ 213252284Sobrien develop(bool, TraceMetadataChunkAllocation, false, \ 213350397Sobrien "Trace chunk metadata allocations") \ 213450397Sobrien \ 213552284Sobrien product(bool, TraceMetadataHumongousAllocation, false, \ 213650397Sobrien "Trace humongous metadata allocations") \ 213752284Sobrien \ 213852284Sobrien develop(bool, TraceMetavirtualspaceAllocation, false, \ 213952284Sobrien "Trace virtual space metadata allocations") \ 214052284Sobrien \ 214152284Sobrien notproduct(bool, ExecuteInternalVMTests, false, \ 214252284Sobrien "Enable execution of internal VM tests") \ 214352284Sobrien \ 214452284Sobrien notproduct(bool, VerboseInternalVMTests, false, \ 214550397Sobrien "Turn on logging for internal VM tests.") \ 214650397Sobrien \ 214750397Sobrien product_pd(bool, UseTLAB, "Use thread-local object allocation") \ 214850397Sobrien \ 214950397Sobrien product_pd(bool, ResizeTLAB, \ 215050397Sobrien "Dynamically resize TLAB size for threads") \ 215150397Sobrien \ 215250397Sobrien product(bool, ZeroTLAB, false, \ 215352284Sobrien "Zero out the newly created TLAB") \ 215452284Sobrien \ 215552284Sobrien product(bool, FastTLABRefill, true, \ 215652284Sobrien "Use fast TLAB refill code") \ 215752284Sobrien \ 215852284Sobrien product(bool, PrintTLAB, false, \ 215952284Sobrien "Print various TLAB related information") \ 216052284Sobrien \ 216150397Sobrien product(bool, TLABStats, true, \ 216250397Sobrien "Provide more detailed and expensive TLAB statistics " \ 216350397Sobrien "(with PrintTLAB)") \ 216452284Sobrien \ 216550397Sobrien product_pd(bool, NeverActAsServerClassMachine, \ 216650397Sobrien "Never act like a server-class machine") \ 216750397Sobrien \ 216850397Sobrien product(bool, AlwaysActAsServerClassMachine, false, \ 216950397Sobrien "Always act like a server-class machine") \ 217050397Sobrien \ 217150397Sobrien product_pd(uint64_t, MaxRAM, \ 217250397Sobrien "Real memory size (in bytes) used to set maximum heap size") \ 217350397Sobrien \ 217450397Sobrien product(size_t, ErgoHeapSizeLimit, 0, \ 217552284Sobrien "Maximum ergonomically set heap size (in bytes); zero means use " \ 217652284Sobrien "MaxRAM / MaxRAMFraction") \ 217752284Sobrien \ 217850397Sobrien product(uintx, MaxRAMFraction, 4, \ 217950397Sobrien "Maximum fraction (1/n) of real memory used for maximum heap " \ 218050397Sobrien "size") \ 218150397Sobrien range(1, max_uintx) \ 218250397Sobrien \ 218350397Sobrien product(uintx, MinRAMFraction, 2, \ 218450397Sobrien "Minimum fraction (1/n) of real memory used for maximum heap " \ 218550397Sobrien "size on systems with small physical memory size") \ 218650397Sobrien range(1, max_uintx) \ 218752284Sobrien \ 218852284Sobrien product(uintx, InitialRAMFraction, 64, \ 218952284Sobrien "Fraction (1/n) of real memory used for initial heap size") \ 219050397Sobrien range(1, max_uintx) \ 219150397Sobrien \ 219250397Sobrien develop(uintx, MaxVirtMemFraction, 2, \ 219350397Sobrien "Maximum fraction (1/n) of virtual memory used for ergonomically "\ 219450397Sobrien "determining maximum heap size") \ 219552284Sobrien \ 219652284Sobrien product(bool, UseAutoGCSelectPolicy, false, \ 219752284Sobrien "Use automatic collection selection policy") \ 219850397Sobrien \ 219950397Sobrien product(uintx, AutoGCSelectPauseMillis, 5000, \ 220050397Sobrien "Automatic GC selection pause threshold in milliseconds") \ 220150397Sobrien \ 220250397Sobrien product(bool, UseAdaptiveSizePolicy, true, \ 220350397Sobrien "Use adaptive generation sizing policies") \ 220450397Sobrien \ 220550397Sobrien product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ 220650397Sobrien "Use adaptive survivor sizing policies") \ 220752284Sobrien \ 220850397Sobrien product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ 220950397Sobrien "Use adaptive young-old sizing policies at minor collections") \ 221050397Sobrien \ 221150397Sobrien product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ 221250397Sobrien "Use adaptive young-old sizing policies at major collections") \ 221350397Sobrien \ 221450397Sobrien product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ 221550397Sobrien "Include statistics from System.gc() for adaptive size policy") \ 221650397Sobrien \ 221750397Sobrien product(bool, UseAdaptiveGCBoundary, false, \ 221850397Sobrien "Allow young-old boundary to move") \ 221950397Sobrien \ 222050397Sobrien develop(bool, TraceAdaptiveGCBoundary, false, \ 222150397Sobrien "Trace young-old boundary moves") \ 222250397Sobrien \ 222350397Sobrien develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ 222450397Sobrien "Resize the virtual spaces of the young or old generations") \ 222550397Sobrien \ 222650397Sobrien product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ 222750397Sobrien "Policy for changing generation size for throughput goals") \ 222850397Sobrien \ 222950397Sobrien develop(bool, PSAdjustTenuredGenForMinorPause, false, \ 223050397Sobrien "Adjust tenured generation to achieve a minor pause goal") \ 223150397Sobrien \ 223252284Sobrien develop(bool, PSAdjustYoungGenForMajorPause, false, \ 223352284Sobrien "Adjust young generation to achieve a major pause goal") \ 223452284Sobrien \ 223552284Sobrien product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ 223650397Sobrien "Number of steps where heuristics is used before data is used") \ 223750397Sobrien \ 223850397Sobrien develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ 223950397Sobrien "Number of collections before the adaptive sizing is started") \ 224050397Sobrien \ 224150397Sobrien product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ 224250397Sobrien "Collection interval for printing information; zero means never") \ 224350397Sobrien \ 224450397Sobrien product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ 224552284Sobrien "Use adaptive minimum footprint as a goal") \ 224652284Sobrien \ 224752284Sobrien product(uintx, AdaptiveSizePolicyWeight, 10, \ 224850397Sobrien "Weight given to exponential resizing, between 0 and 100") \ 224950397Sobrien range(0, 100) \ 225050397Sobrien \ 225150397Sobrien product(uintx, AdaptiveTimeWeight, 25, \ 225250397Sobrien "Weight given to time in adaptive policy, between 0 and 100") \ 225350397Sobrien range(0, 100) \ 225450397Sobrien \ 225550397Sobrien product(uintx, PausePadding, 1, \ 225650397Sobrien "How much buffer to keep for pause time") \ 225750397Sobrien \ 225850397Sobrien product(uintx, PromotedPadding, 3, \ 225950397Sobrien "How much buffer to keep for promotion failure") \ 226050397Sobrien \ 226150397Sobrien product(uintx, SurvivorPadding, 3, \ 226250397Sobrien "How much buffer to keep for survivor overflow") \ 226350397Sobrien \ 226450397Sobrien product(uintx, ThresholdTolerance, 10, \ 226550397Sobrien "Allowed collection cost difference between generations") \ 226650397Sobrien range(0, 100) \ 226750397Sobrien \ 226850397Sobrien product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ 226950397Sobrien "If collection costs are within margin, reduce both by full " \ 227050397Sobrien "delta") \ 227150397Sobrien \ 227250397Sobrien product(uintx, YoungGenerationSizeIncrement, 20, \ 227350397Sobrien "Adaptive size percentage change in young generation") \ 227450397Sobrien range(0, 100) \ 227550397Sobrien \ 227650397Sobrien product(uintx, YoungGenerationSizeSupplement, 80, \ 227750397Sobrien "Supplement to YoungedGenerationSizeIncrement used at startup") \ 227850397Sobrien range(0, 100) \ 227950397Sobrien \ 228050397Sobrien product(uintx, YoungGenerationSizeSupplementDecay, 8, \ 228150397Sobrien "Decay factor to YoungedGenerationSizeSupplement") \ 228250397Sobrien range(1, max_uintx) \ 228350397Sobrien \ 228450397Sobrien product(uintx, TenuredGenerationSizeIncrement, 20, \ 228550397Sobrien "Adaptive size percentage change in tenured generation") \ 228650397Sobrien range(0, 100) \ 228750397Sobrien \ 228850397Sobrien product(uintx, TenuredGenerationSizeSupplement, 80, \ 228950397Sobrien "Supplement to TenuredGenerationSizeIncrement used at startup") \ 229050397Sobrien range(0, 100) \ 229150397Sobrien \ 229250397Sobrien product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ 229350397Sobrien "Decay factor to TenuredGenerationSizeIncrement") \ 229450397Sobrien range(1, max_uintx) \ 229550397Sobrien \ 229650397Sobrien product(uintx, MaxGCPauseMillis, max_uintx, \ 229750397Sobrien "Adaptive size policy maximum GC pause time goal in millisecond, "\ 229852284Sobrien "or (G1 Only) the maximum GC time per MMU time slice") \ 229952284Sobrien \ 230052284Sobrien product(uintx, GCPauseIntervalMillis, 0, \ 230152284Sobrien "Time slice for MMU specification") \ 230252284Sobrien \ 230352284Sobrien product(uintx, MaxGCMinorPauseMillis, max_uintx, \ 230452284Sobrien "Adaptive size policy maximum GC minor pause time goal " \ 230552284Sobrien "in millisecond") \ 230650397Sobrien \ 230750397Sobrien product(uintx, GCTimeRatio, 99, \ 230850397Sobrien "Adaptive size policy application time to GC time ratio") \ 230950397Sobrien \ 231050397Sobrien product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ 231150397Sobrien "Adaptive size scale down factor for shrinking") \ 231250397Sobrien range(1, max_uintx) \ 231350397Sobrien \ 231450397Sobrien product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ 231550397Sobrien "Adaptive size decays the major cost for long major intervals") \ 231650397Sobrien \ 231750397Sobrien product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ 231850397Sobrien "Time scale over which major costs decay") \ 231950397Sobrien \ 232050397Sobrien product(uintx, MinSurvivorRatio, 3, \ 232150397Sobrien "Minimum ratio of young generation/survivor space size") \ 232250397Sobrien \ 232350397Sobrien product(uintx, InitialSurvivorRatio, 8, \ 232450397Sobrien "Initial ratio of young generation/survivor space size") \ 232550397Sobrien \ 232650397Sobrien product(size_t, BaseFootPrintEstimate, 256*M, \ 232750397Sobrien "Estimate of footprint other than Java Heap") \ 232850397Sobrien \ 232950397Sobrien product(bool, UseGCOverheadLimit, true, \ 233050397Sobrien "Use policy to limit of proportion of time spent in GC " \ 233150397Sobrien "before an OutOfMemory error is thrown") \ 233250397Sobrien \ 233350397Sobrien product(uintx, GCTimeLimit, 98, \ 233450397Sobrien "Limit of the proportion of time spent in GC before " \ 233550397Sobrien "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)") \ 233650397Sobrien range(0, 100) \ 233750397Sobrien \ 233850397Sobrien product(uintx, GCHeapFreeLimit, 2, \ 233950397Sobrien "Minimum percentage of free space after a full GC before an " \ 234050397Sobrien "OutOfMemoryError is thrown (used with GCTimeLimit)") \ 234150397Sobrien range(0, 100) \ 234250397Sobrien \ 234350397Sobrien develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ 234450397Sobrien "Number of consecutive collections before gc time limit fires") \ 234550397Sobrien \ 234650397Sobrien product(bool, PrintAdaptiveSizePolicy, false, \ 234750397Sobrien "Print information about AdaptiveSizePolicy") \ 234850397Sobrien \ 234950397Sobrien product(intx, PrefetchCopyIntervalInBytes, -1, \ 235050397Sobrien "How far ahead to prefetch destination area (<= 0 means off)") \ 235150397Sobrien \ 235250397Sobrien product(intx, PrefetchScanIntervalInBytes, -1, \ 235350397Sobrien "How far ahead to prefetch scan area (<= 0 means off)") \ 235450397Sobrien \ 235550397Sobrien product(intx, PrefetchFieldsAhead, -1, \ 235650397Sobrien "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ 235750397Sobrien \ 235850397Sobrien diagnostic(bool, VerifySilently, false, \ 235950397Sobrien "Do not print the verification progress") \ 236050397Sobrien \ 236150397Sobrien diagnostic(bool, VerifyDuringStartup, false, \ 236250397Sobrien "Verify memory system before executing any Java code " \ 236350397Sobrien "during VM initialization") \ 236450397Sobrien \ 236550397Sobrien diagnostic(bool, VerifyBeforeExit, trueInDebug, \ 236650397Sobrien "Verify system before exiting") \ 236750397Sobrien \ 236850397Sobrien diagnostic(bool, VerifyBeforeGC, false, \ 236950397Sobrien "Verify memory system before GC") \ 237050397Sobrien \ 237150397Sobrien diagnostic(bool, VerifyAfterGC, false, \ 237250397Sobrien "Verify memory system after GC") \ 237350397Sobrien \ 237450397Sobrien diagnostic(bool, VerifyDuringGC, false, \ 237550397Sobrien "Verify memory system during GC (between phases)") \ 237650397Sobrien \ 237750397Sobrien diagnostic(bool, GCParallelVerificationEnabled, true, \ 237850397Sobrien "Enable parallel memory system verification") \ 237950397Sobrien \ 238050397Sobrien diagnostic(bool, DeferInitialCardMark, false, \ 238150397Sobrien "When +ReduceInitialCardMarks, explicitly defer any that " \ 238250397Sobrien "may arise from new_pre_store_barrier") \ 238350397Sobrien \ 238450397Sobrien product(bool, UseCondCardMark, false, \ 238550397Sobrien "Check for already marked card before updating card table") \ 238650397Sobrien \ 238750397Sobrien diagnostic(bool, VerifyRememberedSets, false, \ 238850397Sobrien "Verify GC remembered sets") \ 238950397Sobrien \ 239050397Sobrien diagnostic(bool, VerifyObjectStartArray, true, \ 239150397Sobrien "Verify GC object start array if verify before/after") \ 239250397Sobrien \ 239350397Sobrien product(bool, DisableExplicitGC, false, \ 239450397Sobrien "Ignore calls to System.gc()") \ 239550397Sobrien \ 239650397Sobrien notproduct(bool, CheckMemoryInitialization, false, \ 239750397Sobrien "Check memory initialization") \ 239850397Sobrien \ 239950397Sobrien diagnostic(bool, BindCMSThreadToCPU, false, \ 240050397Sobrien "Bind CMS Thread to CPU if possible") \ 240150397Sobrien \ 240250397Sobrien diagnostic(uintx, CPUForCMSThread, 0, \ 240350397Sobrien "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ 240450397Sobrien \ 240550397Sobrien product(bool, BindGCTaskThreadsToCPUs, false, \ 240652284Sobrien "Bind GCTaskThreads to CPUs if possible") \ 240752284Sobrien \ 240852284Sobrien product(bool, UseGCTaskAffinity, false, \ 240950397Sobrien "Use worker affinity when asking for GCTasks") \ 241050397Sobrien \ 241150397Sobrien product(uintx, ProcessDistributionStride, 4, \ 241250397Sobrien "Stride through processors when distributing processes") \ 241350397Sobrien \ 241450397Sobrien product(uintx, CMSCoordinatorYieldSleepCount, 10, \ 241550397Sobrien "Number of times the coordinator GC thread will sleep while " \ 241650397Sobrien "yielding before giving up and resuming GC") \ 241750397Sobrien \ 241850397Sobrien product(uintx, CMSYieldSleepCount, 0, \ 241950397Sobrien "Number of times a GC thread (minus the coordinator) " \ 242050397Sobrien "will sleep while yielding before giving up and resuming GC") \ 242150397Sobrien \ 242250397Sobrien /* gc tracing */ \ 242350397Sobrien manageable(bool, PrintGC, false, \ 242452284Sobrien "Print message at garbage collection") \ 242552284Sobrien \ 242652284Sobrien manageable(bool, PrintGCDetails, false, \ 242752284Sobrien "Print more details at garbage collection") \ 242850397Sobrien \ 242950397Sobrien manageable(bool, PrintGCDateStamps, false, \ 243050397Sobrien "Print date stamps at garbage collection") \ 243150397Sobrien \ 243250397Sobrien manageable(bool, PrintGCTimeStamps, false, \ 243350397Sobrien "Print timestamps at garbage collection") \ 243450397Sobrien \ 243550397Sobrien manageable(bool, PrintGCID, true, \ 243650397Sobrien "Print an identifier for each garbage collection") \ 243750397Sobrien \ 243850397Sobrien product(bool, PrintGCTaskTimeStamps, false, \ 243950397Sobrien "Print timestamps for individual gc worker thread tasks") \ 244050397Sobrien \ 244150397Sobrien develop(intx, ConcGCYieldTimeout, 0, \ 244250397Sobrien "If non-zero, assert that GC threads yield within this " \ 244350397Sobrien "number of milliseconds") \ 244450397Sobrien \ 244550397Sobrien product(bool, PrintReferenceGC, false, \ 244650397Sobrien "Print times spent handling reference objects during GC " \ 244750397Sobrien "(enabled only when PrintGCDetails)") \ 244850397Sobrien \ 244950397Sobrien develop(bool, TraceReferenceGC, false, \ 245052284Sobrien "Trace handling of soft/weak/final/phantom references") \ 245150397Sobrien \ 245250397Sobrien develop(bool, TraceFinalizerRegistration, false, \ 245350397Sobrien "Trace registration of final references") \ 245450397Sobrien \ 245550397Sobrien notproduct(bool, TraceScavenge, false, \ 245650397Sobrien "Trace scavenge") \ 245750397Sobrien \ 245850397Sobrien product(bool, IgnoreEmptyClassPaths, false, \ 245950397Sobrien "Ignore empty path elements in -classpath") \ 246050397Sobrien \ 246150397Sobrien product(bool, TraceClassPaths, false, \ 246250397Sobrien "Trace processing of class paths") \ 246350397Sobrien \ 246450397Sobrien product_rw(bool, TraceClassLoading, false, \ 246550397Sobrien "Trace all classes loaded") \ 246650397Sobrien \ 246750397Sobrien product(bool, TraceClassLoadingPreorder, false, \ 246850397Sobrien "Trace all classes loaded in order referenced (not loaded)") \ 246950397Sobrien \ 247050397Sobrien product_rw(bool, TraceClassUnloading, false, \ 247150397Sobrien "Trace unloading of classes") \ 247250397Sobrien \ 247350397Sobrien product_rw(bool, TraceLoaderConstraints, false, \ 247452284Sobrien "Trace loader constraints") \ 247550397Sobrien \ 247650397Sobrien develop(bool, TraceClassLoaderData, false, \ 247750397Sobrien "Trace class loader loader_data lifetime") \ 247850397Sobrien \ 247950397Sobrien product(size_t, InitialBootClassLoaderMetaspaceSize, \ 248050397Sobrien NOT_LP64(2200*K) LP64_ONLY(4*M), \ 248150397Sobrien "Initial size of the boot class loader data metaspace") \ 248250397Sobrien \ 248350397Sobrien product(bool, TraceYoungGenTime, false, \ 248450397Sobrien "Trace accumulated time for young collection") \ 248550397Sobrien \ 248650397Sobrien product(bool, TraceOldGenTime, false, \ 248750397Sobrien "Trace accumulated time for old collection") \ 248850397Sobrien \ 248950397Sobrien product(bool, PrintTenuringDistribution, false, \ 249050397Sobrien "Print tenuring age information") \ 249150397Sobrien \ 249250397Sobrien product_rw(bool, PrintHeapAtGC, false, \ 249350397Sobrien "Print heap layout before and after each GC") \ 249450397Sobrien \ 249550397Sobrien product_rw(bool, PrintHeapAtGCExtended, false, \ 249650397Sobrien "Print extended information about the layout of the heap " \ 249750397Sobrien "when -XX:+PrintHeapAtGC is set") \ 249850397Sobrien \ 249950397Sobrien product(bool, PrintHeapAtSIGBREAK, true, \ 250050397Sobrien "Print heap layout in response to SIGBREAK") \ 250150397Sobrien \ 250250397Sobrien manageable(bool, PrintClassHistogramBeforeFullGC, false, \ 250350397Sobrien "Print a class histogram before any major stop-world GC") \ 250450397Sobrien \ 250550397Sobrien manageable(bool, PrintClassHistogramAfterFullGC, false, \ 250650397Sobrien "Print a class histogram after any major stop-world GC") \ 250750397Sobrien \ 250850397Sobrien manageable(bool, PrintClassHistogram, false, \ 250950397Sobrien "Print a histogram of class instances") \ 251050397Sobrien \ 251150397Sobrien develop(bool, TraceWorkGang, false, \ 251250397Sobrien "Trace activities of work gangs") \ 251350397Sobrien \ 251450397Sobrien product(bool, TraceParallelOldGCTasks, false, \ 251550397Sobrien "Trace multithreaded GC activity") \ 251650397Sobrien \ 251750397Sobrien develop(bool, TraceBlockOffsetTable, false, \ 251850397Sobrien "Print BlockOffsetTable maps") \ 251950397Sobrien \ 252050397Sobrien develop(bool, TraceCardTableModRefBS, false, \ 252150397Sobrien "Print CardTableModRefBS maps") \ 252250397Sobrien \ 252350397Sobrien develop(bool, TraceGCTaskManager, false, \ 252450397Sobrien "Trace actions of the GC task manager") \ 252550397Sobrien \ 252650397Sobrien develop(bool, TraceGCTaskQueue, false, \ 252750397Sobrien "Trace actions of the GC task queues") \ 252850397Sobrien \ 252950397Sobrien diagnostic(bool, TraceGCTaskThread, false, \ 253052284Sobrien "Trace actions of the GC task threads") \ 253152284Sobrien \ 253252284Sobrien product(bool, PrintParallelOldGCPhaseTimes, false, \ 253352284Sobrien "Print the time taken by each phase in ParallelOldGC " \ 253452284Sobrien "(PrintGCDetails must also be enabled)") \ 253550397Sobrien \ 253650397Sobrien develop(bool, TraceParallelOldGCMarkingPhase, false, \ 253750397Sobrien "Trace marking phase in ParallelOldGC") \ 253850397Sobrien \ 253950397Sobrien develop(bool, TraceParallelOldGCSummaryPhase, false, \ 254050397Sobrien "Trace summary phase in ParallelOldGC") \ 254150397Sobrien \ 254250397Sobrien develop(bool, TraceParallelOldGCCompactionPhase, false, \ 254350397Sobrien "Trace compaction phase in ParallelOldGC") \ 254450397Sobrien \ 254550397Sobrien develop(bool, TraceParallelOldGCDensePrefix, false, \ 254650397Sobrien "Trace dense prefix computation for ParallelOldGC") \ 254750397Sobrien \ 254850397Sobrien develop(bool, IgnoreLibthreadGPFault, false, \ 254950397Sobrien "Suppress workaround for libthread GP fault") \ 255050397Sobrien \ 255150397Sobrien product(bool, PrintJNIGCStalls, false, \ 255250397Sobrien "Print diagnostic message when GC is stalled " \ 255350397Sobrien "by JNI critical section") \ 255450397Sobrien \ 255550397Sobrien experimental(double, ObjectCountCutOffPercent, 0.5, \ 255650397Sobrien "The percentage of the used heap that the instances of a class " \ 255750397Sobrien "must occupy for the class to generate a trace event") \ 255850397Sobrien \ 255950397Sobrien /* GC log rotation setting */ \ 256050397Sobrien \ 256150397Sobrien product(bool, UseGCLogFileRotation, false, \ 256250397Sobrien "Rotate gclog files (for long running applications). It requires "\ 256350397Sobrien "-Xloggc:<filename>") \ 256450397Sobrien \ 256550397Sobrien product(uintx, NumberOfGCLogFiles, 0, \ 256650397Sobrien "Number of gclog files in rotation " \ 256750397Sobrien "(default: 0, no rotation)") \ 256850397Sobrien \ 256950397Sobrien product(size_t, GCLogFileSize, 8*K, \ 257050397Sobrien "GC log file size, requires UseGCLogFileRotation. " \ 257150397Sobrien "Set to 0 to only trigger rotation via jcmd") \ 257250397Sobrien \ 257350397Sobrien /* JVMTI heap profiling */ \ 257450397Sobrien \ 257550397Sobrien diagnostic(bool, TraceJVMTIObjectTagging, false, \ 257650397Sobrien "Trace JVMTI object tagging calls") \ 257750397Sobrien \ 257850397Sobrien diagnostic(bool, VerifyBeforeIteration, false, \ 257950397Sobrien "Verify memory system before JVMTI iteration") \ 258050397Sobrien \ 258150397Sobrien /* compiler interface */ \ 258250397Sobrien \ 258350397Sobrien develop(bool, CIPrintCompilerName, false, \ 258450397Sobrien "when CIPrint is active, print the name of the active compiler") \ 258550397Sobrien \ 258650397Sobrien diagnostic(bool, CIPrintCompileQueue, false, \ 258750397Sobrien "display the contents of the compile queue whenever a " \ 258850397Sobrien "compilation is enqueued") \ 258950397Sobrien \ 259050397Sobrien develop(bool, CIPrintRequests, false, \ 259150397Sobrien "display every request for compilation") \ 259250397Sobrien \ 259350397Sobrien product(bool, CITime, false, \ 259450397Sobrien "collect timing information for compilation") \ 259550397Sobrien \ 259650397Sobrien develop(bool, CITimeVerbose, false, \ 259750397Sobrien "be more verbose in compilation timings") \ 259850397Sobrien \ 259950397Sobrien develop(bool, CITimeEach, false, \ 260050397Sobrien "display timing information after each successful compilation") \ 260150397Sobrien \ 260250397Sobrien develop(bool, CICountOSR, false, \ 260350397Sobrien "use a separate counter when assigning ids to osr compilations") \ 260450397Sobrien \ 260550397Sobrien develop(bool, CICompileNatives, true, \ 260650397Sobrien "compile native methods if supported by the compiler") \ 260750397Sobrien \ 260850397Sobrien develop_pd(bool, CICompileOSR, \ 260950397Sobrien "compile on stack replacement methods if supported by the " \ 261050397Sobrien "compiler") \ 261150397Sobrien \ 261250397Sobrien develop(bool, CIPrintMethodCodes, false, \ 261350397Sobrien "print method bytecodes of the compiled code") \ 261450397Sobrien \ 261550397Sobrien develop(bool, CIPrintTypeFlow, false, \ 261650397Sobrien "print the results of ciTypeFlow analysis") \ 261750397Sobrien \ 261850397Sobrien develop(bool, CITraceTypeFlow, false, \ 261950397Sobrien "detailed per-bytecode tracing of ciTypeFlow analysis") \ 262050397Sobrien \ 262150397Sobrien develop(intx, OSROnlyBCI, -1, \ 262250397Sobrien "OSR only at this bci. Negative values mean exclude that bci") \ 262350397Sobrien \ 262450397Sobrien /* compiler */ \ 262550397Sobrien \ 262650397Sobrien /* notice: the max range value here is max_jint, not max_intx */ \ 262750397Sobrien /* because of overflow issue */ \ 262850397Sobrien product(intx, CICompilerCount, CI_COMPILER_COUNT, \ 262950397Sobrien "Number of compiler threads to run") \ 263050397Sobrien range(0, max_jint) \ 263150397Sobrien constraint(CICompilerCountConstraintFunc, AtParse) \ 263250397Sobrien \ 263350397Sobrien product(intx, CompilationPolicyChoice, 0, \ 263450397Sobrien "which compilation policy (0-3)") \ 263550397Sobrien range(0, 3) \ 263650397Sobrien \ 263750397Sobrien develop(bool, UseStackBanging, true, \ 263850397Sobrien "use stack banging for stack overflow checks (required for " \ 263950397Sobrien "proper StackOverflow handling; disable only to measure cost " \ 264050397Sobrien "of stackbanging)") \ 264150397Sobrien \ 264250397Sobrien develop(bool, UseStrictFP, true, \ 264350397Sobrien "use strict fp if modifier strictfp is set") \ 264450397Sobrien \ 264550397Sobrien develop(bool, GenerateSynchronizationCode, true, \ 264650397Sobrien "generate locking/unlocking code for synchronized methods and " \ 264750397Sobrien "monitors") \ 264850397Sobrien \ 264950397Sobrien develop(bool, GenerateCompilerNullChecks, true, \ 265050397Sobrien "Generate explicit null checks for loads/stores/calls") \ 265150397Sobrien \ 265250397Sobrien develop(bool, GenerateRangeChecks, true, \ 265350397Sobrien "Generate range checks for array accesses") \ 265450397Sobrien \ 265550397Sobrien develop_pd(bool, ImplicitNullChecks, \ 265650397Sobrien "Generate code for implicit null checks") \ 265750397Sobrien \ 265850397Sobrien product_pd(bool, TrapBasedNullChecks, \ 265950397Sobrien "Generate code for null checks that uses a cmp and trap " \ 266050397Sobrien "instruction raising SIGTRAP. This is only used if an access to" \ 266150397Sobrien "null (+offset) will not raise a SIGSEGV, i.e.," \ 266250397Sobrien "ImplicitNullChecks don't work (PPC64).") \ 266350397Sobrien \ 266450397Sobrien product(bool, PrintSafepointStatistics, false, \ 266550397Sobrien "Print statistics about safepoint synchronization") \ 266650397Sobrien \ 266750397Sobrien product(intx, PrintSafepointStatisticsCount, 300, \ 266850397Sobrien "Total number of safepoint statistics collected " \ 266950397Sobrien "before printing them out") \ 267050397Sobrien \ 267150397Sobrien product(intx, PrintSafepointStatisticsTimeout, -1, \ 267250397Sobrien "Print safepoint statistics only when safepoint takes " \ 267350397Sobrien "more than PrintSafepointSatisticsTimeout in millis") \ 267450397Sobrien \ 267550397Sobrien product(bool, TraceSafepointCleanupTime, false, \ 267650397Sobrien "Print the break down of clean up tasks performed during " \ 267750397Sobrien "safepoint") \ 267850397Sobrien \ 267950397Sobrien product(bool, Inline, true, \ 268050397Sobrien "Enable inlining") \ 268150397Sobrien \ 268250397Sobrien product(bool, ClipInlining, true, \ 268350397Sobrien "Clip inlining if aggregate method exceeds DesiredMethodLimit") \ 268450397Sobrien \ 268550397Sobrien develop(bool, UseCHA, true, \ 268650397Sobrien "Enable CHA") \ 268750397Sobrien \ 268850397Sobrien product(bool, UseTypeProfile, true, \ 268950397Sobrien "Check interpreter profile for historically monomorphic calls") \ 269050397Sobrien \ 269152284Sobrien diagnostic(bool, PrintInlining, false, \ 269252284Sobrien "Print inlining optimizations") \ 269352284Sobrien \ 269452284Sobrien product(bool, UsePopCountInstruction, false, \ 269552284Sobrien "Use population count instruction") \ 269650397Sobrien \ 269752284Sobrien develop(bool, EagerInitialization, false, \ 269852284Sobrien "Eagerly initialize classes if possible") \ 269950397Sobrien \ 270052284Sobrien diagnostic(bool, LogTouchedMethods, false, \ 270152284Sobrien "Log methods which have been ever touched in runtime") \ 270252284Sobrien \ 270350397Sobrien diagnostic(bool, PrintTouchedMethodsAtExit, false, \ 270452284Sobrien "Print all methods that have been ever touched in runtime") \ 270552284Sobrien \ 270650397Sobrien develop(bool, TraceMethodReplacement, false, \ 270750397Sobrien "Print when methods are replaced do to recompilation") \ 270852284Sobrien \ 270952284Sobrien develop(bool, PrintMethodFlushing, false, \ 271050397Sobrien "Print the nmethods being flushed") \ 271150397Sobrien \ 271252284Sobrien diagnostic(bool, PrintMethodFlushingStatistics, false, \ 271352284Sobrien "print statistics about method flushing") \ 271450397Sobrien \ 271550397Sobrien diagnostic(intx, HotMethodDetectionLimit, 100000, \ 271650397Sobrien "Number of compiled code invocations after which " \ 271752284Sobrien "the method is considered as hot by the flusher") \ 271852284Sobrien range(1, max_jint) \ 271950397Sobrien \ 272050397Sobrien diagnostic(intx, MinPassesBeforeFlush, 10, \ 272152284Sobrien "Minimum number of sweeper passes before an nmethod " \ 272252284Sobrien "can be flushed") \ 272350397Sobrien \ 272450397Sobrien product(bool, UseCodeAging, true, \ 272550397Sobrien "Insert counter to detect warm methods") \ 272652284Sobrien \ 272750397Sobrien diagnostic(bool, StressCodeAging, false, \ 272852284Sobrien "Start with counters compiled in") \ 272952284Sobrien \ 273050397Sobrien develop(bool, UseRelocIndex, false, \ 273152284Sobrien "Use an index to speed random access to relocations") \ 273250397Sobrien \ 273352284Sobrien develop(bool, StressCodeBuffers, false, \ 273450397Sobrien "Exercise code buffer expansion and other rare state changes") \ 273550397Sobrien \ 273652284Sobrien diagnostic(bool, DebugNonSafepoints, trueInDebug, \ 273752284Sobrien "Generate extra debugging information for non-safepoints in " \ 273852284Sobrien "nmethods") \ 273952284Sobrien \ 274050397Sobrien product(bool, PrintVMOptions, false, \ 274152284Sobrien "Print flags that appeared on the command line") \ 274250397Sobrien \ 274350397Sobrien product(bool, IgnoreUnrecognizedVMOptions, false, \ 274452284Sobrien "Ignore unrecognized VM options") \ 274552284Sobrien \ 274652284Sobrien product(bool, PrintCommandLineFlags, false, \ 274752284Sobrien "Print flags specified on command line or set by ergonomics") \ 274852284Sobrien \ 274952284Sobrien product(bool, PrintFlagsInitial, false, \ 275052284Sobrien "Print all VM flags before argument processing and exit VM") \ 275152284Sobrien \ 275252284Sobrien product(bool, PrintFlagsFinal, false, \ 275352284Sobrien "Print all VM flags after argument and ergonomic processing") \ 275452284Sobrien \ 275552284Sobrien notproduct(bool, PrintFlagsWithComments, false, \ 275650397Sobrien "Print all VM flags with default values and descriptions and " \ 275750397Sobrien "exit") \ 275850397Sobrien \ 275950397Sobrien product(bool, PrintFlagsRanges, false, \ 276050397Sobrien "Print VM flags and their ranges and exit VM") \ 276150397Sobrien \ 276250397Sobrien diagnostic(bool, SerializeVMOutput, true, \ 276350397Sobrien "Use a mutex to serialize output to tty and LogFile") \ 276450397Sobrien \ 276550397Sobrien diagnostic(bool, DisplayVMOutput, true, \ 276650397Sobrien "Display all VM output on the tty, independently of LogVMOutput") \ 276750397Sobrien \ 276850397Sobrien diagnostic(bool, LogVMOutput, false, \ 276950397Sobrien "Save VM output to LogFile") \ 277052284Sobrien \ 277152284Sobrien diagnostic(ccstr, LogFile, NULL, \ 277250397Sobrien "If LogVMOutput or LogCompilation is on, save VM output to " \ 277352284Sobrien "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\ 277452284Sobrien \ 277552284Sobrien product(ccstr, ErrorFile, NULL, \ 277650397Sobrien "If an error occurs, save the error data to this file " \ 277752284Sobrien "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ 277852284Sobrien \ 277950397Sobrien product(bool, DisplayVMOutputToStderr, false, \ 278052284Sobrien "If DisplayVMOutput is true, display all VM output to stderr") \ 278152284Sobrien \ 278252284Sobrien product(bool, DisplayVMOutputToStdout, false, \ 278352284Sobrien "If DisplayVMOutput is true, display all VM output to stdout") \ 278452284Sobrien \ 278552284Sobrien product(bool, UseHeavyMonitors, false, \ 278650397Sobrien "use heavyweight instead of lightweight Java monitors") \ 278750397Sobrien \ 278852284Sobrien product(bool, PrintStringTableStatistics, false, \ 278952284Sobrien "print statistics about the StringTable and SymbolTable") \ 279050397Sobrien \ 279152284Sobrien diagnostic(bool, VerifyStringTableAtExit, false, \ 279252284Sobrien "verify StringTable contents at exit") \ 279352284Sobrien \ 279450397Sobrien notproduct(bool, PrintSymbolTableSizeHistogram, false, \ 279552284Sobrien "print histogram of the symbol table") \ 279652284Sobrien \ 279750397Sobrien notproduct(bool, ExitVMOnVerifyError, false, \ 279852284Sobrien "standard exit from VM if bytecode verify error " \ 279950397Sobrien "(only in debug mode)") \ 280052284Sobrien \ 280152284Sobrien notproduct(ccstr, AbortVMOnException, NULL, \ 280252284Sobrien "Call fatal if this exception is thrown. Example: " \ 280352284Sobrien "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ 280452284Sobrien \ 280552284Sobrien notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \ 280652284Sobrien "Call fatal if the exception pointed by AbortVMOnException " \ 280752284Sobrien "has this message") \ 280852284Sobrien \ 280952284Sobrien develop(bool, DebugVtables, false, \ 281050397Sobrien "add debugging code to vtable dispatch") \ 281152284Sobrien \ 281250397Sobrien develop(bool, PrintVtables, false, \ 281352284Sobrien "print vtables when printing klass") \ 281452284Sobrien \ 281552284Sobrien notproduct(bool, PrintVtableStats, false, \ 281652284Sobrien "print vtables stats at end of run") \ 281752284Sobrien \ 281852284Sobrien develop(bool, TraceCreateZombies, false, \ 281952284Sobrien "trace creation of zombie nmethods") \ 282050397Sobrien \ 282152284Sobrien notproduct(bool, IgnoreLockingAssertions, false, \ 282250397Sobrien "disable locking assertions (for speed)") \ 282352284Sobrien \ 282452284Sobrien product(bool, RangeCheckElimination, true, \ 282550397Sobrien "Eliminate range checks") \ 282652284Sobrien \ 282750397Sobrien develop_pd(bool, UncommonNullCast, \ 282852284Sobrien "track occurrences of null in casts; adjust compiler tactics") \ 282952284Sobrien \ 283052284Sobrien develop(bool, TypeProfileCasts, true, \ 283152284Sobrien "treat casts like calls for purposes of type profiling") \ 283250397Sobrien \ 283352284Sobrien develop(bool, DelayCompilationDuringStartup, true, \ 283452284Sobrien "Delay invoking the compiler until main application class is " \ 283552284Sobrien "loaded") \ 283652284Sobrien \ 283752284Sobrien develop(bool, CompileTheWorld, false, \ 283852284Sobrien "Compile all methods in all classes in bootstrap class path " \ 283952284Sobrien "(stress test)") \ 284050397Sobrien \ 284152284Sobrien develop(bool, CompileTheWorldPreloadClasses, true, \ 284250397Sobrien "Preload all classes used by a class before start loading") \ 284350397Sobrien \ 284452284Sobrien notproduct(intx, CompileTheWorldSafepointInterval, 100, \ 284552284Sobrien "Force a safepoint every n compiles so sweeper can keep up") \ 284652284Sobrien \ 284752284Sobrien develop(bool, FillDelaySlots, true, \ 284852284Sobrien "Fill delay slots (on SPARC only)") \ 284952284Sobrien \ 285052284Sobrien develop(bool, TimeLivenessAnalysis, false, \ 285152284Sobrien "Time computation of bytecode liveness analysis") \ 285252284Sobrien \ 285352284Sobrien develop(bool, TraceLivenessGen, false, \ 285452284Sobrien "Trace the generation of liveness analysis information") \ 285552284Sobrien \ 285652284Sobrien notproduct(bool, TraceLivenessQuery, false, \ 285752284Sobrien "Trace queries of liveness analysis information") \ 285850397Sobrien \ 285950397Sobrien notproduct(bool, CollectIndexSetStatistics, false, \ 286050397Sobrien "Collect information about IndexSets") \ 286150397Sobrien \ 286250397Sobrien develop(bool, UseLoopSafepoints, true, \ 286350397Sobrien "Generate Safepoint nodes in every loop") \ 286450397Sobrien \ 286550397Sobrien develop(intx, FastAllocateSizeLimit, 128*K, \ 286650397Sobrien /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ 286750397Sobrien "Inline allocations larger than this in doublewords must go slow")\ 286850397Sobrien \ 286950397Sobrien product(bool, AggressiveOpts, false, \ 287050397Sobrien "Enable aggressive optimizations - see arguments.cpp") \ 287150397Sobrien \ 287250397Sobrien product_pd(uintx, TypeProfileLevel, \ 287350397Sobrien "=XYZ, with Z: Type profiling of arguments at call; " \ 287450397Sobrien "Y: Type profiling of return value at call; " \ 287550397Sobrien "X: Type profiling of parameters to methods; " \ 287650397Sobrien "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods") \ 287750397Sobrien constraint(TypeProfileLevelConstraintFunc, AfterErgo) \ 287850397Sobrien \ 287950397Sobrien product(intx, TypeProfileArgsLimit, 2, \ 288050397Sobrien "max number of call arguments to consider for type profiling") \ 288150397Sobrien range(0, 16) \ 288250397Sobrien \ 288350397Sobrien product(intx, TypeProfileParmsLimit, 2, \ 288450397Sobrien "max number of incoming parameters to consider for type profiling"\ 288550397Sobrien ", -1 for all") \ 288650397Sobrien range(-1, 64) \ 288750397Sobrien \ 288850397Sobrien /* statistics */ \ 288950397Sobrien develop(bool, CountCompiledCalls, false, \ 289050397Sobrien "Count method invocations") \ 289150397Sobrien \ 289250397Sobrien notproduct(bool, CountRuntimeCalls, false, \ 289350397Sobrien "Count VM runtime calls") \ 289450397Sobrien \ 289550397Sobrien develop(bool, CountJNICalls, false, \ 289650397Sobrien "Count jni method invocations") \ 289750397Sobrien \ 289850397Sobrien notproduct(bool, CountJVMCalls, false, \ 289950397Sobrien "Count jvm method invocations") \ 290050397Sobrien \ 290150397Sobrien notproduct(bool, CountRemovableExceptions, false, \ 290250397Sobrien "Count exceptions that could be replaced by branches due to " \ 290350397Sobrien "inlining") \ 290450397Sobrien \ 290550397Sobrien notproduct(bool, ICMissHistogram, false, \ 290650397Sobrien "Produce histogram of IC misses") \ 290750397Sobrien \ 290850397Sobrien /* interpreter */ \ 290950397Sobrien develop(bool, ClearInterpreterLocals, false, \ 291050397Sobrien "Always clear local variables of interpreter activations upon " \ 291150397Sobrien "entry") \ 291250397Sobrien \ 291350397Sobrien product_pd(bool, RewriteBytecodes, \ 291450397Sobrien "Allow rewriting of bytecodes (bytecodes are not immutable)") \ 291550397Sobrien \ 291650397Sobrien product_pd(bool, RewriteFrequentPairs, \ 291750397Sobrien "Rewrite frequently used bytecode pairs into a single bytecode") \ 291850397Sobrien \ 291950397Sobrien diagnostic(bool, PrintInterpreter, false, \ 292050397Sobrien "Print the generated interpreter code") \ 292150397Sobrien \ 292250397Sobrien product(bool, UseInterpreter, true, \ 292350397Sobrien "Use interpreter for non-compiled methods") \ 292450397Sobrien \ 292550397Sobrien develop(bool, UseFastSignatureHandlers, true, \ 292650397Sobrien "Use fast signature handlers for native calls") \ 292750397Sobrien \ 292850397Sobrien product(bool, UseLoopCounter, true, \ 292950397Sobrien "Increment invocation counter on backward branch") \ 293050397Sobrien \ 293150397Sobrien product_pd(bool, UseOnStackReplacement, \ 293250397Sobrien "Use on stack replacement, calls runtime if invoc. counter " \ 293350397Sobrien "overflows in loop") \ 293450397Sobrien \ 293550397Sobrien notproduct(bool, TraceOnStackReplacement, false, \ 293650397Sobrien "Trace on stack replacement") \ 293750397Sobrien \ 293850397Sobrien product_pd(bool, PreferInterpreterNativeStubs, \ 293950397Sobrien "Use always interpreter stubs for native methods invoked via " \ 294050397Sobrien "interpreter") \ 294150397Sobrien \ 294250397Sobrien develop(bool, CountBytecodes, false, \ 294350397Sobrien "Count number of bytecodes executed") \ 294450397Sobrien \ 294550397Sobrien develop(bool, PrintBytecodeHistogram, false, \ 294650397Sobrien "Print histogram of the executed bytecodes") \ 294750397Sobrien \ 294850397Sobrien develop(bool, PrintBytecodePairHistogram, false, \ 294950397Sobrien "Print histogram of the executed bytecode pairs") \ 295050397Sobrien \ 295150397Sobrien diagnostic(bool, PrintSignatureHandlers, false, \ 295250397Sobrien "Print code generated for native method signature handlers") \ 295350397Sobrien \ 295450397Sobrien develop(bool, VerifyOops, false, \ 295550397Sobrien "Do plausibility checks for oops") \ 295650397Sobrien \ 295750397Sobrien develop(bool, CheckUnhandledOops, false, \ 295850397Sobrien "Check for unhandled oops in VM code") \ 295950397Sobrien \ 296050397Sobrien develop(bool, VerifyJNIFields, trueInDebug, \ 296150397Sobrien "Verify jfieldIDs for instance fields") \ 296250397Sobrien \ 296350397Sobrien notproduct(bool, VerifyJNIEnvThread, false, \ 296450397Sobrien "Verify JNIEnv.thread == Thread::current() when entering VM " \ 296550397Sobrien "from JNI") \ 296650397Sobrien \ 296750397Sobrien develop(bool, VerifyFPU, false, \ 2968 "Verify FPU state (check for NaN's, etc.)") \ 2969 \ 2970 develop(bool, VerifyThread, false, \ 2971 "Watch the thread register for corruption (SPARC only)") \ 2972 \ 2973 develop(bool, VerifyActivationFrameSize, false, \ 2974 "Verify that activation frame didn't become smaller than its " \ 2975 "minimal size") \ 2976 \ 2977 develop(bool, TraceFrequencyInlining, false, \ 2978 "Trace frequency based inlining") \ 2979 \ 2980 develop_pd(bool, InlineIntrinsics, \ 2981 "Inline intrinsics that can be statically resolved") \ 2982 \ 2983 product_pd(bool, ProfileInterpreter, \ 2984 "Profile at the bytecode level during interpretation") \ 2985 \ 2986 develop(bool, TraceProfileInterpreter, false, \ 2987 "Trace profiling at the bytecode level during interpretation. " \ 2988 "This outputs the profiling information collected to improve " \ 2989 "jit compilation.") \ 2990 \ 2991 develop_pd(bool, ProfileTraps, \ 2992 "Profile deoptimization traps at the bytecode level") \ 2993 \ 2994 product(intx, ProfileMaturityPercentage, 20, \ 2995 "number of method invocations/branches (expressed as % of " \ 2996 "CompileThreshold) before using the method's profile") \ 2997 range(0, 100) \ 2998 \ 2999 diagnostic(bool, PrintMethodData, false, \ 3000 "Print the results of +ProfileInterpreter at end of run") \ 3001 \ 3002 develop(bool, VerifyDataPointer, trueInDebug, \ 3003 "Verify the method data pointer during interpreter profiling") \ 3004 \ 3005 develop(bool, VerifyCompiledCode, false, \ 3006 "Include miscellaneous runtime verifications in nmethod code; " \ 3007 "default off because it disturbs nmethod size heuristics") \ 3008 \ 3009 notproduct(bool, CrashGCForDumpingJavaThread, false, \ 3010 "Manually make GC thread crash then dump java stack trace; " \ 3011 "Test only") \ 3012 \ 3013 /* compilation */ \ 3014 product(bool, UseCompiler, true, \ 3015 "Use Just-In-Time compilation") \ 3016 \ 3017 develop(bool, TraceCompilationPolicy, false, \ 3018 "Trace compilation policy") \ 3019 \ 3020 develop(bool, TimeCompilationPolicy, false, \ 3021 "Time the compilation policy") \ 3022 \ 3023 product(bool, UseCounterDecay, true, \ 3024 "Adjust recompilation counters") \ 3025 \ 3026 develop(intx, CounterHalfLifeTime, 30, \ 3027 "Half-life time of invocation counters (in seconds)") \ 3028 \ 3029 develop(intx, CounterDecayMinIntervalLength, 500, \ 3030 "The minimum interval (in milliseconds) between invocation of " \ 3031 "CounterDecay") \ 3032 \ 3033 product(bool, AlwaysCompileLoopMethods, false, \ 3034 "When using recompilation, never interpret methods " \ 3035 "containing loops") \ 3036 \ 3037 product(bool, DontCompileHugeMethods, true, \ 3038 "Do not compile methods > HugeMethodLimit") \ 3039 \ 3040 /* Bytecode escape analysis estimation. */ \ 3041 product(bool, EstimateArgEscape, true, \ 3042 "Analyze bytecodes to estimate escape state of arguments") \ 3043 \ 3044 product(intx, BCEATraceLevel, 0, \ 3045 "How much tracing to do of bytecode escape analysis estimates " \ 3046 "(0-3)") \ 3047 range(0, 3) \ 3048 \ 3049 product(intx, MaxBCEAEstimateLevel, 5, \ 3050 "Maximum number of nested calls that are analyzed by BC EA") \ 3051 range(0, max_jint) \ 3052 \ 3053 product(intx, MaxBCEAEstimateSize, 150, \ 3054 "Maximum bytecode size of a method to be analyzed by BC EA") \ 3055 range(0, max_jint) \ 3056 \ 3057 product(intx, AllocatePrefetchStyle, 1, \ 3058 "0 = no prefetch, " \ 3059 "1 = prefetch instructions for each allocation, " \ 3060 "2 = use TLAB watermark to gate allocation prefetch, " \ 3061 "3 = use BIS instruction on Sparc for allocation prefetch") \ 3062 range(0, 3) \ 3063 \ 3064 product(intx, AllocatePrefetchDistance, -1, \ 3065 "Distance to prefetch ahead of allocation pointer. " \ 3066 "-1: use system-specific value (automatically determined") \ 3067 constraint(AllocatePrefetchDistanceConstraintFunc, AfterMemoryInit)\ 3068 \ 3069 product(intx, AllocatePrefetchLines, 3, \ 3070 "Number of lines to prefetch ahead of array allocation pointer") \ 3071 range(1, max_jint / 2) \ 3072 \ 3073 product(intx, AllocateInstancePrefetchLines, 1, \ 3074 "Number of lines to prefetch ahead of instance allocation " \ 3075 "pointer") \ 3076 range(1, max_jint / 2) \ 3077 \ 3078 product(intx, AllocatePrefetchStepSize, 16, \ 3079 "Step size in bytes of sequential prefetch instructions") \ 3080 constraint(AllocatePrefetchStepSizeConstraintFunc,AfterMemoryInit)\ 3081 \ 3082 product(intx, AllocatePrefetchInstr, 0, \ 3083 "Prefetch instruction to prefetch ahead of allocation pointer") \ 3084 constraint(AllocatePrefetchInstrConstraintFunc, AfterErgo) \ 3085 \ 3086 /* deoptimization */ \ 3087 develop(bool, TraceDeoptimization, false, \ 3088 "Trace deoptimization") \ 3089 \ 3090 develop(bool, PrintDeoptimizationDetails, false, \ 3091 "Print more information about deoptimization") \ 3092 \ 3093 develop(bool, DebugDeoptimization, false, \ 3094 "Tracing various information while debugging deoptimization") \ 3095 \ 3096 product(intx, SelfDestructTimer, 0, \ 3097 "Will cause VM to terminate after a given time (in minutes) " \ 3098 "(0 means off)") \ 3099 \ 3100 product(intx, MaxJavaStackTraceDepth, 1024, \ 3101 "The maximum number of lines in the stack trace for Java " \ 3102 "exceptions (0 means all)") \ 3103 \ 3104 NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000, \ 3105 "Guarantee a safepoint (at least) every so many milliseconds " \ 3106 "(0 means none)")) \ 3107 \ 3108 EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \ 3109 "Guarantee a safepoint (at least) every so many milliseconds " \ 3110 "(0 means none)")) \ 3111 \ 3112 product(intx, SafepointTimeoutDelay, 10000, \ 3113 "Delay in milliseconds for option SafepointTimeout") \ 3114 \ 3115 product(intx, NmethodSweepActivity, 10, \ 3116 "Removes cold nmethods from code cache if > 0. Higher values " \ 3117 "result in more aggressive sweeping") \ 3118 range(0, 2000) \ 3119 \ 3120 notproduct(bool, LogSweeper, false, \ 3121 "Keep a ring buffer of sweeper activity") \ 3122 \ 3123 notproduct(intx, SweeperLogEntries, 1024, \ 3124 "Number of records in the ring buffer of sweeper activity") \ 3125 \ 3126 notproduct(intx, MemProfilingInterval, 500, \ 3127 "Time between each invocation of the MemProfiler") \ 3128 \ 3129 develop(intx, MallocCatchPtr, -1, \ 3130 "Hit breakpoint when mallocing/freeing this pointer") \ 3131 \ 3132 notproduct(ccstrlist, SuppressErrorAt, "", \ 3133 "List of assertions (file:line) to muzzle") \ 3134 \ 3135 notproduct(size_t, HandleAllocationLimit, 1024, \ 3136 "Threshold for HandleMark allocation when +TraceHandleAllocation "\ 3137 "is used") \ 3138 \ 3139 develop(size_t, TotalHandleAllocationLimit, 1024, \ 3140 "Threshold for total handle allocation when " \ 3141 "+TraceHandleAllocation is used") \ 3142 \ 3143 develop(intx, StackPrintLimit, 100, \ 3144 "number of stack frames to print in VM-level stack dump") \ 3145 \ 3146 notproduct(intx, MaxElementPrintSize, 256, \ 3147 "maximum number of elements to print") \ 3148 \ 3149 notproduct(intx, MaxSubklassPrintSize, 4, \ 3150 "maximum number of subklasses to print when printing klass") \ 3151 \ 3152 product(intx, MaxInlineLevel, 9, \ 3153 "maximum number of nested calls that are inlined") \ 3154 range(0, max_jint) \ 3155 \ 3156 product(intx, MaxRecursiveInlineLevel, 1, \ 3157 "maximum number of nested recursive calls that are inlined") \ 3158 range(0, max_jint) \ 3159 \ 3160 develop(intx, MaxForceInlineLevel, 100, \ 3161 "maximum number of nested calls that are forced for inlining " \ 3162 "(using CompileCommand or marked w/ @ForceInline)") \ 3163 range(0, max_jint) \ 3164 \ 3165 product_pd(intx, InlineSmallCode, \ 3166 "Only inline already compiled methods if their code size is " \ 3167 "less than this") \ 3168 range(0, max_jint) \ 3169 \ 3170 product(intx, MaxInlineSize, 35, \ 3171 "The maximum bytecode size of a method to be inlined") \ 3172 range(0, max_jint) \ 3173 \ 3174 product_pd(intx, FreqInlineSize, \ 3175 "The maximum bytecode size of a frequent method to be inlined") \ 3176 range(0, max_jint) \ 3177 \ 3178 product(intx, MaxTrivialSize, 6, \ 3179 "The maximum bytecode size of a trivial method to be inlined") \ 3180 range(0, max_jint) \ 3181 \ 3182 product(intx, MinInliningThreshold, 250, \ 3183 "The minimum invocation count a method needs to have to be " \ 3184 "inlined") \ 3185 range(0, max_jint) \ 3186 \ 3187 develop(intx, MethodHistogramCutoff, 100, \ 3188 "The cutoff value for method invocation histogram (+CountCalls)") \ 3189 \ 3190 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ 3191 "Number of interpreted methods to show in profile") \ 3192 \ 3193 develop(intx, ProfilerNumberOfCompiledMethods, 25, \ 3194 "Number of compiled methods to show in profile") \ 3195 \ 3196 develop(intx, ProfilerNumberOfStubMethods, 25, \ 3197 "Number of stub methods to show in profile") \ 3198 \ 3199 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ 3200 "Number of runtime stub nodes to show in profile") \ 3201 \ 3202 product(intx, ProfileIntervalsTicks, 100, \ 3203 "Number of ticks between printing of interval profile " \ 3204 "(+ProfileIntervals)") \ 3205 \ 3206 notproduct(intx, ScavengeALotInterval, 1, \ 3207 "Interval between which scavenge will occur with +ScavengeALot") \ 3208 \ 3209 notproduct(intx, FullGCALotInterval, 1, \ 3210 "Interval between which full gc will occur with +FullGCALot") \ 3211 \ 3212 notproduct(intx, FullGCALotStart, 0, \ 3213 "For which invocation to start FullGCAlot") \ 3214 \ 3215 notproduct(intx, FullGCALotDummies, 32*K, \ 3216 "Dummy object allocated with +FullGCALot, forcing all objects " \ 3217 "to move") \ 3218 \ 3219 develop(intx, DontYieldALotInterval, 10, \ 3220 "Interval between which yields will be dropped (milliseconds)") \ 3221 \ 3222 develop(intx, MinSleepInterval, 1, \ 3223 "Minimum sleep() interval (milliseconds) when " \ 3224 "ConvertSleepToYield is off (used for Solaris)") \ 3225 \ 3226 develop(intx, ProfilerPCTickThreshold, 15, \ 3227 "Number of ticks in a PC buckets to be a hotspot") \ 3228 \ 3229 notproduct(intx, DeoptimizeALotInterval, 5, \ 3230 "Number of exits until DeoptimizeALot kicks in") \ 3231 \ 3232 notproduct(intx, ZombieALotInterval, 5, \ 3233 "Number of exits until ZombieALot kicks in") \ 3234 \ 3235 diagnostic(intx, MallocVerifyInterval, 0, \ 3236 "If non-zero, verify C heap after every N calls to " \ 3237 "malloc/realloc/free") \ 3238 \ 3239 diagnostic(intx, MallocVerifyStart, 0, \ 3240 "If non-zero, start verifying C heap after Nth call to " \ 3241 "malloc/realloc/free") \ 3242 \ 3243 diagnostic(uintx, MallocMaxTestWords, 0, \ 3244 "If non-zero, maximum number of words that malloc/realloc can " \ 3245 "allocate (for testing only)") \ 3246 \ 3247 product(intx, TypeProfileWidth, 2, \ 3248 "Number of receiver types to record in call/cast profile") \ 3249 range(0, 4) \ 3250 \ 3251 experimental(intx, MethodProfileWidth, 0, \ 3252 "Number of methods to record in call profile") \ 3253 \ 3254 develop(intx, BciProfileWidth, 2, \ 3255 "Number of return bci's to record in ret profile") \ 3256 \ 3257 product(intx, PerMethodRecompilationCutoff, 400, \ 3258 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ 3259 range(-1, max_intx) \ 3260 \ 3261 product(intx, PerBytecodeRecompilationCutoff, 200, \ 3262 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ 3263 range(-1, max_intx) \ 3264 \ 3265 product(intx, PerMethodTrapLimit, 100, \ 3266 "Limit on traps (of one kind) in a method (includes inlines)") \ 3267 range(0, max_jint) \ 3268 \ 3269 experimental(intx, PerMethodSpecTrapLimit, 5000, \ 3270 "Limit on speculative traps (of one kind) in a method " \ 3271 "(includes inlines)") \ 3272 range(0, max_jint) \ 3273 \ 3274 product(intx, PerBytecodeTrapLimit, 4, \ 3275 "Limit on traps (of one kind) at a particular BCI") \ 3276 range(0, max_jint) \ 3277 \ 3278 experimental(intx, SpecTrapLimitExtraEntries, 3, \ 3279 "Extra method data trap entries for speculation") \ 3280 \ 3281 develop(intx, InlineFrequencyRatio, 20, \ 3282 "Ratio of call site execution to caller method invocation") \ 3283 range(0, max_jint) \ 3284 \ 3285 develop_pd(intx, InlineFrequencyCount, \ 3286 "Count of call site execution necessary to trigger frequent " \ 3287 "inlining") \ 3288 range(0, max_jint) \ 3289 \ 3290 develop(intx, InlineThrowCount, 50, \ 3291 "Force inlining of interpreted methods that throw this often") \ 3292 range(0, max_jint) \ 3293 \ 3294 develop(intx, InlineThrowMaxSize, 200, \ 3295 "Force inlining of throwing methods smaller than this") \ 3296 range(0, max_jint) \ 3297 \ 3298 develop(intx, ProfilerNodeSize, 1024, \ 3299 "Size in K to allocate for the Profile Nodes of each thread") \ 3300 range(0, 1024) \ 3301 \ 3302 /* gc parameters */ \ 3303 product(size_t, InitialHeapSize, 0, \ 3304 "Initial heap size (in bytes); zero means use ergonomics") \ 3305 \ 3306 product(size_t, MaxHeapSize, ScaleForWordSize(96*M), \ 3307 "Maximum heap size (in bytes)") \ 3308 \ 3309 product(size_t, OldSize, ScaleForWordSize(4*M), \ 3310 "Initial tenured generation size (in bytes)") \ 3311 \ 3312 product(size_t, NewSize, ScaleForWordSize(1*M), \ 3313 "Initial new generation size (in bytes)") \ 3314 \ 3315 product(size_t, MaxNewSize, max_uintx, \ 3316 "Maximum new generation size (in bytes), max_uintx means set " \ 3317 "ergonomically") \ 3318 \ 3319 product(size_t, PretenureSizeThreshold, 0, \ 3320 "Maximum size in bytes of objects allocated in DefNew " \ 3321 "generation; zero means no maximum") \ 3322 \ 3323 product(size_t, TLABSize, 0, \ 3324 "Starting TLAB size (in bytes); zero means set ergonomically") \ 3325 \ 3326 product(size_t, MinTLABSize, 2*K, \ 3327 "Minimum allowed TLAB size (in bytes)") \ 3328 range(1, max_uintx) \ 3329 \ 3330 product(uintx, TLABAllocationWeight, 35, \ 3331 "Allocation averaging weight") \ 3332 range(0, 100) \ 3333 \ 3334 /* Limit the lower bound of this flag to 1 as it is used */ \ 3335 /* in a division expression. */ \ 3336 product(uintx, TLABWasteTargetPercent, 1, \ 3337 "Percentage of Eden that can be wasted") \ 3338 range(1, 100) \ 3339 \ 3340 product(uintx, TLABRefillWasteFraction, 64, \ 3341 "Maximum TLAB waste at a refill (internal fragmentation)") \ 3342 range(1, max_uintx) \ 3343 \ 3344 product(uintx, TLABWasteIncrement, 4, \ 3345 "Increment allowed waste at slow allocation") \ 3346 \ 3347 product(uintx, SurvivorRatio, 8, \ 3348 "Ratio of eden/survivor space size") \ 3349 \ 3350 product(uintx, NewRatio, 2, \ 3351 "Ratio of old/new generation sizes") \ 3352 \ 3353 product_pd(size_t, NewSizeThreadIncrease, \ 3354 "Additional size added to desired new generation size per " \ 3355 "non-daemon thread (in bytes)") \ 3356 \ 3357 product_pd(size_t, MetaspaceSize, \ 3358 "Initial size of Metaspaces (in bytes)") \ 3359 \ 3360 product(size_t, MaxMetaspaceSize, max_uintx, \ 3361 "Maximum size of Metaspaces (in bytes)") \ 3362 \ 3363 product(size_t, CompressedClassSpaceSize, 1*G, \ 3364 "Maximum size of class area in Metaspace when compressed " \ 3365 "class pointers are used") \ 3366 range(1*M, 3*G) \ 3367 \ 3368 manageable(uintx, MinHeapFreeRatio, 40, \ 3369 "The minimum percentage of heap free after GC to avoid expansion."\ 3370 " For most GCs this applies to the old generation. In G1 and" \ 3371 " ParallelGC it applies to the whole heap.") \ 3372 range(0, 100) \ 3373 constraint(MinHeapFreeRatioConstraintFunc,AfterErgo) \ 3374 \ 3375 manageable(uintx, MaxHeapFreeRatio, 70, \ 3376 "The maximum percentage of heap free after GC to avoid shrinking."\ 3377 " For most GCs this applies to the old generation. In G1 and" \ 3378 " ParallelGC it applies to the whole heap.") \ 3379 range(0, 100) \ 3380 constraint(MaxHeapFreeRatioConstraintFunc,AfterErgo) \ 3381 \ 3382 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ 3383 "Number of milliseconds per MB of free space in the heap") \ 3384 \ 3385 product(size_t, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ 3386 "The minimum change in heap space due to GC (in bytes)") \ 3387 \ 3388 product(size_t, MinMetaspaceExpansion, ScaleForWordSize(256*K), \ 3389 "The minimum expansion of Metaspace (in bytes)") \ 3390 \ 3391 product(uintx, MaxMetaspaceFreeRatio, 70, \ 3392 "The maximum percentage of Metaspace free after GC to avoid " \ 3393 "shrinking") \ 3394 range(0, 100) \ 3395 constraint(MaxMetaspaceFreeRatioConstraintFunc,AfterErgo) \ 3396 \ 3397 product(uintx, MinMetaspaceFreeRatio, 40, \ 3398 "The minimum percentage of Metaspace free after GC to avoid " \ 3399 "expansion") \ 3400 range(0, 99) \ 3401 constraint(MinMetaspaceFreeRatioConstraintFunc,AfterErgo) \ 3402 \ 3403 product(size_t, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \ 3404 "The maximum expansion of Metaspace without full GC (in bytes)") \ 3405 \ 3406 product(uintx, QueuedAllocationWarningCount, 0, \ 3407 "Number of times an allocation that queues behind a GC " \ 3408 "will retry before printing a warning") \ 3409 \ 3410 diagnostic(uintx, VerifyGCStartAt, 0, \ 3411 "GC invoke count where +VerifyBefore/AfterGC kicks in") \ 3412 \ 3413 diagnostic(intx, VerifyGCLevel, 0, \ 3414 "Generation level at which to start +VerifyBefore/AfterGC") \ 3415 \ 3416 product(uintx, MaxTenuringThreshold, 15, \ 3417 "Maximum value for tenuring threshold") \ 3418 range(0, markOopDesc::max_age + 1) \ 3419 constraint(MaxTenuringThresholdConstraintFunc,AfterErgo) \ 3420 \ 3421 product(uintx, InitialTenuringThreshold, 7, \ 3422 "Initial value for tenuring threshold") \ 3423 range(0, markOopDesc::max_age + 1) \ 3424 constraint(InitialTenuringThresholdConstraintFunc,AfterErgo) \ 3425 \ 3426 product(uintx, TargetSurvivorRatio, 50, \ 3427 "Desired percentage of survivor space used after scavenge") \ 3428 range(0, 100) \ 3429 \ 3430 product(uintx, MarkSweepDeadRatio, 5, \ 3431 "Percentage (0-100) of the old gen allowed as dead wood. " \ 3432 "Serial mark sweep treats this as both the minimum and maximum " \ 3433 "value. " \ 3434 "CMS uses this value only if it falls back to mark sweep. " \ 3435 "Par compact uses a variable scale based on the density of the " \ 3436 "generation and treats this as the maximum value when the heap " \ 3437 "is either completely full or completely empty. Par compact " \ 3438 "also has a smaller default value; see arguments.cpp.") \ 3439 range(0, 100) \ 3440 \ 3441 product(uintx, MarkSweepAlwaysCompactCount, 4, \ 3442 "How often should we fully compact the heap (ignoring the dead " \ 3443 "space parameters)") \ 3444 range(1, max_uintx) \ 3445 \ 3446 product(intx, PrintCMSStatistics, 0, \ 3447 "Statistics for CMS") \ 3448 \ 3449 product(bool, PrintCMSInitiationStatistics, false, \ 3450 "Statistics for initiating a CMS collection") \ 3451 \ 3452 product(intx, PrintFLSStatistics, 0, \ 3453 "Statistics for CMS' FreeListSpace") \ 3454 \ 3455 product(intx, PrintFLSCensus, 0, \ 3456 "Census for CMS' FreeListSpace") \ 3457 \ 3458 develop(uintx, GCExpandToAllocateDelayMillis, 0, \ 3459 "Delay between expansion and allocation (in milliseconds)") \ 3460 \ 3461 develop(uintx, GCWorkerDelayMillis, 0, \ 3462 "Delay in scheduling GC workers (in milliseconds)") \ 3463 \ 3464 product(intx, DeferThrSuspendLoopCount, 4000, \ 3465 "(Unstable) Number of times to iterate in safepoint loop " \ 3466 "before blocking VM threads ") \ 3467 \ 3468 product(intx, DeferPollingPageLoopCount, -1, \ 3469 "(Unsafe,Unstable) Number of iterations in safepoint loop " \ 3470 "before changing safepoint polling page to RO ") \ 3471 \ 3472 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ 3473 \ 3474 product(bool, PSChunkLargeArrays, true, \ 3475 "Process large arrays in chunks") \ 3476 \ 3477 product(uintx, GCDrainStackTargetSize, 64, \ 3478 "Number of entries we will try to leave on the stack " \ 3479 "during parallel gc") \ 3480 \ 3481 /* stack parameters */ \ 3482 product_pd(intx, StackYellowPages, \ 3483 "Number of yellow zone (recoverable overflows) pages") \ 3484 range(1, max_intx) \ 3485 \ 3486 product_pd(intx, StackRedPages, \ 3487 "Number of red zone (unrecoverable overflows) pages") \ 3488 range(1, max_intx) \ 3489 \ 3490 /* greater stack shadow pages can't generate instruction to bang stack */ \ 3491 product_pd(intx, StackShadowPages, \ 3492 "Number of shadow zone (for overflow checking) pages " \ 3493 "this should exceed the depth of the VM and native call stack") \ 3494 range(1, 50) \ 3495 \ 3496 product_pd(intx, ThreadStackSize, \ 3497 "Thread Stack Size (in Kbytes)") \ 3498 \ 3499 product_pd(intx, VMThreadStackSize, \ 3500 "Non-Java Thread Stack Size (in Kbytes)") \ 3501 \ 3502 product_pd(intx, CompilerThreadStackSize, \ 3503 "Compiler Thread Stack Size (in Kbytes)") \ 3504 range(0, max_intx) \ 3505 \ 3506 develop_pd(size_t, JVMInvokeMethodSlack, \ 3507 "Stack space (bytes) required for JVM_InvokeMethod to complete") \ 3508 \ 3509 /* code cache parameters */ \ 3510 /* ppc64/tiered compilation has large code-entry alignment. */ \ 3511 develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64) NOT_PPC64(TIERED_ONLY(+64)),\ 3512 "Code cache segment size (in bytes) - smallest unit of " \ 3513 "allocation") \ 3514 range(1, 1024) \ 3515 constraint(CodeCacheSegmentSizeConstraintFunc, AfterErgo) \ 3516 \ 3517 develop_pd(intx, CodeEntryAlignment, \ 3518 "Code entry alignment for generated code (in bytes)") \ 3519 constraint(CodeEntryAlignmentConstraintFunc, AfterErgo) \ 3520 \ 3521 product_pd(intx, OptoLoopAlignment, \ 3522 "Align inner loops to zero relative to this modulus") \ 3523 constraint(OptoLoopAlignmentConstraintFunc, AfterErgo) \ 3524 \ 3525 product_pd(uintx, InitialCodeCacheSize, \ 3526 "Initial code cache size (in bytes)") \ 3527 range(0, max_uintx) \ 3528 \ 3529 develop_pd(uintx, CodeCacheMinimumUseSpace, \ 3530 "Minimum code cache size (in bytes) required to start VM.") \ 3531 range(0, max_uintx) \ 3532 \ 3533 product(bool, SegmentedCodeCache, false, \ 3534 "Use a segmented code cache") \ 3535 \ 3536 product_pd(uintx, ReservedCodeCacheSize, \ 3537 "Reserved code cache size (in bytes) - maximum code cache size") \ 3538 range(0, max_uintx) \ 3539 \ 3540 product_pd(uintx, NonProfiledCodeHeapSize, \ 3541 "Size of code heap with non-profiled methods (in bytes)") \ 3542 range(0, max_uintx) \ 3543 \ 3544 product_pd(uintx, ProfiledCodeHeapSize, \ 3545 "Size of code heap with profiled methods (in bytes)") \ 3546 range(0, max_uintx) \ 3547 \ 3548 product_pd(uintx, NonNMethodCodeHeapSize, \ 3549 "Size of code heap with non-nmethods (in bytes)") \ 3550 range(0, max_uintx) \ 3551 \ 3552 product_pd(uintx, CodeCacheExpansionSize, \ 3553 "Code cache expansion size (in bytes)") \ 3554 range(0, max_uintx) \ 3555 \ 3556 develop_pd(uintx, CodeCacheMinBlockLength, \ 3557 "Minimum number of segments in a code cache block") \ 3558 range(1, 100) \ 3559 \ 3560 notproduct(bool, ExitOnFullCodeCache, false, \ 3561 "Exit the VM if we fill the code cache") \ 3562 \ 3563 product(bool, UseCodeCacheFlushing, true, \ 3564 "Remove cold/old nmethods from the code cache") \ 3565 \ 3566 product(uintx, StartAggressiveSweepingAt, 10, \ 3567 "Start aggressive sweeping if X[%] of the code cache is free." \ 3568 "Segmented code cache: X[%] of the non-profiled heap." \ 3569 "Non-segmented code cache: X[%] of the total code cache") \ 3570 range(0, 100) \ 3571 \ 3572 /* interpreter debugging */ \ 3573 develop(intx, BinarySwitchThreshold, 5, \ 3574 "Minimal number of lookupswitch entries for rewriting to binary " \ 3575 "switch") \ 3576 \ 3577 develop(intx, StopInterpreterAt, 0, \ 3578 "Stop interpreter execution at specified bytecode number") \ 3579 \ 3580 develop(intx, TraceBytecodesAt, 0, \ 3581 "Trace bytecodes starting with specified bytecode number") \ 3582 \ 3583 /* compiler interface */ \ 3584 develop(intx, CIStart, 0, \ 3585 "The id of the first compilation to permit") \ 3586 \ 3587 develop(intx, CIStop, max_jint, \ 3588 "The id of the last compilation to permit") \ 3589 \ 3590 develop(intx, CIStartOSR, 0, \ 3591 "The id of the first osr compilation to permit " \ 3592 "(CICountOSR must be on)") \ 3593 \ 3594 develop(intx, CIStopOSR, max_jint, \ 3595 "The id of the last osr compilation to permit " \ 3596 "(CICountOSR must be on)") \ 3597 \ 3598 develop(intx, CIBreakAtOSR, -1, \ 3599 "The id of osr compilation to break at") \ 3600 \ 3601 develop(intx, CIBreakAt, -1, \ 3602 "The id of compilation to break at") \ 3603 \ 3604 product(ccstrlist, CompileOnly, "", \ 3605 "List of methods (pkg/class.name) to restrict compilation to") \ 3606 \ 3607 product(ccstr, CompileCommandFile, NULL, \ 3608 "Read compiler commands from this file [.hotspot_compiler]") \ 3609 \ 3610 product(ccstrlist, CompileCommand, "", \ 3611 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \ 3612 \ 3613 develop(bool, ReplayCompiles, false, \ 3614 "Enable replay of compilations from ReplayDataFile") \ 3615 \ 3616 product(ccstr, ReplayDataFile, NULL, \ 3617 "File containing compilation replay information" \ 3618 "[default: ./replay_pid%p.log] (%p replaced with pid)") \ 3619 \ 3620 product(ccstr, InlineDataFile, NULL, \ 3621 "File containing inlining replay information" \ 3622 "[default: ./inline_pid%p.log] (%p replaced with pid)") \ 3623 \ 3624 develop(intx, ReplaySuppressInitializers, 2, \ 3625 "Control handling of class initialization during replay: " \ 3626 "0 - don't do anything special; " \ 3627 "1 - treat all class initializers as empty; " \ 3628 "2 - treat class initializers for application classes as empty; " \ 3629 "3 - allow all class initializers to run during bootstrap but " \ 3630 " pretend they are empty after starting replay") \ 3631 range(0, 3) \ 3632 \ 3633 develop(bool, ReplayIgnoreInitErrors, false, \ 3634 "Ignore exceptions thrown during initialization for replay") \ 3635 \ 3636 product(bool, DumpReplayDataOnError, true, \ 3637 "Record replay data for crashing compiler threads") \ 3638 \ 3639 product(bool, CICompilerCountPerCPU, false, \ 3640 "1 compiler thread for log(N CPUs)") \ 3641 \ 3642 develop(intx, CIFireOOMAt, -1, \ 3643 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ 3644 "(non-negative value throws OOM after this many CI accesses " \ 3645 "in each compile)") \ 3646 notproduct(intx, CICrashAt, -1, \ 3647 "id of compilation to trigger assert in compiler thread for " \ 3648 "the purpose of testing, e.g. generation of replay data") \ 3649 notproduct(bool, CIObjectFactoryVerify, false, \ 3650 "enable potentially expensive verification in ciObjectFactory") \ 3651 \ 3652 /* Priorities */ \ 3653 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ 3654 \ 3655 product(intx, ThreadPriorityPolicy, 0, \ 3656 "0 : Normal. "\ 3657 " VM chooses priorities that are appropriate for normal "\ 3658 " applications. On Solaris NORM_PRIORITY and above are mapped "\ 3659 " to normal native priority. Java priorities below " \ 3660 " NORM_PRIORITY map to lower native priority values. On "\ 3661 " Windows applications are allowed to use higher native "\ 3662 " priorities. However, with ThreadPriorityPolicy=0, VM will "\ 3663 " not use the highest possible native priority, "\ 3664 " THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with "\ 3665 " system threads. On Linux thread priorities are ignored "\ 3666 " because the OS does not support static priority in "\ 3667 " SCHED_OTHER scheduling class which is the only choice for "\ 3668 " non-root, non-realtime applications. "\ 3669 "1 : Aggressive. "\ 3670 " Java thread priorities map over to the entire range of "\ 3671 " native thread priorities. Higher Java thread priorities map "\ 3672 " to higher native thread priorities. This policy should be "\ 3673 " used with care, as sometimes it can cause performance "\ 3674 " degradation in the application and/or the entire system. On "\ 3675 " Linux this policy requires root privilege.") \ 3676 range(0, 1) \ 3677 \ 3678 product(bool, ThreadPriorityVerbose, false, \ 3679 "Print priority changes") \ 3680 \ 3681 product(intx, CompilerThreadPriority, -1, \ 3682 "The native priority at which compiler threads should run " \ 3683 "(-1 means no change)") \ 3684 constraint(CompilerThreadPriorityConstraintFunc, AfterErgo) \ 3685 \ 3686 product(intx, VMThreadPriority, -1, \ 3687 "The native priority at which the VM thread should run " \ 3688 "(-1 means no change)") \ 3689 \ 3690 product(bool, CompilerThreadHintNoPreempt, true, \ 3691 "(Solaris only) Give compiler threads an extra quanta") \ 3692 \ 3693 product(bool, VMThreadHintNoPreempt, false, \ 3694 "(Solaris only) Give VM thread an extra quanta") \ 3695 \ 3696 product(intx, JavaPriority1_To_OSPriority, -1, \ 3697 "Map Java priorities to OS priorities") \ 3698 \ 3699 product(intx, JavaPriority2_To_OSPriority, -1, \ 3700 "Map Java priorities to OS priorities") \ 3701 \ 3702 product(intx, JavaPriority3_To_OSPriority, -1, \ 3703 "Map Java priorities to OS priorities") \ 3704 \ 3705 product(intx, JavaPriority4_To_OSPriority, -1, \ 3706 "Map Java priorities to OS priorities") \ 3707 \ 3708 product(intx, JavaPriority5_To_OSPriority, -1, \ 3709 "Map Java priorities to OS priorities") \ 3710 \ 3711 product(intx, JavaPriority6_To_OSPriority, -1, \ 3712 "Map Java priorities to OS priorities") \ 3713 \ 3714 product(intx, JavaPriority7_To_OSPriority, -1, \ 3715 "Map Java priorities to OS priorities") \ 3716 \ 3717 product(intx, JavaPriority8_To_OSPriority, -1, \ 3718 "Map Java priorities to OS priorities") \ 3719 \ 3720 product(intx, JavaPriority9_To_OSPriority, -1, \ 3721 "Map Java priorities to OS priorities") \ 3722 \ 3723 product(intx, JavaPriority10_To_OSPriority,-1, \ 3724 "Map Java priorities to OS priorities") \ 3725 \ 3726 experimental(bool, UseCriticalJavaThreadPriority, false, \ 3727 "Java thread priority 10 maps to critical scheduling priority") \ 3728 \ 3729 experimental(bool, UseCriticalCompilerThreadPriority, false, \ 3730 "Compiler thread(s) run at critical scheduling priority") \ 3731 \ 3732 experimental(bool, UseCriticalCMSThreadPriority, false, \ 3733 "ConcurrentMarkSweep thread runs at critical scheduling priority")\ 3734 \ 3735 /* compiler debugging */ \ 3736 notproduct(intx, CompileTheWorldStartAt, 1, \ 3737 "First class to consider when using +CompileTheWorld") \ 3738 \ 3739 notproduct(intx, CompileTheWorldStopAt, max_jint, \ 3740 "Last class to consider when using +CompileTheWorld") \ 3741 \ 3742 develop(intx, NewCodeParameter, 0, \ 3743 "Testing Only: Create a dedicated integer parameter before " \ 3744 "putback") \ 3745 \ 3746 /* new oopmap storage allocation */ \ 3747 develop(intx, MinOopMapAllocation, 8, \ 3748 "Minimum number of OopMap entries in an OopMapSet") \ 3749 \ 3750 /* Background Compilation */ \ 3751 develop(intx, LongCompileThreshold, 50, \ 3752 "Used with +TraceLongCompiles") \ 3753 \ 3754 /* recompilation */ \ 3755 product_pd(intx, CompileThreshold, \ 3756 "number of interpreted method invocations before (re-)compiling") \ 3757 constraint(CompileThresholdConstraintFunc, AfterErgo) \ 3758 \ 3759 product(double, CompileThresholdScaling, 1.0, \ 3760 "Factor to control when first compilation happens " \ 3761 "(both with and without tiered compilation): " \ 3762 "values greater than 1.0 delay counter overflow, " \ 3763 "values between 0 and 1.0 rush counter overflow, " \ 3764 "value of 1.0 leaves compilation thresholds unchanged " \ 3765 "value of 0.0 is equivalent to -Xint. " \ 3766 "" \ 3767 "Flag can be set as per-method option. " \ 3768 "If a value is specified for a method, compilation thresholds " \ 3769 "for that method are scaled by both the value of the global flag "\ 3770 "and the value of the per-method flag.") \ 3771 range(0.0, DBL_MAX) \ 3772 \ 3773 product(intx, Tier0InvokeNotifyFreqLog, 7, \ 3774 "Interpreter (tier 0) invocation notification frequency") \ 3775 range(0, 30) \ 3776 \ 3777 product(intx, Tier2InvokeNotifyFreqLog, 11, \ 3778 "C1 without MDO (tier 2) invocation notification frequency") \ 3779 range(0, 30) \ 3780 \ 3781 product(intx, Tier3InvokeNotifyFreqLog, 10, \ 3782 "C1 with MDO profiling (tier 3) invocation notification " \ 3783 "frequency") \ 3784 range(0, 30) \ 3785 \ 3786 product(intx, Tier23InlineeNotifyFreqLog, 20, \ 3787 "Inlinee invocation (tiers 2 and 3) notification frequency") \ 3788 range(0, 30) \ 3789 \ 3790 product(intx, Tier0BackedgeNotifyFreqLog, 10, \ 3791 "Interpreter (tier 0) invocation notification frequency") \ 3792 range(0, 30) \ 3793 \ 3794 product(intx, Tier2BackedgeNotifyFreqLog, 14, \ 3795 "C1 without MDO (tier 2) invocation notification frequency") \ 3796 range(0, 30) \ 3797 \ 3798 product(intx, Tier3BackedgeNotifyFreqLog, 13, \ 3799 "C1 with MDO profiling (tier 3) invocation notification " \ 3800 "frequency") \ 3801 range(0, 30) \ 3802 \ 3803 product(intx, Tier2CompileThreshold, 0, \ 3804 "threshold at which tier 2 compilation is invoked") \ 3805 range(0, max_jint) \ 3806 \ 3807 product(intx, Tier2BackEdgeThreshold, 0, \ 3808 "Back edge threshold at which tier 2 compilation is invoked") \ 3809 range(0, max_jint) \ 3810 \ 3811 product(intx, Tier3InvocationThreshold, 200, \ 3812 "Compile if number of method invocations crosses this " \ 3813 "threshold") \ 3814 range(0, max_jint) \ 3815 \ 3816 product(intx, Tier3MinInvocationThreshold, 100, \ 3817 "Minimum invocation to compile at tier 3") \ 3818 range(0, max_jint) \ 3819 \ 3820 product(intx, Tier3CompileThreshold, 2000, \ 3821 "Threshold at which tier 3 compilation is invoked (invocation " \ 3822 "minimum must be satisfied)") \ 3823 range(0, max_jint) \ 3824 \ 3825 product(intx, Tier3BackEdgeThreshold, 60000, \ 3826 "Back edge threshold at which tier 3 OSR compilation is invoked") \ 3827 range(0, max_jint) \ 3828 \ 3829 product(intx, Tier4InvocationThreshold, 5000, \ 3830 "Compile if number of method invocations crosses this " \ 3831 "threshold") \ 3832 range(0, max_jint) \ 3833 \ 3834 product(intx, Tier4MinInvocationThreshold, 600, \ 3835 "Minimum invocation to compile at tier 4") \ 3836 range(0, max_jint) \ 3837 \ 3838 product(intx, Tier4CompileThreshold, 15000, \ 3839 "Threshold at which tier 4 compilation is invoked (invocation " \ 3840 "minimum must be satisfied") \ 3841 range(0, max_jint) \ 3842 \ 3843 product(intx, Tier4BackEdgeThreshold, 40000, \ 3844 "Back edge threshold at which tier 4 OSR compilation is invoked") \ 3845 range(0, max_jint) \ 3846 \ 3847 product(intx, Tier3DelayOn, 5, \ 3848 "If C2 queue size grows over this amount per compiler thread " \ 3849 "stop compiling at tier 3 and start compiling at tier 2") \ 3850 range(0, max_jint) \ 3851 \ 3852 product(intx, Tier3DelayOff, 2, \ 3853 "If C2 queue size is less than this amount per compiler thread " \ 3854 "allow methods compiled at tier 2 transition to tier 3") \ 3855 range(0, max_jint) \ 3856 \ 3857 product(intx, Tier3LoadFeedback, 5, \ 3858 "Tier 3 thresholds will increase twofold when C1 queue size " \ 3859 "reaches this amount per compiler thread") \ 3860 range(0, max_jint) \ 3861 \ 3862 product(intx, Tier4LoadFeedback, 3, \ 3863 "Tier 4 thresholds will increase twofold when C2 queue size " \ 3864 "reaches this amount per compiler thread") \ 3865 range(0, max_jint) \ 3866 \ 3867 product(intx, TieredCompileTaskTimeout, 50, \ 3868 "Kill compile task if method was not used within " \ 3869 "given timeout in milliseconds") \ 3870 range(0, max_intx) \ 3871 \ 3872 product(intx, TieredStopAtLevel, 4, \ 3873 "Stop at given compilation level") \ 3874 range(0, 4) \ 3875 \ 3876 product(intx, Tier0ProfilingStartPercentage, 200, \ 3877 "Start profiling in interpreter if the counters exceed tier 3 " \ 3878 "thresholds by the specified percentage") \ 3879 range(0, max_jint) \ 3880 \ 3881 product(uintx, IncreaseFirstTierCompileThresholdAt, 50, \ 3882 "Increase the compile threshold for C1 compilation if the code " \ 3883 "cache is filled by the specified percentage") \ 3884 range(0, 99) \ 3885 \ 3886 product(intx, TieredRateUpdateMinTime, 1, \ 3887 "Minimum rate sampling interval (in milliseconds)") \ 3888 range(0, max_intx) \ 3889 \ 3890 product(intx, TieredRateUpdateMaxTime, 25, \ 3891 "Maximum rate sampling interval (in milliseconds)") \ 3892 range(0, max_intx) \ 3893 \ 3894 product_pd(bool, TieredCompilation, \ 3895 "Enable tiered compilation") \ 3896 \ 3897 product(bool, PrintTieredEvents, false, \ 3898 "Print tiered events notifications") \ 3899 \ 3900 product_pd(intx, OnStackReplacePercentage, \ 3901 "NON_TIERED number of method invocations/branches (expressed as " \ 3902 "% of CompileThreshold) before (re-)compiling OSR code") \ 3903 constraint(OnStackReplacePercentageConstraintFunc, AfterErgo) \ 3904 \ 3905 product(intx, InterpreterProfilePercentage, 33, \ 3906 "NON_TIERED number of method invocations/branches (expressed as " \ 3907 "% of CompileThreshold) before profiling in the interpreter") \ 3908 range(0, 100) \ 3909 \ 3910 develop(intx, MaxRecompilationSearchLength, 10, \ 3911 "The maximum number of frames to inspect when searching for " \ 3912 "recompilee") \ 3913 \ 3914 develop(intx, MaxInterpretedSearchLength, 3, \ 3915 "The maximum number of interpreted frames to skip when searching "\ 3916 "for recompilee") \ 3917 \ 3918 develop(intx, DesiredMethodLimit, 8000, \ 3919 "The desired maximum method size (in bytecodes) after inlining") \ 3920 \ 3921 develop(intx, HugeMethodLimit, 8000, \ 3922 "Don't compile methods larger than this if " \ 3923 "+DontCompileHugeMethods") \ 3924 \ 3925 /* New JDK 1.4 reflection implementation */ \ 3926 \ 3927 develop(intx, FastSuperclassLimit, 8, \ 3928 "Depth of hardwired instanceof accelerator array") \ 3929 \ 3930 /* Properties for Java libraries */ \ 3931 \ 3932 product(size_t, MaxDirectMemorySize, 0, \ 3933 "Maximum total size of NIO direct-buffer allocations") \ 3934 \ 3935 /* Flags used for temporary code during development */ \ 3936 \ 3937 diagnostic(bool, UseNewCode, false, \ 3938 "Testing Only: Use the new version while testing") \ 3939 \ 3940 diagnostic(bool, UseNewCode2, false, \ 3941 "Testing Only: Use the new version while testing") \ 3942 \ 3943 diagnostic(bool, UseNewCode3, false, \ 3944 "Testing Only: Use the new version while testing") \ 3945 \ 3946 /* flags for performance data collection */ \ 3947 \ 3948 product(bool, UsePerfData, falseInEmbedded, \ 3949 "Flag to disable jvmstat instrumentation for performance testing "\ 3950 "and problem isolation purposes") \ 3951 \ 3952 product(bool, PerfDataSaveToFile, false, \ 3953 "Save PerfData memory to hsperfdata_<pid> file on exit") \ 3954 \ 3955 product(ccstr, PerfDataSaveFile, NULL, \ 3956 "Save PerfData memory to the specified absolute pathname. " \ 3957 "The string %p in the file name (if present) " \ 3958 "will be replaced by pid") \ 3959 \ 3960 product(intx, PerfDataSamplingInterval, 50, \ 3961 "Data sampling interval (in milliseconds)") \ 3962 \ 3963 develop(bool, PerfTraceDataCreation, false, \ 3964 "Trace creation of Performance Data Entries") \ 3965 \ 3966 develop(bool, PerfTraceMemOps, false, \ 3967 "Trace PerfMemory create/attach/detach calls") \ 3968 \ 3969 product(bool, PerfDisableSharedMem, false, \ 3970 "Store performance data in standard memory") \ 3971 \ 3972 product(intx, PerfDataMemorySize, 64*K, \ 3973 "Size of performance data memory region. Will be rounded " \ 3974 "up to a multiple of the native os page size.") \ 3975 \ 3976 product(intx, PerfMaxStringConstLength, 1024, \ 3977 "Maximum PerfStringConstant string length before truncation") \ 3978 \ 3979 product(bool, PerfAllowAtExitRegistration, false, \ 3980 "Allow registration of atexit() methods") \ 3981 \ 3982 product(bool, PerfBypassFileSystemCheck, false, \ 3983 "Bypass Win32 file system criteria checks (Windows Only)") \ 3984 \ 3985 product(intx, UnguardOnExecutionViolation, 0, \ 3986 "Unguard page and retry on no-execute fault (Win32 only) " \ 3987 "0=off, 1=conservative, 2=aggressive") \ 3988 range(0, 2) \ 3989 \ 3990 /* Serviceability Support */ \ 3991 \ 3992 product(bool, ManagementServer, false, \ 3993 "Create JMX Management Server") \ 3994 \ 3995 product(bool, DisableAttachMechanism, false, \ 3996 "Disable mechanism that allows tools to attach to this VM") \ 3997 \ 3998 product(bool, StartAttachListener, false, \ 3999 "Always start Attach Listener at VM startup") \ 4000 \ 4001 manageable(bool, PrintConcurrentLocks, false, \ 4002 "Print java.util.concurrent locks in thread dump") \ 4003 \ 4004 product(bool, TransmitErrorReport, false, \ 4005 "Enable error report transmission on erroneous termination") \ 4006 \ 4007 product(ccstr, ErrorReportServer, NULL, \ 4008 "Override built-in error report server address") \ 4009 \ 4010 /* Shared spaces */ \ 4011 \ 4012 product(bool, UseSharedSpaces, true, \ 4013 "Use shared spaces for metadata") \ 4014 \ 4015 product(bool, VerifySharedSpaces, false, \ 4016 "Verify shared spaces (false for default archive, true for " \ 4017 "archive specified by -XX:SharedArchiveFile)") \ 4018 \ 4019 product(bool, RequireSharedSpaces, false, \ 4020 "Require shared spaces for metadata") \ 4021 \ 4022 product(bool, DumpSharedSpaces, false, \ 4023 "Special mode: JVM reads a class list, loads classes, builds " \ 4024 "shared spaces, and dumps the shared spaces to a file to be " \ 4025 "used in future JVM runs") \ 4026 \ 4027 product(bool, PrintSharedSpaces, false, \ 4028 "Print usage of shared spaces") \ 4029 \ 4030 product(bool, PrintSharedArchiveAndExit, false, \ 4031 "Print shared archive file contents") \ 4032 \ 4033 product(bool, PrintSharedDictionary, false, \ 4034 "If PrintSharedArchiveAndExit is true, also print the shared " \ 4035 "dictionary") \ 4036 \ 4037 product(size_t, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \ 4038 "Size of read-write space for metadata (in bytes)") \ 4039 \ 4040 product(size_t, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \ 4041 "Size of read-only space for metadata (in bytes)") \ 4042 \ 4043 product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \ 4044 "Size of the shared miscellaneous data area (in bytes)") \ 4045 \ 4046 product(uintx, SharedMiscCodeSize, 120*K, \ 4047 "Size of the shared miscellaneous code area (in bytes)") \ 4048 \ 4049 product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \ 4050 NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \ 4051 "Address to allocate shared memory region for class data") \ 4052 \ 4053 product(uintx, SharedSymbolTableBucketSize, 4, \ 4054 "Average number of symbols per bucket in shared table") \ 4055 \ 4056 diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \ 4057 "Do not quit -Xshare:dump even if we encounter unverifiable " \ 4058 "classes. Just exclude them from the shared dictionary.") \ 4059 \ 4060 diagnostic(bool, PrintMethodHandleStubs, false, \ 4061 "Print generated stub code for method handles") \ 4062 \ 4063 develop(bool, TraceMethodHandles, false, \ 4064 "trace internal method handle operations") \ 4065 \ 4066 diagnostic(bool, VerifyMethodHandles, trueInDebug, \ 4067 "perform extra checks when constructing method handles") \ 4068 \ 4069 diagnostic(bool, ShowHiddenFrames, false, \ 4070 "show method handle implementation frames (usually hidden)") \ 4071 \ 4072 experimental(bool, TrustFinalNonStaticFields, false, \ 4073 "trust final non-static declarations for constant folding") \ 4074 \ 4075 diagnostic(bool, FoldStableValues, true, \ 4076 "Optimize loads from stable fields (marked w/ @Stable)") \ 4077 \ 4078 develop(bool, TraceInvokeDynamic, false, \ 4079 "trace internal invoke dynamic operations") \ 4080 \ 4081 diagnostic(bool, PauseAtStartup, false, \ 4082 "Causes the VM to pause at startup time and wait for the pause " \ 4083 "file to be removed (default: ./vm.paused.<pid>)") \ 4084 \ 4085 diagnostic(ccstr, PauseAtStartupFile, NULL, \ 4086 "The file to create and for whose removal to await when pausing " \ 4087 "at startup. (default: ./vm.paused.<pid>)") \ 4088 \ 4089 diagnostic(bool, PauseAtExit, false, \ 4090 "Pause and wait for keypress on exit if a debugger is attached") \ 4091 \ 4092 product(bool, ExtendedDTraceProbes, false, \ 4093 "Enable performance-impacting dtrace probes") \ 4094 \ 4095 product(bool, DTraceMethodProbes, false, \ 4096 "Enable dtrace probes for method-entry and method-exit") \ 4097 \ 4098 product(bool, DTraceAllocProbes, false, \ 4099 "Enable dtrace probes for object allocation") \ 4100 \ 4101 product(bool, DTraceMonitorProbes, false, \ 4102 "Enable dtrace probes for monitor events") \ 4103 \ 4104 product(bool, RelaxAccessControlCheck, false, \ 4105 "Relax the access control checks in the verifier") \ 4106 \ 4107 product(uintx, StringTableSize, defaultStringTableSize, \ 4108 "Number of buckets in the interned String table") \ 4109 range(minimumStringTableSize, 111*defaultStringTableSize) \ 4110 \ 4111 experimental(uintx, SymbolTableSize, defaultSymbolTableSize, \ 4112 "Number of buckets in the JVM internal Symbol table") \ 4113 range(minimumSymbolTableSize, 111*defaultSymbolTableSize) \ 4114 \ 4115 product(bool, UseStringDeduplication, false, \ 4116 "Use string deduplication") \ 4117 \ 4118 product(bool, PrintStringDeduplicationStatistics, false, \ 4119 "Print string deduplication statistics") \ 4120 \ 4121 product(uintx, StringDeduplicationAgeThreshold, 3, \ 4122 "A string must reach this age (or be promoted to an old region) " \ 4123 "to be considered for deduplication") \ 4124 range(1, markOopDesc::max_age) \ 4125 \ 4126 diagnostic(bool, StringDeduplicationResizeALot, false, \ 4127 "Force table resize every time the table is scanned") \ 4128 \ 4129 diagnostic(bool, StringDeduplicationRehashALot, false, \ 4130 "Force table rehash every time the table is scanned") \ 4131 \ 4132 develop(bool, TraceDefaultMethods, false, \ 4133 "Trace the default method processing steps") \ 4134 \ 4135 diagnostic(bool, WhiteBoxAPI, false, \ 4136 "Enable internal testing APIs") \ 4137 \ 4138 product(bool, PrintGCCause, true, \ 4139 "Include GC cause in GC logging") \ 4140 \ 4141 experimental(intx, SurvivorAlignmentInBytes, 0, \ 4142 "Default survivor space alignment in bytes") \ 4143 constraint(SurvivorAlignmentInBytesConstraintFunc,AfterErgo) \ 4144 \ 4145 product(bool , AllowNonVirtualCalls, false, \ 4146 "Obey the ACC_SUPER flag and allow invokenonvirtual calls") \ 4147 \ 4148 product(ccstr, DumpLoadedClassList, NULL, \ 4149 "Dump the names all loaded classes, that could be stored into " \ 4150 "the CDS archive, in the specified file") \ 4151 \ 4152 product(ccstr, SharedClassListFile, NULL, \ 4153 "Override the default CDS class list") \ 4154 \ 4155 diagnostic(ccstr, SharedArchiveFile, NULL, \ 4156 "Override the default location of the CDS archive file") \ 4157 \ 4158 product(ccstr, ExtraSharedClassListFile, NULL, \ 4159 "Extra classlist for building the CDS archive file") \ 4160 \ 4161 experimental(size_t, ArrayAllocatorMallocLimit, \ 4162 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \ 4163 "Allocation less than this value will be allocated " \ 4164 "using malloc. Larger allocations will use mmap.") \ 4165 \ 4166 experimental(bool, AlwaysAtomicAccesses, false, \ 4167 "Accesses to all variables should always be atomic") \ 4168 \ 4169 product(bool, EnableTracing, false, \ 4170 "Enable event-based tracing") \ 4171 \ 4172 product(bool, UseLockedTracing, false, \ 4173 "Use locked-tracing when doing event-based tracing") \ 4174 \ 4175 diagnostic(bool, UseUnalignedAccesses, false, \ 4176 "Use unaligned memory accesses in sun.misc.Unsafe") \ 4177 \ 4178 product_pd(bool, PreserveFramePointer, \ 4179 "Use the FP register for holding the frame pointer " \ 4180 "and not as a general purpose register.") \ 4181 \ 4182 diagnostic(bool, CheckIntrinsics, true, \ 4183 "When a class C is loaded, check that " \ 4184 "(1) all intrinsics defined by the VM for class C are present "\ 4185 "in the loaded class file and are marked with the " \ 4186 "@HotSpotIntrinsicCandidate annotation, that " \ 4187 "(2) there is an intrinsic registered for all loaded methods " \ 4188 "that are annotated with the @HotSpotIntrinsicCandidate " \ 4189 "annotation, and that " \ 4190 "(3) no orphan methods exist for class C (i.e., methods for " \ 4191 "which the VM declares an intrinsic but that are not declared "\ 4192 "in the loaded class C. " \ 4193 "Check (3) is available only in debug builds.") 4194 4195/* 4196 * Macros for factoring of globals 4197 */ 4198 4199// Interface macros 4200#define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 4201#define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; 4202#define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; 4203#define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; 4204#define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; 4205#define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; 4206#ifdef PRODUCT 4207#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value; 4208#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name; 4209#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name; 4210#else 4211#define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; 4212#define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; 4213#define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; 4214#endif // PRODUCT 4215// Special LP64 flags, product only needed for now. 4216#ifdef _LP64 4217#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; 4218#else 4219#define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; 4220#endif // _LP64 4221 4222// Implementation macros 4223#define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; 4224#define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; 4225#define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; 4226#define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; 4227#define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; 4228#define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; 4229#ifdef PRODUCT 4230#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type CONST_##name = value; 4231#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type CONST_##name = pd_##name; 4232#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type CONST_##name = value; 4233#else 4234#define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; 4235#define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; 4236#define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; 4237#endif // PRODUCT 4238#ifdef _LP64 4239#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; 4240#else 4241#define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ 4242#endif // _LP64 4243 4244// Only materialize src code for range checking when required, ignore otherwise 4245#define IGNORE_RANGE(a, b) 4246// Only materialize src code for contraint checking when required, ignore otherwise 4247#define IGNORE_CONSTRAINT(func,type) 4248 4249RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, \ 4250 DECLARE_PD_DEVELOPER_FLAG, \ 4251 DECLARE_PRODUCT_FLAG, \ 4252 DECLARE_PD_PRODUCT_FLAG, \ 4253 DECLARE_DIAGNOSTIC_FLAG, \ 4254 DECLARE_EXPERIMENTAL_FLAG, \ 4255 DECLARE_NOTPRODUCT_FLAG, \ 4256 DECLARE_MANAGEABLE_FLAG, \ 4257 DECLARE_PRODUCT_RW_FLAG, \ 4258 DECLARE_LP64_PRODUCT_FLAG, \ 4259 IGNORE_RANGE, \ 4260 IGNORE_CONSTRAINT) 4261 4262RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, \ 4263 DECLARE_PD_DEVELOPER_FLAG, \ 4264 DECLARE_PRODUCT_FLAG, \ 4265 DECLARE_PD_PRODUCT_FLAG, \ 4266 DECLARE_DIAGNOSTIC_FLAG, \ 4267 DECLARE_NOTPRODUCT_FLAG, \ 4268 IGNORE_RANGE, \ 4269 IGNORE_CONSTRAINT) 4270 4271ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, \ 4272 DECLARE_PRODUCT_FLAG, \ 4273 DECLARE_DIAGNOSTIC_FLAG, \ 4274 DECLARE_EXPERIMENTAL_FLAG, \ 4275 DECLARE_NOTPRODUCT_FLAG, \ 4276 IGNORE_RANGE, \ 4277 IGNORE_CONSTRAINT) 4278 4279// Extensions 4280 4281#include "runtime/globals_ext.hpp" 4282 4283#endif // SHARE_VM_RUNTIME_GLOBALS_HPP 4284