aoqi@0: /* aoqi@0: * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. aoqi@0: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: * aoqi@0: * This code is free software; you can redistribute it and/or modify it aoqi@0: * under the terms of the GNU General Public License version 2 only, as aoqi@0: * published by the Free Software Foundation. aoqi@0: * aoqi@0: * This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: * version 2 for more details (a copy is included in the LICENSE file that aoqi@0: * accompanied this code). aoqi@0: * aoqi@0: * You should have received a copy of the GNU General Public License version aoqi@0: * 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: * aoqi@0: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: * or visit www.oracle.com if you need additional information or have any aoqi@0: * questions. aoqi@0: * aoqi@0: */ aoqi@0: aoqi@1: /* aoqi@1: * This file has been modified by Loongson Technology in 2015. These aoqi@1: * modifications are Copyright (c) 2015 Loongson Technology, and are made aoqi@1: * available on the same license terms set forth above. aoqi@1: */ aoqi@1: aoqi@0: #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP aoqi@0: #define SHARE_VM_RUNTIME_GLOBALS_HPP aoqi@0: aoqi@0: #include "utilities/debug.hpp" aoqi@0: aoqi@0: // use this for flags that are true per default in the tiered build aoqi@0: // but false in non-tiered builds, and vice versa aoqi@0: #ifdef TIERED aoqi@0: #define trueInTiered true aoqi@0: #define falseInTiered false aoqi@0: #else aoqi@0: #define trueInTiered false aoqi@0: #define falseInTiered true aoqi@0: #endif aoqi@0: aoqi@0: #ifdef TARGET_ARCH_x86 aoqi@0: # include "globals_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_sparc aoqi@0: # include "globals_sparc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_zero aoqi@0: # include "globals_zero.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_arm aoqi@0: # include "globals_arm.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_ppc aoqi@0: # include "globals_ppc.hpp" aoqi@0: #endif aoqi@1: #ifdef TARGET_ARCH_mips aoqi@1: # include "globals_mips.hpp" aoqi@1: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_linux aoqi@0: # include "globals_linux.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_solaris aoqi@0: # include "globals_solaris.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_windows aoqi@0: # include "globals_windows.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_aix aoqi@0: # include "globals_aix.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_bsd aoqi@0: # include "globals_bsd.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_linux_x86 aoqi@0: # include "globals_linux_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_linux_sparc aoqi@0: # include "globals_linux_sparc.hpp" aoqi@0: #endif aoqi@1: #ifdef TARGET_OS_ARCH_linux_mips aoqi@1: # include "globals_linux_mips.hpp" aoqi@1: #endif aoqi@0: #ifdef TARGET_OS_ARCH_linux_zero aoqi@0: # include "globals_linux_zero.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_solaris_x86 aoqi@0: # include "globals_solaris_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_solaris_sparc aoqi@0: # include "globals_solaris_sparc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_windows_x86 aoqi@0: # include "globals_windows_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_linux_arm aoqi@0: # include "globals_linux_arm.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_linux_ppc aoqi@0: # include "globals_linux_ppc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_aix_ppc aoqi@0: # include "globals_aix_ppc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_bsd_x86 aoqi@0: # include "globals_bsd_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_ARCH_bsd_zero aoqi@0: # include "globals_bsd_zero.hpp" aoqi@0: #endif aoqi@0: #ifdef COMPILER1 aoqi@0: #ifdef TARGET_ARCH_x86 aoqi@0: # include "c1_globals_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_sparc aoqi@0: # include "c1_globals_sparc.hpp" aoqi@0: #endif aoqi@1: #ifdef TARGET_ARCH_mips aoqi@1: # include "c1_globals_mips.hpp" aoqi@1: #endif aoqi@0: #ifdef TARGET_ARCH_arm aoqi@0: # include "c1_globals_arm.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_ppc aoqi@0: # include "c1_globals_ppc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_linux aoqi@0: # include "c1_globals_linux.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_solaris aoqi@0: # include "c1_globals_solaris.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_windows aoqi@0: # include "c1_globals_windows.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_aix aoqi@0: # include "c1_globals_aix.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_bsd aoqi@0: # include "c1_globals_bsd.hpp" aoqi@0: #endif aoqi@0: #endif aoqi@0: #ifdef COMPILER2 aoqi@0: #ifdef TARGET_ARCH_x86 aoqi@0: # include "c2_globals_x86.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_sparc aoqi@0: # include "c2_globals_sparc.hpp" aoqi@0: #endif aoqi@1: #ifdef TARGET_ARCH_mips aoqi@1: # include "c2_globals_mips.hpp" aoqi@1: #endif aoqi@0: #ifdef TARGET_ARCH_arm aoqi@0: # include "c2_globals_arm.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_ARCH_ppc aoqi@0: # include "c2_globals_ppc.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_linux aoqi@0: # include "c2_globals_linux.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_solaris aoqi@0: # include "c2_globals_solaris.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_windows aoqi@0: # include "c2_globals_windows.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_aix aoqi@0: # include "c2_globals_aix.hpp" aoqi@0: #endif aoqi@0: #ifdef TARGET_OS_FAMILY_bsd aoqi@0: # include "c2_globals_bsd.hpp" aoqi@0: #endif aoqi@0: #endif aoqi@0: #ifdef SHARK aoqi@0: #ifdef TARGET_ARCH_zero aoqi@0: # include "shark_globals_zero.hpp" aoqi@0: #endif aoqi@0: #endif aoqi@0: aoqi@0: #if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK) aoqi@0: define_pd_global(bool, BackgroundCompilation, false); aoqi@0: define_pd_global(bool, UseTLAB, false); aoqi@0: define_pd_global(bool, CICompileOSR, false); aoqi@0: define_pd_global(bool, UseTypeProfile, false); aoqi@0: define_pd_global(bool, UseOnStackReplacement, false); aoqi@0: define_pd_global(bool, InlineIntrinsics, false); aoqi@0: define_pd_global(bool, PreferInterpreterNativeStubs, true); aoqi@0: define_pd_global(bool, ProfileInterpreter, false); aoqi@0: define_pd_global(bool, ProfileTraps, false); aoqi@0: define_pd_global(bool, TieredCompilation, false); aoqi@0: aoqi@0: define_pd_global(intx, CompileThreshold, 0); aoqi@0: define_pd_global(intx, BackEdgeThreshold, 0); aoqi@0: aoqi@0: define_pd_global(intx, OnStackReplacePercentage, 0); aoqi@0: define_pd_global(bool, ResizeTLAB, false); aoqi@0: define_pd_global(intx, FreqInlineSize, 0); aoqi@0: define_pd_global(intx, NewSizeThreadIncrease, 4*K); aoqi@0: define_pd_global(intx, InlineClassNatives, true); aoqi@0: define_pd_global(intx, InlineUnsafeOps, true); aoqi@0: define_pd_global(intx, InitialCodeCacheSize, 160*K); aoqi@0: define_pd_global(intx, ReservedCodeCacheSize, 32*M); aoqi@0: define_pd_global(intx, CodeCacheExpansionSize, 32*K); aoqi@0: define_pd_global(intx, CodeCacheMinBlockLength, 1); aoqi@0: define_pd_global(intx, CodeCacheMinimumUseSpace, 200*K); aoqi@0: define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(4*M)); aoqi@0: define_pd_global(bool, NeverActAsServerClassMachine, true); aoqi@0: define_pd_global(uint64_t,MaxRAM, 1ULL*G); aoqi@0: #define CI_COMPILER_COUNT 0 aoqi@0: #else aoqi@0: aoqi@0: #ifdef COMPILER2 aoqi@0: #define CI_COMPILER_COUNT 2 aoqi@0: #else aoqi@0: #define CI_COMPILER_COUNT 1 aoqi@0: #endif // COMPILER2 aoqi@0: aoqi@0: #endif // no compilers aoqi@0: aoqi@0: // string type aliases used only in this file aoqi@0: typedef const char* ccstr; aoqi@0: typedef const char* ccstrlist; // represents string arguments which accumulate aoqi@0: aoqi@0: struct Flag { aoqi@0: enum Flags { aoqi@0: // value origin aoqi@0: DEFAULT = 0, aoqi@0: COMMAND_LINE = 1, aoqi@0: ENVIRON_VAR = 2, aoqi@0: CONFIG_FILE = 3, aoqi@0: MANAGEMENT = 4, aoqi@0: ERGONOMIC = 5, aoqi@0: ATTACH_ON_DEMAND = 6, aoqi@0: INTERNAL = 7, aoqi@0: aoqi@0: LAST_VALUE_ORIGIN = INTERNAL, aoqi@0: VALUE_ORIGIN_BITS = 4, aoqi@0: VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS), aoqi@0: aoqi@0: // flag kind aoqi@0: KIND_PRODUCT = 1 << 4, aoqi@0: KIND_MANAGEABLE = 1 << 5, aoqi@0: KIND_DIAGNOSTIC = 1 << 6, aoqi@0: KIND_EXPERIMENTAL = 1 << 7, aoqi@0: KIND_NOT_PRODUCT = 1 << 8, aoqi@0: KIND_DEVELOP = 1 << 9, aoqi@0: KIND_PLATFORM_DEPENDENT = 1 << 10, aoqi@0: KIND_READ_WRITE = 1 << 11, aoqi@0: KIND_C1 = 1 << 12, aoqi@0: KIND_C2 = 1 << 13, aoqi@0: KIND_ARCH = 1 << 14, aoqi@0: KIND_SHARK = 1 << 15, aoqi@0: KIND_LP64_PRODUCT = 1 << 16, aoqi@0: KIND_COMMERCIAL = 1 << 17, aoqi@0: aoqi@0: KIND_MASK = ~VALUE_ORIGIN_MASK aoqi@0: }; aoqi@0: aoqi@0: const char* _type; aoqi@0: const char* _name; aoqi@0: void* _addr; aoqi@0: NOT_PRODUCT(const char* _doc;) aoqi@0: Flags _flags; aoqi@0: aoqi@0: // points to all Flags static array aoqi@0: static Flag* flags; aoqi@0: aoqi@0: // number of flags aoqi@0: static size_t numFlags; aoqi@0: aoqi@0: static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false); aoqi@0: static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false); aoqi@0: aoqi@0: void check_writable(); aoqi@0: aoqi@0: bool is_bool() const; aoqi@0: bool get_bool() const; aoqi@0: void set_bool(bool value); aoqi@0: aoqi@0: bool is_intx() const; aoqi@0: intx get_intx() const; aoqi@0: void set_intx(intx value); aoqi@0: aoqi@0: bool is_uintx() const; aoqi@0: uintx get_uintx() const; aoqi@0: void set_uintx(uintx value); aoqi@0: aoqi@0: bool is_uint64_t() const; aoqi@0: uint64_t get_uint64_t() const; aoqi@0: void set_uint64_t(uint64_t value); aoqi@0: aoqi@0: bool is_double() const; aoqi@0: double get_double() const; aoqi@0: void set_double(double value); aoqi@0: aoqi@0: bool is_ccstr() const; aoqi@0: bool ccstr_accumulates() const; aoqi@0: ccstr get_ccstr() const; aoqi@0: void set_ccstr(ccstr value); aoqi@0: aoqi@0: Flags get_origin(); aoqi@0: void set_origin(Flags origin); aoqi@0: aoqi@0: bool is_default(); aoqi@0: bool is_ergonomic(); aoqi@0: bool is_command_line(); aoqi@0: aoqi@0: bool is_product() const; aoqi@0: bool is_manageable() const; aoqi@0: bool is_diagnostic() const; aoqi@0: bool is_experimental() const; aoqi@0: bool is_notproduct() const; aoqi@0: bool is_develop() const; aoqi@0: bool is_read_write() const; aoqi@0: bool is_commercial() const; aoqi@0: aoqi@0: bool is_constant_in_binary() const; aoqi@0: aoqi@0: bool is_unlocker() const; aoqi@0: bool is_unlocked() const; aoqi@0: bool is_writeable() const; aoqi@0: bool is_external() const; aoqi@0: aoqi@0: bool is_unlocker_ext() const; aoqi@0: bool is_unlocked_ext() const; aoqi@0: bool is_writeable_ext() const; aoqi@0: bool is_external_ext() const; aoqi@0: aoqi@0: void get_locked_message(char*, int) const; aoqi@0: void get_locked_message_ext(char*, int) const; aoqi@0: aoqi@0: void print_on(outputStream* st, bool withComments = false ); aoqi@0: void print_kind(outputStream* st); aoqi@0: void print_as_flag(outputStream* st); aoqi@0: }; aoqi@0: aoqi@0: // debug flags control various aspects of the VM and are global accessible aoqi@0: aoqi@0: // use FlagSetting to temporarily change some debug flag aoqi@0: // e.g. FlagSetting fs(DebugThisAndThat, true); aoqi@0: // restored to previous value upon leaving scope aoqi@0: class FlagSetting { aoqi@0: bool val; aoqi@0: bool* flag; aoqi@0: public: aoqi@0: FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; } aoqi@0: ~FlagSetting() { *flag = val; } aoqi@0: }; aoqi@0: aoqi@0: aoqi@0: class CounterSetting { aoqi@0: intx* counter; aoqi@0: public: aoqi@0: CounterSetting(intx* cnt) { counter = cnt; (*counter)++; } aoqi@0: ~CounterSetting() { (*counter)--; } aoqi@0: }; aoqi@0: aoqi@0: aoqi@0: class UIntFlagSetting { aoqi@0: uintx val; aoqi@0: uintx* flag; aoqi@0: public: aoqi@0: UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; } aoqi@0: ~UIntFlagSetting() { *flag = val; } aoqi@0: }; aoqi@0: aoqi@0: aoqi@0: class DoubleFlagSetting { aoqi@0: double val; aoqi@0: double* flag; aoqi@0: public: aoqi@0: DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; } aoqi@0: ~DoubleFlagSetting() { *flag = val; } aoqi@0: }; aoqi@0: aoqi@0: aoqi@0: class CommandLineFlags { aoqi@0: public: aoqi@0: static bool boolAt(char* name, size_t len, bool* value); aoqi@0: static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } aoqi@0: static bool boolAtPut(char* name, size_t len, bool* value, Flag::Flags origin); aoqi@0: static bool boolAtPut(char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: static bool intxAt(char* name, size_t len, intx* value); aoqi@0: static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } aoqi@0: static bool intxAtPut(char* name, size_t len, intx* value, Flag::Flags origin); aoqi@0: static bool intxAtPut(char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: static bool uintxAt(char* name, size_t len, uintx* value); aoqi@0: static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } aoqi@0: static bool uintxAtPut(char* name, size_t len, uintx* value, Flag::Flags origin); aoqi@0: static bool uintxAtPut(char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: static bool uint64_tAt(char* name, size_t len, uint64_t* value); aoqi@0: static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } aoqi@0: static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, Flag::Flags origin); aoqi@0: static bool uint64_tAtPut(char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: static bool doubleAt(char* name, size_t len, double* value); aoqi@0: static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } aoqi@0: static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin); aoqi@0: static bool doubleAtPut(char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: static bool ccstrAt(char* name, size_t len, ccstr* value); aoqi@0: static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } aoqi@0: static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin); aoqi@0: static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } aoqi@0: aoqi@0: // Returns false if name is not a command line flag. aoqi@0: static bool wasSetOnCmdline(const char* name, bool* value); aoqi@0: static void printSetFlags(outputStream* out); aoqi@0: aoqi@0: static void printFlags(outputStream* out, bool withComments); aoqi@0: aoqi@0: static void verify() PRODUCT_RETURN; aoqi@0: }; aoqi@0: aoqi@0: // use this for flags that are true by default in the debug version but aoqi@0: // false in the optimized version, and vice versa aoqi@0: #ifdef ASSERT aoqi@0: #define trueInDebug true aoqi@0: #define falseInDebug false aoqi@0: #else aoqi@0: #define trueInDebug false aoqi@0: #define falseInDebug true aoqi@0: #endif aoqi@0: aoqi@0: // use this for flags that are true per default in the product build aoqi@0: // but false in development builds, and vice versa aoqi@0: #ifdef PRODUCT aoqi@0: #define trueInProduct true aoqi@0: #define falseInProduct false aoqi@0: #else aoqi@0: #define trueInProduct false aoqi@0: #define falseInProduct true aoqi@0: #endif aoqi@0: aoqi@0: #ifdef JAVASE_EMBEDDED aoqi@0: #define falseInEmbedded false aoqi@0: #else aoqi@0: #define falseInEmbedded true aoqi@0: #endif aoqi@0: aoqi@0: // develop flags are settable / visible only during development and are constant in the PRODUCT version aoqi@0: // product flags are always settable / visible aoqi@0: // notproduct flags are settable / visible only during development and are not declared in the PRODUCT version aoqi@0: aoqi@0: // A flag must be declared with one of the following types: aoqi@0: // bool, intx, uintx, ccstr. aoqi@0: // The type "ccstr" is an alias for "const char*" and is used aoqi@0: // only in this file, because the macrology requires single-token type names. aoqi@0: aoqi@0: // Note: Diagnostic options not meant for VM tuning or for product modes. aoqi@0: // They are to be used for VM quality assurance or field diagnosis aoqi@0: // of VM bugs. They are hidden so that users will not be encouraged to aoqi@0: // try them as if they were VM ordinary execution options. However, they aoqi@0: // are available in the product version of the VM. Under instruction aoqi@0: // from support engineers, VM customers can turn them on to collect aoqi@0: // diagnostic information about VM problems. To use a VM diagnostic aoqi@0: // option, you must first specify +UnlockDiagnosticVMOptions. aoqi@0: // (This master switch also affects the behavior of -Xprintflags.) aoqi@0: // aoqi@0: // experimental flags are in support of features that are not aoqi@0: // part of the officially supported product, but are available aoqi@0: // for experimenting with. They could, for example, be performance aoqi@0: // features that may not have undergone full or rigorous QA, but which may aoqi@0: // help performance in some cases and released for experimentation aoqi@0: // by the community of users and developers. This flag also allows one to aoqi@0: // be able to build a fully supported product that nonetheless also aoqi@0: // ships with some unsupported, lightly tested, experimental features. aoqi@0: // Like the UnlockDiagnosticVMOptions flag above, there is a corresponding aoqi@0: // UnlockExperimentalVMOptions flag, which allows the control and aoqi@0: // modification of the experimental flags. aoqi@0: // aoqi@0: // Nota bene: neither diagnostic nor experimental options should be used casually, aoqi@0: // and they are not supported on production loads, except under explicit aoqi@0: // direction from support engineers. aoqi@0: // aoqi@0: // manageable flags are writeable external product flags. aoqi@0: // They are dynamically writeable through the JDK management interface aoqi@0: // (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. aoqi@0: // These flags are external exported interface (see CCC). The list of aoqi@0: // manageable flags can be queried programmatically through the management aoqi@0: // interface. aoqi@0: // aoqi@0: // A flag can be made as "manageable" only if aoqi@0: // - the flag is defined in a CCC as an external exported interface. aoqi@0: // - the VM implementation supports dynamic setting of the flag. aoqi@0: // This implies that the VM must *always* query the flag variable aoqi@0: // and not reuse state related to the flag state at any given time. aoqi@0: // - you want the flag to be queried programmatically by the customers. aoqi@0: // aoqi@0: // product_rw flags are writeable internal product flags. aoqi@0: // They are like "manageable" flags but for internal/private use. aoqi@0: // The list of product_rw flags are internal/private flags which aoqi@0: // may be changed/removed in a future release. It can be set aoqi@0: // through the management interface to get/set value aoqi@0: // when the name of flag is supplied. aoqi@0: // aoqi@0: // A flag can be made as "product_rw" only if aoqi@0: // - the VM implementation supports dynamic setting of the flag. aoqi@0: // This implies that the VM must *always* query the flag variable aoqi@0: // and not reuse state related to the flag state at any given time. aoqi@0: // aoqi@0: // Note that when there is a need to support develop flags to be writeable, aoqi@0: // it can be done in the same way as product_rw. aoqi@0: aoqi@0: #define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \ aoqi@0: \ aoqi@0: lp64_product(bool, UseCompressedOops, false, \ aoqi@0: "Use 32-bit object references in 64-bit VM. " \ aoqi@0: "lp64_product means flag is always constant in 32 bit VM") \ aoqi@0: \ aoqi@0: lp64_product(bool, UseCompressedClassPointers, false, \ aoqi@0: "Use 32-bit class pointers in 64-bit VM. " \ aoqi@0: "lp64_product means flag is always constant in 32 bit VM") \ aoqi@0: \ aoqi@0: notproduct(bool, CheckCompressedOops, true, \ aoqi@0: "Generate checks in encoding/decoding code in debug VM") \ aoqi@0: \ aoqi@0: product_pd(uintx, HeapBaseMinAddress, \ aoqi@0: "OS specific low limit for heap base address") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintCompressedOopsMode, false, \ aoqi@0: "Print compressed oops base address and encoding mode") \ aoqi@0: \ aoqi@0: lp64_product(intx, ObjectAlignmentInBytes, 8, \ aoqi@0: "Default object alignment in bytes, 8 is minimum") \ aoqi@0: \ aoqi@0: product(bool, AssumeMP, false, \ aoqi@0: "Instruct the VM to assume multiple processors are available") \ aoqi@0: \ aoqi@0: /* UseMembar is theoretically a temp flag used for memory barrier \ aoqi@0: * removal testing. It was supposed to be removed before FCS but has \ aoqi@0: * been re-added (see 6401008) */ \ aoqi@0: product_pd(bool, UseMembar, \ aoqi@0: "(Unstable) Issues membars on thread state transitions") \ aoqi@0: \ aoqi@0: develop(bool, CleanChunkPoolAsync, falseInEmbedded, \ aoqi@0: "Clean the chunk pool asynchronously") \ aoqi@0: \ aoqi@0: /* Temporary: See 6948537 */ \ aoqi@0: experimental(bool, UseMemSetInBOT, true, \ aoqi@0: "(Unstable) uses memset in BOT updates in GC code") \ aoqi@0: \ aoqi@0: diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \ aoqi@0: "Enable normal processing of flags relating to field diagnostics")\ aoqi@0: \ aoqi@0: experimental(bool, UnlockExperimentalVMOptions, false, \ aoqi@0: "Enable normal processing of flags relating to experimental " \ aoqi@0: "features") \ aoqi@0: \ aoqi@0: product(bool, JavaMonitorsInStackTrace, true, \ aoqi@0: "Print information about Java monitor locks when the stacks are" \ aoqi@0: "dumped") \ aoqi@0: \ aoqi@0: product_pd(bool, UseLargePages, \ aoqi@0: "Use large page memory") \ aoqi@0: \ aoqi@0: product_pd(bool, UseLargePagesIndividualAllocation, \ aoqi@0: "Allocate large pages individually for better affinity") \ aoqi@0: \ aoqi@0: develop(bool, LargePagesIndividualAllocationInjectError, false, \ aoqi@0: "Fail large pages individual allocation") \ aoqi@0: \ aoqi@0: product(bool, UseLargePagesInMetaspace, false, \ aoqi@0: "Use large page memory in metaspace. " \ aoqi@0: "Only used if UseLargePages is enabled.") \ aoqi@0: \ aoqi@0: develop(bool, TracePageSizes, false, \ aoqi@0: "Trace page size selection and usage") \ aoqi@0: \ aoqi@1: /* 2013/12/18 Jin: disable UseNUMA until OS is fixed*/ \ aoqi@1: product(bool, UseNUMA, MIPS64_ONLY(false) NOT_MIPS64(false), \ aoqi@0: "Use NUMA if available") \ aoqi@0: \ aoqi@1: product(bool, UseOldNUMA, MIPS64_ONLY(true) NOT_MIPS64(false), \ aoqi@1: "Use Old NUMA if available") \ aoqi@1: \ aoqi@1: product(bool, UseNUMAThreadRoots, MIPS64_ONLY(true) NOT_MIPS64(false), \ aoqi@1: "Use NUMAThreadRoots if available") \ aoqi@1: \ aoqi@1: product(bool, UseNUMASteal, MIPS64_ONLY(true) NOT_MIPS64(false), \ aoqi@1: "Use NUMASteal if available") \ aoqi@1: \ aoqi@1: product(bool, UseNUMAGC, MIPS64_ONLY(true) NOT_MIPS64(false), \ aoqi@1: "Use NUMAGC if available") \ aoqi@1: \ aoqi@1: product(bool, UseStasticScavenge, false, \ aoqi@1: "Use StasticScavenge if available") \ aoqi@1: \ aoqi@1: product(bool, UseStasticCopy, false, \ aoqi@1: "Use StasticCopy if available") \ aoqi@1: \ aoqi@0: product(bool, UseNUMAInterleaving, false, \ aoqi@0: "Interleave memory across NUMA nodes if available") \ aoqi@0: \ aoqi@0: product(uintx, NUMAInterleaveGranularity, 2*M, \ aoqi@0: "Granularity to use for NUMA interleaving on Windows OS") \ aoqi@0: \ aoqi@0: product(bool, ForceNUMA, false, \ aoqi@0: "Force NUMA optimizations on single-node/UMA systems") \ aoqi@0: \ aoqi@0: product(uintx, NUMAChunkResizeWeight, 20, \ aoqi@0: "Percentage (0-100) used to weigh the current sample when " \ aoqi@0: "computing exponentially decaying average for " \ aoqi@0: "AdaptiveNUMAChunkSizing") \ aoqi@0: \ aoqi@0: product(uintx, NUMASpaceResizeRate, 1*G, \ aoqi@0: "Do not reallocate more than this amount per collection") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveNUMAChunkSizing, true, \ aoqi@0: "Enable adaptive chunk sizing for NUMA") \ aoqi@0: \ aoqi@0: product(bool, NUMAStats, false, \ aoqi@0: "Print NUMA stats in detailed heap information") \ aoqi@0: \ aoqi@0: product(uintx, NUMAPageScanRate, 256, \ aoqi@0: "Maximum number of pages to include in the page scan procedure") \ aoqi@0: \ aoqi@0: product_pd(bool, NeedsDeoptSuspend, \ aoqi@0: "True for register window machines (sparc/ia64)") \ aoqi@0: \ aoqi@0: product(intx, UseSSE, 99, \ aoqi@0: "Highest supported SSE instructions set on x86/x64") \ aoqi@0: \ aoqi@0: product(bool, UseAES, false, \ aoqi@0: "Control whether AES instructions can be used on x86/x64") \ aoqi@0: \ aoqi@0: product(uintx, LargePageSizeInBytes, 0, \ aoqi@0: "Large page size (0 to let VM choose the page size)") \ aoqi@0: \ aoqi@0: product(uintx, LargePageHeapSizeThreshold, 128*M, \ aoqi@0: "Use large pages if maximum heap is at least this big") \ aoqi@0: \ aoqi@0: product(bool, ForceTimeHighResolution, false, \ aoqi@0: "Using high time resolution (for Win32 only)") \ aoqi@0: \ aoqi@0: develop(bool, TraceItables, false, \ aoqi@0: "Trace initialization and use of itables") \ aoqi@0: \ aoqi@0: develop(bool, TracePcPatching, false, \ aoqi@0: "Trace usage of frame::patch_pc") \ aoqi@0: \ aoqi@0: develop(bool, TraceJumps, false, \ aoqi@0: "Trace assembly jumps in thread ring buffer") \ aoqi@0: \ aoqi@0: develop(bool, TraceRelocator, false, \ aoqi@0: "Trace the bytecode relocator") \ aoqi@0: \ aoqi@0: develop(bool, TraceLongCompiles, false, \ aoqi@0: "Print out every time compilation is longer than " \ aoqi@0: "a given threshold") \ aoqi@0: \ aoqi@0: develop(bool, SafepointALot, false, \ aoqi@0: "Generate a lot of safepoints. This works with " \ aoqi@0: "GuaranteedSafepointInterval") \ aoqi@0: \ aoqi@0: product_pd(bool, BackgroundCompilation, \ aoqi@0: "A thread requesting compilation is not blocked during " \ aoqi@0: "compilation") \ aoqi@0: \ aoqi@0: product(bool, PrintVMQWaitTime, false, \ aoqi@0: "Print out the waiting time in VM operation queue") \ aoqi@0: \ aoqi@0: develop(bool, NoYieldsInMicrolock, false, \ aoqi@0: "Disable yields in microlock") \ aoqi@0: \ aoqi@0: develop(bool, TraceOopMapGeneration, false, \ aoqi@0: "Show OopMapGeneration") \ aoqi@0: \ aoqi@0: product(bool, MethodFlushing, true, \ aoqi@0: "Reclamation of zombie and not-entrant methods") \ aoqi@0: \ aoqi@0: develop(bool, VerifyStack, false, \ aoqi@0: "Verify stack of each thread when it is entering a runtime call") \ aoqi@0: \ aoqi@0: diagnostic(bool, ForceUnreachable, false, \ aoqi@0: "Make all non code cache addresses to be unreachable by " \ aoqi@0: "forcing use of 64bit literal fixups") \ aoqi@0: \ aoqi@0: notproduct(bool, StressDerivedPointers, false, \ aoqi@0: "Force scavenge when a derived pointer is detected on stack " \ aoqi@0: "after rtm call") \ aoqi@0: \ aoqi@0: develop(bool, TraceDerivedPointers, false, \ aoqi@0: "Trace traversal of derived pointers on stack") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceCodeBlobStacks, false, \ aoqi@0: "Trace stack-walk of codeblobs") \ aoqi@0: \ aoqi@0: product(bool, PrintJNIResolving, false, \ aoqi@0: "Used to implement -v:jni") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintRewrites, false, \ aoqi@0: "Print methods that are being rewritten") \ aoqi@0: \ aoqi@0: product(bool, UseInlineCaches, true, \ aoqi@0: "Use Inline Caches for virtual calls ") \ aoqi@0: \ aoqi@0: develop(bool, InlineArrayCopy, true, \ aoqi@0: "Inline arraycopy native that is known to be part of " \ aoqi@0: "base library DLL") \ aoqi@0: \ aoqi@0: develop(bool, InlineObjectHash, true, \ aoqi@0: "Inline Object::hashCode() native that is known to be part " \ aoqi@0: "of base library DLL") \ aoqi@0: \ aoqi@0: develop(bool, InlineNatives, true, \ aoqi@0: "Inline natives that are known to be part of base library DLL") \ aoqi@0: \ aoqi@0: develop(bool, InlineMathNatives, true, \ aoqi@0: "Inline SinD, CosD, etc.") \ aoqi@0: \ aoqi@0: develop(bool, InlineClassNatives, true, \ aoqi@0: "Inline Class.isInstance, etc") \ aoqi@0: \ aoqi@0: develop(bool, InlineThreadNatives, true, \ aoqi@0: "Inline Thread.currentThread, etc") \ aoqi@0: \ aoqi@0: develop(bool, InlineUnsafeOps, true, \ aoqi@0: "Inline memory ops (native methods) from sun.misc.Unsafe") \ aoqi@0: \ aoqi@0: product(bool, CriticalJNINatives, true, \ aoqi@0: "Check for critical JNI entry points") \ aoqi@0: \ aoqi@0: notproduct(bool, StressCriticalJNINatives, false, \ aoqi@0: "Exercise register saving code in critical natives") \ aoqi@0: \ aoqi@0: product(bool, UseSSE42Intrinsics, false, \ aoqi@0: "SSE4.2 versions of intrinsics") \ aoqi@0: \ aoqi@0: product(bool, UseAESIntrinsics, false, \ aoqi@0: "Use intrinsics for AES versions of crypto") \ aoqi@0: \ aoqi@0: product(bool, UseCRC32Intrinsics, false, \ aoqi@0: "use intrinsics for java.util.zip.CRC32") \ aoqi@0: \ aoqi@0: develop(bool, TraceCallFixup, false, \ aoqi@0: "Trace all call fixups") \ aoqi@0: \ aoqi@0: develop(bool, DeoptimizeALot, false, \ aoqi@0: "Deoptimize at every exit from the runtime system") \ aoqi@0: \ aoqi@0: notproduct(ccstrlist, DeoptimizeOnlyAt, "", \ aoqi@0: "A comma separated list of bcis to deoptimize at") \ aoqi@0: \ aoqi@0: product(bool, DeoptimizeRandom, false, \ aoqi@0: "Deoptimize random frames on random exit from the runtime system")\ aoqi@0: \ aoqi@0: notproduct(bool, ZombieALot, false, \ aoqi@0: "Create zombies (non-entrant) at exit from the runtime system") \ aoqi@0: \ aoqi@0: product(bool, UnlinkSymbolsALot, false, \ aoqi@0: "Unlink unreferenced symbols from the symbol table at safepoints")\ aoqi@0: \ aoqi@0: notproduct(bool, WalkStackALot, false, \ aoqi@0: "Trace stack (no print) at every exit from the runtime system") \ aoqi@0: \ aoqi@0: product(bool, Debugging, false, \ aoqi@0: "Set when executing debug methods in debug.cpp " \ aoqi@0: "(to prevent triggering assertions)") \ aoqi@0: \ aoqi@0: notproduct(bool, StrictSafepointChecks, trueInDebug, \ aoqi@0: "Enable strict checks that safepoints cannot happen for threads " \ aoqi@0: "that use No_Safepoint_Verifier") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyLastFrame, false, \ aoqi@0: "Verify oops on last frame on entry to VM") \ aoqi@0: \ aoqi@0: develop(bool, TraceHandleAllocation, false, \ aoqi@0: "Print out warnings when suspiciously many handles are allocated")\ aoqi@0: \ aoqi@0: product(bool, UseCompilerSafepoints, true, \ aoqi@0: "Stop at safepoints in compiled code") \ aoqi@0: \ aoqi@0: product(bool, FailOverToOldVerifier, true, \ aoqi@0: "Fail over to old verifier when split verifier fails") \ aoqi@0: \ aoqi@0: develop(bool, ShowSafepointMsgs, false, \ aoqi@0: "Show message about safepoint synchronization") \ aoqi@0: \ aoqi@0: product(bool, SafepointTimeout, false, \ aoqi@0: "Time out and warn or fail after SafepointTimeoutDelay " \ aoqi@0: "milliseconds if failed to reach safepoint") \ aoqi@0: \ aoqi@0: develop(bool, DieOnSafepointTimeout, false, \ aoqi@0: "Die upon failure to reach safepoint (see SafepointTimeout)") \ aoqi@0: \ aoqi@0: /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \ aoqi@0: /* typically, at most a few retries are needed */ \ aoqi@0: product(intx, SuspendRetryCount, 50, \ aoqi@0: "Maximum retry count for an external suspend request") \ aoqi@0: \ aoqi@0: product(intx, SuspendRetryDelay, 5, \ aoqi@0: "Milliseconds to delay per retry (* current_retry_count)") \ aoqi@0: \ aoqi@0: product(bool, AssertOnSuspendWaitFailure, false, \ aoqi@0: "Assert/Guarantee on external suspend wait failure") \ aoqi@0: \ aoqi@0: product(bool, TraceSuspendWaitFailures, false, \ aoqi@0: "Trace external suspend wait failures") \ aoqi@0: \ aoqi@0: product(bool, MaxFDLimit, true, \ aoqi@0: "Bump the number of file descriptors to maximum in Solaris") \ aoqi@0: \ aoqi@0: diagnostic(bool, LogEvents, true, \ aoqi@0: "Enable the various ring buffer event logs") \ aoqi@0: \ aoqi@0: diagnostic(uintx, LogEventsBufferEntries, 10, \ aoqi@0: "Number of ring buffer event logs") \ aoqi@0: \ aoqi@0: product(bool, BytecodeVerificationRemote, true, \ aoqi@0: "Enable the Java bytecode verifier for remote classes") \ aoqi@0: \ aoqi@0: product(bool, BytecodeVerificationLocal, false, \ aoqi@0: "Enable the Java bytecode verifier for local classes") \ aoqi@0: \ aoqi@0: develop(bool, ForceFloatExceptions, trueInDebug, \ aoqi@0: "Force exceptions on FP stack under/overflow") \ aoqi@0: \ aoqi@0: develop(bool, VerifyStackAtCalls, false, \ aoqi@0: "Verify that the stack pointer is unchanged after calls") \ aoqi@0: \ aoqi@0: develop(bool, TraceJavaAssertions, false, \ aoqi@0: "Trace java language assertions") \ aoqi@0: \ aoqi@0: notproduct(bool, CheckAssertionStatusDirectives, false, \ aoqi@0: "Temporary - see javaClasses.cpp") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintMallocFree, false, \ aoqi@0: "Trace calls to C heap malloc/free allocation") \ aoqi@0: \ aoqi@0: product(bool, PrintOopAddress, false, \ aoqi@0: "Always print the location of the oop") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyCodeCacheOften, false, \ aoqi@0: "Verify compiled-code cache often") \ aoqi@0: \ aoqi@0: develop(bool, ZapDeadCompiledLocals, false, \ aoqi@0: "Zap dead locals in compiler frames") \ aoqi@0: \ aoqi@0: notproduct(bool, ZapDeadLocalsOld, false, \ aoqi@0: "Zap dead locals (old version, zaps all frames when " \ aoqi@0: "entering the VM") \ aoqi@0: \ aoqi@0: notproduct(bool, CheckOopishValues, false, \ aoqi@0: "Warn if value contains oop (requires ZapDeadLocals)") \ aoqi@0: \ aoqi@0: develop(bool, UseMallocOnly, false, \ aoqi@0: "Use only malloc/free for allocation (no resource area/arena)") \ aoqi@0: \ aoqi@0: develop(bool, PrintMalloc, false, \ aoqi@0: "Print all malloc/free calls") \ aoqi@0: \ aoqi@0: develop(bool, PrintMallocStatistics, false, \ aoqi@0: "Print malloc/free statistics") \ aoqi@0: \ aoqi@0: develop(bool, ZapResourceArea, trueInDebug, \ aoqi@0: "Zap freed resource/arena space with 0xABABABAB") \ aoqi@0: \ aoqi@0: notproduct(bool, ZapVMHandleArea, trueInDebug, \ aoqi@0: "Zap freed VM handle space with 0xBCBCBCBC") \ aoqi@0: \ aoqi@0: develop(bool, ZapJNIHandleArea, trueInDebug, \ aoqi@0: "Zap freed JNI handle space with 0xFEFEFEFE") \ aoqi@0: \ aoqi@0: notproduct(bool, ZapStackSegments, trueInDebug, \ aoqi@0: "Zap allocated/freed stack segments with 0xFADFADED") \ aoqi@0: \ aoqi@0: develop(bool, ZapUnusedHeapArea, trueInDebug, \ aoqi@0: "Zap unused heap space with 0xBAADBABE") \ aoqi@0: \ aoqi@0: develop(bool, TraceZapUnusedHeapArea, false, \ aoqi@0: "Trace zapping of unused heap space") \ aoqi@0: \ aoqi@0: develop(bool, CheckZapUnusedHeapArea, false, \ aoqi@0: "Check zapping of unused heap space") \ aoqi@0: \ aoqi@0: develop(bool, ZapFillerObjects, trueInDebug, \ aoqi@0: "Zap filler objects with 0xDEAFBABE") \ aoqi@0: \ aoqi@0: develop(bool, PrintVMMessages, true, \ aoqi@0: "Print VM messages on console") \ aoqi@0: \ aoqi@0: product(bool, PrintGCApplicationConcurrentTime, false, \ aoqi@0: "Print the time the application has been running") \ aoqi@0: \ aoqi@0: product(bool, PrintGCApplicationStoppedTime, false, \ aoqi@0: "Print the time the application has been stopped") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerboseVerification, false, \ aoqi@0: "Display detailed verification details") \ aoqi@0: \ aoqi@0: notproduct(uintx, ErrorHandlerTest, 0, \ aoqi@0: "If > 0, provokes an error after VM initialization; the value " \ aoqi@0: "determines which error to provoke. See test_error_handler() " \ aoqi@0: "in debug.cpp.") \ aoqi@0: \ aoqi@0: develop(bool, Verbose, false, \ aoqi@0: "Print additional debugging information from other modes") \ aoqi@0: \ aoqi@0: develop(bool, PrintMiscellaneous, false, \ aoqi@0: "Print uncategorized debugging information (requires +Verbose)") \ aoqi@0: \ aoqi@0: develop(bool, WizardMode, false, \ aoqi@0: "Print much more debugging information") \ aoqi@0: \ aoqi@0: product(bool, ShowMessageBoxOnError, false, \ aoqi@0: "Keep process alive on VM fatal error") \ aoqi@0: \ aoqi@0: product(bool, CreateMinidumpOnCrash, false, \ aoqi@0: "Create minidump on VM fatal error") \ aoqi@0: \ aoqi@0: product_pd(bool, UseOSErrorReporting, \ aoqi@0: "Let VM fatal error propagate to the OS (ie. WER on Windows)") \ aoqi@0: \ aoqi@0: product(bool, SuppressFatalErrorMessage, false, \ aoqi@0: "Report NO fatal error message (avoid deadlock)") \ aoqi@0: \ aoqi@0: product(ccstrlist, OnError, "", \ aoqi@0: "Run user-defined commands on fatal error; see VMError.cpp " \ aoqi@0: "for examples") \ aoqi@0: \ aoqi@0: product(ccstrlist, OnOutOfMemoryError, "", \ aoqi@0: "Run user-defined commands on first java.lang.OutOfMemoryError") \ aoqi@0: \ aoqi@0: manageable(bool, HeapDumpBeforeFullGC, false, \ aoqi@0: "Dump heap to file before any major stop-the-world GC") \ aoqi@0: \ aoqi@0: manageable(bool, HeapDumpAfterFullGC, false, \ aoqi@0: "Dump heap to file after any major stop-the-world GC") \ aoqi@0: \ aoqi@0: manageable(bool, HeapDumpOnOutOfMemoryError, false, \ aoqi@0: "Dump heap to file when java.lang.OutOfMemoryError is thrown") \ aoqi@0: \ aoqi@0: manageable(ccstr, HeapDumpPath, NULL, \ aoqi@0: "When HeapDumpOnOutOfMemoryError is on, the path (filename or " \ aoqi@0: "directory) of the dump file (defaults to java_pid.hprof " \ aoqi@0: "in the working directory)") \ aoqi@0: \ aoqi@0: develop(uintx, SegmentedHeapDumpThreshold, 2*G, \ aoqi@0: "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \ aoqi@0: "when the heap usage is larger than this") \ aoqi@0: \ aoqi@0: develop(uintx, HeapDumpSegmentSize, 1*G, \ aoqi@0: "Approximate segment size when generating a segmented heap dump") \ aoqi@0: \ aoqi@0: develop(bool, BreakAtWarning, false, \ aoqi@0: "Execute breakpoint upon encountering VM warning") \ aoqi@0: \ aoqi@0: develop(bool, TraceVMOperation, false, \ aoqi@0: "Trace VM operations") \ aoqi@0: \ aoqi@0: develop(bool, UseFakeTimers, false, \ aoqi@0: "Tell whether the VM should use system time or a fake timer") \ aoqi@0: \ aoqi@0: product(ccstr, NativeMemoryTracking, "off", \ aoqi@0: "Native memory tracking options") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintNMTStatistics, false, \ aoqi@0: "Print native memory tracking summary data if it is on") \ aoqi@0: \ aoqi@0: diagnostic(bool, AutoShutdownNMT, true, \ aoqi@0: "Automatically shutdown native memory tracking under stress " \ aoqi@0: "situations. When set to false, native memory tracking tries to " \ aoqi@0: "stay alive at the expense of JVM performance") \ aoqi@0: \ aoqi@0: diagnostic(bool, LogCompilation, false, \ aoqi@0: "Log compilation activity in detail to LogFile") \ aoqi@0: \ aoqi@0: product(bool, PrintCompilation, false, \ aoqi@0: "Print compilations") \ aoqi@0: \ aoqi@0: diagnostic(bool, TraceNMethodInstalls, false, \ aoqi@0: "Trace nmethod installation") \ aoqi@0: \ aoqi@0: diagnostic(intx, ScavengeRootsInCode, 2, \ aoqi@0: "0: do not allow scavengable oops in the code cache; " \ aoqi@0: "1: allow scavenging from the code cache; " \ aoqi@0: "2: emit as many constants as the compiler can see") \ aoqi@0: \ aoqi@0: product(bool, AlwaysRestoreFPU, false, \ aoqi@0: "Restore the FPU control word after every JNI call (expensive)") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintCompilation2, false, \ aoqi@0: "Print additional statistics per compilation") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintAdapterHandlers, false, \ aoqi@0: "Print code generated for i2c/c2i adapters") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyAdapterCalls, trueInDebug, \ aoqi@0: "Verify that i2c/c2i adapters are called properly") \ aoqi@0: \ aoqi@0: develop(bool, VerifyAdapterSharing, false, \ aoqi@0: "Verify that the code for shared adapters is the equivalent") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintAssembly, false, \ aoqi@0: "Print assembly code (using external disassembler.so)") \ aoqi@0: \ aoqi@0: diagnostic(ccstr, PrintAssemblyOptions, NULL, \ aoqi@0: "Print options string passed to disassembler.so") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintNMethods, false, \ aoqi@0: "Print assembly code for nmethods when generated") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintNativeNMethods, false, \ aoqi@0: "Print assembly code for native nmethods when generated") \ aoqi@0: \ aoqi@0: develop(bool, PrintDebugInfo, false, \ aoqi@0: "Print debug information for all nmethods when generated") \ aoqi@0: \ aoqi@0: develop(bool, PrintRelocations, false, \ aoqi@0: "Print relocation information for all nmethods when generated") \ aoqi@0: \ aoqi@0: develop(bool, PrintDependencies, false, \ aoqi@0: "Print dependency information for all nmethods when generated") \ aoqi@0: \ aoqi@0: develop(bool, PrintExceptionHandlers, false, \ aoqi@0: "Print exception handler tables for all nmethods when generated") \ aoqi@0: \ aoqi@0: develop(bool, StressCompiledExceptionHandlers, false, \ aoqi@0: "Exercise compiled exception handlers") \ aoqi@0: \ aoqi@0: develop(bool, InterceptOSException, false, \ aoqi@0: "Start debugger when an implicit OS (e.g. NULL) " \ aoqi@0: "exception happens") \ aoqi@0: \ aoqi@0: product(bool, PrintCodeCache, false, \ aoqi@0: "Print the code cache memory usage when exiting") \ aoqi@0: \ aoqi@0: develop(bool, PrintCodeCache2, false, \ aoqi@0: "Print detailed usage information on the code cache when exiting")\ aoqi@0: \ aoqi@0: product(bool, PrintCodeCacheOnCompilation, false, \ aoqi@0: "Print the code cache memory usage each time a method is " \ aoqi@0: "compiled") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintStubCode, false, \ aoqi@0: "Print generated stub code") \ aoqi@0: \ aoqi@0: product(bool, StackTraceInThrowable, true, \ aoqi@0: "Collect backtrace in throwable when exception happens") \ aoqi@0: \ aoqi@0: product(bool, OmitStackTraceInFastThrow, true, \ aoqi@0: "Omit backtraces for some 'hot' exceptions in optimized code") \ aoqi@0: \ aoqi@0: product(bool, ProfilerPrintByteCodeStatistics, false, \ aoqi@0: "Print bytecode statistics when dumping profiler output") \ aoqi@0: \ aoqi@0: product(bool, ProfilerRecordPC, false, \ aoqi@0: "Collect ticks for each 16 byte interval of compiled code") \ aoqi@0: \ aoqi@0: product(bool, ProfileVM, false, \ aoqi@0: "Profile ticks that fall within VM (either in the VM Thread " \ aoqi@0: "or VM code called through stubs)") \ aoqi@0: \ aoqi@0: product(bool, ProfileIntervals, false, \ aoqi@0: "Print profiles for each interval (see ProfileIntervalsTicks)") \ aoqi@0: \ aoqi@0: notproduct(bool, ProfilerCheckIntervals, false, \ aoqi@0: "Collect and print information on spacing of profiler ticks") \ aoqi@0: \ aoqi@0: develop(bool, PrintJVMWarnings, false, \ aoqi@0: "Print warnings for unimplemented JVM functions") \ aoqi@0: \ aoqi@0: product(bool, PrintWarnings, true, \ aoqi@0: "Print JVM warnings to output stream") \ aoqi@0: \ aoqi@0: notproduct(uintx, WarnOnStalledSpinLock, 0, \ aoqi@0: "Print warnings for stalled SpinLocks") \ aoqi@0: \ aoqi@0: product(bool, RegisterFinalizersAtInit, true, \ aoqi@0: "Register finalizable objects at end of Object. or " \ aoqi@0: "after allocation") \ aoqi@0: \ aoqi@0: develop(bool, RegisterReferences, true, \ aoqi@0: "Tell whether the VM should register soft/weak/final/phantom " \ aoqi@0: "references") \ aoqi@0: \ aoqi@0: develop(bool, IgnoreRewrites, false, \ aoqi@0: "Suppress rewrites of bytecodes in the oopmap generator. " \ aoqi@0: "This is unsafe!") \ aoqi@0: \ aoqi@0: develop(bool, PrintCodeCacheExtension, false, \ aoqi@0: "Print extension of code cache") \ aoqi@0: \ aoqi@0: develop(bool, UsePrivilegedStack, true, \ aoqi@0: "Enable the security JVM functions") \ aoqi@0: \ aoqi@0: develop(bool, ProtectionDomainVerification, true, \ aoqi@0: "Verify protection domain before resolution in system dictionary")\ aoqi@0: \ aoqi@0: product(bool, ClassUnloading, true, \ aoqi@0: "Do unloading of classes") \ aoqi@0: \ aoqi@0: develop(bool, DisableStartThread, false, \ aoqi@0: "Disable starting of additional Java threads " \ aoqi@0: "(for debugging only)") \ aoqi@0: \ aoqi@0: develop(bool, MemProfiling, false, \ aoqi@0: "Write memory usage profiling to log file") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintSystemDictionaryAtExit, false, \ aoqi@0: "Print the system dictionary at exit") \ aoqi@0: \ aoqi@0: experimental(intx, PredictedLoadedClassCount, 0, \ aoqi@0: "Experimental: Tune loaded class cache starting size") \ aoqi@0: \ aoqi@0: diagnostic(bool, UnsyncloadClass, false, \ aoqi@0: "Unstable: VM calls loadClass unsynchronized. Custom " \ aoqi@0: "class loader must call VM synchronized for findClass " \ aoqi@0: "and defineClass.") \ aoqi@0: \ aoqi@0: product(bool, AlwaysLockClassLoader, false, \ aoqi@0: "Require the VM to acquire the class loader lock before calling " \ aoqi@0: "loadClass() even for class loaders registering " \ aoqi@0: "as parallel capable") \ aoqi@0: \ aoqi@0: product(bool, AllowParallelDefineClass, false, \ aoqi@0: "Allow parallel defineClass requests for class loaders " \ aoqi@0: "registering as parallel capable") \ aoqi@0: \ aoqi@0: product(bool, MustCallLoadClassInternal, false, \ aoqi@0: "Call loadClassInternal() rather than loadClass()") \ aoqi@0: \ aoqi@0: product_pd(bool, DontYieldALot, \ aoqi@0: "Throw away obvious excess yield calls (for Solaris only)") \ aoqi@0: \ aoqi@0: product_pd(bool, ConvertSleepToYield, \ aoqi@0: "Convert sleep(0) to thread yield " \ aoqi@0: "(may be off for Solaris to improve GUI)") \ aoqi@0: \ aoqi@0: product(bool, ConvertYieldToSleep, false, \ aoqi@0: "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \ aoqi@0: "behavior (Solaris only)") \ aoqi@0: \ aoqi@0: product(bool, UseBoundThreads, true, \ aoqi@0: "Bind user level threads to kernel threads (for Solaris only)") \ aoqi@0: \ aoqi@0: develop(bool, UseDetachedThreads, true, \ aoqi@0: "Use detached threads that are recycled upon termination " \ aoqi@0: "(for Solaris only)") \ aoqi@0: \ aoqi@0: product(bool, UseLWPSynchronization, true, \ aoqi@0: "Use LWP-based instead of libthread-based synchronization " \ aoqi@0: "(SPARC only)") \ aoqi@0: \ aoqi@0: product(ccstr, SyncKnobs, NULL, \ aoqi@0: "(Unstable) Various monitor synchronization tunables") \ aoqi@0: \ aoqi@0: product(intx, EmitSync, 0, \ aoqi@0: "(Unsafe, Unstable) " \ aoqi@0: "Control emission of inline sync fast-path code") \ aoqi@0: \ aoqi@0: product(intx, MonitorBound, 0, "Bound Monitor population") \ aoqi@0: \ aoqi@0: product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \ aoqi@0: \ aoqi@0: product(intx, SyncFlags, 0, "(Unsafe, Unstable) Experimental Sync flags") \ aoqi@0: \ aoqi@0: product(intx, SyncVerbose, 0, "(Unstable)") \ aoqi@0: \ aoqi@0: product(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)") \ aoqi@0: \ aoqi@0: product(intx, hashCode, 5, \ aoqi@0: "(Unstable) select hashCode generation algorithm") \ aoqi@0: \ aoqi@0: product(intx, WorkAroundNPTLTimedWaitHang, 1, \ aoqi@0: "(Unstable, Linux-specific) " \ aoqi@0: "avoid NPTL-FUTEX hang pthread_cond_timedwait") \ aoqi@0: \ aoqi@0: product(bool, FilterSpuriousWakeups, true, \ aoqi@0: "Prevent spurious or premature wakeups from object.wait " \ aoqi@0: "(Solaris only)") \ aoqi@0: \ aoqi@0: experimental(intx, NativeMonitorTimeout, -1, "(Unstable)") \ aoqi@0: \ aoqi@0: experimental(intx, NativeMonitorFlags, 0, "(Unstable)") \ aoqi@0: \ aoqi@0: experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)") \ aoqi@0: \ aoqi@0: develop(bool, UsePthreads, false, \ aoqi@0: "Use pthread-based instead of libthread-based synchronization " \ aoqi@0: "(SPARC only)") \ aoqi@0: \ aoqi@0: product(bool, AdjustConcurrency, false, \ aoqi@0: "Call thr_setconcurrency at thread creation time to avoid " \ aoqi@0: "LWP starvation on MP systems (for Solaris Only)") \ aoqi@0: \ aoqi@0: product(bool, ReduceSignalUsage, false, \ aoqi@0: "Reduce the use of OS signals in Java and/or the VM") \ aoqi@0: \ aoqi@0: develop_pd(bool, ShareVtableStubs, \ aoqi@0: "Share vtable stubs (smaller code but worse branch prediction") \ aoqi@0: \ aoqi@0: develop(bool, LoadLineNumberTables, true, \ aoqi@0: "Tell whether the class file parser loads line number tables") \ aoqi@0: \ aoqi@0: develop(bool, LoadLocalVariableTables, true, \ aoqi@0: "Tell whether the class file parser loads local variable tables") \ aoqi@0: \ aoqi@0: develop(bool, LoadLocalVariableTypeTables, true, \ aoqi@0: "Tell whether the class file parser loads local variable type" \ aoqi@0: "tables") \ aoqi@0: \ aoqi@0: product(bool, AllowUserSignalHandlers, false, \ aoqi@0: "Do not complain if the application installs signal handlers " \ aoqi@0: "(Solaris & Linux only)") \ aoqi@0: \ aoqi@0: product(bool, UseSignalChaining, true, \ aoqi@0: "Use signal-chaining to invoke signal handlers installed " \ aoqi@0: "by the application (Solaris & Linux only)") \ aoqi@0: \ aoqi@0: product(bool, UseAltSigs, false, \ aoqi@0: "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \ aoqi@0: "internal signals (Solaris only)") \ aoqi@0: \ aoqi@0: product(bool, AllowJNIEnvProxy, false, \ aoqi@0: "Allow JNIEnv proxies for jdbx") \ aoqi@0: \ aoqi@0: product(bool, JNIDetachReleasesMonitors, true, \ aoqi@0: "JNI DetachCurrentThread releases monitors owned by thread") \ aoqi@0: \ aoqi@0: product(bool, RestoreMXCSROnJNICalls, false, \ aoqi@0: "Restore MXCSR when returning from JNI calls") \ aoqi@0: \ aoqi@0: product(bool, CheckJNICalls, false, \ aoqi@0: "Verify all arguments to JNI calls") \ aoqi@0: \ aoqi@0: product(bool, UseFastJNIAccessors, true, \ aoqi@0: "Use optimized versions of GetField") \ aoqi@0: \ aoqi@0: product(bool, EagerXrunInit, false, \ aoqi@0: "Eagerly initialize -Xrun libraries; allows startup profiling, " \ aoqi@0: "but not all -Xrun libraries may support the state of the VM " \ aoqi@0: "at this time") \ aoqi@0: \ aoqi@0: product(bool, PreserveAllAnnotations, false, \ aoqi@0: "Preserve RuntimeInvisibleAnnotations as well " \ aoqi@0: "as RuntimeVisibleAnnotations") \ aoqi@0: \ aoqi@0: develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \ aoqi@0: "Number of OutOfMemoryErrors preallocated with backtrace") \ aoqi@0: \ aoqi@0: product(bool, LazyBootClassLoader, true, \ aoqi@0: "Enable/disable lazy opening of boot class path entries") \ aoqi@0: \ aoqi@0: product(bool, UseXMMForArrayCopy, false, \ aoqi@0: "Use SSE2 MOVQ instruction for Arraycopy") \ aoqi@0: \ aoqi@0: product(intx, FieldsAllocationStyle, 1, \ aoqi@0: "0 - type based with oops first, 1 - with oops last, " \ aoqi@0: "2 - oops in super and sub classes are together") \ aoqi@0: \ aoqi@0: product(bool, CompactFields, true, \ aoqi@0: "Allocate nonstatic fields in gaps between previous fields") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintFieldLayout, false, \ aoqi@0: "Print field layout for each class") \ aoqi@0: \ aoqi@0: product(intx, ContendedPaddingWidth, 128, \ aoqi@0: "How many bytes to pad the fields/classes marked @Contended with")\ aoqi@0: \ aoqi@0: product(bool, EnableContended, true, \ aoqi@0: "Enable @Contended annotation support") \ aoqi@0: \ aoqi@0: product(bool, RestrictContended, true, \ aoqi@0: "Restrict @Contended to trusted classes") \ aoqi@0: \ aoqi@0: product(bool, UseBiasedLocking, true, \ aoqi@0: "Enable biased locking in JVM") \ aoqi@0: \ aoqi@0: product(intx, BiasedLockingStartupDelay, 4000, \ aoqi@0: "Number of milliseconds to wait before enabling biased locking") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintBiasedLockingStatistics, false, \ aoqi@0: "Print statistics of biased locking in JVM") \ aoqi@0: \ aoqi@0: product(intx, BiasedLockingBulkRebiasThreshold, 20, \ aoqi@0: "Threshold of number of revocations per type to try to " \ aoqi@0: "rebias all objects in the heap of that type") \ aoqi@0: \ aoqi@0: product(intx, BiasedLockingBulkRevokeThreshold, 40, \ aoqi@0: "Threshold of number of revocations per type to permanently " \ aoqi@0: "revoke biases of all objects in the heap of that type") \ aoqi@0: \ aoqi@0: product(intx, BiasedLockingDecayTime, 25000, \ aoqi@0: "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \ aoqi@0: "type after previous bulk rebias") \ aoqi@0: \ aoqi@0: /* tracing */ \ aoqi@0: \ aoqi@0: notproduct(bool, TraceRuntimeCalls, false, \ aoqi@0: "Trace run-time calls") \ aoqi@0: \ aoqi@0: develop(bool, TraceJNICalls, false, \ aoqi@0: "Trace JNI calls") \ aoqi@0: \ aoqi@0: develop(bool, StressRewriter, false, \ aoqi@0: "Stress linktime bytecode rewriting") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceJVMCalls, false, \ aoqi@0: "Trace JVM calls") \ aoqi@0: \ aoqi@0: product(ccstr, TraceJVMTI, NULL, \ aoqi@0: "Trace flags for JVMTI functions and events") \ aoqi@0: \ aoqi@0: /* This option can change an EMCP method into an obsolete method. */ \ aoqi@0: /* This can affect tests that except specific methods to be EMCP. */ \ aoqi@0: /* This option should be used with caution. */ \ aoqi@0: product(bool, StressLdcRewrite, false, \ aoqi@0: "Force ldc -> ldc_w rewrite during RedefineClasses") \ aoqi@0: \ aoqi@0: product(intx, TraceRedefineClasses, 0, \ aoqi@0: "Trace level for JVMTI RedefineClasses") \ aoqi@0: \ aoqi@0: develop(bool, StressMethodComparator, false, \ aoqi@0: "Run the MethodComparator on all loaded methods") \ aoqi@0: \ aoqi@0: /* change to false by default sometime after Mustang */ \ aoqi@0: product(bool, VerifyMergedCPBytecodes, true, \ aoqi@0: "Verify bytecodes after RedefineClasses constant pool merging") \ aoqi@0: \ aoqi@0: develop(bool, TraceJNIHandleAllocation, false, \ aoqi@0: "Trace allocation/deallocation of JNI handle blocks") \ aoqi@0: \ aoqi@0: develop(bool, TraceThreadEvents, false, \ aoqi@0: "Trace all thread events") \ aoqi@0: \ aoqi@0: develop(bool, TraceBytecodes, false, \ aoqi@0: "Trace bytecode execution") \ aoqi@0: \ aoqi@0: develop(bool, TraceClassInitialization, false, \ aoqi@0: "Trace class initialization") \ aoqi@0: \ aoqi@0: develop(bool, TraceExceptions, false, \ aoqi@0: "Trace exceptions") \ aoqi@0: \ aoqi@0: develop(bool, TraceICs, false, \ aoqi@0: "Trace inline cache changes") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceInvocationCounterOverflow, false, \ aoqi@0: "Trace method invocation counter overflow") \ aoqi@0: \ aoqi@0: develop(bool, TraceInlineCacheClearing, false, \ aoqi@0: "Trace clearing of inline caches in nmethods") \ aoqi@0: \ aoqi@0: develop(bool, TraceDependencies, false, \ aoqi@0: "Trace dependencies") \ aoqi@0: \ aoqi@0: develop(bool, VerifyDependencies, trueInDebug, \ aoqi@0: "Exercise and verify the compilation dependency mechanism") \ aoqi@0: \ aoqi@0: develop(bool, TraceNewOopMapGeneration, false, \ aoqi@0: "Trace OopMapGeneration") \ aoqi@0: \ aoqi@0: develop(bool, TraceNewOopMapGenerationDetailed, false, \ aoqi@0: "Trace OopMapGeneration: print detailed cell states") \ aoqi@0: \ aoqi@0: develop(bool, TimeOopMap, false, \ aoqi@0: "Time calls to GenerateOopMap::compute_map() in sum") \ aoqi@0: \ aoqi@0: develop(bool, TimeOopMap2, false, \ aoqi@0: "Time calls to GenerateOopMap::compute_map() individually") \ aoqi@0: \ aoqi@0: develop(bool, TraceMonitorMismatch, false, \ aoqi@0: "Trace monitor matching failures during OopMapGeneration") \ aoqi@0: \ aoqi@0: develop(bool, TraceOopMapRewrites, false, \ aoqi@0: "Trace rewriting of method oops during oop map generation") \ aoqi@0: \ aoqi@0: develop(bool, TraceSafepoint, false, \ aoqi@0: "Trace safepoint operations") \ aoqi@0: \ aoqi@0: develop(bool, TraceICBuffer, false, \ aoqi@0: "Trace usage of IC buffer") \ aoqi@0: \ aoqi@0: develop(bool, TraceCompiledIC, false, \ aoqi@0: "Trace changes of compiled IC") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceZapDeadLocals, false, \ aoqi@0: "Trace zapping dead locals") \ aoqi@0: \ aoqi@0: develop(bool, TraceStartupTime, false, \ aoqi@0: "Trace setup time") \ aoqi@0: \ aoqi@0: develop(bool, TraceProtectionDomainVerification, false, \ aoqi@0: "Trace protection domain verification") \ aoqi@0: \ aoqi@0: develop(bool, TraceClearedExceptions, false, \ aoqi@0: "Print when an exception is forcibly cleared") \ aoqi@0: \ aoqi@0: product(bool, TraceClassResolution, false, \ aoqi@0: "Trace all constant pool resolutions (for debugging)") \ aoqi@0: \ aoqi@0: product(bool, TraceBiasedLocking, false, \ aoqi@0: "Trace biased locking in JVM") \ aoqi@0: \ aoqi@0: product(bool, TraceMonitorInflation, false, \ aoqi@0: "Trace monitor inflation in JVM") \ aoqi@0: \ aoqi@0: /* gc */ \ aoqi@0: \ aoqi@0: product(bool, UseSerialGC, false, \ aoqi@0: "Use the Serial garbage collector") \ aoqi@0: \ aoqi@0: product(bool, UseG1GC, false, \ aoqi@0: "Use the Garbage-First garbage collector") \ aoqi@0: \ aoqi@0: product(bool, UseParallelGC, false, \ aoqi@0: "Use the Parallel Scavenge garbage collector") \ aoqi@0: \ aoqi@0: product(bool, UseParallelOldGC, false, \ aoqi@0: "Use the Parallel Old garbage collector") \ aoqi@0: \ aoqi@0: product(uintx, HeapMaximumCompactionInterval, 20, \ aoqi@0: "How often should we maximally compact the heap (not allowing " \ aoqi@0: "any dead space)") \ aoqi@0: \ aoqi@0: product(uintx, HeapFirstMaximumCompactionCount, 3, \ aoqi@0: "The collection count for the first maximum compaction") \ aoqi@0: \ aoqi@0: product(bool, UseMaximumCompactionOnSystemGC, true, \ aoqi@0: "Use maximum compaction in the Parallel Old garbage collector " \ aoqi@0: "for a system GC") \ aoqi@0: \ aoqi@0: product(uintx, ParallelOldDeadWoodLimiterMean, 50, \ aoqi@0: "The mean used by the parallel compact dead wood " \ aoqi@0: "limiter (a number between 0-100)") \ aoqi@0: \ aoqi@0: product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \ aoqi@0: "The standard deviation used by the parallel compact dead wood " \ aoqi@0: "limiter (a number between 0-100)") \ aoqi@0: \ aoqi@0: product(uintx, ParallelGCThreads, 0, \ aoqi@0: "Number of parallel threads parallel gc will use") \ aoqi@0: \ aoqi@0: product(bool, UseDynamicNumberOfGCThreads, false, \ aoqi@0: "Dynamically choose the number of parallel threads " \ aoqi@0: "parallel gc will use") \ aoqi@0: \ aoqi@0: diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \ aoqi@0: "Force dynamic selection of the number of " \ aoqi@0: "parallel threads parallel gc will use to aid debugging") \ aoqi@0: \ aoqi@0: product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M), \ aoqi@0: "Size of heap (bytes) per GC thread used in calculating the " \ aoqi@0: "number of GC threads") \ aoqi@0: \ aoqi@0: product(bool, TraceDynamicGCThreads, false, \ aoqi@0: "Trace the dynamic GC thread usage") \ aoqi@0: \ aoqi@0: develop(bool, ParallelOldGCSplitALot, false, \ aoqi@0: "Provoke splitting (copying data from a young gen space to " \ aoqi@0: "multiple destination spaces)") \ aoqi@0: \ aoqi@0: develop(uintx, ParallelOldGCSplitInterval, 3, \ aoqi@0: "How often to provoke splitting a young gen space") \ aoqi@0: \ aoqi@0: product(uintx, ConcGCThreads, 0, \ aoqi@0: "Number of threads concurrent gc will use") \ aoqi@0: \ aoqi@0: product(uintx, YoungPLABSize, 4096, \ aoqi@0: "Size of young gen promotion LAB's (in HeapWords)") \ aoqi@0: \ aoqi@0: product(uintx, OldPLABSize, 1024, \ aoqi@0: "Size of old gen promotion LAB's (in HeapWords)") \ aoqi@0: \ aoqi@0: product(uintx, GCTaskTimeStampEntries, 200, \ aoqi@0: "Number of time stamp entries per gc worker thread") \ aoqi@0: \ aoqi@0: product(bool, AlwaysTenure, false, \ aoqi@0: "Always tenure objects in eden (ParallelGC only)") \ aoqi@0: \ aoqi@0: product(bool, NeverTenure, false, \ aoqi@0: "Never tenure objects in eden, may tenure on overflow " \ aoqi@0: "(ParallelGC only)") \ aoqi@0: \ aoqi@0: product(bool, ScavengeBeforeFullGC, true, \ aoqi@0: "Scavenge youngest generation before each full GC, " \ aoqi@0: "used with UseParallelGC") \ aoqi@0: \ aoqi@0: develop(bool, ScavengeWithObjectsInToSpace, false, \ aoqi@0: "Allow scavenges to occur when to-space contains objects") \ aoqi@0: \ aoqi@0: product(bool, UseConcMarkSweepGC, false, \ aoqi@0: "Use Concurrent Mark-Sweep GC in the old generation") \ aoqi@0: \ aoqi@0: product(bool, ExplicitGCInvokesConcurrent, false, \ aoqi@0: "A System.gc() request invokes a concurrent collection; " \ aoqi@0: "(effective only when UseConcMarkSweepGC)") \ aoqi@0: \ aoqi@0: product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \ aoqi@0: "A System.gc() request invokes a concurrent collection and " \ aoqi@0: "also unloads classes during such a concurrent gc cycle " \ aoqi@0: "(effective only when UseConcMarkSweepGC)") \ aoqi@0: \ aoqi@0: product(bool, GCLockerInvokesConcurrent, false, \ aoqi@0: "The exit of a JNI critical section necessitating a scavenge, " \ aoqi@0: "also kicks off a background concurrent collection") \ aoqi@0: \ aoqi@0: product(uintx, GCLockerEdenExpansionPercent, 5, \ aoqi@0: "How much the GC can expand the eden by while the GC locker " \ aoqi@0: "is active (as a percentage)") \ aoqi@0: \ aoqi@0: diagnostic(intx, GCLockerRetryAllocationCount, 2, \ aoqi@0: "Number of times to retry allocations when " \ aoqi@0: "blocked by the GC locker") \ aoqi@0: \ aoqi@0: develop(bool, UseCMSAdaptiveFreeLists, true, \ aoqi@0: "Use adaptive free lists in the CMS generation") \ aoqi@0: \ aoqi@0: develop(bool, UseAsyncConcMarkSweepGC, true, \ aoqi@0: "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\ aoqi@0: \ aoqi@0: develop(bool, RotateCMSCollectionTypes, false, \ aoqi@0: "Rotate the CMS collections among concurrent and STW") \ aoqi@0: \ aoqi@0: product(bool, UseCMSBestFit, true, \ aoqi@0: "Use CMS best fit allocation strategy") \ aoqi@0: \ aoqi@0: product(bool, UseCMSCollectionPassing, true, \ aoqi@0: "Use passing of collection from background to foreground") \ aoqi@0: \ aoqi@0: product(bool, UseParNewGC, false, \ aoqi@0: "Use parallel threads in the new generation") \ aoqi@0: \ aoqi@0: product(bool, ParallelGCVerbose, false, \ aoqi@0: "Verbose output for parallel gc") \ aoqi@0: \ aoqi@0: product(uintx, ParallelGCBufferWastePct, 10, \ aoqi@0: "Wasted fraction of parallel allocation buffer") \ aoqi@0: \ aoqi@0: diagnostic(bool, ParallelGCRetainPLAB, false, \ aoqi@0: "Retain parallel allocation buffers across scavenges; " \ aoqi@0: "it is disabled because this currently conflicts with " \ aoqi@0: "parallel card scanning under certain conditions.") \ aoqi@0: \ aoqi@0: product(uintx, TargetPLABWastePct, 10, \ aoqi@0: "Target wasted space in last buffer as percent of overall " \ aoqi@0: "allocation") \ aoqi@0: \ aoqi@0: product(uintx, PLABWeight, 75, \ aoqi@0: "Percentage (0-100) used to weigh the current sample when " \ aoqi@0: "computing exponentially decaying average for ResizePLAB") \ aoqi@0: \ aoqi@0: product(bool, ResizePLAB, true, \ aoqi@0: "Dynamically resize (survivor space) promotion LAB's") \ aoqi@0: \ aoqi@0: product(bool, PrintPLAB, false, \ aoqi@0: "Print (survivor space) promotion LAB's sizing decisions") \ aoqi@0: \ aoqi@0: product(intx, ParGCArrayScanChunk, 50, \ aoqi@0: "Scan a subset of object array and push remainder, if array is " \ aoqi@0: "bigger than this") \ aoqi@0: \ aoqi@0: product(bool, ParGCUseLocalOverflow, false, \ aoqi@0: "Instead of a global overflow list, use local overflow stacks") \ aoqi@0: \ aoqi@0: product(bool, ParGCTrimOverflow, true, \ aoqi@0: "Eagerly trim the local overflow lists " \ aoqi@0: "(when ParGCUseLocalOverflow)") \ aoqi@0: \ aoqi@0: notproduct(bool, ParGCWorkQueueOverflowALot, false, \ aoqi@0: "Simulate work queue overflow in ParNew") \ aoqi@0: \ aoqi@0: notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \ aoqi@0: "An `interval' counter that determines how frequently " \ aoqi@0: "we simulate overflow; a smaller number increases frequency") \ aoqi@0: \ aoqi@0: product(uintx, ParGCDesiredObjsFromOverflowList, 20, \ aoqi@0: "The desired number of objects to claim from the overflow list") \ aoqi@0: \ aoqi@0: diagnostic(uintx, ParGCStridesPerThread, 2, \ aoqi@0: "The number of strides per worker thread that we divide up the " \ aoqi@0: "card table scanning work into") \ aoqi@0: \ aoqi@0: diagnostic(intx, ParGCCardsPerStrideChunk, 256, \ aoqi@0: "The number of cards in each chunk of the parallel chunks used " \ aoqi@0: "during card table scanning") \ aoqi@0: \ aoqi@0: product(uintx, CMSParPromoteBlocksToClaim, 16, \ aoqi@0: "Number of blocks to attempt to claim when refilling CMS LAB's " \ aoqi@0: "for parallel GC") \ aoqi@0: \ aoqi@0: product(uintx, OldPLABWeight, 50, \ aoqi@0: "Percentage (0-100) used to weight the current sample when " \ aoqi@0: "computing exponentially decaying average for resizing " \ aoqi@0: "CMSParPromoteBlocksToClaim") \ aoqi@0: \ aoqi@0: product(bool, ResizeOldPLAB, true, \ aoqi@0: "Dynamically resize (old gen) promotion LAB's") \ aoqi@0: \ aoqi@0: product(bool, PrintOldPLAB, false, \ aoqi@0: "Print (old gen) promotion LAB's sizing decisions") \ aoqi@0: \ aoqi@0: product(uintx, CMSOldPLABMin, 16, \ aoqi@0: "Minimum size of CMS gen promotion LAB caches per worker " \ aoqi@0: "per block size") \ aoqi@0: \ aoqi@0: product(uintx, CMSOldPLABMax, 1024, \ aoqi@0: "Maximum size of CMS gen promotion LAB caches per worker " \ aoqi@0: "per block size") \ aoqi@0: \ aoqi@0: product(uintx, CMSOldPLABNumRefills, 4, \ aoqi@0: "Nominal number of refills of CMS gen promotion LAB cache " \ aoqi@0: "per worker per block size") \ aoqi@0: \ aoqi@0: product(bool, CMSOldPLABResizeQuicker, false, \ aoqi@0: "React on-the-fly during a scavenge to a sudden " \ aoqi@0: "change in block demand rate") \ aoqi@0: \ aoqi@0: product(uintx, CMSOldPLABToleranceFactor, 4, \ aoqi@0: "The tolerance of the phase-change detector for on-the-fly " \ aoqi@0: "PLAB resizing during a scavenge") \ aoqi@0: \ aoqi@0: product(uintx, CMSOldPLABReactivityFactor, 2, \ aoqi@0: "The gain in the feedback loop for on-the-fly PLAB resizing " \ aoqi@0: "during a scavenge") \ aoqi@0: \ aoqi@0: product(bool, AlwaysPreTouch, false, \ aoqi@0: "Force all freshly committed pages to be pre-touched") \ aoqi@0: \ aoqi@0: product_pd(uintx, CMSYoungGenPerWorker, \ aoqi@0: "The maximum size of young gen chosen by default per GC worker " \ aoqi@0: "thread available") \ aoqi@0: \ aoqi@0: product(bool, CMSIncrementalMode, false, \ aoqi@0: "Whether CMS GC should operate in \"incremental\" mode") \ aoqi@0: \ aoqi@0: product(uintx, CMSIncrementalDutyCycle, 10, \ aoqi@0: "Percentage (0-100) of CMS incremental mode duty cycle. If " \ aoqi@0: "CMSIncrementalPacing is enabled, then this is just the initial " \ aoqi@0: "value.") \ aoqi@0: \ aoqi@0: product(bool, CMSIncrementalPacing, true, \ aoqi@0: "Whether the CMS incremental mode duty cycle should be " \ aoqi@0: "automatically adjusted") \ aoqi@0: \ aoqi@0: product(uintx, CMSIncrementalDutyCycleMin, 0, \ aoqi@0: "Minimum percentage (0-100) of the CMS incremental duty cycle " \ aoqi@0: "used when CMSIncrementalPacing is enabled") \ aoqi@0: \ aoqi@0: product(uintx, CMSIncrementalSafetyFactor, 10, \ aoqi@0: "Percentage (0-100) used to add conservatism when computing the " \ aoqi@0: "duty cycle") \ aoqi@0: \ aoqi@0: product(uintx, CMSIncrementalOffset, 0, \ aoqi@0: "Percentage (0-100) by which the CMS incremental mode duty cycle "\ aoqi@0: "is shifted to the right within the period between young GCs") \ aoqi@0: \ aoqi@0: product(uintx, CMSExpAvgFactor, 50, \ aoqi@0: "Percentage (0-100) used to weigh the current sample when " \ aoqi@0: "computing exponential averages for CMS statistics") \ aoqi@0: \ aoqi@0: product(uintx, CMS_FLSWeight, 75, \ aoqi@0: "Percentage (0-100) used to weigh the current sample when " \ aoqi@0: "computing exponentially decaying averages for CMS FLS " \ aoqi@0: "statistics") \ aoqi@0: \ aoqi@0: product(uintx, CMS_FLSPadding, 1, \ aoqi@0: "The multiple of deviation from mean to use for buffering " \ aoqi@0: "against volatility in free list demand") \ aoqi@0: \ aoqi@0: product(uintx, FLSCoalescePolicy, 2, \ aoqi@0: "CMS: aggressiveness level for coalescing, increasing " \ aoqi@0: "from 0 to 4") \ aoqi@0: \ aoqi@0: product(bool, FLSAlwaysCoalesceLarge, false, \ aoqi@0: "CMS: larger free blocks are always available for coalescing") \ aoqi@0: \ aoqi@0: product(double, FLSLargestBlockCoalesceProximity, 0.99, \ aoqi@0: "CMS: the smaller the percentage the greater the coalescing " \ aoqi@0: "force") \ aoqi@0: \ aoqi@0: product(double, CMSSmallCoalSurplusPercent, 1.05, \ aoqi@0: "CMS: the factor by which to inflate estimated demand of small " \ aoqi@0: "block sizes to prevent coalescing with an adjoining block") \ aoqi@0: \ aoqi@0: product(double, CMSLargeCoalSurplusPercent, 0.95, \ aoqi@0: "CMS: the factor by which to inflate estimated demand of large " \ aoqi@0: "block sizes to prevent coalescing with an adjoining block") \ aoqi@0: \ aoqi@0: product(double, CMSSmallSplitSurplusPercent, 1.10, \ aoqi@0: "CMS: the factor by which to inflate estimated demand of small " \ aoqi@0: "block sizes to prevent splitting to supply demand for smaller " \ aoqi@0: "blocks") \ aoqi@0: \ aoqi@0: product(double, CMSLargeSplitSurplusPercent, 1.00, \ aoqi@0: "CMS: the factor by which to inflate estimated demand of large " \ aoqi@0: "block sizes to prevent splitting to supply demand for smaller " \ aoqi@0: "blocks") \ aoqi@0: \ aoqi@0: product(bool, CMSExtrapolateSweep, false, \ aoqi@0: "CMS: cushion for block demand during sweep") \ aoqi@0: \ aoqi@0: product(uintx, CMS_SweepWeight, 75, \ aoqi@0: "Percentage (0-100) used to weight the current sample when " \ aoqi@0: "computing exponentially decaying average for inter-sweep " \ aoqi@0: "duration") \ aoqi@0: \ aoqi@0: product(uintx, CMS_SweepPadding, 1, \ aoqi@0: "The multiple of deviation from mean to use for buffering " \ aoqi@0: "against volatility in inter-sweep duration") \ aoqi@0: \ aoqi@0: product(uintx, CMS_SweepTimerThresholdMillis, 10, \ aoqi@0: "Skip block flux-rate sampling for an epoch unless inter-sweep " \ aoqi@0: "duration exceeds this threshold in milliseconds") \ aoqi@0: \ aoqi@0: develop(bool, CMSTraceIncrementalMode, false, \ aoqi@0: "Trace CMS incremental mode") \ aoqi@0: \ aoqi@0: develop(bool, CMSTraceIncrementalPacing, false, \ aoqi@0: "Trace CMS incremental mode pacing computation") \ aoqi@0: \ aoqi@0: develop(bool, CMSTraceThreadState, false, \ aoqi@0: "Trace the CMS thread state (enable the trace_state() method)") \ aoqi@0: \ aoqi@0: product(bool, CMSClassUnloadingEnabled, true, \ aoqi@0: "Whether class unloading enabled when using CMS GC") \ aoqi@0: \ aoqi@0: product(uintx, CMSClassUnloadingMaxInterval, 0, \ aoqi@0: "When CMS class unloading is enabled, the maximum CMS cycle " \ aoqi@0: "count for which classes may not be unloaded") \ aoqi@0: \ aoqi@0: product(bool, CMSCompactWhenClearAllSoftRefs, true, \ aoqi@0: "Compact when asked to collect CMS gen with " \ aoqi@0: "clear_all_soft_refs()") \ aoqi@0: \ aoqi@0: product(bool, UseCMSCompactAtFullCollection, true, \ aoqi@0: "Use Mark-Sweep-Compact algorithm at full collections") \ aoqi@0: \ aoqi@0: product(uintx, CMSFullGCsBeforeCompaction, 0, \ aoqi@0: "Number of CMS full collection done before compaction if > 0") \ aoqi@0: \ aoqi@0: develop(intx, CMSDictionaryChoice, 0, \ aoqi@0: "Use BinaryTreeDictionary as default in the CMS generation") \ aoqi@0: \ aoqi@0: product(uintx, CMSIndexedFreeListReplenish, 4, \ aoqi@0: "Replenish an indexed free list with this number of chunks") \ aoqi@0: \ aoqi@0: product(bool, CMSReplenishIntermediate, true, \ aoqi@0: "Replenish all intermediate free-list caches") \ aoqi@0: \ aoqi@0: product(bool, CMSSplitIndexedFreeListBlocks, true, \ aoqi@0: "When satisfying batched demand, split blocks from the " \ aoqi@0: "IndexedFreeList whose size is a multiple of requested size") \ aoqi@0: \ aoqi@0: product(bool, CMSLoopWarn, false, \ aoqi@0: "Warn in case of excessive CMS looping") \ aoqi@0: \ aoqi@0: develop(bool, CMSOverflowEarlyRestoration, false, \ aoqi@0: "Restore preserved marks early") \ aoqi@0: \ aoqi@0: product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \ aoqi@0: "Size of marking stack") \ aoqi@0: \ aoqi@0: product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \ aoqi@0: "Maximum size of marking stack") \ aoqi@0: \ aoqi@0: notproduct(bool, CMSMarkStackOverflowALot, false, \ aoqi@0: "Simulate frequent marking stack / work queue overflow") \ aoqi@0: \ aoqi@0: notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \ aoqi@0: "An \"interval\" counter that determines how frequently " \ aoqi@0: "to simulate overflow; a smaller number increases frequency") \ aoqi@0: \ aoqi@0: product(uintx, CMSMaxAbortablePrecleanLoops, 0, \ aoqi@0: "(Temporary, subject to experimentation) " \ aoqi@0: "Maximum number of abortable preclean iterations, if > 0") \ aoqi@0: \ aoqi@0: product(intx, CMSMaxAbortablePrecleanTime, 5000, \ aoqi@0: "(Temporary, subject to experimentation) " \ aoqi@0: "Maximum time in abortable preclean (in milliseconds)") \ aoqi@0: \ aoqi@0: product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \ aoqi@0: "(Temporary, subject to experimentation) " \ aoqi@0: "Nominal minimum work per abortable preclean iteration") \ aoqi@0: \ aoqi@0: manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \ aoqi@0: "(Temporary, subject to experimentation) " \ aoqi@0: "Time that we sleep between iterations when not given " \ aoqi@0: "enough work per iteration") \ aoqi@0: \ aoqi@0: product(uintx, CMSRescanMultiple, 32, \ aoqi@0: "Size (in cards) of CMS parallel rescan task") \ aoqi@0: \ aoqi@0: product(uintx, CMSConcMarkMultiple, 32, \ aoqi@0: "Size (in cards) of CMS concurrent MT marking task") \ aoqi@0: \ aoqi@0: product(bool, CMSAbortSemantics, false, \ aoqi@0: "Whether abort-on-overflow semantics is implemented") \ aoqi@0: \ aoqi@0: product(bool, CMSParallelInitialMarkEnabled, true, \ aoqi@0: "Use the parallel initial mark.") \ aoqi@0: \ aoqi@0: product(bool, CMSParallelRemarkEnabled, true, \ aoqi@0: "Whether parallel remark enabled (only if ParNewGC)") \ aoqi@0: \ aoqi@0: product(bool, CMSParallelSurvivorRemarkEnabled, true, \ aoqi@0: "Whether parallel remark of survivor space " \ aoqi@0: "enabled (effective only if CMSParallelRemarkEnabled)") \ aoqi@0: \ aoqi@0: product(bool, CMSPLABRecordAlways, true, \ aoqi@0: "Always record survivor space PLAB boundaries (effective only " \ aoqi@0: "if CMSParallelSurvivorRemarkEnabled)") \ aoqi@0: \ aoqi@0: product(bool, CMSEdenChunksRecordAlways, true, \ aoqi@0: "Always record eden chunks used for the parallel initial mark " \ aoqi@0: "or remark of eden") \ aoqi@0: \ aoqi@0: product(bool, CMSPrintEdenSurvivorChunks, false, \ aoqi@0: "Print the eden and the survivor chunks used for the parallel " \ aoqi@0: "initial mark or remark of the eden/survivor spaces") \ aoqi@0: \ aoqi@0: product(bool, CMSConcurrentMTEnabled, true, \ aoqi@0: "Whether multi-threaded concurrent work enabled " \ aoqi@0: "(effective only if ParNewGC)") \ aoqi@0: \ aoqi@0: product(bool, CMSPrecleaningEnabled, true, \ aoqi@0: "Whether concurrent precleaning enabled") \ aoqi@0: \ aoqi@0: product(uintx, CMSPrecleanIter, 3, \ aoqi@0: "Maximum number of precleaning iteration passes") \ aoqi@0: \ aoqi@0: product(uintx, CMSPrecleanNumerator, 2, \ aoqi@0: "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ aoqi@0: "ratio") \ aoqi@0: \ aoqi@0: product(uintx, CMSPrecleanDenominator, 3, \ aoqi@0: "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \ aoqi@0: "ratio") \ aoqi@0: \ aoqi@0: product(bool, CMSPrecleanRefLists1, true, \ aoqi@0: "Preclean ref lists during (initial) preclean phase") \ aoqi@0: \ aoqi@0: product(bool, CMSPrecleanRefLists2, false, \ aoqi@0: "Preclean ref lists during abortable preclean phase") \ aoqi@0: \ aoqi@0: product(bool, CMSPrecleanSurvivors1, false, \ aoqi@0: "Preclean survivors during (initial) preclean phase") \ aoqi@0: \ aoqi@0: product(bool, CMSPrecleanSurvivors2, true, \ aoqi@0: "Preclean survivors during abortable preclean phase") \ aoqi@0: \ aoqi@0: product(uintx, CMSPrecleanThreshold, 1000, \ aoqi@0: "Do not iterate again if number of dirty cards is less than this")\ aoqi@0: \ aoqi@0: product(bool, CMSCleanOnEnter, true, \ aoqi@0: "Clean-on-enter optimization for reducing number of dirty cards") \ aoqi@0: \ aoqi@0: product(uintx, CMSRemarkVerifyVariant, 1, \ aoqi@0: "Choose variant (1,2) of verification following remark") \ aoqi@0: \ aoqi@0: product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \ aoqi@0: "If Eden size is below this, do not try to schedule remark") \ aoqi@0: \ aoqi@0: product(uintx, CMSScheduleRemarkEdenPenetration, 50, \ aoqi@0: "The Eden occupancy percentage (0-100) at which " \ aoqi@0: "to try and schedule remark pause") \ aoqi@0: \ aoqi@0: product(uintx, CMSScheduleRemarkSamplingRatio, 5, \ aoqi@0: "Start sampling eden top at least before young gen " \ aoqi@0: "occupancy reaches 1/ of the size at which " \ aoqi@0: "we plan to schedule remark") \ aoqi@0: \ aoqi@0: product(uintx, CMSSamplingGrain, 16*K, \ aoqi@0: "The minimum distance between eden samples for CMS (see above)") \ aoqi@0: \ aoqi@0: product(bool, CMSScavengeBeforeRemark, false, \ aoqi@0: "Attempt scavenge before the CMS remark step") \ aoqi@0: \ aoqi@0: develop(bool, CMSTraceSweeper, false, \ aoqi@0: "Trace some actions of the CMS sweeper") \ aoqi@0: \ aoqi@0: product(uintx, CMSWorkQueueDrainThreshold, 10, \ aoqi@0: "Don't drain below this size per parallel worker/thief") \ aoqi@0: \ aoqi@0: manageable(intx, CMSWaitDuration, 2000, \ aoqi@0: "Time in milliseconds that CMS thread waits for young GC") \ aoqi@0: \ aoqi@0: develop(uintx, CMSCheckInterval, 1000, \ aoqi@0: "Interval in milliseconds that CMS thread checks if it " \ aoqi@0: "should start a collection cycle") \ aoqi@0: \ aoqi@0: product(bool, CMSYield, true, \ aoqi@0: "Yield between steps of CMS") \ aoqi@0: \ aoqi@0: product(uintx, CMSBitMapYieldQuantum, 10*M, \ aoqi@0: "Bitmap operations should process at most this many bits " \ aoqi@0: "between yields") \ aoqi@0: \ aoqi@0: product(bool, CMSDumpAtPromotionFailure, false, \ aoqi@0: "Dump useful information about the state of the CMS old " \ aoqi@0: "generation upon a promotion failure") \ aoqi@0: \ aoqi@0: product(bool, CMSPrintChunksInDump, false, \ aoqi@0: "In a dump enabled by CMSDumpAtPromotionFailure, include " \ aoqi@0: "more detailed information about the free chunks") \ aoqi@0: \ aoqi@0: product(bool, CMSPrintObjectsInDump, false, \ aoqi@0: "In a dump enabled by CMSDumpAtPromotionFailure, include " \ aoqi@0: "more detailed information about the allocated objects") \ aoqi@0: \ aoqi@0: diagnostic(bool, FLSVerifyAllHeapReferences, false, \ aoqi@0: "Verify that all references across the FLS boundary " \ aoqi@0: "are to valid objects") \ aoqi@0: \ aoqi@0: diagnostic(bool, FLSVerifyLists, false, \ aoqi@0: "Do lots of (expensive) FreeListSpace verification") \ aoqi@0: \ aoqi@0: diagnostic(bool, FLSVerifyIndexTable, false, \ aoqi@0: "Do lots of (expensive) FLS index table verification") \ aoqi@0: \ aoqi@0: develop(bool, FLSVerifyDictionary, false, \ aoqi@0: "Do lots of (expensive) FLS dictionary verification") \ aoqi@0: \ aoqi@0: develop(bool, VerifyBlockOffsetArray, false, \ aoqi@0: "Do (expensive) block offset array verification") \ aoqi@0: \ aoqi@0: diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false, \ aoqi@0: "Maintain _unallocated_block in BlockOffsetArray " \ aoqi@0: "(currently applicable only to CMS collector)") \ aoqi@0: \ aoqi@0: develop(bool, TraceCMSState, false, \ aoqi@0: "Trace the state of the CMS collection") \ aoqi@0: \ aoqi@0: product(intx, RefDiscoveryPolicy, 0, \ aoqi@0: "Select type of reference discovery policy: " \ aoqi@0: "reference-based(0) or referent-based(1)") \ aoqi@0: \ aoqi@0: product(bool, ParallelRefProcEnabled, false, \ aoqi@0: "Enable parallel reference processing whenever possible") \ aoqi@0: \ aoqi@0: product(bool, ParallelRefProcBalancingEnabled, true, \ aoqi@0: "Enable balancing of reference processing queues") \ aoqi@0: \ aoqi@0: product(uintx, CMSTriggerRatio, 80, \ aoqi@0: "Percentage of MinHeapFreeRatio in CMS generation that is " \ aoqi@0: "allocated before a CMS collection cycle commences") \ aoqi@0: \ aoqi@0: product(uintx, CMSBootstrapOccupancy, 50, \ aoqi@0: "Percentage CMS generation occupancy at which to " \ aoqi@0: "initiate CMS collection for bootstrapping collection stats") \ aoqi@0: \ aoqi@0: product(intx, CMSInitiatingOccupancyFraction, -1, \ aoqi@0: "Percentage CMS generation occupancy to start a CMS collection " \ aoqi@0: "cycle. A negative value means that CMSTriggerRatio is used") \ aoqi@0: \ aoqi@0: product(uintx, InitiatingHeapOccupancyPercent, 45, \ aoqi@0: "Percentage of the (entire) heap occupancy to start a " \ aoqi@0: "concurrent GC cycle. It is used by GCs that trigger a " \ aoqi@0: "concurrent GC cycle based on the occupancy of the entire heap, " \ aoqi@0: "not just one of the generations (e.g., G1). A value of 0 " \ aoqi@0: "denotes 'do constant GC cycles'.") \ aoqi@0: \ aoqi@0: product(bool, UseCMSInitiatingOccupancyOnly, false, \ aoqi@0: "Only use occupancy as a criterion for starting a CMS collection")\ aoqi@0: \ aoqi@0: product(uintx, CMSIsTooFullPercentage, 98, \ aoqi@0: "An absolute ceiling above which CMS will always consider the " \ aoqi@0: "unloading of classes when class unloading is enabled") \ aoqi@0: \ aoqi@0: develop(bool, CMSTestInFreeList, false, \ aoqi@0: "Check if the coalesced range is already in the " \ aoqi@0: "free lists as claimed") \ aoqi@0: \ aoqi@0: notproduct(bool, CMSVerifyReturnedBytes, false, \ aoqi@0: "Check that all the garbage collected was returned to the " \ aoqi@0: "free lists") \ aoqi@0: \ aoqi@0: notproduct(bool, ScavengeALot, false, \ aoqi@0: "Force scavenge at every Nth exit from the runtime system " \ aoqi@0: "(N=ScavengeALotInterval)") \ aoqi@0: \ aoqi@0: develop(bool, FullGCALot, false, \ aoqi@0: "Force full gc at every Nth exit from the runtime system " \ aoqi@0: "(N=FullGCALotInterval)") \ aoqi@0: \ aoqi@0: notproduct(bool, GCALotAtAllSafepoints, false, \ aoqi@0: "Enforce ScavengeALot/GCALot at all potential safepoints") \ aoqi@0: \ aoqi@0: product(bool, PrintPromotionFailure, false, \ aoqi@0: "Print additional diagnostic information following " \ aoqi@0: "promotion failure") \ aoqi@0: \ aoqi@0: notproduct(bool, PromotionFailureALot, false, \ aoqi@0: "Use promotion failure handling on every youngest generation " \ aoqi@0: "collection") \ aoqi@0: \ aoqi@0: develop(uintx, PromotionFailureALotCount, 1000, \ aoqi@0: "Number of promotion failures occurring at ParGCAllocBuffer " \ aoqi@0: "refill attempts (ParNew) or promotion attempts " \ aoqi@0: "(other young collectors)") \ aoqi@0: \ aoqi@0: develop(uintx, PromotionFailureALotInterval, 5, \ aoqi@0: "Total collections between promotion failures alot") \ aoqi@0: \ aoqi@0: experimental(uintx, WorkStealingSleepMillis, 1, \ aoqi@0: "Sleep time when sleep is used for yields") \ aoqi@0: \ aoqi@0: experimental(uintx, WorkStealingYieldsBeforeSleep, 5000, \ aoqi@0: "Number of yields before a sleep is done during workstealing") \ aoqi@0: \ aoqi@0: experimental(uintx, WorkStealingHardSpins, 4096, \ aoqi@0: "Number of iterations in a spin loop between checks on " \ aoqi@0: "time out of hard spin") \ aoqi@0: \ aoqi@0: experimental(uintx, WorkStealingSpinToYieldRatio, 10, \ aoqi@0: "Ratio of hard spins to calls to yield") \ aoqi@0: \ aoqi@0: develop(uintx, ObjArrayMarkingStride, 512, \ aoqi@0: "Number of object array elements to push onto the marking stack " \ aoqi@0: "before pushing a continuation entry") \ aoqi@0: \ aoqi@0: develop(bool, MetadataAllocationFailALot, false, \ aoqi@0: "Fail metadata allocations at intervals controlled by " \ aoqi@0: "MetadataAllocationFailALotInterval") \ aoqi@0: \ aoqi@0: develop(uintx, MetadataAllocationFailALotInterval, 1000, \ aoqi@0: "Metadata allocation failure a lot interval") \ aoqi@0: \ aoqi@0: develop(bool, TraceMetadataChunkAllocation, false, \ aoqi@0: "Trace chunk metadata allocations") \ aoqi@0: \ aoqi@0: product(bool, TraceMetadataHumongousAllocation, false, \ aoqi@0: "Trace humongous metadata allocations") \ aoqi@0: \ aoqi@0: develop(bool, TraceMetavirtualspaceAllocation, false, \ aoqi@0: "Trace virtual space metadata allocations") \ aoqi@0: \ aoqi@0: notproduct(bool, ExecuteInternalVMTests, false, \ aoqi@0: "Enable execution of internal VM tests") \ aoqi@0: \ aoqi@0: notproduct(bool, VerboseInternalVMTests, false, \ aoqi@0: "Turn on logging for internal VM tests.") \ aoqi@0: \ aoqi@0: product_pd(bool, UseTLAB, "Use thread-local object allocation") \ aoqi@0: \ aoqi@0: product_pd(bool, ResizeTLAB, \ aoqi@0: "Dynamically resize TLAB size for threads") \ aoqi@0: \ aoqi@0: product(bool, ZeroTLAB, false, \ aoqi@0: "Zero out the newly created TLAB") \ aoqi@0: \ aoqi@0: product(bool, FastTLABRefill, true, \ aoqi@0: "Use fast TLAB refill code") \ aoqi@0: \ aoqi@0: product(bool, PrintTLAB, false, \ aoqi@0: "Print various TLAB related information") \ aoqi@0: \ aoqi@0: product(bool, TLABStats, true, \ aoqi@0: "Provide more detailed and expensive TLAB statistics " \ aoqi@0: "(with PrintTLAB)") \ aoqi@0: \ aoqi@0: EMBEDDED_ONLY(product(bool, LowMemoryProtection, true, \ aoqi@0: "Enable LowMemoryProtection")) \ aoqi@0: \ aoqi@0: product_pd(bool, NeverActAsServerClassMachine, \ aoqi@0: "Never act like a server-class machine") \ aoqi@0: \ aoqi@0: product(bool, AlwaysActAsServerClassMachine, false, \ aoqi@0: "Always act like a server-class machine") \ aoqi@0: \ aoqi@0: product_pd(uint64_t, MaxRAM, \ aoqi@0: "Real memory size (in bytes) used to set maximum heap size") \ aoqi@0: \ aoqi@0: product(uintx, ErgoHeapSizeLimit, 0, \ aoqi@0: "Maximum ergonomically set heap size (in bytes); zero means use " \ aoqi@0: "MaxRAM / MaxRAMFraction") \ aoqi@0: \ aoqi@0: product(uintx, MaxRAMFraction, 4, \ aoqi@0: "Maximum fraction (1/n) of real memory used for maximum heap " \ aoqi@0: "size") \ aoqi@0: \ aoqi@0: product(uintx, DefaultMaxRAMFraction, 4, \ aoqi@0: "Maximum fraction (1/n) of real memory used for maximum heap " \ aoqi@0: "size; deprecated: to be renamed to MaxRAMFraction") \ aoqi@0: \ aoqi@0: product(uintx, MinRAMFraction, 2, \ aoqi@0: "Minimum fraction (1/n) of real memory used for maxmimum heap " \ aoqi@0: "size on systems with small physical memory size") \ aoqi@0: \ aoqi@0: product(uintx, InitialRAMFraction, 64, \ aoqi@0: "Fraction (1/n) of real memory used for initial heap size") \ aoqi@0: \ aoqi@0: develop(uintx, MaxVirtMemFraction, 2, \ aoqi@0: "Maximum fraction (1/n) of virtual memory used for ergonomically "\ aoqi@0: "determining maximum heap size") \ aoqi@0: \ aoqi@0: product(bool, UseAutoGCSelectPolicy, false, \ aoqi@0: "Use automatic collection selection policy") \ aoqi@0: \ aoqi@0: product(uintx, AutoGCSelectPauseMillis, 5000, \ aoqi@0: "Automatic GC selection pause threshold in milliseconds") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveSizePolicy, true, \ aoqi@0: "Use adaptive generation sizing policies") \ aoqi@0: \ aoqi@0: product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \ aoqi@0: "Use adaptive survivor sizing policies") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \ aoqi@0: "Use adaptive young-old sizing policies at minor collections") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \ aoqi@0: "Use adaptive young-old sizing policies at major collections") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \ aoqi@0: "Include statistics from System.gc() for adaptive size policy") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveGCBoundary, false, \ aoqi@0: "Allow young-old boundary to move") \ aoqi@0: \ aoqi@0: develop(bool, TraceAdaptiveGCBoundary, false, \ aoqi@0: "Trace young-old boundary moves") \ aoqi@0: \ aoqi@0: develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \ aoqi@0: "Resize the virtual spaces of the young or old generations") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizeThroughPutPolicy, 0, \ aoqi@0: "Policy for changing generation size for throughput goals") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizePausePolicy, 0, \ aoqi@0: "Policy for changing generation size for pause goals") \ aoqi@0: \ aoqi@0: develop(bool, PSAdjustTenuredGenForMinorPause, false, \ aoqi@0: "Adjust tenured generation to achieve a minor pause goal") \ aoqi@0: \ aoqi@0: develop(bool, PSAdjustYoungGenForMajorPause, false, \ aoqi@0: "Adjust young generation to achieve a major pause goal") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \ aoqi@0: "Number of steps where heuristics is used before data is used") \ aoqi@0: \ aoqi@0: develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \ aoqi@0: "Number of collections before the adaptive sizing is started") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizePolicyOutputInterval, 0, \ aoqi@0: "Collection interval for printing information; zero means never") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \ aoqi@0: "Use adaptive minimum footprint as a goal") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizePolicyWeight, 10, \ aoqi@0: "Weight given to exponential resizing, between 0 and 100") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveTimeWeight, 25, \ aoqi@0: "Weight given to time in adaptive policy, between 0 and 100") \ aoqi@0: \ aoqi@0: product(uintx, PausePadding, 1, \ aoqi@0: "How much buffer to keep for pause time") \ aoqi@0: \ aoqi@0: product(uintx, PromotedPadding, 3, \ aoqi@0: "How much buffer to keep for promotion failure") \ aoqi@0: \ aoqi@0: product(uintx, SurvivorPadding, 3, \ aoqi@0: "How much buffer to keep for survivor overflow") \ aoqi@0: \ aoqi@0: product(uintx, ThresholdTolerance, 10, \ aoqi@0: "Allowed collection cost difference between generations") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \ aoqi@0: "If collection costs are within margin, reduce both by full " \ aoqi@0: "delta") \ aoqi@0: \ aoqi@0: product(uintx, YoungGenerationSizeIncrement, 20, \ aoqi@0: "Adaptive size percentage change in young generation") \ aoqi@0: \ aoqi@0: product(uintx, YoungGenerationSizeSupplement, 80, \ aoqi@0: "Supplement to YoungedGenerationSizeIncrement used at startup") \ aoqi@0: \ aoqi@0: product(uintx, YoungGenerationSizeSupplementDecay, 8, \ aoqi@0: "Decay factor to YoungedGenerationSizeSupplement") \ aoqi@0: \ aoqi@0: product(uintx, TenuredGenerationSizeIncrement, 20, \ aoqi@0: "Adaptive size percentage change in tenured generation") \ aoqi@0: \ aoqi@0: product(uintx, TenuredGenerationSizeSupplement, 80, \ aoqi@0: "Supplement to TenuredGenerationSizeIncrement used at startup") \ aoqi@0: \ aoqi@0: product(uintx, TenuredGenerationSizeSupplementDecay, 2, \ aoqi@0: "Decay factor to TenuredGenerationSizeIncrement") \ aoqi@0: \ aoqi@0: product(uintx, MaxGCPauseMillis, max_uintx, \ aoqi@0: "Adaptive size policy maximum GC pause time goal in millisecond, "\ aoqi@0: "or (G1 Only) the maximum GC time per MMU time slice") \ aoqi@0: \ aoqi@0: product(uintx, GCPauseIntervalMillis, 0, \ aoqi@0: "Time slice for MMU specification") \ aoqi@0: \ aoqi@0: product(uintx, MaxGCMinorPauseMillis, max_uintx, \ aoqi@0: "Adaptive size policy maximum GC minor pause time goal " \ aoqi@0: "in millisecond") \ aoqi@0: \ aoqi@0: product(uintx, GCTimeRatio, 99, \ aoqi@0: "Adaptive size policy application time to GC time ratio") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \ aoqi@0: "Adaptive size scale down factor for shrinking") \ aoqi@0: \ aoqi@0: product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \ aoqi@0: "Adaptive size decays the major cost for long major intervals") \ aoqi@0: \ aoqi@0: product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \ aoqi@0: "Time scale over which major costs decay") \ aoqi@0: \ aoqi@0: product(uintx, MinSurvivorRatio, 3, \ aoqi@0: "Minimum ratio of young generation/survivor space size") \ aoqi@0: \ aoqi@0: product(uintx, InitialSurvivorRatio, 8, \ aoqi@0: "Initial ratio of young generation/survivor space size") \ aoqi@0: \ aoqi@0: product(uintx, BaseFootPrintEstimate, 256*M, \ aoqi@0: "Estimate of footprint other than Java Heap") \ aoqi@0: \ aoqi@0: product(bool, UseGCOverheadLimit, true, \ aoqi@0: "Use policy to limit of proportion of time spent in GC " \ aoqi@0: "before an OutOfMemory error is thrown") \ aoqi@0: \ aoqi@0: product(uintx, GCTimeLimit, 98, \ aoqi@0: "Limit of the proportion of time spent in GC before " \ aoqi@0: "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)") \ aoqi@0: \ aoqi@0: product(uintx, GCHeapFreeLimit, 2, \ aoqi@0: "Minimum percentage of free space after a full GC before an " \ aoqi@0: "OutOfMemoryError is thrown (used with GCTimeLimit)") \ aoqi@0: \ aoqi@0: develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \ aoqi@0: "Number of consecutive collections before gc time limit fires") \ aoqi@0: \ aoqi@0: product(bool, PrintAdaptiveSizePolicy, false, \ aoqi@0: "Print information about AdaptiveSizePolicy") \ aoqi@0: \ aoqi@0: product(intx, PrefetchCopyIntervalInBytes, -1, \ aoqi@0: "How far ahead to prefetch destination area (<= 0 means off)") \ aoqi@0: \ aoqi@0: product(intx, PrefetchScanIntervalInBytes, -1, \ aoqi@0: "How far ahead to prefetch scan area (<= 0 means off)") \ aoqi@0: \ aoqi@0: product(intx, PrefetchFieldsAhead, -1, \ aoqi@0: "How many fields ahead to prefetch in oop scan (<= 0 means off)") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifySilently, false, \ aoqi@0: "Do not print the verification progress") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyDuringStartup, false, \ aoqi@0: "Verify memory system before executing any Java code " \ aoqi@0: "during VM initialization") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyBeforeExit, trueInDebug, \ aoqi@0: "Verify system before exiting") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyBeforeGC, false, \ aoqi@0: "Verify memory system before GC") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyAfterGC, false, \ aoqi@0: "Verify memory system after GC") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyDuringGC, false, \ aoqi@0: "Verify memory system during GC (between phases)") \ aoqi@0: \ aoqi@0: diagnostic(bool, GCParallelVerificationEnabled, true, \ aoqi@0: "Enable parallel memory system verification") \ aoqi@0: \ aoqi@0: diagnostic(bool, DeferInitialCardMark, false, \ aoqi@0: "When +ReduceInitialCardMarks, explicitly defer any that " \ aoqi@0: "may arise from new_pre_store_barrier") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyRememberedSets, false, \ aoqi@0: "Verify GC remembered sets") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyObjectStartArray, true, \ aoqi@0: "Verify GC object start array if verify before/after") \ aoqi@0: \ aoqi@0: product(bool, DisableExplicitGC, false, \ aoqi@0: "Ignore calls to System.gc()") \ aoqi@0: \ aoqi@0: notproduct(bool, CheckMemoryInitialization, false, \ aoqi@0: "Check memory initialization") \ aoqi@0: \ aoqi@0: product(bool, CollectGen0First, false, \ aoqi@0: "Collect youngest generation before each full GC") \ aoqi@0: \ aoqi@0: diagnostic(bool, BindCMSThreadToCPU, false, \ aoqi@0: "Bind CMS Thread to CPU if possible") \ aoqi@0: \ aoqi@0: diagnostic(uintx, CPUForCMSThread, 0, \ aoqi@0: "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \ aoqi@0: \ aoqi@1: product(bool, BindGCTaskThreadsToCPUs, MIPS64_ONLY(true) NOT_MIPS64(false), \ aoqi@0: "Bind GCTaskThreads to CPUs if possible") \ aoqi@0: \ aoqi@0: product(bool, UseGCTaskAffinity, false, \ aoqi@0: "Use worker affinity when asking for GCTasks") \ aoqi@0: \ aoqi@0: product(uintx, ProcessDistributionStride, 4, \ aoqi@0: "Stride through processors when distributing processes") \ aoqi@0: \ aoqi@0: product(uintx, CMSCoordinatorYieldSleepCount, 10, \ aoqi@0: "Number of times the coordinator GC thread will sleep while " \ aoqi@0: "yielding before giving up and resuming GC") \ aoqi@0: \ aoqi@0: product(uintx, CMSYieldSleepCount, 0, \ aoqi@0: "Number of times a GC thread (minus the coordinator) " \ aoqi@0: "will sleep while yielding before giving up and resuming GC") \ aoqi@0: \ aoqi@0: /* gc tracing */ \ aoqi@0: manageable(bool, PrintGC, false, \ aoqi@0: "Print message at garbage collection") \ aoqi@0: \ aoqi@0: manageable(bool, PrintGCDetails, false, \ aoqi@0: "Print more details at garbage collection") \ aoqi@0: \ aoqi@0: manageable(bool, PrintGCDateStamps, false, \ aoqi@0: "Print date stamps at garbage collection") \ aoqi@0: \ aoqi@0: manageable(bool, PrintGCTimeStamps, false, \ aoqi@0: "Print timestamps at garbage collection") \ aoqi@0: \ aoqi@0: product(bool, PrintGCTaskTimeStamps, false, \ aoqi@0: "Print timestamps for individual gc worker thread tasks") \ aoqi@0: \ aoqi@0: develop(intx, ConcGCYieldTimeout, 0, \ aoqi@0: "If non-zero, assert that GC threads yield within this " \ aoqi@0: "number of milliseconds") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceMarkSweep, false, \ aoqi@0: "Trace mark sweep") \ aoqi@0: \ aoqi@0: product(bool, PrintReferenceGC, false, \ aoqi@0: "Print times spent handling reference objects during GC " \ aoqi@0: "(enabled only when PrintGCDetails)") \ aoqi@0: \ aoqi@0: develop(bool, TraceReferenceGC, false, \ aoqi@0: "Trace handling of soft/weak/final/phantom references") \ aoqi@0: \ aoqi@0: develop(bool, TraceFinalizerRegistration, false, \ aoqi@0: "Trace registration of final references") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceScavenge, false, \ aoqi@0: "Trace scavenge") \ aoqi@0: \ aoqi@0: product_rw(bool, TraceClassLoading, false, \ aoqi@0: "Trace all classes loaded") \ aoqi@0: \ aoqi@0: product(bool, TraceClassLoadingPreorder, false, \ aoqi@0: "Trace all classes loaded in order referenced (not loaded)") \ aoqi@0: \ aoqi@0: product_rw(bool, TraceClassUnloading, false, \ aoqi@0: "Trace unloading of classes") \ aoqi@0: \ aoqi@0: product_rw(bool, TraceLoaderConstraints, false, \ aoqi@0: "Trace loader constraints") \ aoqi@0: \ aoqi@0: develop(bool, TraceClassLoaderData, false, \ aoqi@0: "Trace class loader loader_data lifetime") \ aoqi@0: \ aoqi@0: product(uintx, InitialBootClassLoaderMetaspaceSize, \ aoqi@0: NOT_LP64(2200*K) LP64_ONLY(4*M), \ aoqi@0: "Initial size of the boot class loader data metaspace") \ aoqi@0: \ aoqi@0: product(bool, TraceGen0Time, false, \ aoqi@0: "Trace accumulated time for Gen 0 collection") \ aoqi@0: \ aoqi@0: product(bool, TraceGen1Time, false, \ aoqi@0: "Trace accumulated time for Gen 1 collection") \ aoqi@0: \ aoqi@0: product(bool, PrintTenuringDistribution, false, \ aoqi@0: "Print tenuring age information") \ aoqi@0: \ aoqi@0: product_rw(bool, PrintHeapAtGC, false, \ aoqi@0: "Print heap layout before and after each GC") \ aoqi@0: \ aoqi@0: product_rw(bool, PrintHeapAtGCExtended, false, \ aoqi@0: "Print extended information about the layout of the heap " \ aoqi@0: "when -XX:+PrintHeapAtGC is set") \ aoqi@0: \ aoqi@0: product(bool, PrintHeapAtSIGBREAK, true, \ aoqi@0: "Print heap layout in response to SIGBREAK") \ aoqi@0: \ aoqi@0: manageable(bool, PrintClassHistogramBeforeFullGC, false, \ aoqi@0: "Print a class histogram before any major stop-world GC") \ aoqi@0: \ aoqi@0: manageable(bool, PrintClassHistogramAfterFullGC, false, \ aoqi@0: "Print a class histogram after any major stop-world GC") \ aoqi@0: \ aoqi@0: manageable(bool, PrintClassHistogram, false, \ aoqi@0: "Print a histogram of class instances") \ aoqi@0: \ aoqi@0: develop(bool, TraceWorkGang, false, \ aoqi@0: "Trace activities of work gangs") \ aoqi@0: \ aoqi@0: product(bool, TraceParallelOldGCTasks, false, \ aoqi@0: "Trace multithreaded GC activity") \ aoqi@0: \ aoqi@0: develop(bool, TraceBlockOffsetTable, false, \ aoqi@0: "Print BlockOffsetTable maps") \ aoqi@0: \ aoqi@0: develop(bool, TraceCardTableModRefBS, false, \ aoqi@0: "Print CardTableModRefBS maps") \ aoqi@0: \ aoqi@0: develop(bool, TraceGCTaskManager, false, \ aoqi@0: "Trace actions of the GC task manager") \ aoqi@0: \ aoqi@0: develop(bool, TraceGCTaskQueue, false, \ aoqi@0: "Trace actions of the GC task queues") \ aoqi@0: \ aoqi@0: diagnostic(bool, TraceGCTaskThread, false, \ aoqi@0: "Trace actions of the GC task threads") \ aoqi@0: \ aoqi@0: product(bool, PrintParallelOldGCPhaseTimes, false, \ aoqi@0: "Print the time taken by each phase in ParallelOldGC " \ aoqi@0: "(PrintGCDetails must also be enabled)") \ aoqi@0: \ aoqi@0: develop(bool, TraceParallelOldGCMarkingPhase, false, \ aoqi@0: "Trace marking phase in ParallelOldGC") \ aoqi@0: \ aoqi@0: develop(bool, TraceParallelOldGCSummaryPhase, false, \ aoqi@0: "Trace summary phase in ParallelOldGC") \ aoqi@0: \ aoqi@0: develop(bool, TraceParallelOldGCCompactionPhase, false, \ aoqi@0: "Trace compaction phase in ParallelOldGC") \ aoqi@0: \ aoqi@0: develop(bool, TraceParallelOldGCDensePrefix, false, \ aoqi@0: "Trace dense prefix computation for ParallelOldGC") \ aoqi@0: \ aoqi@0: develop(bool, IgnoreLibthreadGPFault, false, \ aoqi@0: "Suppress workaround for libthread GP fault") \ aoqi@0: \ aoqi@0: product(bool, PrintJNIGCStalls, false, \ aoqi@0: "Print diagnostic message when GC is stalled " \ aoqi@0: "by JNI critical section") \ aoqi@0: \ aoqi@0: experimental(double, ObjectCountCutOffPercent, 0.5, \ aoqi@0: "The percentage of the used heap that the instances of a class " \ aoqi@0: "must occupy for the class to generate a trace event") \ aoqi@0: \ aoqi@0: /* GC log rotation setting */ \ aoqi@0: \ aoqi@0: product(bool, UseGCLogFileRotation, false, \ aoqi@0: "Rotate gclog files (for long running applications). It requires "\ aoqi@0: "-Xloggc:") \ aoqi@0: \ aoqi@0: product(uintx, NumberOfGCLogFiles, 0, \ aoqi@0: "Number of gclog files in rotation " \ aoqi@0: "(default: 0, no rotation)") \ aoqi@0: \ aoqi@0: product(uintx, GCLogFileSize, 8*K, \ aoqi@0: "GC log file size, requires UseGCLogFileRotation. " \ aoqi@0: "Set to 0 to only trigger rotation via jcmd") \ aoqi@0: \ aoqi@0: /* JVMTI heap profiling */ \ aoqi@0: \ aoqi@0: diagnostic(bool, TraceJVMTIObjectTagging, false, \ aoqi@0: "Trace JVMTI object tagging calls") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyBeforeIteration, false, \ aoqi@0: "Verify memory system before JVMTI iteration") \ aoqi@0: \ aoqi@0: /* compiler interface */ \ aoqi@0: \ aoqi@0: develop(bool, CIPrintCompilerName, false, \ aoqi@0: "when CIPrint is active, print the name of the active compiler") \ aoqi@0: \ aoqi@0: develop(bool, CIPrintCompileQueue, false, \ aoqi@0: "display the contents of the compile queue whenever a " \ aoqi@0: "compilation is enqueued") \ aoqi@0: \ aoqi@0: develop(bool, CIPrintRequests, false, \ aoqi@0: "display every request for compilation") \ aoqi@0: \ aoqi@0: product(bool, CITime, false, \ aoqi@0: "collect timing information for compilation") \ aoqi@0: \ aoqi@0: develop(bool, CITimeEach, false, \ aoqi@0: "display timing information after each successful compilation") \ aoqi@0: \ aoqi@0: develop(bool, CICountOSR, false, \ aoqi@0: "use a separate counter when assigning ids to osr compilations") \ aoqi@0: \ aoqi@0: develop(bool, CICompileNatives, true, \ aoqi@0: "compile native methods if supported by the compiler") \ aoqi@0: \ aoqi@0: develop_pd(bool, CICompileOSR, \ aoqi@0: "compile on stack replacement methods if supported by the " \ aoqi@0: "compiler") \ aoqi@0: \ aoqi@0: develop(bool, CIPrintMethodCodes, false, \ aoqi@0: "print method bytecodes of the compiled code") \ aoqi@0: \ aoqi@0: develop(bool, CIPrintTypeFlow, false, \ aoqi@0: "print the results of ciTypeFlow analysis") \ aoqi@0: \ aoqi@0: develop(bool, CITraceTypeFlow, false, \ aoqi@0: "detailed per-bytecode tracing of ciTypeFlow analysis") \ aoqi@0: \ aoqi@0: develop(intx, OSROnlyBCI, -1, \ aoqi@0: "OSR only at this bci. Negative values mean exclude that bci") \ aoqi@0: \ aoqi@0: /* compiler */ \ aoqi@0: \ aoqi@0: product(intx, CICompilerCount, CI_COMPILER_COUNT, \ aoqi@0: "Number of compiler threads to run") \ aoqi@0: \ aoqi@0: product(intx, CompilationPolicyChoice, 0, \ aoqi@0: "which compilation policy (0/1)") \ aoqi@0: \ aoqi@0: develop(bool, UseStackBanging, true, \ aoqi@0: "use stack banging for stack overflow checks (required for " \ aoqi@0: "proper StackOverflow handling; disable only to measure cost " \ aoqi@0: "of stackbanging)") \ aoqi@0: \ aoqi@0: develop(bool, UseStrictFP, true, \ aoqi@0: "use strict fp if modifier strictfp is set") \ aoqi@0: \ aoqi@0: develop(bool, GenerateSynchronizationCode, true, \ aoqi@0: "generate locking/unlocking code for synchronized methods and " \ aoqi@0: "monitors") \ aoqi@0: \ aoqi@0: develop(bool, GenerateCompilerNullChecks, true, \ aoqi@0: "Generate explicit null checks for loads/stores/calls") \ aoqi@0: \ aoqi@0: develop(bool, GenerateRangeChecks, true, \ aoqi@0: "Generate range checks for array accesses") \ aoqi@0: \ aoqi@0: develop_pd(bool, ImplicitNullChecks, \ aoqi@0: "Generate code for implicit null checks") \ aoqi@0: \ aoqi@0: product_pd(bool, TrapBasedNullChecks, \ aoqi@0: "Generate code for null checks that uses a cmp and trap " \ aoqi@0: "instruction raising SIGTRAP. This is only used if an access to" \ aoqi@0: "null (+offset) will not raise a SIGSEGV, i.e.," \ aoqi@0: "ImplicitNullChecks don't work (PPC64).") \ aoqi@0: \ aoqi@0: product(bool, PrintSafepointStatistics, false, \ aoqi@0: "Print statistics about safepoint synchronization") \ aoqi@0: \ aoqi@0: product(intx, PrintSafepointStatisticsCount, 300, \ aoqi@0: "Total number of safepoint statistics collected " \ aoqi@0: "before printing them out") \ aoqi@0: \ aoqi@0: product(intx, PrintSafepointStatisticsTimeout, -1, \ aoqi@0: "Print safepoint statistics only when safepoint takes " \ aoqi@0: "more than PrintSafepointSatisticsTimeout in millis") \ aoqi@0: \ aoqi@0: product(bool, TraceSafepointCleanupTime, false, \ aoqi@0: "Print the break down of clean up tasks performed during " \ aoqi@0: "safepoint") \ aoqi@0: \ aoqi@0: product(bool, Inline, true, \ aoqi@0: "Enable inlining") \ aoqi@0: \ aoqi@0: product(bool, ClipInlining, true, \ aoqi@0: "Clip inlining if aggregate method exceeds DesiredMethodLimit") \ aoqi@0: \ aoqi@0: develop(bool, UseCHA, true, \ aoqi@0: "Enable CHA") \ aoqi@0: \ aoqi@0: product(bool, UseTypeProfile, true, \ aoqi@0: "Check interpreter profile for historically monomorphic calls") \ aoqi@0: \ aoqi@0: notproduct(bool, TimeCompiler, false, \ aoqi@0: "Time the compiler") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintInlining, false, \ aoqi@0: "Print inlining optimizations") \ aoqi@0: \ aoqi@0: product(bool, UsePopCountInstruction, false, \ aoqi@0: "Use population count instruction") \ aoqi@0: \ aoqi@0: develop(bool, EagerInitialization, false, \ aoqi@0: "Eagerly initialize classes if possible") \ aoqi@0: \ aoqi@0: develop(bool, TraceMethodReplacement, false, \ aoqi@0: "Print when methods are replaced do to recompilation") \ aoqi@0: \ aoqi@0: develop(bool, PrintMethodFlushing, false, \ aoqi@0: "Print the nmethods being flushed") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintMethodFlushingStatistics, false, \ aoqi@0: "print statistics about method flushing") \ aoqi@0: \ aoqi@0: develop(bool, UseRelocIndex, false, \ aoqi@0: "Use an index to speed random access to relocations") \ aoqi@0: \ aoqi@0: develop(bool, StressCodeBuffers, false, \ aoqi@0: "Exercise code buffer expansion and other rare state changes") \ aoqi@0: \ aoqi@0: diagnostic(bool, DebugNonSafepoints, trueInDebug, \ aoqi@0: "Generate extra debugging information for non-safepoints in " \ aoqi@0: "nmethods") \ aoqi@0: \ aoqi@0: product(bool, PrintVMOptions, false, \ aoqi@0: "Print flags that appeared on the command line") \ aoqi@0: \ aoqi@0: product(bool, IgnoreUnrecognizedVMOptions, false, \ aoqi@0: "Ignore unrecognized VM options") \ aoqi@0: \ aoqi@0: product(bool, PrintCommandLineFlags, false, \ aoqi@0: "Print flags specified on command line or set by ergonomics") \ aoqi@0: \ aoqi@0: product(bool, PrintFlagsInitial, false, \ aoqi@0: "Print all VM flags before argument processing and exit VM") \ aoqi@0: \ aoqi@0: product(bool, PrintFlagsFinal, false, \ aoqi@0: "Print all VM flags after argument and ergonomic processing") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintFlagsWithComments, false, \ aoqi@0: "Print all VM flags with default values and descriptions and " \ aoqi@0: "exit") \ aoqi@0: \ aoqi@0: diagnostic(bool, SerializeVMOutput, true, \ aoqi@0: "Use a mutex to serialize output to tty and LogFile") \ aoqi@0: \ aoqi@0: diagnostic(bool, DisplayVMOutput, true, \ aoqi@0: "Display all VM output on the tty, independently of LogVMOutput") \ aoqi@0: \ aoqi@0: diagnostic(bool, LogVMOutput, false, \ aoqi@0: "Save VM output to LogFile") \ aoqi@0: \ aoqi@0: diagnostic(ccstr, LogFile, NULL, \ aoqi@0: "If LogVMOutput or LogCompilation is on, save VM output to " \ aoqi@0: "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\ aoqi@0: \ aoqi@0: product(ccstr, ErrorFile, NULL, \ aoqi@0: "If an error occurs, save the error data to this file " \ aoqi@0: "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \ aoqi@0: \ aoqi@0: product(bool, DisplayVMOutputToStderr, false, \ aoqi@0: "If DisplayVMOutput is true, display all VM output to stderr") \ aoqi@0: \ aoqi@0: product(bool, DisplayVMOutputToStdout, false, \ aoqi@0: "If DisplayVMOutput is true, display all VM output to stdout") \ aoqi@0: \ aoqi@0: product(bool, UseHeavyMonitors, false, \ aoqi@0: "use heavyweight instead of lightweight Java monitors") \ aoqi@0: \ aoqi@0: product(bool, PrintStringTableStatistics, false, \ aoqi@0: "print statistics about the StringTable and SymbolTable") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyStringTableAtExit, false, \ aoqi@0: "verify StringTable contents at exit") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintSymbolTableSizeHistogram, false, \ aoqi@0: "print histogram of the symbol table") \ aoqi@0: \ aoqi@0: notproduct(bool, ExitVMOnVerifyError, false, \ aoqi@0: "standard exit from VM if bytecode verify error " \ aoqi@0: "(only in debug mode)") \ aoqi@0: \ aoqi@0: notproduct(ccstr, AbortVMOnException, NULL, \ aoqi@0: "Call fatal if this exception is thrown. Example: " \ aoqi@0: "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \ aoqi@0: \ aoqi@0: notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \ aoqi@0: "Call fatal if the exception pointed by AbortVMOnException " \ aoqi@0: "has this message") \ aoqi@0: \ aoqi@0: develop(bool, DebugVtables, false, \ aoqi@0: "add debugging code to vtable dispatch") \ aoqi@0: \ aoqi@0: develop(bool, PrintVtables, false, \ aoqi@0: "print vtables when printing klass") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintVtableStats, false, \ aoqi@0: "print vtables stats at end of run") \ aoqi@0: \ aoqi@0: develop(bool, TraceCreateZombies, false, \ aoqi@0: "trace creation of zombie nmethods") \ aoqi@0: \ aoqi@0: notproduct(bool, IgnoreLockingAssertions, false, \ aoqi@0: "disable locking assertions (for speed)") \ aoqi@0: \ aoqi@0: product(bool, RangeCheckElimination, true, \ aoqi@0: "Eliminate range checks") \ aoqi@0: \ aoqi@0: develop_pd(bool, UncommonNullCast, \ aoqi@0: "track occurrences of null in casts; adjust compiler tactics") \ aoqi@0: \ aoqi@0: develop(bool, TypeProfileCasts, true, \ aoqi@0: "treat casts like calls for purposes of type profiling") \ aoqi@0: \ aoqi@0: develop(bool, DelayCompilationDuringStartup, true, \ aoqi@0: "Delay invoking the compiler until main application class is " \ aoqi@0: "loaded") \ aoqi@0: \ aoqi@0: develop(bool, CompileTheWorld, false, \ aoqi@0: "Compile all methods in all classes in bootstrap class path " \ aoqi@0: "(stress test)") \ aoqi@0: \ aoqi@0: develop(bool, CompileTheWorldPreloadClasses, true, \ aoqi@0: "Preload all classes used by a class before start loading") \ aoqi@0: \ aoqi@0: notproduct(intx, CompileTheWorldSafepointInterval, 100, \ aoqi@0: "Force a safepoint every n compiles so sweeper can keep up") \ aoqi@0: \ aoqi@0: develop(bool, FillDelaySlots, true, \ aoqi@0: "Fill delay slots (on SPARC only)") \ aoqi@0: \ aoqi@0: develop(bool, TimeLivenessAnalysis, false, \ aoqi@0: "Time computation of bytecode liveness analysis") \ aoqi@0: \ aoqi@0: develop(bool, TraceLivenessGen, false, \ aoqi@0: "Trace the generation of liveness analysis information") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceLivenessQuery, false, \ aoqi@0: "Trace queries of liveness analysis information") \ aoqi@0: \ aoqi@0: notproduct(bool, CollectIndexSetStatistics, false, \ aoqi@0: "Collect information about IndexSets") \ aoqi@0: \ aoqi@0: develop(bool, UseLoopSafepoints, true, \ aoqi@0: "Generate Safepoint nodes in every loop") \ aoqi@0: \ aoqi@0: develop(intx, FastAllocateSizeLimit, 128*K, \ aoqi@0: /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \ aoqi@0: "Inline allocations larger than this in doublewords must go slow")\ aoqi@0: \ aoqi@0: product(bool, AggressiveOpts, false, \ aoqi@0: "Enable aggressive optimizations - see arguments.cpp") \ aoqi@0: \ aoqi@0: product_pd(uintx, TypeProfileLevel, \ aoqi@0: "=XYZ, with Z: Type profiling of arguments at call; " \ aoqi@0: "Y: Type profiling of return value at call; " \ aoqi@0: "X: Type profiling of parameters to methods; " \ aoqi@0: "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods") \ aoqi@0: \ aoqi@0: product(intx, TypeProfileArgsLimit, 2, \ aoqi@0: "max number of call arguments to consider for type profiling") \ aoqi@0: \ aoqi@0: product(intx, TypeProfileParmsLimit, 2, \ aoqi@0: "max number of incoming parameters to consider for type profiling"\ aoqi@0: ", -1 for all") \ aoqi@0: \ aoqi@0: /* statistics */ \ aoqi@0: develop(bool, CountCompiledCalls, false, \ aoqi@0: "Count method invocations") \ aoqi@0: \ aoqi@0: notproduct(bool, CountRuntimeCalls, false, \ aoqi@0: "Count VM runtime calls") \ aoqi@0: \ aoqi@0: develop(bool, CountJNICalls, false, \ aoqi@0: "Count jni method invocations") \ aoqi@0: \ aoqi@0: notproduct(bool, CountJVMCalls, false, \ aoqi@0: "Count jvm method invocations") \ aoqi@0: \ aoqi@0: notproduct(bool, CountRemovableExceptions, false, \ aoqi@0: "Count exceptions that could be replaced by branches due to " \ aoqi@0: "inlining") \ aoqi@0: \ aoqi@0: notproduct(bool, ICMissHistogram, false, \ aoqi@0: "Produce histogram of IC misses") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintClassStatistics, false, \ aoqi@0: "Print class statistics at end of run") \ aoqi@0: \ aoqi@0: notproduct(bool, PrintMethodStatistics, false, \ aoqi@0: "Print method statistics at end of run") \ aoqi@0: \ aoqi@0: /* interpreter */ \ aoqi@0: develop(bool, ClearInterpreterLocals, false, \ aoqi@0: "Always clear local variables of interpreter activations upon " \ aoqi@0: "entry") \ aoqi@0: \ aoqi@0: product_pd(bool, RewriteBytecodes, \ aoqi@0: "Allow rewriting of bytecodes (bytecodes are not immutable)") \ aoqi@0: \ aoqi@0: product_pd(bool, RewriteFrequentPairs, \ aoqi@0: "Rewrite frequently used bytecode pairs into a single bytecode") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintInterpreter, false, \ aoqi@0: "Print the generated interpreter code") \ aoqi@0: \ aoqi@0: product(bool, UseInterpreter, true, \ aoqi@0: "Use interpreter for non-compiled methods") \ aoqi@0: \ aoqi@0: develop(bool, UseFastSignatureHandlers, true, \ aoqi@0: "Use fast signature handlers for native calls") \ aoqi@0: \ aoqi@0: product(bool, UseLoopCounter, true, \ aoqi@0: "Increment invocation counter on backward branch") \ aoqi@0: \ aoqi@0: product(bool, UseFastEmptyMethods, true, \ aoqi@0: "Use fast method entry code for empty methods") \ aoqi@0: \ aoqi@0: product(bool, UseFastAccessorMethods, true, \ aoqi@0: "Use fast method entry code for accessor methods") \ aoqi@0: \ aoqi@0: product_pd(bool, UseOnStackReplacement, \ aoqi@0: "Use on stack replacement, calls runtime if invoc. counter " \ aoqi@0: "overflows in loop") \ aoqi@0: \ aoqi@0: notproduct(bool, TraceOnStackReplacement, false, \ aoqi@0: "Trace on stack replacement") \ aoqi@0: \ aoqi@0: product_pd(bool, PreferInterpreterNativeStubs, \ aoqi@0: "Use always interpreter stubs for native methods invoked via " \ aoqi@0: "interpreter") \ aoqi@0: \ aoqi@0: develop(bool, CountBytecodes, false, \ aoqi@0: "Count number of bytecodes executed") \ aoqi@0: \ aoqi@0: develop(bool, PrintBytecodeHistogram, false, \ aoqi@0: "Print histogram of the executed bytecodes") \ aoqi@0: \ aoqi@0: develop(bool, PrintBytecodePairHistogram, false, \ aoqi@0: "Print histogram of the executed bytecode pairs") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintSignatureHandlers, false, \ aoqi@0: "Print code generated for native method signature handlers") \ aoqi@0: \ aoqi@0: develop(bool, VerifyOops, false, \ aoqi@0: "Do plausibility checks for oops") \ aoqi@0: \ aoqi@0: develop(bool, CheckUnhandledOops, false, \ aoqi@0: "Check for unhandled oops in VM code") \ aoqi@0: \ aoqi@0: develop(bool, VerifyJNIFields, trueInDebug, \ aoqi@0: "Verify jfieldIDs for instance fields") \ aoqi@0: \ aoqi@0: notproduct(bool, VerifyJNIEnvThread, false, \ aoqi@0: "Verify JNIEnv.thread == Thread::current() when entering VM " \ aoqi@0: "from JNI") \ aoqi@0: \ aoqi@0: develop(bool, VerifyFPU, false, \ aoqi@0: "Verify FPU state (check for NaN's, etc.)") \ aoqi@0: \ aoqi@0: develop(bool, VerifyThread, false, \ aoqi@0: "Watch the thread register for corruption (SPARC only)") \ aoqi@0: \ aoqi@0: develop(bool, VerifyActivationFrameSize, false, \ aoqi@0: "Verify that activation frame didn't become smaller than its " \ aoqi@0: "minimal size") \ aoqi@0: \ aoqi@0: develop(bool, TraceFrequencyInlining, false, \ aoqi@0: "Trace frequency based inlining") \ aoqi@0: \ aoqi@0: develop_pd(bool, InlineIntrinsics, \ aoqi@0: "Inline intrinsics that can be statically resolved") \ aoqi@0: \ aoqi@0: product_pd(bool, ProfileInterpreter, \ aoqi@0: "Profile at the bytecode level during interpretation") \ aoqi@0: \ aoqi@0: develop(bool, TraceProfileInterpreter, false, \ aoqi@0: "Trace profiling at the bytecode level during interpretation. " \ aoqi@0: "This outputs the profiling information collected to improve " \ aoqi@0: "jit compilation.") \ aoqi@0: \ aoqi@0: develop_pd(bool, ProfileTraps, \ aoqi@0: "Profile deoptimization traps at the bytecode level") \ aoqi@0: \ aoqi@0: product(intx, ProfileMaturityPercentage, 20, \ aoqi@0: "number of method invocations/branches (expressed as % of " \ aoqi@0: "CompileThreshold) before using the method's profile") \ aoqi@0: \ aoqi@0: develop(bool, PrintMethodData, false, \ aoqi@0: "Print the results of +ProfileInterpreter at end of run") \ aoqi@0: \ aoqi@0: develop(bool, VerifyDataPointer, trueInDebug, \ aoqi@0: "Verify the method data pointer during interpreter profiling") \ aoqi@0: \ aoqi@0: develop(bool, VerifyCompiledCode, false, \ aoqi@0: "Include miscellaneous runtime verifications in nmethod code; " \ aoqi@0: "default off because it disturbs nmethod size heuristics") \ aoqi@0: \ aoqi@0: notproduct(bool, CrashGCForDumpingJavaThread, false, \ aoqi@0: "Manually make GC thread crash then dump java stack trace; " \ aoqi@0: "Test only") \ aoqi@0: \ aoqi@0: /* compilation */ \ aoqi@0: product(bool, UseCompiler, true, \ aoqi@0: "Use Just-In-Time compilation") \ aoqi@0: \ aoqi@0: develop(bool, TraceCompilationPolicy, false, \ aoqi@0: "Trace compilation policy") \ aoqi@0: \ aoqi@0: develop(bool, TimeCompilationPolicy, false, \ aoqi@0: "Time the compilation policy") \ aoqi@0: \ aoqi@0: product(bool, UseCounterDecay, true, \ aoqi@0: "Adjust recompilation counters") \ aoqi@0: \ aoqi@0: develop(intx, CounterHalfLifeTime, 30, \ aoqi@0: "Half-life time of invocation counters (in seconds)") \ aoqi@0: \ aoqi@0: develop(intx, CounterDecayMinIntervalLength, 500, \ aoqi@0: "The minimum interval (in milliseconds) between invocation of " \ aoqi@0: "CounterDecay") \ aoqi@0: \ aoqi@0: product(bool, AlwaysCompileLoopMethods, false, \ aoqi@0: "When using recompilation, never interpret methods " \ aoqi@0: "containing loops") \ aoqi@0: \ aoqi@0: product(bool, DontCompileHugeMethods, true, \ aoqi@0: "Do not compile methods > HugeMethodLimit") \ aoqi@0: \ aoqi@0: /* Bytecode escape analysis estimation. */ \ aoqi@0: product(bool, EstimateArgEscape, true, \ aoqi@0: "Analyze bytecodes to estimate escape state of arguments") \ aoqi@0: \ aoqi@0: product(intx, BCEATraceLevel, 0, \ aoqi@0: "How much tracing to do of bytecode escape analysis estimates") \ aoqi@0: \ aoqi@0: product(intx, MaxBCEAEstimateLevel, 5, \ aoqi@0: "Maximum number of nested calls that are analyzed by BC EA") \ aoqi@0: \ aoqi@0: product(intx, MaxBCEAEstimateSize, 150, \ aoqi@0: "Maximum bytecode size of a method to be analyzed by BC EA") \ aoqi@0: \ aoqi@0: product(intx, AllocatePrefetchStyle, 1, \ aoqi@0: "0 = no prefetch, " \ aoqi@0: "1 = prefetch instructions for each allocation, " \ aoqi@0: "2 = use TLAB watermark to gate allocation prefetch, " \ aoqi@0: "3 = use BIS instruction on Sparc for allocation prefetch") \ aoqi@0: \ aoqi@0: product(intx, AllocatePrefetchDistance, -1, \ aoqi@0: "Distance to prefetch ahead of allocation pointer") \ aoqi@0: \ aoqi@0: product(intx, AllocatePrefetchLines, 3, \ aoqi@0: "Number of lines to prefetch ahead of array allocation pointer") \ aoqi@0: \ aoqi@0: product(intx, AllocateInstancePrefetchLines, 1, \ aoqi@0: "Number of lines to prefetch ahead of instance allocation " \ aoqi@0: "pointer") \ aoqi@0: \ aoqi@0: product(intx, AllocatePrefetchStepSize, 16, \ aoqi@0: "Step size in bytes of sequential prefetch instructions") \ aoqi@0: \ aoqi@0: product(intx, AllocatePrefetchInstr, 0, \ aoqi@0: "Prefetch instruction to prefetch ahead of allocation pointer") \ aoqi@0: \ aoqi@0: /* deoptimization */ \ aoqi@0: develop(bool, TraceDeoptimization, false, \ aoqi@0: "Trace deoptimization") \ aoqi@0: \ aoqi@0: develop(bool, DebugDeoptimization, false, \ aoqi@0: "Tracing various information while debugging deoptimization") \ aoqi@0: \ aoqi@0: product(intx, SelfDestructTimer, 0, \ aoqi@0: "Will cause VM to terminate after a given time (in minutes) " \ aoqi@0: "(0 means off)") \ aoqi@0: \ aoqi@0: product(intx, MaxJavaStackTraceDepth, 1024, \ aoqi@0: "The maximum number of lines in the stack trace for Java " \ aoqi@0: "exceptions (0 means all)") \ aoqi@0: \ aoqi@0: NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000, \ aoqi@0: "Guarantee a safepoint (at least) every so many milliseconds " \ aoqi@0: "(0 means none)")) \ aoqi@0: \ aoqi@0: EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \ aoqi@0: "Guarantee a safepoint (at least) every so many milliseconds " \ aoqi@0: "(0 means none)")) \ aoqi@0: \ aoqi@0: product(intx, SafepointTimeoutDelay, 10000, \ aoqi@0: "Delay in milliseconds for option SafepointTimeout") \ aoqi@0: \ aoqi@0: product(intx, NmethodSweepFraction, 16, \ aoqi@0: "Number of invocations of sweeper to cover all nmethods") \ aoqi@0: \ aoqi@0: product(intx, NmethodSweepCheckInterval, 5, \ aoqi@0: "Compilers wake up every n seconds to possibly sweep nmethods") \ aoqi@0: \ aoqi@0: product(intx, NmethodSweepActivity, 10, \ aoqi@0: "Removes cold nmethods from code cache if > 0. Higher values " \ aoqi@0: "result in more aggressive sweeping") \ aoqi@0: \ aoqi@0: notproduct(bool, LogSweeper, false, \ aoqi@0: "Keep a ring buffer of sweeper activity") \ aoqi@0: \ aoqi@0: notproduct(intx, SweeperLogEntries, 1024, \ aoqi@0: "Number of records in the ring buffer of sweeper activity") \ aoqi@0: \ aoqi@0: notproduct(intx, MemProfilingInterval, 500, \ aoqi@0: "Time between each invocation of the MemProfiler") \ aoqi@0: \ aoqi@0: develop(intx, MallocCatchPtr, -1, \ aoqi@0: "Hit breakpoint when mallocing/freeing this pointer") \ aoqi@0: \ aoqi@0: notproduct(intx, AssertRepeat, 1, \ aoqi@0: "number of times to evaluate expression in assert " \ aoqi@0: "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \ aoqi@0: \ aoqi@0: notproduct(ccstrlist, SuppressErrorAt, "", \ aoqi@0: "List of assertions (file:line) to muzzle") \ aoqi@0: \ aoqi@0: notproduct(uintx, HandleAllocationLimit, 1024, \ aoqi@0: "Threshold for HandleMark allocation when +TraceHandleAllocation "\ aoqi@0: "is used") \ aoqi@0: \ aoqi@0: develop(uintx, TotalHandleAllocationLimit, 1024, \ aoqi@0: "Threshold for total handle allocation when " \ aoqi@0: "+TraceHandleAllocation is used") \ aoqi@0: \ aoqi@0: develop(intx, StackPrintLimit, 100, \ aoqi@0: "number of stack frames to print in VM-level stack dump") \ aoqi@0: \ aoqi@0: notproduct(intx, MaxElementPrintSize, 256, \ aoqi@0: "maximum number of elements to print") \ aoqi@0: \ aoqi@0: notproduct(intx, MaxSubklassPrintSize, 4, \ aoqi@0: "maximum number of subklasses to print when printing klass") \ aoqi@0: \ aoqi@0: product(intx, MaxInlineLevel, 9, \ aoqi@0: "maximum number of nested calls that are inlined") \ aoqi@0: \ aoqi@0: product(intx, MaxRecursiveInlineLevel, 1, \ aoqi@0: "maximum number of nested recursive calls that are inlined") \ aoqi@0: \ aoqi@0: develop(intx, MaxForceInlineLevel, 100, \ aoqi@0: "maximum number of nested calls that are forced for inlining " \ aoqi@0: "(using CompilerOracle or marked w/ @ForceInline)") \ aoqi@0: \ aoqi@0: product_pd(intx, InlineSmallCode, \ aoqi@0: "Only inline already compiled methods if their code size is " \ aoqi@0: "less than this") \ aoqi@0: \ aoqi@0: product(intx, MaxInlineSize, 35, \ aoqi@0: "The maximum bytecode size of a method to be inlined") \ aoqi@0: \ aoqi@0: product_pd(intx, FreqInlineSize, \ aoqi@0: "The maximum bytecode size of a frequent method to be inlined") \ aoqi@0: \ aoqi@0: product(intx, MaxTrivialSize, 6, \ aoqi@0: "The maximum bytecode size of a trivial method to be inlined") \ aoqi@0: \ aoqi@0: product(intx, MinInliningThreshold, 250, \ aoqi@0: "The minimum invocation count a method needs to have to be " \ aoqi@0: "inlined") \ aoqi@0: \ aoqi@0: develop(intx, MethodHistogramCutoff, 100, \ aoqi@0: "The cutoff value for method invocation histogram (+CountCalls)") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerNumberOfInterpretedMethods, 25, \ aoqi@0: "Number of interpreted methods to show in profile") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerNumberOfCompiledMethods, 25, \ aoqi@0: "Number of compiled methods to show in profile") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerNumberOfStubMethods, 25, \ aoqi@0: "Number of stub methods to show in profile") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \ aoqi@0: "Number of runtime stub nodes to show in profile") \ aoqi@0: \ aoqi@0: product(intx, ProfileIntervalsTicks, 100, \ aoqi@0: "Number of ticks between printing of interval profile " \ aoqi@0: "(+ProfileIntervals)") \ aoqi@0: \ aoqi@0: notproduct(intx, ScavengeALotInterval, 1, \ aoqi@0: "Interval between which scavenge will occur with +ScavengeALot") \ aoqi@0: \ aoqi@0: notproduct(intx, FullGCALotInterval, 1, \ aoqi@0: "Interval between which full gc will occur with +FullGCALot") \ aoqi@0: \ aoqi@0: notproduct(intx, FullGCALotStart, 0, \ aoqi@0: "For which invocation to start FullGCAlot") \ aoqi@0: \ aoqi@0: notproduct(intx, FullGCALotDummies, 32*K, \ aoqi@0: "Dummy object allocated with +FullGCALot, forcing all objects " \ aoqi@0: "to move") \ aoqi@0: \ aoqi@0: develop(intx, DontYieldALotInterval, 10, \ aoqi@0: "Interval between which yields will be dropped (milliseconds)") \ aoqi@0: \ aoqi@0: develop(intx, MinSleepInterval, 1, \ aoqi@0: "Minimum sleep() interval (milliseconds) when " \ aoqi@0: "ConvertSleepToYield is off (used for Solaris)") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerPCTickThreshold, 15, \ aoqi@0: "Number of ticks in a PC buckets to be a hotspot") \ aoqi@0: \ aoqi@0: notproduct(intx, DeoptimizeALotInterval, 5, \ aoqi@0: "Number of exits until DeoptimizeALot kicks in") \ aoqi@0: \ aoqi@0: notproduct(intx, ZombieALotInterval, 5, \ aoqi@0: "Number of exits until ZombieALot kicks in") \ aoqi@0: \ aoqi@0: diagnostic(intx, MallocVerifyInterval, 0, \ aoqi@0: "If non-zero, verify C heap after every N calls to " \ aoqi@0: "malloc/realloc/free") \ aoqi@0: \ aoqi@0: diagnostic(intx, MallocVerifyStart, 0, \ aoqi@0: "If non-zero, start verifying C heap after Nth call to " \ aoqi@0: "malloc/realloc/free") \ aoqi@0: \ aoqi@0: diagnostic(uintx, MallocMaxTestWords, 0, \ aoqi@0: "If non-zero, maximum number of words that malloc/realloc can " \ aoqi@0: "allocate (for testing only)") \ aoqi@0: \ aoqi@0: product(intx, TypeProfileWidth, 2, \ aoqi@0: "Number of receiver types to record in call/cast profile") \ aoqi@0: \ aoqi@0: develop(intx, BciProfileWidth, 2, \ aoqi@0: "Number of return bci's to record in ret profile") \ aoqi@0: \ aoqi@0: product(intx, PerMethodRecompilationCutoff, 400, \ aoqi@0: "After recompiling N times, stay in the interpreter (-1=>'Inf')") \ aoqi@0: \ aoqi@0: product(intx, PerBytecodeRecompilationCutoff, 200, \ aoqi@0: "Per-BCI limit on repeated recompilation (-1=>'Inf')") \ aoqi@0: \ aoqi@0: product(intx, PerMethodTrapLimit, 100, \ aoqi@0: "Limit on traps (of one kind) in a method (includes inlines)") \ aoqi@0: \ aoqi@0: experimental(intx, PerMethodSpecTrapLimit, 5000, \ aoqi@0: "Limit on speculative traps (of one kind) in a method (includes inlines)") \ aoqi@0: \ aoqi@0: product(intx, PerBytecodeTrapLimit, 4, \ aoqi@0: "Limit on traps (of one kind) at a particular BCI") \ aoqi@0: \ aoqi@0: experimental(intx, SpecTrapLimitExtraEntries, 3, \ aoqi@0: "Extra method data trap entries for speculation") \ aoqi@0: \ aoqi@0: develop(intx, InlineFrequencyRatio, 20, \ aoqi@0: "Ratio of call site execution to caller method invocation") \ aoqi@0: \ aoqi@0: develop_pd(intx, InlineFrequencyCount, \ aoqi@0: "Count of call site execution necessary to trigger frequent " \ aoqi@0: "inlining") \ aoqi@0: \ aoqi@0: develop(intx, InlineThrowCount, 50, \ aoqi@0: "Force inlining of interpreted methods that throw this often") \ aoqi@0: \ aoqi@0: develop(intx, InlineThrowMaxSize, 200, \ aoqi@0: "Force inlining of throwing methods smaller than this") \ aoqi@0: \ aoqi@0: develop(intx, ProfilerNodeSize, 1024, \ aoqi@0: "Size in K to allocate for the Profile Nodes of each thread") \ aoqi@0: \ aoqi@0: product_pd(intx, PreInflateSpin, \ aoqi@0: "Number of times to spin wait before inflation") \ aoqi@0: \ aoqi@0: /* gc parameters */ \ aoqi@1: product(uintx, InitialHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(0) *M), \ aoqi@0: "Initial heap size (in bytes); zero means use ergonomics") \ aoqi@0: \ aoqi@1: product(uintx, MaxHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(96) *M), \ aoqi@0: "Maximum heap size (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, OldSize, ScaleForWordSize(4*M), \ aoqi@0: "Initial tenured generation size (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, NewSize, ScaleForWordSize(1*M), \ aoqi@0: "Initial new generation size (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, MaxNewSize, max_uintx, \ aoqi@0: "Maximum new generation size (in bytes), max_uintx means set " \ aoqi@0: "ergonomically") \ aoqi@0: \ aoqi@0: product(uintx, PretenureSizeThreshold, 0, \ aoqi@0: "Maximum size in bytes of objects allocated in DefNew " \ aoqi@0: "generation; zero means no maximum") \ aoqi@0: \ aoqi@0: product(uintx, TLABSize, 0, \ aoqi@0: "Starting TLAB size (in bytes); zero means set ergonomically") \ aoqi@0: \ aoqi@0: product(uintx, MinTLABSize, 2*K, \ aoqi@0: "Minimum allowed TLAB size (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, TLABAllocationWeight, 35, \ aoqi@0: "Allocation averaging weight") \ aoqi@0: \ aoqi@0: product(uintx, TLABWasteTargetPercent, 1, \ aoqi@0: "Percentage of Eden that can be wasted") \ aoqi@0: \ aoqi@0: product(uintx, TLABRefillWasteFraction, 64, \ aoqi@0: "Maximum TLAB waste at a refill (internal fragmentation)") \ aoqi@0: \ aoqi@0: product(uintx, TLABWasteIncrement, 4, \ aoqi@0: "Increment allowed waste at slow allocation") \ aoqi@0: \ aoqi@0: product(uintx, SurvivorRatio, 8, \ aoqi@0: "Ratio of eden/survivor space size") \ aoqi@0: \ aoqi@0: product(uintx, NewRatio, 2, \ aoqi@0: "Ratio of old/new generation sizes") \ aoqi@0: \ aoqi@0: product_pd(uintx, NewSizeThreadIncrease, \ aoqi@0: "Additional size added to desired new generation size per " \ aoqi@0: "non-daemon thread (in bytes)") \ aoqi@0: \ aoqi@0: product_pd(uintx, MetaspaceSize, \ aoqi@0: "Initial size of Metaspaces (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, MaxMetaspaceSize, max_uintx, \ aoqi@0: "Maximum size of Metaspaces (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, CompressedClassSpaceSize, 1*G, \ aoqi@0: "Maximum size of class area in Metaspace when compressed " \ aoqi@0: "class pointers are used") \ aoqi@0: \ aoqi@0: manageable(uintx, MinHeapFreeRatio, 40, \ aoqi@0: "The minimum percentage of heap free after GC to avoid expansion."\ aoqi@0: " For most GCs this applies to the old generation. In G1 and" \ aoqi@0: " ParallelGC it applies to the whole heap.") \ aoqi@0: \ aoqi@0: manageable(uintx, MaxHeapFreeRatio, 70, \ aoqi@0: "The maximum percentage of heap free after GC to avoid shrinking."\ aoqi@0: " For most GCs this applies to the old generation. In G1 and" \ aoqi@0: " ParallelGC it applies to the whole heap.") \ aoqi@0: \ aoqi@0: product(intx, SoftRefLRUPolicyMSPerMB, 1000, \ aoqi@0: "Number of milliseconds per MB of free space in the heap") \ aoqi@0: \ aoqi@0: product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \ aoqi@0: "The minimum change in heap space due to GC (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K), \ aoqi@0: "The minimum expansion of Metaspace (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, MinMetaspaceFreeRatio, 40, \ aoqi@0: "The minimum percentage of Metaspace free after GC to avoid " \ aoqi@0: "expansion") \ aoqi@0: \ aoqi@0: product(uintx, MaxMetaspaceFreeRatio, 70, \ aoqi@0: "The maximum percentage of Metaspace free after GC to avoid " \ aoqi@0: "shrinking") \ aoqi@0: \ aoqi@0: product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \ aoqi@0: "The maximum expansion of Metaspace without full GC (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, QueuedAllocationWarningCount, 0, \ aoqi@0: "Number of times an allocation that queues behind a GC " \ aoqi@0: "will retry before printing a warning") \ aoqi@0: \ aoqi@0: diagnostic(uintx, VerifyGCStartAt, 0, \ aoqi@0: "GC invoke count where +VerifyBefore/AfterGC kicks in") \ aoqi@0: \ aoqi@0: diagnostic(intx, VerifyGCLevel, 0, \ aoqi@0: "Generation level at which to start +VerifyBefore/AfterGC") \ aoqi@0: \ aoqi@0: product(uintx, MaxTenuringThreshold, 15, \ aoqi@0: "Maximum value for tenuring threshold") \ aoqi@0: \ aoqi@0: product(uintx, InitialTenuringThreshold, 7, \ aoqi@0: "Initial value for tenuring threshold") \ aoqi@0: \ aoqi@0: product(uintx, TargetSurvivorRatio, 50, \ aoqi@0: "Desired percentage of survivor space used after scavenge") \ aoqi@0: \ aoqi@0: product(uintx, MarkSweepDeadRatio, 5, \ aoqi@0: "Percentage (0-100) of the old gen allowed as dead wood. " \ aoqi@0: "Serial mark sweep treats this as both the minimum and maximum " \ aoqi@0: "value. " \ aoqi@0: "CMS uses this value only if it falls back to mark sweep. " \ aoqi@0: "Par compact uses a variable scale based on the density of the " \ aoqi@0: "generation and treats this as the maximum value when the heap " \ aoqi@0: "is either completely full or completely empty. Par compact " \ aoqi@0: "also has a smaller default value; see arguments.cpp.") \ aoqi@0: \ aoqi@0: product(uintx, MarkSweepAlwaysCompactCount, 4, \ aoqi@0: "How often should we fully compact the heap (ignoring the dead " \ aoqi@0: "space parameters)") \ aoqi@0: \ aoqi@0: product(intx, PrintCMSStatistics, 0, \ aoqi@0: "Statistics for CMS") \ aoqi@0: \ aoqi@0: product(bool, PrintCMSInitiationStatistics, false, \ aoqi@0: "Statistics for initiating a CMS collection") \ aoqi@0: \ aoqi@0: product(intx, PrintFLSStatistics, 0, \ aoqi@0: "Statistics for CMS' FreeListSpace") \ aoqi@0: \ aoqi@0: product(intx, PrintFLSCensus, 0, \ aoqi@0: "Census for CMS' FreeListSpace") \ aoqi@0: \ aoqi@0: develop(uintx, GCExpandToAllocateDelayMillis, 0, \ aoqi@0: "Delay between expansion and allocation (in milliseconds)") \ aoqi@0: \ aoqi@0: develop(uintx, GCWorkerDelayMillis, 0, \ aoqi@0: "Delay in scheduling GC workers (in milliseconds)") \ aoqi@0: \ aoqi@0: product(intx, DeferThrSuspendLoopCount, 4000, \ aoqi@0: "(Unstable) Number of times to iterate in safepoint loop " \ aoqi@0: "before blocking VM threads ") \ aoqi@0: \ aoqi@0: product(intx, DeferPollingPageLoopCount, -1, \ aoqi@0: "(Unsafe,Unstable) Number of iterations in safepoint loop " \ aoqi@0: "before changing safepoint polling page to RO ") \ aoqi@0: \ aoqi@0: product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \ aoqi@0: \ aoqi@0: product(bool, PSChunkLargeArrays, true, \ aoqi@0: "Process large arrays in chunks") \ aoqi@0: \ aoqi@0: product(uintx, GCDrainStackTargetSize, 64, \ aoqi@0: "Number of entries we will try to leave on the stack " \ aoqi@0: "during parallel gc") \ aoqi@0: \ aoqi@0: /* stack parameters */ \ aoqi@0: product_pd(intx, StackYellowPages, \ aoqi@0: "Number of yellow zone (recoverable overflows) pages") \ aoqi@0: \ aoqi@0: product_pd(intx, StackRedPages, \ aoqi@0: "Number of red zone (unrecoverable overflows) pages") \ aoqi@0: \ aoqi@0: product_pd(intx, StackShadowPages, \ aoqi@0: "Number of shadow zone (for overflow checking) pages " \ aoqi@0: "this should exceed the depth of the VM and native call stack") \ aoqi@0: \ aoqi@0: product_pd(intx, ThreadStackSize, \ aoqi@0: "Thread Stack Size (in Kbytes)") \ aoqi@0: \ aoqi@0: product_pd(intx, VMThreadStackSize, \ aoqi@0: "Non-Java Thread Stack Size (in Kbytes)") \ aoqi@0: \ aoqi@0: product_pd(intx, CompilerThreadStackSize, \ aoqi@0: "Compiler Thread Stack Size (in Kbytes)") \ aoqi@0: \ aoqi@0: develop_pd(uintx, JVMInvokeMethodSlack, \ aoqi@0: "Stack space (bytes) required for JVM_InvokeMethod to complete") \ aoqi@0: \ aoqi@0: product(uintx, ThreadSafetyMargin, 50*M, \ aoqi@0: "Thread safety margin is used on fixed-stack LinuxThreads (on " \ aoqi@0: "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \ aoqi@0: "disable this feature") \ aoqi@0: \ aoqi@0: /* code cache parameters */ \ aoqi@0: /* ppc64 has large code-entry alignment. */ \ aoqi@0: develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64), \ aoqi@0: "Code cache segment size (in bytes) - smallest unit of " \ aoqi@0: "allocation") \ aoqi@0: \ aoqi@0: develop_pd(intx, CodeEntryAlignment, \ aoqi@0: "Code entry alignment for generated code (in bytes)") \ aoqi@0: \ aoqi@0: product_pd(intx, OptoLoopAlignment, \ aoqi@0: "Align inner loops to zero relative to this modulus") \ aoqi@0: \ aoqi@0: product_pd(uintx, InitialCodeCacheSize, \ aoqi@0: "Initial code cache size (in bytes)") \ aoqi@0: \ aoqi@0: develop_pd(uintx, CodeCacheMinimumUseSpace, \ aoqi@0: "Minimum code cache size (in bytes) required to start VM.") \ aoqi@0: \ aoqi@0: product_pd(uintx, ReservedCodeCacheSize, \ aoqi@0: "Reserved code cache size (in bytes) - maximum code cache size") \ aoqi@0: \ aoqi@0: product(uintx, CodeCacheMinimumFreeSpace, 500*K, \ aoqi@0: "When less than X space left, we stop compiling") \ aoqi@0: \ aoqi@0: product_pd(uintx, CodeCacheExpansionSize, \ aoqi@0: "Code cache expansion size (in bytes)") \ aoqi@0: \ aoqi@0: develop_pd(uintx, CodeCacheMinBlockLength, \ aoqi@0: "Minimum number of segments in a code cache block") \ aoqi@0: \ aoqi@0: notproduct(bool, ExitOnFullCodeCache, false, \ aoqi@0: "Exit the VM if we fill the code cache") \ aoqi@0: \ aoqi@0: product(bool, UseCodeCacheFlushing, true, \ aoqi@0: "Remove cold/old nmethods from the code cache") \ aoqi@0: \ aoqi@0: /* interpreter debugging */ \ aoqi@0: develop(intx, BinarySwitchThreshold, 5, \ aoqi@0: "Minimal number of lookupswitch entries for rewriting to binary " \ aoqi@0: "switch") \ aoqi@0: \ aoqi@0: develop(intx, StopInterpreterAt, 0, \ aoqi@0: "Stop interpreter execution at specified bytecode number") \ aoqi@0: \ aoqi@0: develop(intx, TraceBytecodesAt, 0, \ aoqi@0: "Trace bytecodes starting with specified bytecode number") \ aoqi@0: \ aoqi@0: /* compiler interface */ \ aoqi@0: develop(intx, CIStart, 0, \ aoqi@0: "The id of the first compilation to permit") \ aoqi@0: \ aoqi@0: develop(intx, CIStop, max_jint, \ aoqi@0: "The id of the last compilation to permit") \ aoqi@0: \ aoqi@0: develop(intx, CIStartOSR, 0, \ aoqi@0: "The id of the first osr compilation to permit " \ aoqi@0: "(CICountOSR must be on)") \ aoqi@0: \ aoqi@0: develop(intx, CIStopOSR, max_jint, \ aoqi@0: "The id of the last osr compilation to permit " \ aoqi@0: "(CICountOSR must be on)") \ aoqi@0: \ aoqi@0: develop(intx, CIBreakAtOSR, -1, \ aoqi@0: "The id of osr compilation to break at") \ aoqi@0: \ aoqi@0: develop(intx, CIBreakAt, -1, \ aoqi@0: "The id of compilation to break at") \ aoqi@0: \ aoqi@0: product(ccstrlist, CompileOnly, "", \ aoqi@0: "List of methods (pkg/class.name) to restrict compilation to") \ aoqi@0: \ aoqi@0: product(ccstr, CompileCommandFile, NULL, \ aoqi@0: "Read compiler commands from this file [.hotspot_compiler]") \ aoqi@0: \ aoqi@0: product(ccstrlist, CompileCommand, "", \ aoqi@0: "Prepend to .hotspot_compiler; e.g. log,java/lang/String.") \ aoqi@0: \ aoqi@0: develop(bool, ReplayCompiles, false, \ aoqi@0: "Enable replay of compilations from ReplayDataFile") \ aoqi@0: \ aoqi@0: product(ccstr, ReplayDataFile, NULL, \ aoqi@0: "File containing compilation replay information" \ aoqi@0: "[default: ./replay_pid%p.log] (%p replaced with pid)") \ aoqi@0: \ aoqi@0: product(ccstr, InlineDataFile, NULL, \ aoqi@0: "File containing inlining replay information" \ aoqi@0: "[default: ./inline_pid%p.log] (%p replaced with pid)") \ aoqi@0: \ aoqi@0: develop(intx, ReplaySuppressInitializers, 2, \ aoqi@0: "Control handling of class initialization during replay: " \ aoqi@0: "0 - don't do anything special; " \ aoqi@0: "1 - treat all class initializers as empty; " \ aoqi@0: "2 - treat class initializers for application classes as empty; " \ aoqi@0: "3 - allow all class initializers to run during bootstrap but " \ aoqi@0: " pretend they are empty after starting replay") \ aoqi@0: \ aoqi@0: develop(bool, ReplayIgnoreInitErrors, false, \ aoqi@0: "Ignore exceptions thrown during initialization for replay") \ aoqi@0: \ aoqi@0: product(bool, DumpReplayDataOnError, true, \ aoqi@0: "Record replay data for crashing compiler threads") \ aoqi@0: \ aoqi@0: product(bool, CICompilerCountPerCPU, false, \ aoqi@0: "1 compiler thread for log(N CPUs)") \ aoqi@0: \ aoqi@0: develop(intx, CIFireOOMAt, -1, \ aoqi@0: "Fire OutOfMemoryErrors throughout CI for testing the compiler " \ aoqi@0: "(non-negative value throws OOM after this many CI accesses " \ aoqi@0: "in each compile)") \ aoqi@0: notproduct(intx, CICrashAt, -1, \ aoqi@0: "id of compilation to trigger assert in compiler thread for " \ aoqi@0: "the purpose of testing, e.g. generation of replay data") \ aoqi@0: notproduct(bool, CIObjectFactoryVerify, false, \ aoqi@0: "enable potentially expensive verification in ciObjectFactory") \ aoqi@0: \ aoqi@0: /* Priorities */ \ aoqi@0: product_pd(bool, UseThreadPriorities, "Use native thread priorities") \ aoqi@0: \ aoqi@0: product(intx, ThreadPriorityPolicy, 0, \ aoqi@0: "0 : Normal. "\ aoqi@0: " VM chooses priorities that are appropriate for normal "\ aoqi@0: " applications. On Solaris NORM_PRIORITY and above are mapped "\ aoqi@0: " to normal native priority. Java priorities below " \ aoqi@0: " NORM_PRIORITY map to lower native priority values. On "\ aoqi@0: " Windows applications are allowed to use higher native "\ aoqi@0: " priorities. However, with ThreadPriorityPolicy=0, VM will "\ aoqi@0: " not use the highest possible native priority, "\ aoqi@0: " THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with "\ aoqi@0: " system threads. On Linux thread priorities are ignored "\ aoqi@0: " because the OS does not support static priority in "\ aoqi@0: " SCHED_OTHER scheduling class which is the only choice for "\ aoqi@0: " non-root, non-realtime applications. "\ aoqi@0: "1 : Aggressive. "\ aoqi@0: " Java thread priorities map over to the entire range of "\ aoqi@0: " native thread priorities. Higher Java thread priorities map "\ aoqi@0: " to higher native thread priorities. This policy should be "\ aoqi@0: " used with care, as sometimes it can cause performance "\ aoqi@0: " degradation in the application and/or the entire system. On "\ aoqi@0: " Linux this policy requires root privilege.") \ aoqi@0: \ aoqi@0: product(bool, ThreadPriorityVerbose, false, \ aoqi@0: "Print priority changes") \ aoqi@0: \ aoqi@0: product(intx, DefaultThreadPriority, -1, \ aoqi@0: "The native priority at which threads run if not elsewhere " \ aoqi@0: "specified (-1 means no change)") \ aoqi@0: \ aoqi@0: product(intx, CompilerThreadPriority, -1, \ aoqi@0: "The native priority at which compiler threads should run " \ aoqi@0: "(-1 means no change)") \ aoqi@0: \ aoqi@0: product(intx, VMThreadPriority, -1, \ aoqi@0: "The native priority at which the VM thread should run " \ aoqi@0: "(-1 means no change)") \ aoqi@0: \ aoqi@0: product(bool, CompilerThreadHintNoPreempt, true, \ aoqi@0: "(Solaris only) Give compiler threads an extra quanta") \ aoqi@0: \ aoqi@0: product(bool, VMThreadHintNoPreempt, false, \ aoqi@0: "(Solaris only) Give VM thread an extra quanta") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority1_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority2_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority3_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority4_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority5_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority6_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority7_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority8_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority9_To_OSPriority, -1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: product(intx, JavaPriority10_To_OSPriority,-1, \ aoqi@0: "Map Java priorities to OS priorities") \ aoqi@0: \ aoqi@0: experimental(bool, UseCriticalJavaThreadPriority, false, \ aoqi@0: "Java thread priority 10 maps to critical scheduling priority") \ aoqi@0: \ aoqi@0: experimental(bool, UseCriticalCompilerThreadPriority, false, \ aoqi@0: "Compiler thread(s) run at critical scheduling priority") \ aoqi@0: \ aoqi@0: experimental(bool, UseCriticalCMSThreadPriority, false, \ aoqi@0: "ConcurrentMarkSweep thread runs at critical scheduling priority")\ aoqi@0: \ aoqi@0: /* compiler debugging */ \ aoqi@0: notproduct(intx, CompileTheWorldStartAt, 1, \ aoqi@0: "First class to consider when using +CompileTheWorld") \ aoqi@0: \ aoqi@0: notproduct(intx, CompileTheWorldStopAt, max_jint, \ aoqi@0: "Last class to consider when using +CompileTheWorld") \ aoqi@0: \ aoqi@0: develop(intx, NewCodeParameter, 0, \ aoqi@0: "Testing Only: Create a dedicated integer parameter before " \ aoqi@0: "putback") \ aoqi@0: \ aoqi@0: /* new oopmap storage allocation */ \ aoqi@0: develop(intx, MinOopMapAllocation, 8, \ aoqi@0: "Minimum number of OopMap entries in an OopMapSet") \ aoqi@0: \ aoqi@0: /* Background Compilation */ \ aoqi@0: develop(intx, LongCompileThreshold, 50, \ aoqi@0: "Used with +TraceLongCompiles") \ aoqi@0: \ aoqi@0: product(intx, StarvationMonitorInterval, 200, \ aoqi@0: "Pause between each check (in milliseconds)") \ aoqi@0: \ aoqi@0: /* recompilation */ \ aoqi@0: product_pd(intx, CompileThreshold, \ aoqi@0: "number of interpreted method invocations before (re-)compiling") \ aoqi@0: \ aoqi@0: product_pd(intx, BackEdgeThreshold, \ aoqi@0: "Interpreter Back edge threshold at which an OSR compilation is " \ aoqi@0: "invoked") \ aoqi@0: \ aoqi@0: product(intx, Tier0InvokeNotifyFreqLog, 7, \ aoqi@0: "Interpreter (tier 0) invocation notification frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier2InvokeNotifyFreqLog, 11, \ aoqi@0: "C1 without MDO (tier 2) invocation notification frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier3InvokeNotifyFreqLog, 10, \ aoqi@0: "C1 with MDO profiling (tier 3) invocation notification " \ aoqi@0: "frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier23InlineeNotifyFreqLog, 20, \ aoqi@0: "Inlinee invocation (tiers 2 and 3) notification frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier0BackedgeNotifyFreqLog, 10, \ aoqi@0: "Interpreter (tier 0) invocation notification frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier2BackedgeNotifyFreqLog, 14, \ aoqi@0: "C1 without MDO (tier 2) invocation notification frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier3BackedgeNotifyFreqLog, 13, \ aoqi@0: "C1 with MDO profiling (tier 3) invocation notification " \ aoqi@0: "frequency") \ aoqi@0: \ aoqi@0: product(intx, Tier2CompileThreshold, 0, \ aoqi@0: "threshold at which tier 2 compilation is invoked") \ aoqi@0: \ aoqi@0: product(intx, Tier2BackEdgeThreshold, 0, \ aoqi@0: "Back edge threshold at which tier 2 compilation is invoked") \ aoqi@0: \ aoqi@0: product(intx, Tier3InvocationThreshold, 200, \ aoqi@0: "Compile if number of method invocations crosses this " \ aoqi@0: "threshold") \ aoqi@0: \ aoqi@0: product(intx, Tier3MinInvocationThreshold, 100, \ aoqi@0: "Minimum invocation to compile at tier 3") \ aoqi@0: \ aoqi@0: product(intx, Tier3CompileThreshold, 2000, \ aoqi@0: "Threshold at which tier 3 compilation is invoked (invocation " \ aoqi@0: "minimum must be satisfied") \ aoqi@0: \ aoqi@0: product(intx, Tier3BackEdgeThreshold, 60000, \ aoqi@0: "Back edge threshold at which tier 3 OSR compilation is invoked") \ aoqi@0: \ aoqi@0: product(intx, Tier4InvocationThreshold, 5000, \ aoqi@0: "Compile if number of method invocations crosses this " \ aoqi@0: "threshold") \ aoqi@0: \ aoqi@0: product(intx, Tier4MinInvocationThreshold, 600, \ aoqi@0: "Minimum invocation to compile at tier 4") \ aoqi@0: \ aoqi@0: product(intx, Tier4CompileThreshold, 15000, \ aoqi@0: "Threshold at which tier 4 compilation is invoked (invocation " \ aoqi@0: "minimum must be satisfied") \ aoqi@0: \ aoqi@0: product(intx, Tier4BackEdgeThreshold, 40000, \ aoqi@0: "Back edge threshold at which tier 4 OSR compilation is invoked") \ aoqi@0: \ aoqi@0: product(intx, Tier3DelayOn, 5, \ aoqi@0: "If C2 queue size grows over this amount per compiler thread " \ aoqi@0: "stop compiling at tier 3 and start compiling at tier 2") \ aoqi@0: \ aoqi@0: product(intx, Tier3DelayOff, 2, \ aoqi@0: "If C2 queue size is less than this amount per compiler thread " \ aoqi@0: "allow methods compiled at tier 2 transition to tier 3") \ aoqi@0: \ aoqi@0: product(intx, Tier3LoadFeedback, 5, \ aoqi@0: "Tier 3 thresholds will increase twofold when C1 queue size " \ aoqi@0: "reaches this amount per compiler thread") \ aoqi@0: \ aoqi@0: product(intx, Tier4LoadFeedback, 3, \ aoqi@0: "Tier 4 thresholds will increase twofold when C2 queue size " \ aoqi@0: "reaches this amount per compiler thread") \ aoqi@0: \ aoqi@0: product(intx, TieredCompileTaskTimeout, 50, \ aoqi@0: "Kill compile task if method was not used within " \ aoqi@0: "given timeout in milliseconds") \ aoqi@0: \ aoqi@0: product(intx, TieredStopAtLevel, 4, \ aoqi@0: "Stop at given compilation level") \ aoqi@0: \ aoqi@0: product(intx, Tier0ProfilingStartPercentage, 200, \ aoqi@0: "Start profiling in interpreter if the counters exceed tier 3 " \ aoqi@0: "thresholds by the specified percentage") \ aoqi@0: \ aoqi@0: product(uintx, IncreaseFirstTierCompileThresholdAt, 50, \ aoqi@0: "Increase the compile threshold for C1 compilation if the code " \ aoqi@0: "cache is filled by the specified percentage") \ aoqi@0: \ aoqi@0: product(intx, TieredRateUpdateMinTime, 1, \ aoqi@0: "Minimum rate sampling interval (in milliseconds)") \ aoqi@0: \ aoqi@0: product(intx, TieredRateUpdateMaxTime, 25, \ aoqi@0: "Maximum rate sampling interval (in milliseconds)") \ aoqi@0: \ aoqi@0: product_pd(bool, TieredCompilation, \ aoqi@0: "Enable tiered compilation") \ aoqi@0: \ aoqi@0: product(bool, PrintTieredEvents, false, \ aoqi@0: "Print tiered events notifications") \ aoqi@0: \ aoqi@0: product_pd(intx, OnStackReplacePercentage, \ aoqi@0: "NON_TIERED number of method invocations/branches (expressed as " \ aoqi@0: "% of CompileThreshold) before (re-)compiling OSR code") \ aoqi@0: \ aoqi@0: product(intx, InterpreterProfilePercentage, 33, \ aoqi@0: "NON_TIERED number of method invocations/branches (expressed as " \ aoqi@0: "% of CompileThreshold) before profiling in the interpreter") \ aoqi@0: \ aoqi@0: develop(intx, MaxRecompilationSearchLength, 10, \ aoqi@0: "The maximum number of frames to inspect when searching for " \ aoqi@0: "recompilee") \ aoqi@0: \ aoqi@0: develop(intx, MaxInterpretedSearchLength, 3, \ aoqi@0: "The maximum number of interpreted frames to skip when searching "\ aoqi@0: "for recompilee") \ aoqi@0: \ aoqi@0: develop(intx, DesiredMethodLimit, 8000, \ aoqi@0: "The desired maximum method size (in bytecodes) after inlining") \ aoqi@0: \ aoqi@0: develop(intx, HugeMethodLimit, 8000, \ aoqi@0: "Don't compile methods larger than this if " \ aoqi@0: "+DontCompileHugeMethods") \ aoqi@0: \ aoqi@0: /* New JDK 1.4 reflection implementation */ \ aoqi@0: \ aoqi@0: develop(bool, UseNewReflection, true, \ aoqi@0: "Temporary flag for transition to reflection based on dynamic " \ aoqi@0: "bytecode generation in 1.4; can no longer be turned off in 1.4 " \ aoqi@0: "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \ aoqi@0: "changes were needed") \ aoqi@0: \ aoqi@0: develop(bool, VerifyReflectionBytecodes, false, \ aoqi@0: "Force verification of 1.4 reflection bytecodes. Does not work " \ aoqi@0: "in situations like that described in 4486457 or for " \ aoqi@0: "constructors generated for serialization, so can not be enabled "\ aoqi@0: "in product.") \ aoqi@0: \ aoqi@0: product(bool, ReflectionWrapResolutionErrors, true, \ aoqi@0: "Temporary flag for transition to AbstractMethodError wrapped " \ aoqi@0: "in InvocationTargetException. See 6531596") \ aoqi@0: \ aoqi@0: develop(intx, FastSuperclassLimit, 8, \ aoqi@0: "Depth of hardwired instanceof accelerator array") \ aoqi@0: \ aoqi@0: /* Properties for Java libraries */ \ aoqi@0: \ aoqi@0: product(uintx, MaxDirectMemorySize, 0, \ aoqi@0: "Maximum total size of NIO direct-buffer allocations") \ aoqi@0: \ aoqi@0: /* temporary developer defined flags */ \ aoqi@0: \ aoqi@0: diagnostic(bool, UseNewCode, false, \ aoqi@0: "Testing Only: Use the new version while testing") \ aoqi@0: \ aoqi@0: diagnostic(bool, UseNewCode2, false, \ aoqi@0: "Testing Only: Use the new version while testing") \ aoqi@0: \ aoqi@0: diagnostic(bool, UseNewCode3, false, \ aoqi@0: "Testing Only: Use the new version while testing") \ aoqi@0: \ aoqi@0: /* flags for performance data collection */ \ aoqi@0: \ aoqi@0: product(bool, UsePerfData, falseInEmbedded, \ aoqi@0: "Flag to disable jvmstat instrumentation for performance testing "\ aoqi@0: "and problem isolation purposes") \ aoqi@0: \ aoqi@0: product(bool, PerfDataSaveToFile, false, \ aoqi@0: "Save PerfData memory to hsperfdata_ file on exit") \ aoqi@0: \ aoqi@0: product(ccstr, PerfDataSaveFile, NULL, \ aoqi@0: "Save PerfData memory to the specified absolute pathname. " \ aoqi@0: "The string %p in the file name (if present) " \ aoqi@0: "will be replaced by pid") \ aoqi@0: \ aoqi@0: product(intx, PerfDataSamplingInterval, 50, \ aoqi@0: "Data sampling interval (in milliseconds)") \ aoqi@0: \ aoqi@0: develop(bool, PerfTraceDataCreation, false, \ aoqi@0: "Trace creation of Performance Data Entries") \ aoqi@0: \ aoqi@0: develop(bool, PerfTraceMemOps, false, \ aoqi@0: "Trace PerfMemory create/attach/detach calls") \ aoqi@0: \ aoqi@0: product(bool, PerfDisableSharedMem, false, \ aoqi@0: "Store performance data in standard memory") \ aoqi@0: \ aoqi@0: product(intx, PerfDataMemorySize, 32*K, \ aoqi@0: "Size of performance data memory region. Will be rounded " \ aoqi@0: "up to a multiple of the native os page size.") \ aoqi@0: \ aoqi@0: product(intx, PerfMaxStringConstLength, 1024, \ aoqi@0: "Maximum PerfStringConstant string length before truncation") \ aoqi@0: \ aoqi@0: product(bool, PerfAllowAtExitRegistration, false, \ aoqi@0: "Allow registration of atexit() methods") \ aoqi@0: \ aoqi@0: product(bool, PerfBypassFileSystemCheck, false, \ aoqi@0: "Bypass Win32 file system criteria checks (Windows Only)") \ aoqi@0: \ aoqi@0: product(intx, UnguardOnExecutionViolation, 0, \ aoqi@0: "Unguard page and retry on no-execute fault (Win32 only) " \ aoqi@0: "0=off, 1=conservative, 2=aggressive") \ aoqi@0: \ aoqi@0: /* Serviceability Support */ \ aoqi@0: \ aoqi@0: product(bool, ManagementServer, false, \ aoqi@0: "Create JMX Management Server") \ aoqi@0: \ aoqi@0: product(bool, DisableAttachMechanism, false, \ aoqi@0: "Disable mechanism that allows tools to attach to this VM") \ aoqi@0: \ aoqi@0: product(bool, StartAttachListener, false, \ aoqi@0: "Always start Attach Listener at VM startup") \ aoqi@0: \ aoqi@0: manageable(bool, PrintConcurrentLocks, false, \ aoqi@0: "Print java.util.concurrent locks in thread dump") \ aoqi@0: \ aoqi@0: product(bool, TransmitErrorReport, false, \ aoqi@0: "Enable error report transmission on erroneous termination") \ aoqi@0: \ aoqi@0: product(ccstr, ErrorReportServer, NULL, \ aoqi@0: "Override built-in error report server address") \ aoqi@0: \ aoqi@0: /* Shared spaces */ \ aoqi@0: \ aoqi@0: product(bool, UseSharedSpaces, true, \ aoqi@0: "Use shared spaces for metadata") \ aoqi@0: \ aoqi@0: product(bool, VerifySharedSpaces, false, \ aoqi@0: "Verify shared spaces (false for default archive, true for " \ aoqi@0: "archive specified by -XX:SharedArchiveFile)") \ aoqi@0: \ aoqi@0: product(bool, RequireSharedSpaces, false, \ aoqi@0: "Require shared spaces for metadata") \ aoqi@0: \ aoqi@0: product(bool, DumpSharedSpaces, false, \ aoqi@0: "Special mode: JVM reads a class list, loads classes, builds " \ aoqi@0: "shared spaces, and dumps the shared spaces to a file to be " \ aoqi@0: "used in future JVM runs") \ aoqi@0: \ aoqi@0: product(bool, PrintSharedSpaces, false, \ aoqi@0: "Print usage of shared spaces") \ aoqi@0: \ aoqi@0: product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \ aoqi@0: "Size of read-write space for metadata (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \ aoqi@0: "Size of read-only space for metadata (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \ aoqi@0: "Size of the shared miscellaneous data area (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, SharedMiscCodeSize, 120*K, \ aoqi@0: "Size of the shared miscellaneous code area (in bytes)") \ aoqi@0: \ aoqi@0: product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \ aoqi@0: NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \ aoqi@0: "Address to allocate shared memory region for class data") \ aoqi@0: \ aoqi@0: diagnostic(bool, EnableInvokeDynamic, true, \ aoqi@0: "support JSR 292 (method handles, invokedynamic, " \ aoqi@0: "anonymous classes") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintMethodHandleStubs, false, \ aoqi@0: "Print generated stub code for method handles") \ aoqi@0: \ aoqi@0: develop(bool, TraceMethodHandles, false, \ aoqi@0: "trace internal method handle operations") \ aoqi@0: \ aoqi@0: diagnostic(bool, VerifyMethodHandles, trueInDebug, \ aoqi@0: "perform extra checks when constructing method handles") \ aoqi@0: \ aoqi@0: diagnostic(bool, ShowHiddenFrames, false, \ aoqi@0: "show method handle implementation frames (usually hidden)") \ aoqi@0: \ aoqi@0: experimental(bool, TrustFinalNonStaticFields, false, \ aoqi@0: "trust final non-static declarations for constant folding") \ aoqi@0: \ aoqi@0: diagnostic(bool, FoldStableValues, true, \ aoqi@0: "Optimize loads from stable fields (marked w/ @Stable)") \ aoqi@0: \ aoqi@0: develop(bool, TraceInvokeDynamic, false, \ aoqi@0: "trace internal invoke dynamic operations") \ aoqi@0: \ aoqi@0: diagnostic(bool, PauseAtStartup, false, \ aoqi@0: "Causes the VM to pause at startup time and wait for the pause " \ aoqi@0: "file to be removed (default: ./vm.paused.)") \ aoqi@0: \ aoqi@0: diagnostic(ccstr, PauseAtStartupFile, NULL, \ aoqi@0: "The file to create and for whose removal to await when pausing " \ aoqi@0: "at startup. (default: ./vm.paused.)") \ aoqi@0: \ aoqi@0: diagnostic(bool, PauseAtExit, false, \ aoqi@0: "Pause and wait for keypress on exit if a debugger is attached") \ aoqi@0: \ aoqi@0: product(bool, ExtendedDTraceProbes, false, \ aoqi@0: "Enable performance-impacting dtrace probes") \ aoqi@0: \ aoqi@0: product(bool, DTraceMethodProbes, false, \ aoqi@0: "Enable dtrace probes for method-entry and method-exit") \ aoqi@0: \ aoqi@0: product(bool, DTraceAllocProbes, false, \ aoqi@0: "Enable dtrace probes for object allocation") \ aoqi@0: \ aoqi@0: product(bool, DTraceMonitorProbes, false, \ aoqi@0: "Enable dtrace probes for monitor events") \ aoqi@0: \ aoqi@0: product(bool, RelaxAccessControlCheck, false, \ aoqi@0: "Relax the access control checks in the verifier") \ aoqi@0: \ aoqi@0: diagnostic(bool, PrintDTraceDOF, false, \ aoqi@0: "Print the DTrace DOF passed to the system for JSDT probes") \ aoqi@0: \ aoqi@0: product(uintx, StringTableSize, defaultStringTableSize, \ aoqi@0: "Number of buckets in the interned String table") \ aoqi@0: \ aoqi@0: experimental(uintx, SymbolTableSize, defaultSymbolTableSize, \ aoqi@0: "Number of buckets in the JVM internal Symbol table") \ aoqi@0: \ aoqi@0: product(bool, UseStringDeduplication, false, \ aoqi@0: "Use string deduplication") \ aoqi@0: \ aoqi@0: product(bool, PrintStringDeduplicationStatistics, false, \ aoqi@0: "Print string deduplication statistics") \ aoqi@0: \ aoqi@0: product(uintx, StringDeduplicationAgeThreshold, 3, \ aoqi@0: "A string must reach this age (or be promoted to an old region) " \ aoqi@0: "to be considered for deduplication") \ aoqi@0: \ aoqi@0: diagnostic(bool, StringDeduplicationResizeALot, false, \ aoqi@0: "Force table resize every time the table is scanned") \ aoqi@0: \ aoqi@0: diagnostic(bool, StringDeduplicationRehashALot, false, \ aoqi@0: "Force table rehash every time the table is scanned") \ aoqi@0: \ aoqi@0: develop(bool, TraceDefaultMethods, false, \ aoqi@0: "Trace the default method processing steps") \ aoqi@0: \ aoqi@0: develop(bool, VerifyGenericSignatures, false, \ aoqi@0: "Abort VM on erroneous or inconsistent generic signatures") \ aoqi@0: \ aoqi@0: product(bool, UseVMInterruptibleIO, false, \ aoqi@0: "(Unstable, Solaris-specific) Thread interrupt before or with " \ aoqi@0: "EINTR for I/O operations results in OS_INTRPT. The default " \ aoqi@0: "value of this flag is true for JDK 6 and earlier") \ aoqi@0: \ aoqi@0: diagnostic(bool, WhiteBoxAPI, false, \ aoqi@0: "Enable internal testing APIs") \ aoqi@0: \ aoqi@0: product(bool, PrintGCCause, true, \ aoqi@0: "Include GC cause in GC logging") \ aoqi@0: \ aoqi@0: product(bool , AllowNonVirtualCalls, false, \ aoqi@0: "Obey the ACC_SUPER flag and allow invokenonvirtual calls") \ aoqi@0: \ aoqi@0: diagnostic(ccstr, SharedArchiveFile, NULL, \ aoqi@0: "Override the default location of the CDS archive file") \ aoqi@0: \ aoqi@0: experimental(uintx, ArrayAllocatorMallocLimit, \ aoqi@0: SOLARIS_ONLY(64*K) NOT_SOLARIS(max_uintx), \ aoqi@0: "Allocation less than this value will be allocated " \ aoqi@0: "using malloc. Larger allocations will use mmap.") \ aoqi@0: \ aoqi@0: product(bool, EnableTracing, false, \ aoqi@0: "Enable event-based tracing") \ aoqi@0: \ aoqi@0: product(bool, UseLockedTracing, false, \ aoqi@0: "Use locked-tracing when doing event-based tracing") aoqi@0: aoqi@0: /* aoqi@0: * Macros for factoring of globals aoqi@0: */ aoqi@0: aoqi@0: // Interface macros aoqi@0: #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name; aoqi@0: #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #ifdef PRODUCT aoqi@0: #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value; aoqi@0: #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name; aoqi@0: #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name; aoqi@0: #else aoqi@0: #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name; aoqi@0: #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #endif aoqi@0: // Special LP64 flags, product only needed for now. aoqi@0: #ifdef _LP64 aoqi@0: #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name; aoqi@0: #else aoqi@0: #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value; aoqi@0: #endif // _LP64 aoqi@0: aoqi@0: // Implementation macros aoqi@0: #define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value; aoqi@0: #define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name; aoqi@0: #define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value; aoqi@0: #define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value; aoqi@0: #define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value; aoqi@0: #define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value; aoqi@0: #ifdef PRODUCT aoqi@0: #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type CONST_##name = value; aoqi@0: #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type CONST_##name = pd_##name; aoqi@0: #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type CONST_##name = value; aoqi@0: #else aoqi@0: #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value; aoqi@0: #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name; aoqi@0: #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value; aoqi@0: #endif aoqi@0: #ifdef _LP64 aoqi@0: #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value; aoqi@0: #else aoqi@0: #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */ aoqi@0: #endif // _LP64 aoqi@0: aoqi@0: RUNTIME_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG, DECLARE_MANAGEABLE_FLAG, DECLARE_PRODUCT_RW_FLAG, DECLARE_LP64_PRODUCT_FLAG) aoqi@0: aoqi@0: RUNTIME_OS_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG) aoqi@0: aoqi@0: ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG) aoqi@0: aoqi@0: // Extensions aoqi@0: aoqi@0: #include "runtime/globals_ext.hpp" aoqi@0: aoqi@0: #endif // SHARE_VM_RUNTIME_GLOBALS_HPP