src/share/vm/runtime/globals.hpp

Fri, 29 Apr 2016 00:06:10 +0800

author
aoqi
date
Fri, 29 Apr 2016 00:06:10 +0800
changeset 1
2d8a650513c2
parent 0
f90c822e73f8
child 25
873fd82b133d
permissions
-rw-r--r--

Added MIPS 64-bit port.

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation.
aoqi@0 8 *
aoqi@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 12 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 13 * accompanied this code).
aoqi@0 14 *
aoqi@0 15 * You should have received a copy of the GNU General Public License version
aoqi@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 18 *
aoqi@0 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 20 * or visit www.oracle.com if you need additional information or have any
aoqi@0 21 * questions.
aoqi@0 22 *
aoqi@0 23 */
aoqi@0 24
aoqi@1 25 /*
aoqi@1 26 * This file has been modified by Loongson Technology in 2015. These
aoqi@1 27 * modifications are Copyright (c) 2015 Loongson Technology, and are made
aoqi@1 28 * available on the same license terms set forth above.
aoqi@1 29 */
aoqi@1 30
aoqi@0 31 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
aoqi@0 32 #define SHARE_VM_RUNTIME_GLOBALS_HPP
aoqi@0 33
aoqi@0 34 #include "utilities/debug.hpp"
aoqi@0 35
aoqi@0 36 // use this for flags that are true per default in the tiered build
aoqi@0 37 // but false in non-tiered builds, and vice versa
aoqi@0 38 #ifdef TIERED
aoqi@0 39 #define trueInTiered true
aoqi@0 40 #define falseInTiered false
aoqi@0 41 #else
aoqi@0 42 #define trueInTiered false
aoqi@0 43 #define falseInTiered true
aoqi@0 44 #endif
aoqi@0 45
aoqi@0 46 #ifdef TARGET_ARCH_x86
aoqi@0 47 # include "globals_x86.hpp"
aoqi@0 48 #endif
aoqi@0 49 #ifdef TARGET_ARCH_sparc
aoqi@0 50 # include "globals_sparc.hpp"
aoqi@0 51 #endif
aoqi@0 52 #ifdef TARGET_ARCH_zero
aoqi@0 53 # include "globals_zero.hpp"
aoqi@0 54 #endif
aoqi@0 55 #ifdef TARGET_ARCH_arm
aoqi@0 56 # include "globals_arm.hpp"
aoqi@0 57 #endif
aoqi@0 58 #ifdef TARGET_ARCH_ppc
aoqi@0 59 # include "globals_ppc.hpp"
aoqi@0 60 #endif
aoqi@1 61 #ifdef TARGET_ARCH_mips
aoqi@1 62 # include "globals_mips.hpp"
aoqi@1 63 #endif
aoqi@0 64 #ifdef TARGET_OS_FAMILY_linux
aoqi@0 65 # include "globals_linux.hpp"
aoqi@0 66 #endif
aoqi@0 67 #ifdef TARGET_OS_FAMILY_solaris
aoqi@0 68 # include "globals_solaris.hpp"
aoqi@0 69 #endif
aoqi@0 70 #ifdef TARGET_OS_FAMILY_windows
aoqi@0 71 # include "globals_windows.hpp"
aoqi@0 72 #endif
aoqi@0 73 #ifdef TARGET_OS_FAMILY_aix
aoqi@0 74 # include "globals_aix.hpp"
aoqi@0 75 #endif
aoqi@0 76 #ifdef TARGET_OS_FAMILY_bsd
aoqi@0 77 # include "globals_bsd.hpp"
aoqi@0 78 #endif
aoqi@0 79 #ifdef TARGET_OS_ARCH_linux_x86
aoqi@0 80 # include "globals_linux_x86.hpp"
aoqi@0 81 #endif
aoqi@0 82 #ifdef TARGET_OS_ARCH_linux_sparc
aoqi@0 83 # include "globals_linux_sparc.hpp"
aoqi@0 84 #endif
aoqi@1 85 #ifdef TARGET_OS_ARCH_linux_mips
aoqi@1 86 # include "globals_linux_mips.hpp"
aoqi@1 87 #endif
aoqi@0 88 #ifdef TARGET_OS_ARCH_linux_zero
aoqi@0 89 # include "globals_linux_zero.hpp"
aoqi@0 90 #endif
aoqi@0 91 #ifdef TARGET_OS_ARCH_solaris_x86
aoqi@0 92 # include "globals_solaris_x86.hpp"
aoqi@0 93 #endif
aoqi@0 94 #ifdef TARGET_OS_ARCH_solaris_sparc
aoqi@0 95 # include "globals_solaris_sparc.hpp"
aoqi@0 96 #endif
aoqi@0 97 #ifdef TARGET_OS_ARCH_windows_x86
aoqi@0 98 # include "globals_windows_x86.hpp"
aoqi@0 99 #endif
aoqi@0 100 #ifdef TARGET_OS_ARCH_linux_arm
aoqi@0 101 # include "globals_linux_arm.hpp"
aoqi@0 102 #endif
aoqi@0 103 #ifdef TARGET_OS_ARCH_linux_ppc
aoqi@0 104 # include "globals_linux_ppc.hpp"
aoqi@0 105 #endif
aoqi@0 106 #ifdef TARGET_OS_ARCH_aix_ppc
aoqi@0 107 # include "globals_aix_ppc.hpp"
aoqi@0 108 #endif
aoqi@0 109 #ifdef TARGET_OS_ARCH_bsd_x86
aoqi@0 110 # include "globals_bsd_x86.hpp"
aoqi@0 111 #endif
aoqi@0 112 #ifdef TARGET_OS_ARCH_bsd_zero
aoqi@0 113 # include "globals_bsd_zero.hpp"
aoqi@0 114 #endif
aoqi@0 115 #ifdef COMPILER1
aoqi@0 116 #ifdef TARGET_ARCH_x86
aoqi@0 117 # include "c1_globals_x86.hpp"
aoqi@0 118 #endif
aoqi@0 119 #ifdef TARGET_ARCH_sparc
aoqi@0 120 # include "c1_globals_sparc.hpp"
aoqi@0 121 #endif
aoqi@1 122 #ifdef TARGET_ARCH_mips
aoqi@1 123 # include "c1_globals_mips.hpp"
aoqi@1 124 #endif
aoqi@0 125 #ifdef TARGET_ARCH_arm
aoqi@0 126 # include "c1_globals_arm.hpp"
aoqi@0 127 #endif
aoqi@0 128 #ifdef TARGET_ARCH_ppc
aoqi@0 129 # include "c1_globals_ppc.hpp"
aoqi@0 130 #endif
aoqi@0 131 #ifdef TARGET_OS_FAMILY_linux
aoqi@0 132 # include "c1_globals_linux.hpp"
aoqi@0 133 #endif
aoqi@0 134 #ifdef TARGET_OS_FAMILY_solaris
aoqi@0 135 # include "c1_globals_solaris.hpp"
aoqi@0 136 #endif
aoqi@0 137 #ifdef TARGET_OS_FAMILY_windows
aoqi@0 138 # include "c1_globals_windows.hpp"
aoqi@0 139 #endif
aoqi@0 140 #ifdef TARGET_OS_FAMILY_aix
aoqi@0 141 # include "c1_globals_aix.hpp"
aoqi@0 142 #endif
aoqi@0 143 #ifdef TARGET_OS_FAMILY_bsd
aoqi@0 144 # include "c1_globals_bsd.hpp"
aoqi@0 145 #endif
aoqi@0 146 #endif
aoqi@0 147 #ifdef COMPILER2
aoqi@0 148 #ifdef TARGET_ARCH_x86
aoqi@0 149 # include "c2_globals_x86.hpp"
aoqi@0 150 #endif
aoqi@0 151 #ifdef TARGET_ARCH_sparc
aoqi@0 152 # include "c2_globals_sparc.hpp"
aoqi@0 153 #endif
aoqi@1 154 #ifdef TARGET_ARCH_mips
aoqi@1 155 # include "c2_globals_mips.hpp"
aoqi@1 156 #endif
aoqi@0 157 #ifdef TARGET_ARCH_arm
aoqi@0 158 # include "c2_globals_arm.hpp"
aoqi@0 159 #endif
aoqi@0 160 #ifdef TARGET_ARCH_ppc
aoqi@0 161 # include "c2_globals_ppc.hpp"
aoqi@0 162 #endif
aoqi@0 163 #ifdef TARGET_OS_FAMILY_linux
aoqi@0 164 # include "c2_globals_linux.hpp"
aoqi@0 165 #endif
aoqi@0 166 #ifdef TARGET_OS_FAMILY_solaris
aoqi@0 167 # include "c2_globals_solaris.hpp"
aoqi@0 168 #endif
aoqi@0 169 #ifdef TARGET_OS_FAMILY_windows
aoqi@0 170 # include "c2_globals_windows.hpp"
aoqi@0 171 #endif
aoqi@0 172 #ifdef TARGET_OS_FAMILY_aix
aoqi@0 173 # include "c2_globals_aix.hpp"
aoqi@0 174 #endif
aoqi@0 175 #ifdef TARGET_OS_FAMILY_bsd
aoqi@0 176 # include "c2_globals_bsd.hpp"
aoqi@0 177 #endif
aoqi@0 178 #endif
aoqi@0 179 #ifdef SHARK
aoqi@0 180 #ifdef TARGET_ARCH_zero
aoqi@0 181 # include "shark_globals_zero.hpp"
aoqi@0 182 #endif
aoqi@0 183 #endif
aoqi@0 184
aoqi@0 185 #if !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK)
aoqi@0 186 define_pd_global(bool, BackgroundCompilation, false);
aoqi@0 187 define_pd_global(bool, UseTLAB, false);
aoqi@0 188 define_pd_global(bool, CICompileOSR, false);
aoqi@0 189 define_pd_global(bool, UseTypeProfile, false);
aoqi@0 190 define_pd_global(bool, UseOnStackReplacement, false);
aoqi@0 191 define_pd_global(bool, InlineIntrinsics, false);
aoqi@0 192 define_pd_global(bool, PreferInterpreterNativeStubs, true);
aoqi@0 193 define_pd_global(bool, ProfileInterpreter, false);
aoqi@0 194 define_pd_global(bool, ProfileTraps, false);
aoqi@0 195 define_pd_global(bool, TieredCompilation, false);
aoqi@0 196
aoqi@0 197 define_pd_global(intx, CompileThreshold, 0);
aoqi@0 198 define_pd_global(intx, BackEdgeThreshold, 0);
aoqi@0 199
aoqi@0 200 define_pd_global(intx, OnStackReplacePercentage, 0);
aoqi@0 201 define_pd_global(bool, ResizeTLAB, false);
aoqi@0 202 define_pd_global(intx, FreqInlineSize, 0);
aoqi@0 203 define_pd_global(intx, NewSizeThreadIncrease, 4*K);
aoqi@0 204 define_pd_global(intx, InlineClassNatives, true);
aoqi@0 205 define_pd_global(intx, InlineUnsafeOps, true);
aoqi@0 206 define_pd_global(intx, InitialCodeCacheSize, 160*K);
aoqi@0 207 define_pd_global(intx, ReservedCodeCacheSize, 32*M);
aoqi@0 208 define_pd_global(intx, CodeCacheExpansionSize, 32*K);
aoqi@0 209 define_pd_global(intx, CodeCacheMinBlockLength, 1);
aoqi@0 210 define_pd_global(intx, CodeCacheMinimumUseSpace, 200*K);
aoqi@0 211 define_pd_global(uintx,MetaspaceSize, ScaleForWordSize(4*M));
aoqi@0 212 define_pd_global(bool, NeverActAsServerClassMachine, true);
aoqi@0 213 define_pd_global(uint64_t,MaxRAM, 1ULL*G);
aoqi@0 214 #define CI_COMPILER_COUNT 0
aoqi@0 215 #else
aoqi@0 216
aoqi@0 217 #ifdef COMPILER2
aoqi@0 218 #define CI_COMPILER_COUNT 2
aoqi@0 219 #else
aoqi@0 220 #define CI_COMPILER_COUNT 1
aoqi@0 221 #endif // COMPILER2
aoqi@0 222
aoqi@0 223 #endif // no compilers
aoqi@0 224
aoqi@0 225 // string type aliases used only in this file
aoqi@0 226 typedef const char* ccstr;
aoqi@0 227 typedef const char* ccstrlist; // represents string arguments which accumulate
aoqi@0 228
aoqi@0 229 struct Flag {
aoqi@0 230 enum Flags {
aoqi@0 231 // value origin
aoqi@0 232 DEFAULT = 0,
aoqi@0 233 COMMAND_LINE = 1,
aoqi@0 234 ENVIRON_VAR = 2,
aoqi@0 235 CONFIG_FILE = 3,
aoqi@0 236 MANAGEMENT = 4,
aoqi@0 237 ERGONOMIC = 5,
aoqi@0 238 ATTACH_ON_DEMAND = 6,
aoqi@0 239 INTERNAL = 7,
aoqi@0 240
aoqi@0 241 LAST_VALUE_ORIGIN = INTERNAL,
aoqi@0 242 VALUE_ORIGIN_BITS = 4,
aoqi@0 243 VALUE_ORIGIN_MASK = right_n_bits(VALUE_ORIGIN_BITS),
aoqi@0 244
aoqi@0 245 // flag kind
aoqi@0 246 KIND_PRODUCT = 1 << 4,
aoqi@0 247 KIND_MANAGEABLE = 1 << 5,
aoqi@0 248 KIND_DIAGNOSTIC = 1 << 6,
aoqi@0 249 KIND_EXPERIMENTAL = 1 << 7,
aoqi@0 250 KIND_NOT_PRODUCT = 1 << 8,
aoqi@0 251 KIND_DEVELOP = 1 << 9,
aoqi@0 252 KIND_PLATFORM_DEPENDENT = 1 << 10,
aoqi@0 253 KIND_READ_WRITE = 1 << 11,
aoqi@0 254 KIND_C1 = 1 << 12,
aoqi@0 255 KIND_C2 = 1 << 13,
aoqi@0 256 KIND_ARCH = 1 << 14,
aoqi@0 257 KIND_SHARK = 1 << 15,
aoqi@0 258 KIND_LP64_PRODUCT = 1 << 16,
aoqi@0 259 KIND_COMMERCIAL = 1 << 17,
aoqi@0 260
aoqi@0 261 KIND_MASK = ~VALUE_ORIGIN_MASK
aoqi@0 262 };
aoqi@0 263
aoqi@0 264 const char* _type;
aoqi@0 265 const char* _name;
aoqi@0 266 void* _addr;
aoqi@0 267 NOT_PRODUCT(const char* _doc;)
aoqi@0 268 Flags _flags;
aoqi@0 269
aoqi@0 270 // points to all Flags static array
aoqi@0 271 static Flag* flags;
aoqi@0 272
aoqi@0 273 // number of flags
aoqi@0 274 static size_t numFlags;
aoqi@0 275
aoqi@0 276 static Flag* find_flag(const char* name, size_t length, bool allow_locked = false, bool return_flag = false);
aoqi@0 277 static Flag* fuzzy_match(const char* name, size_t length, bool allow_locked = false);
aoqi@0 278
aoqi@0 279 void check_writable();
aoqi@0 280
aoqi@0 281 bool is_bool() const;
aoqi@0 282 bool get_bool() const;
aoqi@0 283 void set_bool(bool value);
aoqi@0 284
aoqi@0 285 bool is_intx() const;
aoqi@0 286 intx get_intx() const;
aoqi@0 287 void set_intx(intx value);
aoqi@0 288
aoqi@0 289 bool is_uintx() const;
aoqi@0 290 uintx get_uintx() const;
aoqi@0 291 void set_uintx(uintx value);
aoqi@0 292
aoqi@0 293 bool is_uint64_t() const;
aoqi@0 294 uint64_t get_uint64_t() const;
aoqi@0 295 void set_uint64_t(uint64_t value);
aoqi@0 296
aoqi@0 297 bool is_double() const;
aoqi@0 298 double get_double() const;
aoqi@0 299 void set_double(double value);
aoqi@0 300
aoqi@0 301 bool is_ccstr() const;
aoqi@0 302 bool ccstr_accumulates() const;
aoqi@0 303 ccstr get_ccstr() const;
aoqi@0 304 void set_ccstr(ccstr value);
aoqi@0 305
aoqi@0 306 Flags get_origin();
aoqi@0 307 void set_origin(Flags origin);
aoqi@0 308
aoqi@0 309 bool is_default();
aoqi@0 310 bool is_ergonomic();
aoqi@0 311 bool is_command_line();
aoqi@0 312
aoqi@0 313 bool is_product() const;
aoqi@0 314 bool is_manageable() const;
aoqi@0 315 bool is_diagnostic() const;
aoqi@0 316 bool is_experimental() const;
aoqi@0 317 bool is_notproduct() const;
aoqi@0 318 bool is_develop() const;
aoqi@0 319 bool is_read_write() const;
aoqi@0 320 bool is_commercial() const;
aoqi@0 321
aoqi@0 322 bool is_constant_in_binary() const;
aoqi@0 323
aoqi@0 324 bool is_unlocker() const;
aoqi@0 325 bool is_unlocked() const;
aoqi@0 326 bool is_writeable() const;
aoqi@0 327 bool is_external() const;
aoqi@0 328
aoqi@0 329 bool is_unlocker_ext() const;
aoqi@0 330 bool is_unlocked_ext() const;
aoqi@0 331 bool is_writeable_ext() const;
aoqi@0 332 bool is_external_ext() const;
aoqi@0 333
aoqi@0 334 void get_locked_message(char*, int) const;
aoqi@0 335 void get_locked_message_ext(char*, int) const;
aoqi@0 336
aoqi@0 337 void print_on(outputStream* st, bool withComments = false );
aoqi@0 338 void print_kind(outputStream* st);
aoqi@0 339 void print_as_flag(outputStream* st);
aoqi@0 340 };
aoqi@0 341
aoqi@0 342 // debug flags control various aspects of the VM and are global accessible
aoqi@0 343
aoqi@0 344 // use FlagSetting to temporarily change some debug flag
aoqi@0 345 // e.g. FlagSetting fs(DebugThisAndThat, true);
aoqi@0 346 // restored to previous value upon leaving scope
aoqi@0 347 class FlagSetting {
aoqi@0 348 bool val;
aoqi@0 349 bool* flag;
aoqi@0 350 public:
aoqi@0 351 FlagSetting(bool& fl, bool newValue) { flag = &fl; val = fl; fl = newValue; }
aoqi@0 352 ~FlagSetting() { *flag = val; }
aoqi@0 353 };
aoqi@0 354
aoqi@0 355
aoqi@0 356 class CounterSetting {
aoqi@0 357 intx* counter;
aoqi@0 358 public:
aoqi@0 359 CounterSetting(intx* cnt) { counter = cnt; (*counter)++; }
aoqi@0 360 ~CounterSetting() { (*counter)--; }
aoqi@0 361 };
aoqi@0 362
aoqi@0 363
aoqi@0 364 class UIntFlagSetting {
aoqi@0 365 uintx val;
aoqi@0 366 uintx* flag;
aoqi@0 367 public:
aoqi@0 368 UIntFlagSetting(uintx& fl, uintx newValue) { flag = &fl; val = fl; fl = newValue; }
aoqi@0 369 ~UIntFlagSetting() { *flag = val; }
aoqi@0 370 };
aoqi@0 371
aoqi@0 372
aoqi@0 373 class DoubleFlagSetting {
aoqi@0 374 double val;
aoqi@0 375 double* flag;
aoqi@0 376 public:
aoqi@0 377 DoubleFlagSetting(double& fl, double newValue) { flag = &fl; val = fl; fl = newValue; }
aoqi@0 378 ~DoubleFlagSetting() { *flag = val; }
aoqi@0 379 };
aoqi@0 380
aoqi@0 381
aoqi@0 382 class CommandLineFlags {
aoqi@0 383 public:
aoqi@0 384 static bool boolAt(char* name, size_t len, bool* value);
aoqi@0 385 static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); }
aoqi@0 386 static bool boolAtPut(char* name, size_t len, bool* value, Flag::Flags origin);
aoqi@0 387 static bool boolAtPut(char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); }
aoqi@0 388
aoqi@0 389 static bool intxAt(char* name, size_t len, intx* value);
aoqi@0 390 static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); }
aoqi@0 391 static bool intxAtPut(char* name, size_t len, intx* value, Flag::Flags origin);
aoqi@0 392 static bool intxAtPut(char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); }
aoqi@0 393
aoqi@0 394 static bool uintxAt(char* name, size_t len, uintx* value);
aoqi@0 395 static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); }
aoqi@0 396 static bool uintxAtPut(char* name, size_t len, uintx* value, Flag::Flags origin);
aoqi@0 397 static bool uintxAtPut(char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); }
aoqi@0 398
aoqi@0 399 static bool uint64_tAt(char* name, size_t len, uint64_t* value);
aoqi@0 400 static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); }
aoqi@0 401 static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, Flag::Flags origin);
aoqi@0 402 static bool uint64_tAtPut(char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); }
aoqi@0 403
aoqi@0 404 static bool doubleAt(char* name, size_t len, double* value);
aoqi@0 405 static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); }
aoqi@0 406 static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin);
aoqi@0 407 static bool doubleAtPut(char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); }
aoqi@0 408
aoqi@0 409 static bool ccstrAt(char* name, size_t len, ccstr* value);
aoqi@0 410 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); }
aoqi@0 411 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin);
aoqi@0 412 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
aoqi@0 413
aoqi@0 414 // Returns false if name is not a command line flag.
aoqi@0 415 static bool wasSetOnCmdline(const char* name, bool* value);
aoqi@0 416 static void printSetFlags(outputStream* out);
aoqi@0 417
aoqi@0 418 static void printFlags(outputStream* out, bool withComments);
aoqi@0 419
aoqi@0 420 static void verify() PRODUCT_RETURN;
aoqi@0 421 };
aoqi@0 422
aoqi@0 423 // use this for flags that are true by default in the debug version but
aoqi@0 424 // false in the optimized version, and vice versa
aoqi@0 425 #ifdef ASSERT
aoqi@0 426 #define trueInDebug true
aoqi@0 427 #define falseInDebug false
aoqi@0 428 #else
aoqi@0 429 #define trueInDebug false
aoqi@0 430 #define falseInDebug true
aoqi@0 431 #endif
aoqi@0 432
aoqi@0 433 // use this for flags that are true per default in the product build
aoqi@0 434 // but false in development builds, and vice versa
aoqi@0 435 #ifdef PRODUCT
aoqi@0 436 #define trueInProduct true
aoqi@0 437 #define falseInProduct false
aoqi@0 438 #else
aoqi@0 439 #define trueInProduct false
aoqi@0 440 #define falseInProduct true
aoqi@0 441 #endif
aoqi@0 442
aoqi@0 443 #ifdef JAVASE_EMBEDDED
aoqi@0 444 #define falseInEmbedded false
aoqi@0 445 #else
aoqi@0 446 #define falseInEmbedded true
aoqi@0 447 #endif
aoqi@0 448
aoqi@0 449 // develop flags are settable / visible only during development and are constant in the PRODUCT version
aoqi@0 450 // product flags are always settable / visible
aoqi@0 451 // notproduct flags are settable / visible only during development and are not declared in the PRODUCT version
aoqi@0 452
aoqi@0 453 // A flag must be declared with one of the following types:
aoqi@0 454 // bool, intx, uintx, ccstr.
aoqi@0 455 // The type "ccstr" is an alias for "const char*" and is used
aoqi@0 456 // only in this file, because the macrology requires single-token type names.
aoqi@0 457
aoqi@0 458 // Note: Diagnostic options not meant for VM tuning or for product modes.
aoqi@0 459 // They are to be used for VM quality assurance or field diagnosis
aoqi@0 460 // of VM bugs. They are hidden so that users will not be encouraged to
aoqi@0 461 // try them as if they were VM ordinary execution options. However, they
aoqi@0 462 // are available in the product version of the VM. Under instruction
aoqi@0 463 // from support engineers, VM customers can turn them on to collect
aoqi@0 464 // diagnostic information about VM problems. To use a VM diagnostic
aoqi@0 465 // option, you must first specify +UnlockDiagnosticVMOptions.
aoqi@0 466 // (This master switch also affects the behavior of -Xprintflags.)
aoqi@0 467 //
aoqi@0 468 // experimental flags are in support of features that are not
aoqi@0 469 // part of the officially supported product, but are available
aoqi@0 470 // for experimenting with. They could, for example, be performance
aoqi@0 471 // features that may not have undergone full or rigorous QA, but which may
aoqi@0 472 // help performance in some cases and released for experimentation
aoqi@0 473 // by the community of users and developers. This flag also allows one to
aoqi@0 474 // be able to build a fully supported product that nonetheless also
aoqi@0 475 // ships with some unsupported, lightly tested, experimental features.
aoqi@0 476 // Like the UnlockDiagnosticVMOptions flag above, there is a corresponding
aoqi@0 477 // UnlockExperimentalVMOptions flag, which allows the control and
aoqi@0 478 // modification of the experimental flags.
aoqi@0 479 //
aoqi@0 480 // Nota bene: neither diagnostic nor experimental options should be used casually,
aoqi@0 481 // and they are not supported on production loads, except under explicit
aoqi@0 482 // direction from support engineers.
aoqi@0 483 //
aoqi@0 484 // manageable flags are writeable external product flags.
aoqi@0 485 // They are dynamically writeable through the JDK management interface
aoqi@0 486 // (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole.
aoqi@0 487 // These flags are external exported interface (see CCC). The list of
aoqi@0 488 // manageable flags can be queried programmatically through the management
aoqi@0 489 // interface.
aoqi@0 490 //
aoqi@0 491 // A flag can be made as "manageable" only if
aoqi@0 492 // - the flag is defined in a CCC as an external exported interface.
aoqi@0 493 // - the VM implementation supports dynamic setting of the flag.
aoqi@0 494 // This implies that the VM must *always* query the flag variable
aoqi@0 495 // and not reuse state related to the flag state at any given time.
aoqi@0 496 // - you want the flag to be queried programmatically by the customers.
aoqi@0 497 //
aoqi@0 498 // product_rw flags are writeable internal product flags.
aoqi@0 499 // They are like "manageable" flags but for internal/private use.
aoqi@0 500 // The list of product_rw flags are internal/private flags which
aoqi@0 501 // may be changed/removed in a future release. It can be set
aoqi@0 502 // through the management interface to get/set value
aoqi@0 503 // when the name of flag is supplied.
aoqi@0 504 //
aoqi@0 505 // A flag can be made as "product_rw" only if
aoqi@0 506 // - the VM implementation supports dynamic setting of the flag.
aoqi@0 507 // This implies that the VM must *always* query the flag variable
aoqi@0 508 // and not reuse state related to the flag state at any given time.
aoqi@0 509 //
aoqi@0 510 // Note that when there is a need to support develop flags to be writeable,
aoqi@0 511 // it can be done in the same way as product_rw.
aoqi@0 512
aoqi@0 513 #define RUNTIME_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct, manageable, product_rw, lp64_product) \
aoqi@0 514 \
aoqi@0 515 lp64_product(bool, UseCompressedOops, false, \
aoqi@0 516 "Use 32-bit object references in 64-bit VM. " \
aoqi@0 517 "lp64_product means flag is always constant in 32 bit VM") \
aoqi@0 518 \
aoqi@0 519 lp64_product(bool, UseCompressedClassPointers, false, \
aoqi@0 520 "Use 32-bit class pointers in 64-bit VM. " \
aoqi@0 521 "lp64_product means flag is always constant in 32 bit VM") \
aoqi@0 522 \
aoqi@0 523 notproduct(bool, CheckCompressedOops, true, \
aoqi@0 524 "Generate checks in encoding/decoding code in debug VM") \
aoqi@0 525 \
aoqi@0 526 product_pd(uintx, HeapBaseMinAddress, \
aoqi@0 527 "OS specific low limit for heap base address") \
aoqi@0 528 \
aoqi@0 529 diagnostic(bool, PrintCompressedOopsMode, false, \
aoqi@0 530 "Print compressed oops base address and encoding mode") \
aoqi@0 531 \
aoqi@0 532 lp64_product(intx, ObjectAlignmentInBytes, 8, \
aoqi@0 533 "Default object alignment in bytes, 8 is minimum") \
aoqi@0 534 \
aoqi@0 535 product(bool, AssumeMP, false, \
aoqi@0 536 "Instruct the VM to assume multiple processors are available") \
aoqi@0 537 \
aoqi@0 538 /* UseMembar is theoretically a temp flag used for memory barrier \
aoqi@0 539 * removal testing. It was supposed to be removed before FCS but has \
aoqi@0 540 * been re-added (see 6401008) */ \
aoqi@0 541 product_pd(bool, UseMembar, \
aoqi@0 542 "(Unstable) Issues membars on thread state transitions") \
aoqi@0 543 \
aoqi@0 544 develop(bool, CleanChunkPoolAsync, falseInEmbedded, \
aoqi@0 545 "Clean the chunk pool asynchronously") \
aoqi@0 546 \
aoqi@0 547 /* Temporary: See 6948537 */ \
aoqi@0 548 experimental(bool, UseMemSetInBOT, true, \
aoqi@0 549 "(Unstable) uses memset in BOT updates in GC code") \
aoqi@0 550 \
aoqi@0 551 diagnostic(bool, UnlockDiagnosticVMOptions, trueInDebug, \
aoqi@0 552 "Enable normal processing of flags relating to field diagnostics")\
aoqi@0 553 \
aoqi@0 554 experimental(bool, UnlockExperimentalVMOptions, false, \
aoqi@0 555 "Enable normal processing of flags relating to experimental " \
aoqi@0 556 "features") \
aoqi@0 557 \
aoqi@0 558 product(bool, JavaMonitorsInStackTrace, true, \
aoqi@0 559 "Print information about Java monitor locks when the stacks are" \
aoqi@0 560 "dumped") \
aoqi@0 561 \
aoqi@0 562 product_pd(bool, UseLargePages, \
aoqi@0 563 "Use large page memory") \
aoqi@0 564 \
aoqi@0 565 product_pd(bool, UseLargePagesIndividualAllocation, \
aoqi@0 566 "Allocate large pages individually for better affinity") \
aoqi@0 567 \
aoqi@0 568 develop(bool, LargePagesIndividualAllocationInjectError, false, \
aoqi@0 569 "Fail large pages individual allocation") \
aoqi@0 570 \
aoqi@0 571 product(bool, UseLargePagesInMetaspace, false, \
aoqi@0 572 "Use large page memory in metaspace. " \
aoqi@0 573 "Only used if UseLargePages is enabled.") \
aoqi@0 574 \
aoqi@0 575 develop(bool, TracePageSizes, false, \
aoqi@0 576 "Trace page size selection and usage") \
aoqi@0 577 \
aoqi@1 578 /* 2013/12/18 Jin: disable UseNUMA until OS is fixed*/ \
aoqi@1 579 product(bool, UseNUMA, MIPS64_ONLY(false) NOT_MIPS64(false), \
aoqi@0 580 "Use NUMA if available") \
aoqi@0 581 \
aoqi@1 582 product(bool, UseOldNUMA, MIPS64_ONLY(true) NOT_MIPS64(false), \
aoqi@1 583 "Use Old NUMA if available") \
aoqi@1 584 \
aoqi@1 585 product(bool, UseNUMAThreadRoots, MIPS64_ONLY(true) NOT_MIPS64(false), \
aoqi@1 586 "Use NUMAThreadRoots if available") \
aoqi@1 587 \
aoqi@1 588 product(bool, UseNUMASteal, MIPS64_ONLY(true) NOT_MIPS64(false), \
aoqi@1 589 "Use NUMASteal if available") \
aoqi@1 590 \
aoqi@1 591 product(bool, UseNUMAGC, MIPS64_ONLY(true) NOT_MIPS64(false), \
aoqi@1 592 "Use NUMAGC if available") \
aoqi@1 593 \
aoqi@1 594 product(bool, UseStasticScavenge, false, \
aoqi@1 595 "Use StasticScavenge if available") \
aoqi@1 596 \
aoqi@1 597 product(bool, UseStasticCopy, false, \
aoqi@1 598 "Use StasticCopy if available") \
aoqi@1 599 \
aoqi@0 600 product(bool, UseNUMAInterleaving, false, \
aoqi@0 601 "Interleave memory across NUMA nodes if available") \
aoqi@0 602 \
aoqi@0 603 product(uintx, NUMAInterleaveGranularity, 2*M, \
aoqi@0 604 "Granularity to use for NUMA interleaving on Windows OS") \
aoqi@0 605 \
aoqi@0 606 product(bool, ForceNUMA, false, \
aoqi@0 607 "Force NUMA optimizations on single-node/UMA systems") \
aoqi@0 608 \
aoqi@0 609 product(uintx, NUMAChunkResizeWeight, 20, \
aoqi@0 610 "Percentage (0-100) used to weigh the current sample when " \
aoqi@0 611 "computing exponentially decaying average for " \
aoqi@0 612 "AdaptiveNUMAChunkSizing") \
aoqi@0 613 \
aoqi@0 614 product(uintx, NUMASpaceResizeRate, 1*G, \
aoqi@0 615 "Do not reallocate more than this amount per collection") \
aoqi@0 616 \
aoqi@0 617 product(bool, UseAdaptiveNUMAChunkSizing, true, \
aoqi@0 618 "Enable adaptive chunk sizing for NUMA") \
aoqi@0 619 \
aoqi@0 620 product(bool, NUMAStats, false, \
aoqi@0 621 "Print NUMA stats in detailed heap information") \
aoqi@0 622 \
aoqi@0 623 product(uintx, NUMAPageScanRate, 256, \
aoqi@0 624 "Maximum number of pages to include in the page scan procedure") \
aoqi@0 625 \
aoqi@0 626 product_pd(bool, NeedsDeoptSuspend, \
aoqi@0 627 "True for register window machines (sparc/ia64)") \
aoqi@0 628 \
aoqi@0 629 product(intx, UseSSE, 99, \
aoqi@0 630 "Highest supported SSE instructions set on x86/x64") \
aoqi@0 631 \
aoqi@0 632 product(bool, UseAES, false, \
aoqi@0 633 "Control whether AES instructions can be used on x86/x64") \
aoqi@0 634 \
aoqi@0 635 product(uintx, LargePageSizeInBytes, 0, \
aoqi@0 636 "Large page size (0 to let VM choose the page size)") \
aoqi@0 637 \
aoqi@0 638 product(uintx, LargePageHeapSizeThreshold, 128*M, \
aoqi@0 639 "Use large pages if maximum heap is at least this big") \
aoqi@0 640 \
aoqi@0 641 product(bool, ForceTimeHighResolution, false, \
aoqi@0 642 "Using high time resolution (for Win32 only)") \
aoqi@0 643 \
aoqi@0 644 develop(bool, TraceItables, false, \
aoqi@0 645 "Trace initialization and use of itables") \
aoqi@0 646 \
aoqi@0 647 develop(bool, TracePcPatching, false, \
aoqi@0 648 "Trace usage of frame::patch_pc") \
aoqi@0 649 \
aoqi@0 650 develop(bool, TraceJumps, false, \
aoqi@0 651 "Trace assembly jumps in thread ring buffer") \
aoqi@0 652 \
aoqi@0 653 develop(bool, TraceRelocator, false, \
aoqi@0 654 "Trace the bytecode relocator") \
aoqi@0 655 \
aoqi@0 656 develop(bool, TraceLongCompiles, false, \
aoqi@0 657 "Print out every time compilation is longer than " \
aoqi@0 658 "a given threshold") \
aoqi@0 659 \
aoqi@0 660 develop(bool, SafepointALot, false, \
aoqi@0 661 "Generate a lot of safepoints. This works with " \
aoqi@0 662 "GuaranteedSafepointInterval") \
aoqi@0 663 \
aoqi@0 664 product_pd(bool, BackgroundCompilation, \
aoqi@0 665 "A thread requesting compilation is not blocked during " \
aoqi@0 666 "compilation") \
aoqi@0 667 \
aoqi@0 668 product(bool, PrintVMQWaitTime, false, \
aoqi@0 669 "Print out the waiting time in VM operation queue") \
aoqi@0 670 \
aoqi@0 671 develop(bool, NoYieldsInMicrolock, false, \
aoqi@0 672 "Disable yields in microlock") \
aoqi@0 673 \
aoqi@0 674 develop(bool, TraceOopMapGeneration, false, \
aoqi@0 675 "Show OopMapGeneration") \
aoqi@0 676 \
aoqi@0 677 product(bool, MethodFlushing, true, \
aoqi@0 678 "Reclamation of zombie and not-entrant methods") \
aoqi@0 679 \
aoqi@0 680 develop(bool, VerifyStack, false, \
aoqi@0 681 "Verify stack of each thread when it is entering a runtime call") \
aoqi@0 682 \
aoqi@0 683 diagnostic(bool, ForceUnreachable, false, \
aoqi@0 684 "Make all non code cache addresses to be unreachable by " \
aoqi@0 685 "forcing use of 64bit literal fixups") \
aoqi@0 686 \
aoqi@0 687 notproduct(bool, StressDerivedPointers, false, \
aoqi@0 688 "Force scavenge when a derived pointer is detected on stack " \
aoqi@0 689 "after rtm call") \
aoqi@0 690 \
aoqi@0 691 develop(bool, TraceDerivedPointers, false, \
aoqi@0 692 "Trace traversal of derived pointers on stack") \
aoqi@0 693 \
aoqi@0 694 notproduct(bool, TraceCodeBlobStacks, false, \
aoqi@0 695 "Trace stack-walk of codeblobs") \
aoqi@0 696 \
aoqi@0 697 product(bool, PrintJNIResolving, false, \
aoqi@0 698 "Used to implement -v:jni") \
aoqi@0 699 \
aoqi@0 700 notproduct(bool, PrintRewrites, false, \
aoqi@0 701 "Print methods that are being rewritten") \
aoqi@0 702 \
aoqi@0 703 product(bool, UseInlineCaches, true, \
aoqi@0 704 "Use Inline Caches for virtual calls ") \
aoqi@0 705 \
aoqi@0 706 develop(bool, InlineArrayCopy, true, \
aoqi@0 707 "Inline arraycopy native that is known to be part of " \
aoqi@0 708 "base library DLL") \
aoqi@0 709 \
aoqi@0 710 develop(bool, InlineObjectHash, true, \
aoqi@0 711 "Inline Object::hashCode() native that is known to be part " \
aoqi@0 712 "of base library DLL") \
aoqi@0 713 \
aoqi@0 714 develop(bool, InlineNatives, true, \
aoqi@0 715 "Inline natives that are known to be part of base library DLL") \
aoqi@0 716 \
aoqi@0 717 develop(bool, InlineMathNatives, true, \
aoqi@0 718 "Inline SinD, CosD, etc.") \
aoqi@0 719 \
aoqi@0 720 develop(bool, InlineClassNatives, true, \
aoqi@0 721 "Inline Class.isInstance, etc") \
aoqi@0 722 \
aoqi@0 723 develop(bool, InlineThreadNatives, true, \
aoqi@0 724 "Inline Thread.currentThread, etc") \
aoqi@0 725 \
aoqi@0 726 develop(bool, InlineUnsafeOps, true, \
aoqi@0 727 "Inline memory ops (native methods) from sun.misc.Unsafe") \
aoqi@0 728 \
aoqi@0 729 product(bool, CriticalJNINatives, true, \
aoqi@0 730 "Check for critical JNI entry points") \
aoqi@0 731 \
aoqi@0 732 notproduct(bool, StressCriticalJNINatives, false, \
aoqi@0 733 "Exercise register saving code in critical natives") \
aoqi@0 734 \
aoqi@0 735 product(bool, UseSSE42Intrinsics, false, \
aoqi@0 736 "SSE4.2 versions of intrinsics") \
aoqi@0 737 \
aoqi@0 738 product(bool, UseAESIntrinsics, false, \
aoqi@0 739 "Use intrinsics for AES versions of crypto") \
aoqi@0 740 \
aoqi@0 741 product(bool, UseCRC32Intrinsics, false, \
aoqi@0 742 "use intrinsics for java.util.zip.CRC32") \
aoqi@0 743 \
aoqi@0 744 develop(bool, TraceCallFixup, false, \
aoqi@0 745 "Trace all call fixups") \
aoqi@0 746 \
aoqi@0 747 develop(bool, DeoptimizeALot, false, \
aoqi@0 748 "Deoptimize at every exit from the runtime system") \
aoqi@0 749 \
aoqi@0 750 notproduct(ccstrlist, DeoptimizeOnlyAt, "", \
aoqi@0 751 "A comma separated list of bcis to deoptimize at") \
aoqi@0 752 \
aoqi@0 753 product(bool, DeoptimizeRandom, false, \
aoqi@0 754 "Deoptimize random frames on random exit from the runtime system")\
aoqi@0 755 \
aoqi@0 756 notproduct(bool, ZombieALot, false, \
aoqi@0 757 "Create zombies (non-entrant) at exit from the runtime system") \
aoqi@0 758 \
aoqi@0 759 product(bool, UnlinkSymbolsALot, false, \
aoqi@0 760 "Unlink unreferenced symbols from the symbol table at safepoints")\
aoqi@0 761 \
aoqi@0 762 notproduct(bool, WalkStackALot, false, \
aoqi@0 763 "Trace stack (no print) at every exit from the runtime system") \
aoqi@0 764 \
aoqi@0 765 product(bool, Debugging, false, \
aoqi@0 766 "Set when executing debug methods in debug.cpp " \
aoqi@0 767 "(to prevent triggering assertions)") \
aoqi@0 768 \
aoqi@0 769 notproduct(bool, StrictSafepointChecks, trueInDebug, \
aoqi@0 770 "Enable strict checks that safepoints cannot happen for threads " \
aoqi@0 771 "that use No_Safepoint_Verifier") \
aoqi@0 772 \
aoqi@0 773 notproduct(bool, VerifyLastFrame, false, \
aoqi@0 774 "Verify oops on last frame on entry to VM") \
aoqi@0 775 \
aoqi@0 776 develop(bool, TraceHandleAllocation, false, \
aoqi@0 777 "Print out warnings when suspiciously many handles are allocated")\
aoqi@0 778 \
aoqi@0 779 product(bool, UseCompilerSafepoints, true, \
aoqi@0 780 "Stop at safepoints in compiled code") \
aoqi@0 781 \
aoqi@0 782 product(bool, FailOverToOldVerifier, true, \
aoqi@0 783 "Fail over to old verifier when split verifier fails") \
aoqi@0 784 \
aoqi@0 785 develop(bool, ShowSafepointMsgs, false, \
aoqi@0 786 "Show message about safepoint synchronization") \
aoqi@0 787 \
aoqi@0 788 product(bool, SafepointTimeout, false, \
aoqi@0 789 "Time out and warn or fail after SafepointTimeoutDelay " \
aoqi@0 790 "milliseconds if failed to reach safepoint") \
aoqi@0 791 \
aoqi@0 792 develop(bool, DieOnSafepointTimeout, false, \
aoqi@0 793 "Die upon failure to reach safepoint (see SafepointTimeout)") \
aoqi@0 794 \
aoqi@0 795 /* 50 retries * (5 * current_retry_count) millis = ~6.375 seconds */ \
aoqi@0 796 /* typically, at most a few retries are needed */ \
aoqi@0 797 product(intx, SuspendRetryCount, 50, \
aoqi@0 798 "Maximum retry count for an external suspend request") \
aoqi@0 799 \
aoqi@0 800 product(intx, SuspendRetryDelay, 5, \
aoqi@0 801 "Milliseconds to delay per retry (* current_retry_count)") \
aoqi@0 802 \
aoqi@0 803 product(bool, AssertOnSuspendWaitFailure, false, \
aoqi@0 804 "Assert/Guarantee on external suspend wait failure") \
aoqi@0 805 \
aoqi@0 806 product(bool, TraceSuspendWaitFailures, false, \
aoqi@0 807 "Trace external suspend wait failures") \
aoqi@0 808 \
aoqi@0 809 product(bool, MaxFDLimit, true, \
aoqi@0 810 "Bump the number of file descriptors to maximum in Solaris") \
aoqi@0 811 \
aoqi@0 812 diagnostic(bool, LogEvents, true, \
aoqi@0 813 "Enable the various ring buffer event logs") \
aoqi@0 814 \
aoqi@0 815 diagnostic(uintx, LogEventsBufferEntries, 10, \
aoqi@0 816 "Number of ring buffer event logs") \
aoqi@0 817 \
aoqi@0 818 product(bool, BytecodeVerificationRemote, true, \
aoqi@0 819 "Enable the Java bytecode verifier for remote classes") \
aoqi@0 820 \
aoqi@0 821 product(bool, BytecodeVerificationLocal, false, \
aoqi@0 822 "Enable the Java bytecode verifier for local classes") \
aoqi@0 823 \
aoqi@0 824 develop(bool, ForceFloatExceptions, trueInDebug, \
aoqi@0 825 "Force exceptions on FP stack under/overflow") \
aoqi@0 826 \
aoqi@0 827 develop(bool, VerifyStackAtCalls, false, \
aoqi@0 828 "Verify that the stack pointer is unchanged after calls") \
aoqi@0 829 \
aoqi@0 830 develop(bool, TraceJavaAssertions, false, \
aoqi@0 831 "Trace java language assertions") \
aoqi@0 832 \
aoqi@0 833 notproduct(bool, CheckAssertionStatusDirectives, false, \
aoqi@0 834 "Temporary - see javaClasses.cpp") \
aoqi@0 835 \
aoqi@0 836 notproduct(bool, PrintMallocFree, false, \
aoqi@0 837 "Trace calls to C heap malloc/free allocation") \
aoqi@0 838 \
aoqi@0 839 product(bool, PrintOopAddress, false, \
aoqi@0 840 "Always print the location of the oop") \
aoqi@0 841 \
aoqi@0 842 notproduct(bool, VerifyCodeCacheOften, false, \
aoqi@0 843 "Verify compiled-code cache often") \
aoqi@0 844 \
aoqi@0 845 develop(bool, ZapDeadCompiledLocals, false, \
aoqi@0 846 "Zap dead locals in compiler frames") \
aoqi@0 847 \
aoqi@0 848 notproduct(bool, ZapDeadLocalsOld, false, \
aoqi@0 849 "Zap dead locals (old version, zaps all frames when " \
aoqi@0 850 "entering the VM") \
aoqi@0 851 \
aoqi@0 852 notproduct(bool, CheckOopishValues, false, \
aoqi@0 853 "Warn if value contains oop (requires ZapDeadLocals)") \
aoqi@0 854 \
aoqi@0 855 develop(bool, UseMallocOnly, false, \
aoqi@0 856 "Use only malloc/free for allocation (no resource area/arena)") \
aoqi@0 857 \
aoqi@0 858 develop(bool, PrintMalloc, false, \
aoqi@0 859 "Print all malloc/free calls") \
aoqi@0 860 \
aoqi@0 861 develop(bool, PrintMallocStatistics, false, \
aoqi@0 862 "Print malloc/free statistics") \
aoqi@0 863 \
aoqi@0 864 develop(bool, ZapResourceArea, trueInDebug, \
aoqi@0 865 "Zap freed resource/arena space with 0xABABABAB") \
aoqi@0 866 \
aoqi@0 867 notproduct(bool, ZapVMHandleArea, trueInDebug, \
aoqi@0 868 "Zap freed VM handle space with 0xBCBCBCBC") \
aoqi@0 869 \
aoqi@0 870 develop(bool, ZapJNIHandleArea, trueInDebug, \
aoqi@0 871 "Zap freed JNI handle space with 0xFEFEFEFE") \
aoqi@0 872 \
aoqi@0 873 notproduct(bool, ZapStackSegments, trueInDebug, \
aoqi@0 874 "Zap allocated/freed stack segments with 0xFADFADED") \
aoqi@0 875 \
aoqi@0 876 develop(bool, ZapUnusedHeapArea, trueInDebug, \
aoqi@0 877 "Zap unused heap space with 0xBAADBABE") \
aoqi@0 878 \
aoqi@0 879 develop(bool, TraceZapUnusedHeapArea, false, \
aoqi@0 880 "Trace zapping of unused heap space") \
aoqi@0 881 \
aoqi@0 882 develop(bool, CheckZapUnusedHeapArea, false, \
aoqi@0 883 "Check zapping of unused heap space") \
aoqi@0 884 \
aoqi@0 885 develop(bool, ZapFillerObjects, trueInDebug, \
aoqi@0 886 "Zap filler objects with 0xDEAFBABE") \
aoqi@0 887 \
aoqi@0 888 develop(bool, PrintVMMessages, true, \
aoqi@0 889 "Print VM messages on console") \
aoqi@0 890 \
aoqi@0 891 product(bool, PrintGCApplicationConcurrentTime, false, \
aoqi@0 892 "Print the time the application has been running") \
aoqi@0 893 \
aoqi@0 894 product(bool, PrintGCApplicationStoppedTime, false, \
aoqi@0 895 "Print the time the application has been stopped") \
aoqi@0 896 \
aoqi@0 897 diagnostic(bool, VerboseVerification, false, \
aoqi@0 898 "Display detailed verification details") \
aoqi@0 899 \
aoqi@0 900 notproduct(uintx, ErrorHandlerTest, 0, \
aoqi@0 901 "If > 0, provokes an error after VM initialization; the value " \
aoqi@0 902 "determines which error to provoke. See test_error_handler() " \
aoqi@0 903 "in debug.cpp.") \
aoqi@0 904 \
aoqi@0 905 develop(bool, Verbose, false, \
aoqi@0 906 "Print additional debugging information from other modes") \
aoqi@0 907 \
aoqi@0 908 develop(bool, PrintMiscellaneous, false, \
aoqi@0 909 "Print uncategorized debugging information (requires +Verbose)") \
aoqi@0 910 \
aoqi@0 911 develop(bool, WizardMode, false, \
aoqi@0 912 "Print much more debugging information") \
aoqi@0 913 \
aoqi@0 914 product(bool, ShowMessageBoxOnError, false, \
aoqi@0 915 "Keep process alive on VM fatal error") \
aoqi@0 916 \
aoqi@0 917 product(bool, CreateMinidumpOnCrash, false, \
aoqi@0 918 "Create minidump on VM fatal error") \
aoqi@0 919 \
aoqi@0 920 product_pd(bool, UseOSErrorReporting, \
aoqi@0 921 "Let VM fatal error propagate to the OS (ie. WER on Windows)") \
aoqi@0 922 \
aoqi@0 923 product(bool, SuppressFatalErrorMessage, false, \
aoqi@0 924 "Report NO fatal error message (avoid deadlock)") \
aoqi@0 925 \
aoqi@0 926 product(ccstrlist, OnError, "", \
aoqi@0 927 "Run user-defined commands on fatal error; see VMError.cpp " \
aoqi@0 928 "for examples") \
aoqi@0 929 \
aoqi@0 930 product(ccstrlist, OnOutOfMemoryError, "", \
aoqi@0 931 "Run user-defined commands on first java.lang.OutOfMemoryError") \
aoqi@0 932 \
aoqi@0 933 manageable(bool, HeapDumpBeforeFullGC, false, \
aoqi@0 934 "Dump heap to file before any major stop-the-world GC") \
aoqi@0 935 \
aoqi@0 936 manageable(bool, HeapDumpAfterFullGC, false, \
aoqi@0 937 "Dump heap to file after any major stop-the-world GC") \
aoqi@0 938 \
aoqi@0 939 manageable(bool, HeapDumpOnOutOfMemoryError, false, \
aoqi@0 940 "Dump heap to file when java.lang.OutOfMemoryError is thrown") \
aoqi@0 941 \
aoqi@0 942 manageable(ccstr, HeapDumpPath, NULL, \
aoqi@0 943 "When HeapDumpOnOutOfMemoryError is on, the path (filename or " \
aoqi@0 944 "directory) of the dump file (defaults to java_pid<pid>.hprof " \
aoqi@0 945 "in the working directory)") \
aoqi@0 946 \
aoqi@0 947 develop(uintx, SegmentedHeapDumpThreshold, 2*G, \
aoqi@0 948 "Generate a segmented heap dump (JAVA PROFILE 1.0.2 format) " \
aoqi@0 949 "when the heap usage is larger than this") \
aoqi@0 950 \
aoqi@0 951 develop(uintx, HeapDumpSegmentSize, 1*G, \
aoqi@0 952 "Approximate segment size when generating a segmented heap dump") \
aoqi@0 953 \
aoqi@0 954 develop(bool, BreakAtWarning, false, \
aoqi@0 955 "Execute breakpoint upon encountering VM warning") \
aoqi@0 956 \
aoqi@0 957 develop(bool, TraceVMOperation, false, \
aoqi@0 958 "Trace VM operations") \
aoqi@0 959 \
aoqi@0 960 develop(bool, UseFakeTimers, false, \
aoqi@0 961 "Tell whether the VM should use system time or a fake timer") \
aoqi@0 962 \
aoqi@0 963 product(ccstr, NativeMemoryTracking, "off", \
aoqi@0 964 "Native memory tracking options") \
aoqi@0 965 \
aoqi@0 966 diagnostic(bool, PrintNMTStatistics, false, \
aoqi@0 967 "Print native memory tracking summary data if it is on") \
aoqi@0 968 \
aoqi@0 969 diagnostic(bool, AutoShutdownNMT, true, \
aoqi@0 970 "Automatically shutdown native memory tracking under stress " \
aoqi@0 971 "situations. When set to false, native memory tracking tries to " \
aoqi@0 972 "stay alive at the expense of JVM performance") \
aoqi@0 973 \
aoqi@0 974 diagnostic(bool, LogCompilation, false, \
aoqi@0 975 "Log compilation activity in detail to LogFile") \
aoqi@0 976 \
aoqi@0 977 product(bool, PrintCompilation, false, \
aoqi@0 978 "Print compilations") \
aoqi@0 979 \
aoqi@0 980 diagnostic(bool, TraceNMethodInstalls, false, \
aoqi@0 981 "Trace nmethod installation") \
aoqi@0 982 \
aoqi@0 983 diagnostic(intx, ScavengeRootsInCode, 2, \
aoqi@0 984 "0: do not allow scavengable oops in the code cache; " \
aoqi@0 985 "1: allow scavenging from the code cache; " \
aoqi@0 986 "2: emit as many constants as the compiler can see") \
aoqi@0 987 \
aoqi@0 988 product(bool, AlwaysRestoreFPU, false, \
aoqi@0 989 "Restore the FPU control word after every JNI call (expensive)") \
aoqi@0 990 \
aoqi@0 991 diagnostic(bool, PrintCompilation2, false, \
aoqi@0 992 "Print additional statistics per compilation") \
aoqi@0 993 \
aoqi@0 994 diagnostic(bool, PrintAdapterHandlers, false, \
aoqi@0 995 "Print code generated for i2c/c2i adapters") \
aoqi@0 996 \
aoqi@0 997 diagnostic(bool, VerifyAdapterCalls, trueInDebug, \
aoqi@0 998 "Verify that i2c/c2i adapters are called properly") \
aoqi@0 999 \
aoqi@0 1000 develop(bool, VerifyAdapterSharing, false, \
aoqi@0 1001 "Verify that the code for shared adapters is the equivalent") \
aoqi@0 1002 \
aoqi@0 1003 diagnostic(bool, PrintAssembly, false, \
aoqi@0 1004 "Print assembly code (using external disassembler.so)") \
aoqi@0 1005 \
aoqi@0 1006 diagnostic(ccstr, PrintAssemblyOptions, NULL, \
aoqi@0 1007 "Print options string passed to disassembler.so") \
aoqi@0 1008 \
aoqi@0 1009 diagnostic(bool, PrintNMethods, false, \
aoqi@0 1010 "Print assembly code for nmethods when generated") \
aoqi@0 1011 \
aoqi@0 1012 diagnostic(bool, PrintNativeNMethods, false, \
aoqi@0 1013 "Print assembly code for native nmethods when generated") \
aoqi@0 1014 \
aoqi@0 1015 develop(bool, PrintDebugInfo, false, \
aoqi@0 1016 "Print debug information for all nmethods when generated") \
aoqi@0 1017 \
aoqi@0 1018 develop(bool, PrintRelocations, false, \
aoqi@0 1019 "Print relocation information for all nmethods when generated") \
aoqi@0 1020 \
aoqi@0 1021 develop(bool, PrintDependencies, false, \
aoqi@0 1022 "Print dependency information for all nmethods when generated") \
aoqi@0 1023 \
aoqi@0 1024 develop(bool, PrintExceptionHandlers, false, \
aoqi@0 1025 "Print exception handler tables for all nmethods when generated") \
aoqi@0 1026 \
aoqi@0 1027 develop(bool, StressCompiledExceptionHandlers, false, \
aoqi@0 1028 "Exercise compiled exception handlers") \
aoqi@0 1029 \
aoqi@0 1030 develop(bool, InterceptOSException, false, \
aoqi@0 1031 "Start debugger when an implicit OS (e.g. NULL) " \
aoqi@0 1032 "exception happens") \
aoqi@0 1033 \
aoqi@0 1034 product(bool, PrintCodeCache, false, \
aoqi@0 1035 "Print the code cache memory usage when exiting") \
aoqi@0 1036 \
aoqi@0 1037 develop(bool, PrintCodeCache2, false, \
aoqi@0 1038 "Print detailed usage information on the code cache when exiting")\
aoqi@0 1039 \
aoqi@0 1040 product(bool, PrintCodeCacheOnCompilation, false, \
aoqi@0 1041 "Print the code cache memory usage each time a method is " \
aoqi@0 1042 "compiled") \
aoqi@0 1043 \
aoqi@0 1044 diagnostic(bool, PrintStubCode, false, \
aoqi@0 1045 "Print generated stub code") \
aoqi@0 1046 \
aoqi@0 1047 product(bool, StackTraceInThrowable, true, \
aoqi@0 1048 "Collect backtrace in throwable when exception happens") \
aoqi@0 1049 \
aoqi@0 1050 product(bool, OmitStackTraceInFastThrow, true, \
aoqi@0 1051 "Omit backtraces for some 'hot' exceptions in optimized code") \
aoqi@0 1052 \
aoqi@0 1053 product(bool, ProfilerPrintByteCodeStatistics, false, \
aoqi@0 1054 "Print bytecode statistics when dumping profiler output") \
aoqi@0 1055 \
aoqi@0 1056 product(bool, ProfilerRecordPC, false, \
aoqi@0 1057 "Collect ticks for each 16 byte interval of compiled code") \
aoqi@0 1058 \
aoqi@0 1059 product(bool, ProfileVM, false, \
aoqi@0 1060 "Profile ticks that fall within VM (either in the VM Thread " \
aoqi@0 1061 "or VM code called through stubs)") \
aoqi@0 1062 \
aoqi@0 1063 product(bool, ProfileIntervals, false, \
aoqi@0 1064 "Print profiles for each interval (see ProfileIntervalsTicks)") \
aoqi@0 1065 \
aoqi@0 1066 notproduct(bool, ProfilerCheckIntervals, false, \
aoqi@0 1067 "Collect and print information on spacing of profiler ticks") \
aoqi@0 1068 \
aoqi@0 1069 develop(bool, PrintJVMWarnings, false, \
aoqi@0 1070 "Print warnings for unimplemented JVM functions") \
aoqi@0 1071 \
aoqi@0 1072 product(bool, PrintWarnings, true, \
aoqi@0 1073 "Print JVM warnings to output stream") \
aoqi@0 1074 \
aoqi@0 1075 notproduct(uintx, WarnOnStalledSpinLock, 0, \
aoqi@0 1076 "Print warnings for stalled SpinLocks") \
aoqi@0 1077 \
aoqi@0 1078 product(bool, RegisterFinalizersAtInit, true, \
aoqi@0 1079 "Register finalizable objects at end of Object.<init> or " \
aoqi@0 1080 "after allocation") \
aoqi@0 1081 \
aoqi@0 1082 develop(bool, RegisterReferences, true, \
aoqi@0 1083 "Tell whether the VM should register soft/weak/final/phantom " \
aoqi@0 1084 "references") \
aoqi@0 1085 \
aoqi@0 1086 develop(bool, IgnoreRewrites, false, \
aoqi@0 1087 "Suppress rewrites of bytecodes in the oopmap generator. " \
aoqi@0 1088 "This is unsafe!") \
aoqi@0 1089 \
aoqi@0 1090 develop(bool, PrintCodeCacheExtension, false, \
aoqi@0 1091 "Print extension of code cache") \
aoqi@0 1092 \
aoqi@0 1093 develop(bool, UsePrivilegedStack, true, \
aoqi@0 1094 "Enable the security JVM functions") \
aoqi@0 1095 \
aoqi@0 1096 develop(bool, ProtectionDomainVerification, true, \
aoqi@0 1097 "Verify protection domain before resolution in system dictionary")\
aoqi@0 1098 \
aoqi@0 1099 product(bool, ClassUnloading, true, \
aoqi@0 1100 "Do unloading of classes") \
aoqi@0 1101 \
aoqi@0 1102 develop(bool, DisableStartThread, false, \
aoqi@0 1103 "Disable starting of additional Java threads " \
aoqi@0 1104 "(for debugging only)") \
aoqi@0 1105 \
aoqi@0 1106 develop(bool, MemProfiling, false, \
aoqi@0 1107 "Write memory usage profiling to log file") \
aoqi@0 1108 \
aoqi@0 1109 notproduct(bool, PrintSystemDictionaryAtExit, false, \
aoqi@0 1110 "Print the system dictionary at exit") \
aoqi@0 1111 \
aoqi@0 1112 experimental(intx, PredictedLoadedClassCount, 0, \
aoqi@0 1113 "Experimental: Tune loaded class cache starting size") \
aoqi@0 1114 \
aoqi@0 1115 diagnostic(bool, UnsyncloadClass, false, \
aoqi@0 1116 "Unstable: VM calls loadClass unsynchronized. Custom " \
aoqi@0 1117 "class loader must call VM synchronized for findClass " \
aoqi@0 1118 "and defineClass.") \
aoqi@0 1119 \
aoqi@0 1120 product(bool, AlwaysLockClassLoader, false, \
aoqi@0 1121 "Require the VM to acquire the class loader lock before calling " \
aoqi@0 1122 "loadClass() even for class loaders registering " \
aoqi@0 1123 "as parallel capable") \
aoqi@0 1124 \
aoqi@0 1125 product(bool, AllowParallelDefineClass, false, \
aoqi@0 1126 "Allow parallel defineClass requests for class loaders " \
aoqi@0 1127 "registering as parallel capable") \
aoqi@0 1128 \
aoqi@0 1129 product(bool, MustCallLoadClassInternal, false, \
aoqi@0 1130 "Call loadClassInternal() rather than loadClass()") \
aoqi@0 1131 \
aoqi@0 1132 product_pd(bool, DontYieldALot, \
aoqi@0 1133 "Throw away obvious excess yield calls (for Solaris only)") \
aoqi@0 1134 \
aoqi@0 1135 product_pd(bool, ConvertSleepToYield, \
aoqi@0 1136 "Convert sleep(0) to thread yield " \
aoqi@0 1137 "(may be off for Solaris to improve GUI)") \
aoqi@0 1138 \
aoqi@0 1139 product(bool, ConvertYieldToSleep, false, \
aoqi@0 1140 "Convert yield to a sleep of MinSleepInterval to simulate Win32 " \
aoqi@0 1141 "behavior (Solaris only)") \
aoqi@0 1142 \
aoqi@0 1143 product(bool, UseBoundThreads, true, \
aoqi@0 1144 "Bind user level threads to kernel threads (for Solaris only)") \
aoqi@0 1145 \
aoqi@0 1146 develop(bool, UseDetachedThreads, true, \
aoqi@0 1147 "Use detached threads that are recycled upon termination " \
aoqi@0 1148 "(for Solaris only)") \
aoqi@0 1149 \
aoqi@0 1150 product(bool, UseLWPSynchronization, true, \
aoqi@0 1151 "Use LWP-based instead of libthread-based synchronization " \
aoqi@0 1152 "(SPARC only)") \
aoqi@0 1153 \
aoqi@0 1154 product(ccstr, SyncKnobs, NULL, \
aoqi@0 1155 "(Unstable) Various monitor synchronization tunables") \
aoqi@0 1156 \
aoqi@0 1157 product(intx, EmitSync, 0, \
aoqi@0 1158 "(Unsafe, Unstable) " \
aoqi@0 1159 "Control emission of inline sync fast-path code") \
aoqi@0 1160 \
aoqi@0 1161 product(intx, MonitorBound, 0, "Bound Monitor population") \
aoqi@0 1162 \
aoqi@0 1163 product(bool, MonitorInUseLists, false, "Track Monitors for Deflation") \
aoqi@0 1164 \
aoqi@0 1165 product(intx, SyncFlags, 0, "(Unsafe, Unstable) Experimental Sync flags") \
aoqi@0 1166 \
aoqi@0 1167 product(intx, SyncVerbose, 0, "(Unstable)") \
aoqi@0 1168 \
aoqi@0 1169 product(intx, ClearFPUAtPark, 0, "(Unsafe, Unstable)") \
aoqi@0 1170 \
aoqi@0 1171 product(intx, hashCode, 5, \
aoqi@0 1172 "(Unstable) select hashCode generation algorithm") \
aoqi@0 1173 \
aoqi@0 1174 product(intx, WorkAroundNPTLTimedWaitHang, 1, \
aoqi@0 1175 "(Unstable, Linux-specific) " \
aoqi@0 1176 "avoid NPTL-FUTEX hang pthread_cond_timedwait") \
aoqi@0 1177 \
aoqi@0 1178 product(bool, FilterSpuriousWakeups, true, \
aoqi@0 1179 "Prevent spurious or premature wakeups from object.wait " \
aoqi@0 1180 "(Solaris only)") \
aoqi@0 1181 \
aoqi@0 1182 experimental(intx, NativeMonitorTimeout, -1, "(Unstable)") \
aoqi@0 1183 \
aoqi@0 1184 experimental(intx, NativeMonitorFlags, 0, "(Unstable)") \
aoqi@0 1185 \
aoqi@0 1186 experimental(intx, NativeMonitorSpinLimit, 20, "(Unstable)") \
aoqi@0 1187 \
aoqi@0 1188 develop(bool, UsePthreads, false, \
aoqi@0 1189 "Use pthread-based instead of libthread-based synchronization " \
aoqi@0 1190 "(SPARC only)") \
aoqi@0 1191 \
aoqi@0 1192 product(bool, AdjustConcurrency, false, \
aoqi@0 1193 "Call thr_setconcurrency at thread creation time to avoid " \
aoqi@0 1194 "LWP starvation on MP systems (for Solaris Only)") \
aoqi@0 1195 \
aoqi@0 1196 product(bool, ReduceSignalUsage, false, \
aoqi@0 1197 "Reduce the use of OS signals in Java and/or the VM") \
aoqi@0 1198 \
aoqi@0 1199 develop_pd(bool, ShareVtableStubs, \
aoqi@0 1200 "Share vtable stubs (smaller code but worse branch prediction") \
aoqi@0 1201 \
aoqi@0 1202 develop(bool, LoadLineNumberTables, true, \
aoqi@0 1203 "Tell whether the class file parser loads line number tables") \
aoqi@0 1204 \
aoqi@0 1205 develop(bool, LoadLocalVariableTables, true, \
aoqi@0 1206 "Tell whether the class file parser loads local variable tables") \
aoqi@0 1207 \
aoqi@0 1208 develop(bool, LoadLocalVariableTypeTables, true, \
aoqi@0 1209 "Tell whether the class file parser loads local variable type" \
aoqi@0 1210 "tables") \
aoqi@0 1211 \
aoqi@0 1212 product(bool, AllowUserSignalHandlers, false, \
aoqi@0 1213 "Do not complain if the application installs signal handlers " \
aoqi@0 1214 "(Solaris & Linux only)") \
aoqi@0 1215 \
aoqi@0 1216 product(bool, UseSignalChaining, true, \
aoqi@0 1217 "Use signal-chaining to invoke signal handlers installed " \
aoqi@0 1218 "by the application (Solaris & Linux only)") \
aoqi@0 1219 \
aoqi@0 1220 product(bool, UseAltSigs, false, \
aoqi@0 1221 "Use alternate signals instead of SIGUSR1 & SIGUSR2 for VM " \
aoqi@0 1222 "internal signals (Solaris only)") \
aoqi@0 1223 \
aoqi@0 1224 product(bool, AllowJNIEnvProxy, false, \
aoqi@0 1225 "Allow JNIEnv proxies for jdbx") \
aoqi@0 1226 \
aoqi@0 1227 product(bool, JNIDetachReleasesMonitors, true, \
aoqi@0 1228 "JNI DetachCurrentThread releases monitors owned by thread") \
aoqi@0 1229 \
aoqi@0 1230 product(bool, RestoreMXCSROnJNICalls, false, \
aoqi@0 1231 "Restore MXCSR when returning from JNI calls") \
aoqi@0 1232 \
aoqi@0 1233 product(bool, CheckJNICalls, false, \
aoqi@0 1234 "Verify all arguments to JNI calls") \
aoqi@0 1235 \
aoqi@0 1236 product(bool, UseFastJNIAccessors, true, \
aoqi@0 1237 "Use optimized versions of Get<Primitive>Field") \
aoqi@0 1238 \
aoqi@0 1239 product(bool, EagerXrunInit, false, \
aoqi@0 1240 "Eagerly initialize -Xrun libraries; allows startup profiling, " \
aoqi@0 1241 "but not all -Xrun libraries may support the state of the VM " \
aoqi@0 1242 "at this time") \
aoqi@0 1243 \
aoqi@0 1244 product(bool, PreserveAllAnnotations, false, \
aoqi@0 1245 "Preserve RuntimeInvisibleAnnotations as well " \
aoqi@0 1246 "as RuntimeVisibleAnnotations") \
aoqi@0 1247 \
aoqi@0 1248 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \
aoqi@0 1249 "Number of OutOfMemoryErrors preallocated with backtrace") \
aoqi@0 1250 \
aoqi@0 1251 product(bool, LazyBootClassLoader, true, \
aoqi@0 1252 "Enable/disable lazy opening of boot class path entries") \
aoqi@0 1253 \
aoqi@0 1254 product(bool, UseXMMForArrayCopy, false, \
aoqi@0 1255 "Use SSE2 MOVQ instruction for Arraycopy") \
aoqi@0 1256 \
aoqi@0 1257 product(intx, FieldsAllocationStyle, 1, \
aoqi@0 1258 "0 - type based with oops first, 1 - with oops last, " \
aoqi@0 1259 "2 - oops in super and sub classes are together") \
aoqi@0 1260 \
aoqi@0 1261 product(bool, CompactFields, true, \
aoqi@0 1262 "Allocate nonstatic fields in gaps between previous fields") \
aoqi@0 1263 \
aoqi@0 1264 notproduct(bool, PrintFieldLayout, false, \
aoqi@0 1265 "Print field layout for each class") \
aoqi@0 1266 \
aoqi@0 1267 product(intx, ContendedPaddingWidth, 128, \
aoqi@0 1268 "How many bytes to pad the fields/classes marked @Contended with")\
aoqi@0 1269 \
aoqi@0 1270 product(bool, EnableContended, true, \
aoqi@0 1271 "Enable @Contended annotation support") \
aoqi@0 1272 \
aoqi@0 1273 product(bool, RestrictContended, true, \
aoqi@0 1274 "Restrict @Contended to trusted classes") \
aoqi@0 1275 \
aoqi@0 1276 product(bool, UseBiasedLocking, true, \
aoqi@0 1277 "Enable biased locking in JVM") \
aoqi@0 1278 \
aoqi@0 1279 product(intx, BiasedLockingStartupDelay, 4000, \
aoqi@0 1280 "Number of milliseconds to wait before enabling biased locking") \
aoqi@0 1281 \
aoqi@0 1282 diagnostic(bool, PrintBiasedLockingStatistics, false, \
aoqi@0 1283 "Print statistics of biased locking in JVM") \
aoqi@0 1284 \
aoqi@0 1285 product(intx, BiasedLockingBulkRebiasThreshold, 20, \
aoqi@0 1286 "Threshold of number of revocations per type to try to " \
aoqi@0 1287 "rebias all objects in the heap of that type") \
aoqi@0 1288 \
aoqi@0 1289 product(intx, BiasedLockingBulkRevokeThreshold, 40, \
aoqi@0 1290 "Threshold of number of revocations per type to permanently " \
aoqi@0 1291 "revoke biases of all objects in the heap of that type") \
aoqi@0 1292 \
aoqi@0 1293 product(intx, BiasedLockingDecayTime, 25000, \
aoqi@0 1294 "Decay time (in milliseconds) to re-enable bulk rebiasing of a " \
aoqi@0 1295 "type after previous bulk rebias") \
aoqi@0 1296 \
aoqi@0 1297 /* tracing */ \
aoqi@0 1298 \
aoqi@0 1299 notproduct(bool, TraceRuntimeCalls, false, \
aoqi@0 1300 "Trace run-time calls") \
aoqi@0 1301 \
aoqi@0 1302 develop(bool, TraceJNICalls, false, \
aoqi@0 1303 "Trace JNI calls") \
aoqi@0 1304 \
aoqi@0 1305 develop(bool, StressRewriter, false, \
aoqi@0 1306 "Stress linktime bytecode rewriting") \
aoqi@0 1307 \
aoqi@0 1308 notproduct(bool, TraceJVMCalls, false, \
aoqi@0 1309 "Trace JVM calls") \
aoqi@0 1310 \
aoqi@0 1311 product(ccstr, TraceJVMTI, NULL, \
aoqi@0 1312 "Trace flags for JVMTI functions and events") \
aoqi@0 1313 \
aoqi@0 1314 /* This option can change an EMCP method into an obsolete method. */ \
aoqi@0 1315 /* This can affect tests that except specific methods to be EMCP. */ \
aoqi@0 1316 /* This option should be used with caution. */ \
aoqi@0 1317 product(bool, StressLdcRewrite, false, \
aoqi@0 1318 "Force ldc -> ldc_w rewrite during RedefineClasses") \
aoqi@0 1319 \
aoqi@0 1320 product(intx, TraceRedefineClasses, 0, \
aoqi@0 1321 "Trace level for JVMTI RedefineClasses") \
aoqi@0 1322 \
aoqi@0 1323 develop(bool, StressMethodComparator, false, \
aoqi@0 1324 "Run the MethodComparator on all loaded methods") \
aoqi@0 1325 \
aoqi@0 1326 /* change to false by default sometime after Mustang */ \
aoqi@0 1327 product(bool, VerifyMergedCPBytecodes, true, \
aoqi@0 1328 "Verify bytecodes after RedefineClasses constant pool merging") \
aoqi@0 1329 \
aoqi@0 1330 develop(bool, TraceJNIHandleAllocation, false, \
aoqi@0 1331 "Trace allocation/deallocation of JNI handle blocks") \
aoqi@0 1332 \
aoqi@0 1333 develop(bool, TraceThreadEvents, false, \
aoqi@0 1334 "Trace all thread events") \
aoqi@0 1335 \
aoqi@0 1336 develop(bool, TraceBytecodes, false, \
aoqi@0 1337 "Trace bytecode execution") \
aoqi@0 1338 \
aoqi@0 1339 develop(bool, TraceClassInitialization, false, \
aoqi@0 1340 "Trace class initialization") \
aoqi@0 1341 \
aoqi@0 1342 develop(bool, TraceExceptions, false, \
aoqi@0 1343 "Trace exceptions") \
aoqi@0 1344 \
aoqi@0 1345 develop(bool, TraceICs, false, \
aoqi@0 1346 "Trace inline cache changes") \
aoqi@0 1347 \
aoqi@0 1348 notproduct(bool, TraceInvocationCounterOverflow, false, \
aoqi@0 1349 "Trace method invocation counter overflow") \
aoqi@0 1350 \
aoqi@0 1351 develop(bool, TraceInlineCacheClearing, false, \
aoqi@0 1352 "Trace clearing of inline caches in nmethods") \
aoqi@0 1353 \
aoqi@0 1354 develop(bool, TraceDependencies, false, \
aoqi@0 1355 "Trace dependencies") \
aoqi@0 1356 \
aoqi@0 1357 develop(bool, VerifyDependencies, trueInDebug, \
aoqi@0 1358 "Exercise and verify the compilation dependency mechanism") \
aoqi@0 1359 \
aoqi@0 1360 develop(bool, TraceNewOopMapGeneration, false, \
aoqi@0 1361 "Trace OopMapGeneration") \
aoqi@0 1362 \
aoqi@0 1363 develop(bool, TraceNewOopMapGenerationDetailed, false, \
aoqi@0 1364 "Trace OopMapGeneration: print detailed cell states") \
aoqi@0 1365 \
aoqi@0 1366 develop(bool, TimeOopMap, false, \
aoqi@0 1367 "Time calls to GenerateOopMap::compute_map() in sum") \
aoqi@0 1368 \
aoqi@0 1369 develop(bool, TimeOopMap2, false, \
aoqi@0 1370 "Time calls to GenerateOopMap::compute_map() individually") \
aoqi@0 1371 \
aoqi@0 1372 develop(bool, TraceMonitorMismatch, false, \
aoqi@0 1373 "Trace monitor matching failures during OopMapGeneration") \
aoqi@0 1374 \
aoqi@0 1375 develop(bool, TraceOopMapRewrites, false, \
aoqi@0 1376 "Trace rewriting of method oops during oop map generation") \
aoqi@0 1377 \
aoqi@0 1378 develop(bool, TraceSafepoint, false, \
aoqi@0 1379 "Trace safepoint operations") \
aoqi@0 1380 \
aoqi@0 1381 develop(bool, TraceICBuffer, false, \
aoqi@0 1382 "Trace usage of IC buffer") \
aoqi@0 1383 \
aoqi@0 1384 develop(bool, TraceCompiledIC, false, \
aoqi@0 1385 "Trace changes of compiled IC") \
aoqi@0 1386 \
aoqi@0 1387 notproduct(bool, TraceZapDeadLocals, false, \
aoqi@0 1388 "Trace zapping dead locals") \
aoqi@0 1389 \
aoqi@0 1390 develop(bool, TraceStartupTime, false, \
aoqi@0 1391 "Trace setup time") \
aoqi@0 1392 \
aoqi@0 1393 develop(bool, TraceProtectionDomainVerification, false, \
aoqi@0 1394 "Trace protection domain verification") \
aoqi@0 1395 \
aoqi@0 1396 develop(bool, TraceClearedExceptions, false, \
aoqi@0 1397 "Print when an exception is forcibly cleared") \
aoqi@0 1398 \
aoqi@0 1399 product(bool, TraceClassResolution, false, \
aoqi@0 1400 "Trace all constant pool resolutions (for debugging)") \
aoqi@0 1401 \
aoqi@0 1402 product(bool, TraceBiasedLocking, false, \
aoqi@0 1403 "Trace biased locking in JVM") \
aoqi@0 1404 \
aoqi@0 1405 product(bool, TraceMonitorInflation, false, \
aoqi@0 1406 "Trace monitor inflation in JVM") \
aoqi@0 1407 \
aoqi@0 1408 /* gc */ \
aoqi@0 1409 \
aoqi@0 1410 product(bool, UseSerialGC, false, \
aoqi@0 1411 "Use the Serial garbage collector") \
aoqi@0 1412 \
aoqi@0 1413 product(bool, UseG1GC, false, \
aoqi@0 1414 "Use the Garbage-First garbage collector") \
aoqi@0 1415 \
aoqi@0 1416 product(bool, UseParallelGC, false, \
aoqi@0 1417 "Use the Parallel Scavenge garbage collector") \
aoqi@0 1418 \
aoqi@0 1419 product(bool, UseParallelOldGC, false, \
aoqi@0 1420 "Use the Parallel Old garbage collector") \
aoqi@0 1421 \
aoqi@0 1422 product(uintx, HeapMaximumCompactionInterval, 20, \
aoqi@0 1423 "How often should we maximally compact the heap (not allowing " \
aoqi@0 1424 "any dead space)") \
aoqi@0 1425 \
aoqi@0 1426 product(uintx, HeapFirstMaximumCompactionCount, 3, \
aoqi@0 1427 "The collection count for the first maximum compaction") \
aoqi@0 1428 \
aoqi@0 1429 product(bool, UseMaximumCompactionOnSystemGC, true, \
aoqi@0 1430 "Use maximum compaction in the Parallel Old garbage collector " \
aoqi@0 1431 "for a system GC") \
aoqi@0 1432 \
aoqi@0 1433 product(uintx, ParallelOldDeadWoodLimiterMean, 50, \
aoqi@0 1434 "The mean used by the parallel compact dead wood " \
aoqi@0 1435 "limiter (a number between 0-100)") \
aoqi@0 1436 \
aoqi@0 1437 product(uintx, ParallelOldDeadWoodLimiterStdDev, 80, \
aoqi@0 1438 "The standard deviation used by the parallel compact dead wood " \
aoqi@0 1439 "limiter (a number between 0-100)") \
aoqi@0 1440 \
aoqi@0 1441 product(uintx, ParallelGCThreads, 0, \
aoqi@0 1442 "Number of parallel threads parallel gc will use") \
aoqi@0 1443 \
aoqi@0 1444 product(bool, UseDynamicNumberOfGCThreads, false, \
aoqi@0 1445 "Dynamically choose the number of parallel threads " \
aoqi@0 1446 "parallel gc will use") \
aoqi@0 1447 \
aoqi@0 1448 diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \
aoqi@0 1449 "Force dynamic selection of the number of " \
aoqi@0 1450 "parallel threads parallel gc will use to aid debugging") \
aoqi@0 1451 \
aoqi@0 1452 product(uintx, HeapSizePerGCThread, ScaleForWordSize(64*M), \
aoqi@0 1453 "Size of heap (bytes) per GC thread used in calculating the " \
aoqi@0 1454 "number of GC threads") \
aoqi@0 1455 \
aoqi@0 1456 product(bool, TraceDynamicGCThreads, false, \
aoqi@0 1457 "Trace the dynamic GC thread usage") \
aoqi@0 1458 \
aoqi@0 1459 develop(bool, ParallelOldGCSplitALot, false, \
aoqi@0 1460 "Provoke splitting (copying data from a young gen space to " \
aoqi@0 1461 "multiple destination spaces)") \
aoqi@0 1462 \
aoqi@0 1463 develop(uintx, ParallelOldGCSplitInterval, 3, \
aoqi@0 1464 "How often to provoke splitting a young gen space") \
aoqi@0 1465 \
aoqi@0 1466 product(uintx, ConcGCThreads, 0, \
aoqi@0 1467 "Number of threads concurrent gc will use") \
aoqi@0 1468 \
aoqi@0 1469 product(uintx, YoungPLABSize, 4096, \
aoqi@0 1470 "Size of young gen promotion LAB's (in HeapWords)") \
aoqi@0 1471 \
aoqi@0 1472 product(uintx, OldPLABSize, 1024, \
aoqi@0 1473 "Size of old gen promotion LAB's (in HeapWords)") \
aoqi@0 1474 \
aoqi@0 1475 product(uintx, GCTaskTimeStampEntries, 200, \
aoqi@0 1476 "Number of time stamp entries per gc worker thread") \
aoqi@0 1477 \
aoqi@0 1478 product(bool, AlwaysTenure, false, \
aoqi@0 1479 "Always tenure objects in eden (ParallelGC only)") \
aoqi@0 1480 \
aoqi@0 1481 product(bool, NeverTenure, false, \
aoqi@0 1482 "Never tenure objects in eden, may tenure on overflow " \
aoqi@0 1483 "(ParallelGC only)") \
aoqi@0 1484 \
aoqi@0 1485 product(bool, ScavengeBeforeFullGC, true, \
aoqi@0 1486 "Scavenge youngest generation before each full GC, " \
aoqi@0 1487 "used with UseParallelGC") \
aoqi@0 1488 \
aoqi@0 1489 develop(bool, ScavengeWithObjectsInToSpace, false, \
aoqi@0 1490 "Allow scavenges to occur when to-space contains objects") \
aoqi@0 1491 \
aoqi@0 1492 product(bool, UseConcMarkSweepGC, false, \
aoqi@0 1493 "Use Concurrent Mark-Sweep GC in the old generation") \
aoqi@0 1494 \
aoqi@0 1495 product(bool, ExplicitGCInvokesConcurrent, false, \
aoqi@0 1496 "A System.gc() request invokes a concurrent collection; " \
aoqi@0 1497 "(effective only when UseConcMarkSweepGC)") \
aoqi@0 1498 \
aoqi@0 1499 product(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false, \
aoqi@0 1500 "A System.gc() request invokes a concurrent collection and " \
aoqi@0 1501 "also unloads classes during such a concurrent gc cycle " \
aoqi@0 1502 "(effective only when UseConcMarkSweepGC)") \
aoqi@0 1503 \
aoqi@0 1504 product(bool, GCLockerInvokesConcurrent, false, \
aoqi@0 1505 "The exit of a JNI critical section necessitating a scavenge, " \
aoqi@0 1506 "also kicks off a background concurrent collection") \
aoqi@0 1507 \
aoqi@0 1508 product(uintx, GCLockerEdenExpansionPercent, 5, \
aoqi@0 1509 "How much the GC can expand the eden by while the GC locker " \
aoqi@0 1510 "is active (as a percentage)") \
aoqi@0 1511 \
aoqi@0 1512 diagnostic(intx, GCLockerRetryAllocationCount, 2, \
aoqi@0 1513 "Number of times to retry allocations when " \
aoqi@0 1514 "blocked by the GC locker") \
aoqi@0 1515 \
aoqi@0 1516 develop(bool, UseCMSAdaptiveFreeLists, true, \
aoqi@0 1517 "Use adaptive free lists in the CMS generation") \
aoqi@0 1518 \
aoqi@0 1519 develop(bool, UseAsyncConcMarkSweepGC, true, \
aoqi@0 1520 "Use Asynchronous Concurrent Mark-Sweep GC in the old generation")\
aoqi@0 1521 \
aoqi@0 1522 develop(bool, RotateCMSCollectionTypes, false, \
aoqi@0 1523 "Rotate the CMS collections among concurrent and STW") \
aoqi@0 1524 \
aoqi@0 1525 product(bool, UseCMSBestFit, true, \
aoqi@0 1526 "Use CMS best fit allocation strategy") \
aoqi@0 1527 \
aoqi@0 1528 product(bool, UseCMSCollectionPassing, true, \
aoqi@0 1529 "Use passing of collection from background to foreground") \
aoqi@0 1530 \
aoqi@0 1531 product(bool, UseParNewGC, false, \
aoqi@0 1532 "Use parallel threads in the new generation") \
aoqi@0 1533 \
aoqi@0 1534 product(bool, ParallelGCVerbose, false, \
aoqi@0 1535 "Verbose output for parallel gc") \
aoqi@0 1536 \
aoqi@0 1537 product(uintx, ParallelGCBufferWastePct, 10, \
aoqi@0 1538 "Wasted fraction of parallel allocation buffer") \
aoqi@0 1539 \
aoqi@0 1540 diagnostic(bool, ParallelGCRetainPLAB, false, \
aoqi@0 1541 "Retain parallel allocation buffers across scavenges; " \
aoqi@0 1542 "it is disabled because this currently conflicts with " \
aoqi@0 1543 "parallel card scanning under certain conditions.") \
aoqi@0 1544 \
aoqi@0 1545 product(uintx, TargetPLABWastePct, 10, \
aoqi@0 1546 "Target wasted space in last buffer as percent of overall " \
aoqi@0 1547 "allocation") \
aoqi@0 1548 \
aoqi@0 1549 product(uintx, PLABWeight, 75, \
aoqi@0 1550 "Percentage (0-100) used to weigh the current sample when " \
aoqi@0 1551 "computing exponentially decaying average for ResizePLAB") \
aoqi@0 1552 \
aoqi@0 1553 product(bool, ResizePLAB, true, \
aoqi@0 1554 "Dynamically resize (survivor space) promotion LAB's") \
aoqi@0 1555 \
aoqi@0 1556 product(bool, PrintPLAB, false, \
aoqi@0 1557 "Print (survivor space) promotion LAB's sizing decisions") \
aoqi@0 1558 \
aoqi@0 1559 product(intx, ParGCArrayScanChunk, 50, \
aoqi@0 1560 "Scan a subset of object array and push remainder, if array is " \
aoqi@0 1561 "bigger than this") \
aoqi@0 1562 \
aoqi@0 1563 product(bool, ParGCUseLocalOverflow, false, \
aoqi@0 1564 "Instead of a global overflow list, use local overflow stacks") \
aoqi@0 1565 \
aoqi@0 1566 product(bool, ParGCTrimOverflow, true, \
aoqi@0 1567 "Eagerly trim the local overflow lists " \
aoqi@0 1568 "(when ParGCUseLocalOverflow)") \
aoqi@0 1569 \
aoqi@0 1570 notproduct(bool, ParGCWorkQueueOverflowALot, false, \
aoqi@0 1571 "Simulate work queue overflow in ParNew") \
aoqi@0 1572 \
aoqi@0 1573 notproduct(uintx, ParGCWorkQueueOverflowInterval, 1000, \
aoqi@0 1574 "An `interval' counter that determines how frequently " \
aoqi@0 1575 "we simulate overflow; a smaller number increases frequency") \
aoqi@0 1576 \
aoqi@0 1577 product(uintx, ParGCDesiredObjsFromOverflowList, 20, \
aoqi@0 1578 "The desired number of objects to claim from the overflow list") \
aoqi@0 1579 \
aoqi@0 1580 diagnostic(uintx, ParGCStridesPerThread, 2, \
aoqi@0 1581 "The number of strides per worker thread that we divide up the " \
aoqi@0 1582 "card table scanning work into") \
aoqi@0 1583 \
aoqi@0 1584 diagnostic(intx, ParGCCardsPerStrideChunk, 256, \
aoqi@0 1585 "The number of cards in each chunk of the parallel chunks used " \
aoqi@0 1586 "during card table scanning") \
aoqi@0 1587 \
aoqi@0 1588 product(uintx, CMSParPromoteBlocksToClaim, 16, \
aoqi@0 1589 "Number of blocks to attempt to claim when refilling CMS LAB's " \
aoqi@0 1590 "for parallel GC") \
aoqi@0 1591 \
aoqi@0 1592 product(uintx, OldPLABWeight, 50, \
aoqi@0 1593 "Percentage (0-100) used to weight the current sample when " \
aoqi@0 1594 "computing exponentially decaying average for resizing " \
aoqi@0 1595 "CMSParPromoteBlocksToClaim") \
aoqi@0 1596 \
aoqi@0 1597 product(bool, ResizeOldPLAB, true, \
aoqi@0 1598 "Dynamically resize (old gen) promotion LAB's") \
aoqi@0 1599 \
aoqi@0 1600 product(bool, PrintOldPLAB, false, \
aoqi@0 1601 "Print (old gen) promotion LAB's sizing decisions") \
aoqi@0 1602 \
aoqi@0 1603 product(uintx, CMSOldPLABMin, 16, \
aoqi@0 1604 "Minimum size of CMS gen promotion LAB caches per worker " \
aoqi@0 1605 "per block size") \
aoqi@0 1606 \
aoqi@0 1607 product(uintx, CMSOldPLABMax, 1024, \
aoqi@0 1608 "Maximum size of CMS gen promotion LAB caches per worker " \
aoqi@0 1609 "per block size") \
aoqi@0 1610 \
aoqi@0 1611 product(uintx, CMSOldPLABNumRefills, 4, \
aoqi@0 1612 "Nominal number of refills of CMS gen promotion LAB cache " \
aoqi@0 1613 "per worker per block size") \
aoqi@0 1614 \
aoqi@0 1615 product(bool, CMSOldPLABResizeQuicker, false, \
aoqi@0 1616 "React on-the-fly during a scavenge to a sudden " \
aoqi@0 1617 "change in block demand rate") \
aoqi@0 1618 \
aoqi@0 1619 product(uintx, CMSOldPLABToleranceFactor, 4, \
aoqi@0 1620 "The tolerance of the phase-change detector for on-the-fly " \
aoqi@0 1621 "PLAB resizing during a scavenge") \
aoqi@0 1622 \
aoqi@0 1623 product(uintx, CMSOldPLABReactivityFactor, 2, \
aoqi@0 1624 "The gain in the feedback loop for on-the-fly PLAB resizing " \
aoqi@0 1625 "during a scavenge") \
aoqi@0 1626 \
aoqi@0 1627 product(bool, AlwaysPreTouch, false, \
aoqi@0 1628 "Force all freshly committed pages to be pre-touched") \
aoqi@0 1629 \
aoqi@0 1630 product_pd(uintx, CMSYoungGenPerWorker, \
aoqi@0 1631 "The maximum size of young gen chosen by default per GC worker " \
aoqi@0 1632 "thread available") \
aoqi@0 1633 \
aoqi@0 1634 product(bool, CMSIncrementalMode, false, \
aoqi@0 1635 "Whether CMS GC should operate in \"incremental\" mode") \
aoqi@0 1636 \
aoqi@0 1637 product(uintx, CMSIncrementalDutyCycle, 10, \
aoqi@0 1638 "Percentage (0-100) of CMS incremental mode duty cycle. If " \
aoqi@0 1639 "CMSIncrementalPacing is enabled, then this is just the initial " \
aoqi@0 1640 "value.") \
aoqi@0 1641 \
aoqi@0 1642 product(bool, CMSIncrementalPacing, true, \
aoqi@0 1643 "Whether the CMS incremental mode duty cycle should be " \
aoqi@0 1644 "automatically adjusted") \
aoqi@0 1645 \
aoqi@0 1646 product(uintx, CMSIncrementalDutyCycleMin, 0, \
aoqi@0 1647 "Minimum percentage (0-100) of the CMS incremental duty cycle " \
aoqi@0 1648 "used when CMSIncrementalPacing is enabled") \
aoqi@0 1649 \
aoqi@0 1650 product(uintx, CMSIncrementalSafetyFactor, 10, \
aoqi@0 1651 "Percentage (0-100) used to add conservatism when computing the " \
aoqi@0 1652 "duty cycle") \
aoqi@0 1653 \
aoqi@0 1654 product(uintx, CMSIncrementalOffset, 0, \
aoqi@0 1655 "Percentage (0-100) by which the CMS incremental mode duty cycle "\
aoqi@0 1656 "is shifted to the right within the period between young GCs") \
aoqi@0 1657 \
aoqi@0 1658 product(uintx, CMSExpAvgFactor, 50, \
aoqi@0 1659 "Percentage (0-100) used to weigh the current sample when " \
aoqi@0 1660 "computing exponential averages for CMS statistics") \
aoqi@0 1661 \
aoqi@0 1662 product(uintx, CMS_FLSWeight, 75, \
aoqi@0 1663 "Percentage (0-100) used to weigh the current sample when " \
aoqi@0 1664 "computing exponentially decaying averages for CMS FLS " \
aoqi@0 1665 "statistics") \
aoqi@0 1666 \
aoqi@0 1667 product(uintx, CMS_FLSPadding, 1, \
aoqi@0 1668 "The multiple of deviation from mean to use for buffering " \
aoqi@0 1669 "against volatility in free list demand") \
aoqi@0 1670 \
aoqi@0 1671 product(uintx, FLSCoalescePolicy, 2, \
aoqi@0 1672 "CMS: aggressiveness level for coalescing, increasing " \
aoqi@0 1673 "from 0 to 4") \
aoqi@0 1674 \
aoqi@0 1675 product(bool, FLSAlwaysCoalesceLarge, false, \
aoqi@0 1676 "CMS: larger free blocks are always available for coalescing") \
aoqi@0 1677 \
aoqi@0 1678 product(double, FLSLargestBlockCoalesceProximity, 0.99, \
aoqi@0 1679 "CMS: the smaller the percentage the greater the coalescing " \
aoqi@0 1680 "force") \
aoqi@0 1681 \
aoqi@0 1682 product(double, CMSSmallCoalSurplusPercent, 1.05, \
aoqi@0 1683 "CMS: the factor by which to inflate estimated demand of small " \
aoqi@0 1684 "block sizes to prevent coalescing with an adjoining block") \
aoqi@0 1685 \
aoqi@0 1686 product(double, CMSLargeCoalSurplusPercent, 0.95, \
aoqi@0 1687 "CMS: the factor by which to inflate estimated demand of large " \
aoqi@0 1688 "block sizes to prevent coalescing with an adjoining block") \
aoqi@0 1689 \
aoqi@0 1690 product(double, CMSSmallSplitSurplusPercent, 1.10, \
aoqi@0 1691 "CMS: the factor by which to inflate estimated demand of small " \
aoqi@0 1692 "block sizes to prevent splitting to supply demand for smaller " \
aoqi@0 1693 "blocks") \
aoqi@0 1694 \
aoqi@0 1695 product(double, CMSLargeSplitSurplusPercent, 1.00, \
aoqi@0 1696 "CMS: the factor by which to inflate estimated demand of large " \
aoqi@0 1697 "block sizes to prevent splitting to supply demand for smaller " \
aoqi@0 1698 "blocks") \
aoqi@0 1699 \
aoqi@0 1700 product(bool, CMSExtrapolateSweep, false, \
aoqi@0 1701 "CMS: cushion for block demand during sweep") \
aoqi@0 1702 \
aoqi@0 1703 product(uintx, CMS_SweepWeight, 75, \
aoqi@0 1704 "Percentage (0-100) used to weight the current sample when " \
aoqi@0 1705 "computing exponentially decaying average for inter-sweep " \
aoqi@0 1706 "duration") \
aoqi@0 1707 \
aoqi@0 1708 product(uintx, CMS_SweepPadding, 1, \
aoqi@0 1709 "The multiple of deviation from mean to use for buffering " \
aoqi@0 1710 "against volatility in inter-sweep duration") \
aoqi@0 1711 \
aoqi@0 1712 product(uintx, CMS_SweepTimerThresholdMillis, 10, \
aoqi@0 1713 "Skip block flux-rate sampling for an epoch unless inter-sweep " \
aoqi@0 1714 "duration exceeds this threshold in milliseconds") \
aoqi@0 1715 \
aoqi@0 1716 develop(bool, CMSTraceIncrementalMode, false, \
aoqi@0 1717 "Trace CMS incremental mode") \
aoqi@0 1718 \
aoqi@0 1719 develop(bool, CMSTraceIncrementalPacing, false, \
aoqi@0 1720 "Trace CMS incremental mode pacing computation") \
aoqi@0 1721 \
aoqi@0 1722 develop(bool, CMSTraceThreadState, false, \
aoqi@0 1723 "Trace the CMS thread state (enable the trace_state() method)") \
aoqi@0 1724 \
aoqi@0 1725 product(bool, CMSClassUnloadingEnabled, true, \
aoqi@0 1726 "Whether class unloading enabled when using CMS GC") \
aoqi@0 1727 \
aoqi@0 1728 product(uintx, CMSClassUnloadingMaxInterval, 0, \
aoqi@0 1729 "When CMS class unloading is enabled, the maximum CMS cycle " \
aoqi@0 1730 "count for which classes may not be unloaded") \
aoqi@0 1731 \
aoqi@0 1732 product(bool, CMSCompactWhenClearAllSoftRefs, true, \
aoqi@0 1733 "Compact when asked to collect CMS gen with " \
aoqi@0 1734 "clear_all_soft_refs()") \
aoqi@0 1735 \
aoqi@0 1736 product(bool, UseCMSCompactAtFullCollection, true, \
aoqi@0 1737 "Use Mark-Sweep-Compact algorithm at full collections") \
aoqi@0 1738 \
aoqi@0 1739 product(uintx, CMSFullGCsBeforeCompaction, 0, \
aoqi@0 1740 "Number of CMS full collection done before compaction if > 0") \
aoqi@0 1741 \
aoqi@0 1742 develop(intx, CMSDictionaryChoice, 0, \
aoqi@0 1743 "Use BinaryTreeDictionary as default in the CMS generation") \
aoqi@0 1744 \
aoqi@0 1745 product(uintx, CMSIndexedFreeListReplenish, 4, \
aoqi@0 1746 "Replenish an indexed free list with this number of chunks") \
aoqi@0 1747 \
aoqi@0 1748 product(bool, CMSReplenishIntermediate, true, \
aoqi@0 1749 "Replenish all intermediate free-list caches") \
aoqi@0 1750 \
aoqi@0 1751 product(bool, CMSSplitIndexedFreeListBlocks, true, \
aoqi@0 1752 "When satisfying batched demand, split blocks from the " \
aoqi@0 1753 "IndexedFreeList whose size is a multiple of requested size") \
aoqi@0 1754 \
aoqi@0 1755 product(bool, CMSLoopWarn, false, \
aoqi@0 1756 "Warn in case of excessive CMS looping") \
aoqi@0 1757 \
aoqi@0 1758 develop(bool, CMSOverflowEarlyRestoration, false, \
aoqi@0 1759 "Restore preserved marks early") \
aoqi@0 1760 \
aoqi@0 1761 product(uintx, MarkStackSize, NOT_LP64(32*K) LP64_ONLY(4*M), \
aoqi@0 1762 "Size of marking stack") \
aoqi@0 1763 \
aoqi@0 1764 product(uintx, MarkStackSizeMax, NOT_LP64(4*M) LP64_ONLY(512*M), \
aoqi@0 1765 "Maximum size of marking stack") \
aoqi@0 1766 \
aoqi@0 1767 notproduct(bool, CMSMarkStackOverflowALot, false, \
aoqi@0 1768 "Simulate frequent marking stack / work queue overflow") \
aoqi@0 1769 \
aoqi@0 1770 notproduct(uintx, CMSMarkStackOverflowInterval, 1000, \
aoqi@0 1771 "An \"interval\" counter that determines how frequently " \
aoqi@0 1772 "to simulate overflow; a smaller number increases frequency") \
aoqi@0 1773 \
aoqi@0 1774 product(uintx, CMSMaxAbortablePrecleanLoops, 0, \
aoqi@0 1775 "(Temporary, subject to experimentation) " \
aoqi@0 1776 "Maximum number of abortable preclean iterations, if > 0") \
aoqi@0 1777 \
aoqi@0 1778 product(intx, CMSMaxAbortablePrecleanTime, 5000, \
aoqi@0 1779 "(Temporary, subject to experimentation) " \
aoqi@0 1780 "Maximum time in abortable preclean (in milliseconds)") \
aoqi@0 1781 \
aoqi@0 1782 product(uintx, CMSAbortablePrecleanMinWorkPerIteration, 100, \
aoqi@0 1783 "(Temporary, subject to experimentation) " \
aoqi@0 1784 "Nominal minimum work per abortable preclean iteration") \
aoqi@0 1785 \
aoqi@0 1786 manageable(intx, CMSAbortablePrecleanWaitMillis, 100, \
aoqi@0 1787 "(Temporary, subject to experimentation) " \
aoqi@0 1788 "Time that we sleep between iterations when not given " \
aoqi@0 1789 "enough work per iteration") \
aoqi@0 1790 \
aoqi@0 1791 product(uintx, CMSRescanMultiple, 32, \
aoqi@0 1792 "Size (in cards) of CMS parallel rescan task") \
aoqi@0 1793 \
aoqi@0 1794 product(uintx, CMSConcMarkMultiple, 32, \
aoqi@0 1795 "Size (in cards) of CMS concurrent MT marking task") \
aoqi@0 1796 \
aoqi@0 1797 product(bool, CMSAbortSemantics, false, \
aoqi@0 1798 "Whether abort-on-overflow semantics is implemented") \
aoqi@0 1799 \
aoqi@0 1800 product(bool, CMSParallelInitialMarkEnabled, true, \
aoqi@0 1801 "Use the parallel initial mark.") \
aoqi@0 1802 \
aoqi@0 1803 product(bool, CMSParallelRemarkEnabled, true, \
aoqi@0 1804 "Whether parallel remark enabled (only if ParNewGC)") \
aoqi@0 1805 \
aoqi@0 1806 product(bool, CMSParallelSurvivorRemarkEnabled, true, \
aoqi@0 1807 "Whether parallel remark of survivor space " \
aoqi@0 1808 "enabled (effective only if CMSParallelRemarkEnabled)") \
aoqi@0 1809 \
aoqi@0 1810 product(bool, CMSPLABRecordAlways, true, \
aoqi@0 1811 "Always record survivor space PLAB boundaries (effective only " \
aoqi@0 1812 "if CMSParallelSurvivorRemarkEnabled)") \
aoqi@0 1813 \
aoqi@0 1814 product(bool, CMSEdenChunksRecordAlways, true, \
aoqi@0 1815 "Always record eden chunks used for the parallel initial mark " \
aoqi@0 1816 "or remark of eden") \
aoqi@0 1817 \
aoqi@0 1818 product(bool, CMSPrintEdenSurvivorChunks, false, \
aoqi@0 1819 "Print the eden and the survivor chunks used for the parallel " \
aoqi@0 1820 "initial mark or remark of the eden/survivor spaces") \
aoqi@0 1821 \
aoqi@0 1822 product(bool, CMSConcurrentMTEnabled, true, \
aoqi@0 1823 "Whether multi-threaded concurrent work enabled " \
aoqi@0 1824 "(effective only if ParNewGC)") \
aoqi@0 1825 \
aoqi@0 1826 product(bool, CMSPrecleaningEnabled, true, \
aoqi@0 1827 "Whether concurrent precleaning enabled") \
aoqi@0 1828 \
aoqi@0 1829 product(uintx, CMSPrecleanIter, 3, \
aoqi@0 1830 "Maximum number of precleaning iteration passes") \
aoqi@0 1831 \
aoqi@0 1832 product(uintx, CMSPrecleanNumerator, 2, \
aoqi@0 1833 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
aoqi@0 1834 "ratio") \
aoqi@0 1835 \
aoqi@0 1836 product(uintx, CMSPrecleanDenominator, 3, \
aoqi@0 1837 "CMSPrecleanNumerator:CMSPrecleanDenominator yields convergence " \
aoqi@0 1838 "ratio") \
aoqi@0 1839 \
aoqi@0 1840 product(bool, CMSPrecleanRefLists1, true, \
aoqi@0 1841 "Preclean ref lists during (initial) preclean phase") \
aoqi@0 1842 \
aoqi@0 1843 product(bool, CMSPrecleanRefLists2, false, \
aoqi@0 1844 "Preclean ref lists during abortable preclean phase") \
aoqi@0 1845 \
aoqi@0 1846 product(bool, CMSPrecleanSurvivors1, false, \
aoqi@0 1847 "Preclean survivors during (initial) preclean phase") \
aoqi@0 1848 \
aoqi@0 1849 product(bool, CMSPrecleanSurvivors2, true, \
aoqi@0 1850 "Preclean survivors during abortable preclean phase") \
aoqi@0 1851 \
aoqi@0 1852 product(uintx, CMSPrecleanThreshold, 1000, \
aoqi@0 1853 "Do not iterate again if number of dirty cards is less than this")\
aoqi@0 1854 \
aoqi@0 1855 product(bool, CMSCleanOnEnter, true, \
aoqi@0 1856 "Clean-on-enter optimization for reducing number of dirty cards") \
aoqi@0 1857 \
aoqi@0 1858 product(uintx, CMSRemarkVerifyVariant, 1, \
aoqi@0 1859 "Choose variant (1,2) of verification following remark") \
aoqi@0 1860 \
aoqi@0 1861 product(uintx, CMSScheduleRemarkEdenSizeThreshold, 2*M, \
aoqi@0 1862 "If Eden size is below this, do not try to schedule remark") \
aoqi@0 1863 \
aoqi@0 1864 product(uintx, CMSScheduleRemarkEdenPenetration, 50, \
aoqi@0 1865 "The Eden occupancy percentage (0-100) at which " \
aoqi@0 1866 "to try and schedule remark pause") \
aoqi@0 1867 \
aoqi@0 1868 product(uintx, CMSScheduleRemarkSamplingRatio, 5, \
aoqi@0 1869 "Start sampling eden top at least before young gen " \
aoqi@0 1870 "occupancy reaches 1/<ratio> of the size at which " \
aoqi@0 1871 "we plan to schedule remark") \
aoqi@0 1872 \
aoqi@0 1873 product(uintx, CMSSamplingGrain, 16*K, \
aoqi@0 1874 "The minimum distance between eden samples for CMS (see above)") \
aoqi@0 1875 \
aoqi@0 1876 product(bool, CMSScavengeBeforeRemark, false, \
aoqi@0 1877 "Attempt scavenge before the CMS remark step") \
aoqi@0 1878 \
aoqi@0 1879 develop(bool, CMSTraceSweeper, false, \
aoqi@0 1880 "Trace some actions of the CMS sweeper") \
aoqi@0 1881 \
aoqi@0 1882 product(uintx, CMSWorkQueueDrainThreshold, 10, \
aoqi@0 1883 "Don't drain below this size per parallel worker/thief") \
aoqi@0 1884 \
aoqi@0 1885 manageable(intx, CMSWaitDuration, 2000, \
aoqi@0 1886 "Time in milliseconds that CMS thread waits for young GC") \
aoqi@0 1887 \
aoqi@0 1888 develop(uintx, CMSCheckInterval, 1000, \
aoqi@0 1889 "Interval in milliseconds that CMS thread checks if it " \
aoqi@0 1890 "should start a collection cycle") \
aoqi@0 1891 \
aoqi@0 1892 product(bool, CMSYield, true, \
aoqi@0 1893 "Yield between steps of CMS") \
aoqi@0 1894 \
aoqi@0 1895 product(uintx, CMSBitMapYieldQuantum, 10*M, \
aoqi@0 1896 "Bitmap operations should process at most this many bits " \
aoqi@0 1897 "between yields") \
aoqi@0 1898 \
aoqi@0 1899 product(bool, CMSDumpAtPromotionFailure, false, \
aoqi@0 1900 "Dump useful information about the state of the CMS old " \
aoqi@0 1901 "generation upon a promotion failure") \
aoqi@0 1902 \
aoqi@0 1903 product(bool, CMSPrintChunksInDump, false, \
aoqi@0 1904 "In a dump enabled by CMSDumpAtPromotionFailure, include " \
aoqi@0 1905 "more detailed information about the free chunks") \
aoqi@0 1906 \
aoqi@0 1907 product(bool, CMSPrintObjectsInDump, false, \
aoqi@0 1908 "In a dump enabled by CMSDumpAtPromotionFailure, include " \
aoqi@0 1909 "more detailed information about the allocated objects") \
aoqi@0 1910 \
aoqi@0 1911 diagnostic(bool, FLSVerifyAllHeapReferences, false, \
aoqi@0 1912 "Verify that all references across the FLS boundary " \
aoqi@0 1913 "are to valid objects") \
aoqi@0 1914 \
aoqi@0 1915 diagnostic(bool, FLSVerifyLists, false, \
aoqi@0 1916 "Do lots of (expensive) FreeListSpace verification") \
aoqi@0 1917 \
aoqi@0 1918 diagnostic(bool, FLSVerifyIndexTable, false, \
aoqi@0 1919 "Do lots of (expensive) FLS index table verification") \
aoqi@0 1920 \
aoqi@0 1921 develop(bool, FLSVerifyDictionary, false, \
aoqi@0 1922 "Do lots of (expensive) FLS dictionary verification") \
aoqi@0 1923 \
aoqi@0 1924 develop(bool, VerifyBlockOffsetArray, false, \
aoqi@0 1925 "Do (expensive) block offset array verification") \
aoqi@0 1926 \
aoqi@0 1927 diagnostic(bool, BlockOffsetArrayUseUnallocatedBlock, false, \
aoqi@0 1928 "Maintain _unallocated_block in BlockOffsetArray " \
aoqi@0 1929 "(currently applicable only to CMS collector)") \
aoqi@0 1930 \
aoqi@0 1931 develop(bool, TraceCMSState, false, \
aoqi@0 1932 "Trace the state of the CMS collection") \
aoqi@0 1933 \
aoqi@0 1934 product(intx, RefDiscoveryPolicy, 0, \
aoqi@0 1935 "Select type of reference discovery policy: " \
aoqi@0 1936 "reference-based(0) or referent-based(1)") \
aoqi@0 1937 \
aoqi@0 1938 product(bool, ParallelRefProcEnabled, false, \
aoqi@0 1939 "Enable parallel reference processing whenever possible") \
aoqi@0 1940 \
aoqi@0 1941 product(bool, ParallelRefProcBalancingEnabled, true, \
aoqi@0 1942 "Enable balancing of reference processing queues") \
aoqi@0 1943 \
aoqi@0 1944 product(uintx, CMSTriggerRatio, 80, \
aoqi@0 1945 "Percentage of MinHeapFreeRatio in CMS generation that is " \
aoqi@0 1946 "allocated before a CMS collection cycle commences") \
aoqi@0 1947 \
aoqi@0 1948 product(uintx, CMSBootstrapOccupancy, 50, \
aoqi@0 1949 "Percentage CMS generation occupancy at which to " \
aoqi@0 1950 "initiate CMS collection for bootstrapping collection stats") \
aoqi@0 1951 \
aoqi@0 1952 product(intx, CMSInitiatingOccupancyFraction, -1, \
aoqi@0 1953 "Percentage CMS generation occupancy to start a CMS collection " \
aoqi@0 1954 "cycle. A negative value means that CMSTriggerRatio is used") \
aoqi@0 1955 \
aoqi@0 1956 product(uintx, InitiatingHeapOccupancyPercent, 45, \
aoqi@0 1957 "Percentage of the (entire) heap occupancy to start a " \
aoqi@0 1958 "concurrent GC cycle. It is used by GCs that trigger a " \
aoqi@0 1959 "concurrent GC cycle based on the occupancy of the entire heap, " \
aoqi@0 1960 "not just one of the generations (e.g., G1). A value of 0 " \
aoqi@0 1961 "denotes 'do constant GC cycles'.") \
aoqi@0 1962 \
aoqi@0 1963 product(bool, UseCMSInitiatingOccupancyOnly, false, \
aoqi@0 1964 "Only use occupancy as a criterion for starting a CMS collection")\
aoqi@0 1965 \
aoqi@0 1966 product(uintx, CMSIsTooFullPercentage, 98, \
aoqi@0 1967 "An absolute ceiling above which CMS will always consider the " \
aoqi@0 1968 "unloading of classes when class unloading is enabled") \
aoqi@0 1969 \
aoqi@0 1970 develop(bool, CMSTestInFreeList, false, \
aoqi@0 1971 "Check if the coalesced range is already in the " \
aoqi@0 1972 "free lists as claimed") \
aoqi@0 1973 \
aoqi@0 1974 notproduct(bool, CMSVerifyReturnedBytes, false, \
aoqi@0 1975 "Check that all the garbage collected was returned to the " \
aoqi@0 1976 "free lists") \
aoqi@0 1977 \
aoqi@0 1978 notproduct(bool, ScavengeALot, false, \
aoqi@0 1979 "Force scavenge at every Nth exit from the runtime system " \
aoqi@0 1980 "(N=ScavengeALotInterval)") \
aoqi@0 1981 \
aoqi@0 1982 develop(bool, FullGCALot, false, \
aoqi@0 1983 "Force full gc at every Nth exit from the runtime system " \
aoqi@0 1984 "(N=FullGCALotInterval)") \
aoqi@0 1985 \
aoqi@0 1986 notproduct(bool, GCALotAtAllSafepoints, false, \
aoqi@0 1987 "Enforce ScavengeALot/GCALot at all potential safepoints") \
aoqi@0 1988 \
aoqi@0 1989 product(bool, PrintPromotionFailure, false, \
aoqi@0 1990 "Print additional diagnostic information following " \
aoqi@0 1991 "promotion failure") \
aoqi@0 1992 \
aoqi@0 1993 notproduct(bool, PromotionFailureALot, false, \
aoqi@0 1994 "Use promotion failure handling on every youngest generation " \
aoqi@0 1995 "collection") \
aoqi@0 1996 \
aoqi@0 1997 develop(uintx, PromotionFailureALotCount, 1000, \
aoqi@0 1998 "Number of promotion failures occurring at ParGCAllocBuffer " \
aoqi@0 1999 "refill attempts (ParNew) or promotion attempts " \
aoqi@0 2000 "(other young collectors)") \
aoqi@0 2001 \
aoqi@0 2002 develop(uintx, PromotionFailureALotInterval, 5, \
aoqi@0 2003 "Total collections between promotion failures alot") \
aoqi@0 2004 \
aoqi@0 2005 experimental(uintx, WorkStealingSleepMillis, 1, \
aoqi@0 2006 "Sleep time when sleep is used for yields") \
aoqi@0 2007 \
aoqi@0 2008 experimental(uintx, WorkStealingYieldsBeforeSleep, 5000, \
aoqi@0 2009 "Number of yields before a sleep is done during workstealing") \
aoqi@0 2010 \
aoqi@0 2011 experimental(uintx, WorkStealingHardSpins, 4096, \
aoqi@0 2012 "Number of iterations in a spin loop between checks on " \
aoqi@0 2013 "time out of hard spin") \
aoqi@0 2014 \
aoqi@0 2015 experimental(uintx, WorkStealingSpinToYieldRatio, 10, \
aoqi@0 2016 "Ratio of hard spins to calls to yield") \
aoqi@0 2017 \
aoqi@0 2018 develop(uintx, ObjArrayMarkingStride, 512, \
aoqi@0 2019 "Number of object array elements to push onto the marking stack " \
aoqi@0 2020 "before pushing a continuation entry") \
aoqi@0 2021 \
aoqi@0 2022 develop(bool, MetadataAllocationFailALot, false, \
aoqi@0 2023 "Fail metadata allocations at intervals controlled by " \
aoqi@0 2024 "MetadataAllocationFailALotInterval") \
aoqi@0 2025 \
aoqi@0 2026 develop(uintx, MetadataAllocationFailALotInterval, 1000, \
aoqi@0 2027 "Metadata allocation failure a lot interval") \
aoqi@0 2028 \
aoqi@0 2029 develop(bool, TraceMetadataChunkAllocation, false, \
aoqi@0 2030 "Trace chunk metadata allocations") \
aoqi@0 2031 \
aoqi@0 2032 product(bool, TraceMetadataHumongousAllocation, false, \
aoqi@0 2033 "Trace humongous metadata allocations") \
aoqi@0 2034 \
aoqi@0 2035 develop(bool, TraceMetavirtualspaceAllocation, false, \
aoqi@0 2036 "Trace virtual space metadata allocations") \
aoqi@0 2037 \
aoqi@0 2038 notproduct(bool, ExecuteInternalVMTests, false, \
aoqi@0 2039 "Enable execution of internal VM tests") \
aoqi@0 2040 \
aoqi@0 2041 notproduct(bool, VerboseInternalVMTests, false, \
aoqi@0 2042 "Turn on logging for internal VM tests.") \
aoqi@0 2043 \
aoqi@0 2044 product_pd(bool, UseTLAB, "Use thread-local object allocation") \
aoqi@0 2045 \
aoqi@0 2046 product_pd(bool, ResizeTLAB, \
aoqi@0 2047 "Dynamically resize TLAB size for threads") \
aoqi@0 2048 \
aoqi@0 2049 product(bool, ZeroTLAB, false, \
aoqi@0 2050 "Zero out the newly created TLAB") \
aoqi@0 2051 \
aoqi@0 2052 product(bool, FastTLABRefill, true, \
aoqi@0 2053 "Use fast TLAB refill code") \
aoqi@0 2054 \
aoqi@0 2055 product(bool, PrintTLAB, false, \
aoqi@0 2056 "Print various TLAB related information") \
aoqi@0 2057 \
aoqi@0 2058 product(bool, TLABStats, true, \
aoqi@0 2059 "Provide more detailed and expensive TLAB statistics " \
aoqi@0 2060 "(with PrintTLAB)") \
aoqi@0 2061 \
aoqi@0 2062 EMBEDDED_ONLY(product(bool, LowMemoryProtection, true, \
aoqi@0 2063 "Enable LowMemoryProtection")) \
aoqi@0 2064 \
aoqi@0 2065 product_pd(bool, NeverActAsServerClassMachine, \
aoqi@0 2066 "Never act like a server-class machine") \
aoqi@0 2067 \
aoqi@0 2068 product(bool, AlwaysActAsServerClassMachine, false, \
aoqi@0 2069 "Always act like a server-class machine") \
aoqi@0 2070 \
aoqi@0 2071 product_pd(uint64_t, MaxRAM, \
aoqi@0 2072 "Real memory size (in bytes) used to set maximum heap size") \
aoqi@0 2073 \
aoqi@0 2074 product(uintx, ErgoHeapSizeLimit, 0, \
aoqi@0 2075 "Maximum ergonomically set heap size (in bytes); zero means use " \
aoqi@0 2076 "MaxRAM / MaxRAMFraction") \
aoqi@0 2077 \
aoqi@0 2078 product(uintx, MaxRAMFraction, 4, \
aoqi@0 2079 "Maximum fraction (1/n) of real memory used for maximum heap " \
aoqi@0 2080 "size") \
aoqi@0 2081 \
aoqi@0 2082 product(uintx, DefaultMaxRAMFraction, 4, \
aoqi@0 2083 "Maximum fraction (1/n) of real memory used for maximum heap " \
aoqi@0 2084 "size; deprecated: to be renamed to MaxRAMFraction") \
aoqi@0 2085 \
aoqi@0 2086 product(uintx, MinRAMFraction, 2, \
aoqi@0 2087 "Minimum fraction (1/n) of real memory used for maxmimum heap " \
aoqi@0 2088 "size on systems with small physical memory size") \
aoqi@0 2089 \
aoqi@0 2090 product(uintx, InitialRAMFraction, 64, \
aoqi@0 2091 "Fraction (1/n) of real memory used for initial heap size") \
aoqi@0 2092 \
aoqi@0 2093 develop(uintx, MaxVirtMemFraction, 2, \
aoqi@0 2094 "Maximum fraction (1/n) of virtual memory used for ergonomically "\
aoqi@0 2095 "determining maximum heap size") \
aoqi@0 2096 \
aoqi@0 2097 product(bool, UseAutoGCSelectPolicy, false, \
aoqi@0 2098 "Use automatic collection selection policy") \
aoqi@0 2099 \
aoqi@0 2100 product(uintx, AutoGCSelectPauseMillis, 5000, \
aoqi@0 2101 "Automatic GC selection pause threshold in milliseconds") \
aoqi@0 2102 \
aoqi@0 2103 product(bool, UseAdaptiveSizePolicy, true, \
aoqi@0 2104 "Use adaptive generation sizing policies") \
aoqi@0 2105 \
aoqi@0 2106 product(bool, UsePSAdaptiveSurvivorSizePolicy, true, \
aoqi@0 2107 "Use adaptive survivor sizing policies") \
aoqi@0 2108 \
aoqi@0 2109 product(bool, UseAdaptiveGenerationSizePolicyAtMinorCollection, true, \
aoqi@0 2110 "Use adaptive young-old sizing policies at minor collections") \
aoqi@0 2111 \
aoqi@0 2112 product(bool, UseAdaptiveGenerationSizePolicyAtMajorCollection, true, \
aoqi@0 2113 "Use adaptive young-old sizing policies at major collections") \
aoqi@0 2114 \
aoqi@0 2115 product(bool, UseAdaptiveSizePolicyWithSystemGC, false, \
aoqi@0 2116 "Include statistics from System.gc() for adaptive size policy") \
aoqi@0 2117 \
aoqi@0 2118 product(bool, UseAdaptiveGCBoundary, false, \
aoqi@0 2119 "Allow young-old boundary to move") \
aoqi@0 2120 \
aoqi@0 2121 develop(bool, TraceAdaptiveGCBoundary, false, \
aoqi@0 2122 "Trace young-old boundary moves") \
aoqi@0 2123 \
aoqi@0 2124 develop(intx, PSAdaptiveSizePolicyResizeVirtualSpaceAlot, -1, \
aoqi@0 2125 "Resize the virtual spaces of the young or old generations") \
aoqi@0 2126 \
aoqi@0 2127 product(uintx, AdaptiveSizeThroughPutPolicy, 0, \
aoqi@0 2128 "Policy for changing generation size for throughput goals") \
aoqi@0 2129 \
aoqi@0 2130 product(uintx, AdaptiveSizePausePolicy, 0, \
aoqi@0 2131 "Policy for changing generation size for pause goals") \
aoqi@0 2132 \
aoqi@0 2133 develop(bool, PSAdjustTenuredGenForMinorPause, false, \
aoqi@0 2134 "Adjust tenured generation to achieve a minor pause goal") \
aoqi@0 2135 \
aoqi@0 2136 develop(bool, PSAdjustYoungGenForMajorPause, false, \
aoqi@0 2137 "Adjust young generation to achieve a major pause goal") \
aoqi@0 2138 \
aoqi@0 2139 product(uintx, AdaptiveSizePolicyInitializingSteps, 20, \
aoqi@0 2140 "Number of steps where heuristics is used before data is used") \
aoqi@0 2141 \
aoqi@0 2142 develop(uintx, AdaptiveSizePolicyReadyThreshold, 5, \
aoqi@0 2143 "Number of collections before the adaptive sizing is started") \
aoqi@0 2144 \
aoqi@0 2145 product(uintx, AdaptiveSizePolicyOutputInterval, 0, \
aoqi@0 2146 "Collection interval for printing information; zero means never") \
aoqi@0 2147 \
aoqi@0 2148 product(bool, UseAdaptiveSizePolicyFootprintGoal, true, \
aoqi@0 2149 "Use adaptive minimum footprint as a goal") \
aoqi@0 2150 \
aoqi@0 2151 product(uintx, AdaptiveSizePolicyWeight, 10, \
aoqi@0 2152 "Weight given to exponential resizing, between 0 and 100") \
aoqi@0 2153 \
aoqi@0 2154 product(uintx, AdaptiveTimeWeight, 25, \
aoqi@0 2155 "Weight given to time in adaptive policy, between 0 and 100") \
aoqi@0 2156 \
aoqi@0 2157 product(uintx, PausePadding, 1, \
aoqi@0 2158 "How much buffer to keep for pause time") \
aoqi@0 2159 \
aoqi@0 2160 product(uintx, PromotedPadding, 3, \
aoqi@0 2161 "How much buffer to keep for promotion failure") \
aoqi@0 2162 \
aoqi@0 2163 product(uintx, SurvivorPadding, 3, \
aoqi@0 2164 "How much buffer to keep for survivor overflow") \
aoqi@0 2165 \
aoqi@0 2166 product(uintx, ThresholdTolerance, 10, \
aoqi@0 2167 "Allowed collection cost difference between generations") \
aoqi@0 2168 \
aoqi@0 2169 product(uintx, AdaptiveSizePolicyCollectionCostMargin, 50, \
aoqi@0 2170 "If collection costs are within margin, reduce both by full " \
aoqi@0 2171 "delta") \
aoqi@0 2172 \
aoqi@0 2173 product(uintx, YoungGenerationSizeIncrement, 20, \
aoqi@0 2174 "Adaptive size percentage change in young generation") \
aoqi@0 2175 \
aoqi@0 2176 product(uintx, YoungGenerationSizeSupplement, 80, \
aoqi@0 2177 "Supplement to YoungedGenerationSizeIncrement used at startup") \
aoqi@0 2178 \
aoqi@0 2179 product(uintx, YoungGenerationSizeSupplementDecay, 8, \
aoqi@0 2180 "Decay factor to YoungedGenerationSizeSupplement") \
aoqi@0 2181 \
aoqi@0 2182 product(uintx, TenuredGenerationSizeIncrement, 20, \
aoqi@0 2183 "Adaptive size percentage change in tenured generation") \
aoqi@0 2184 \
aoqi@0 2185 product(uintx, TenuredGenerationSizeSupplement, 80, \
aoqi@0 2186 "Supplement to TenuredGenerationSizeIncrement used at startup") \
aoqi@0 2187 \
aoqi@0 2188 product(uintx, TenuredGenerationSizeSupplementDecay, 2, \
aoqi@0 2189 "Decay factor to TenuredGenerationSizeIncrement") \
aoqi@0 2190 \
aoqi@0 2191 product(uintx, MaxGCPauseMillis, max_uintx, \
aoqi@0 2192 "Adaptive size policy maximum GC pause time goal in millisecond, "\
aoqi@0 2193 "or (G1 Only) the maximum GC time per MMU time slice") \
aoqi@0 2194 \
aoqi@0 2195 product(uintx, GCPauseIntervalMillis, 0, \
aoqi@0 2196 "Time slice for MMU specification") \
aoqi@0 2197 \
aoqi@0 2198 product(uintx, MaxGCMinorPauseMillis, max_uintx, \
aoqi@0 2199 "Adaptive size policy maximum GC minor pause time goal " \
aoqi@0 2200 "in millisecond") \
aoqi@0 2201 \
aoqi@0 2202 product(uintx, GCTimeRatio, 99, \
aoqi@0 2203 "Adaptive size policy application time to GC time ratio") \
aoqi@0 2204 \
aoqi@0 2205 product(uintx, AdaptiveSizeDecrementScaleFactor, 4, \
aoqi@0 2206 "Adaptive size scale down factor for shrinking") \
aoqi@0 2207 \
aoqi@0 2208 product(bool, UseAdaptiveSizeDecayMajorGCCost, true, \
aoqi@0 2209 "Adaptive size decays the major cost for long major intervals") \
aoqi@0 2210 \
aoqi@0 2211 product(uintx, AdaptiveSizeMajorGCDecayTimeScale, 10, \
aoqi@0 2212 "Time scale over which major costs decay") \
aoqi@0 2213 \
aoqi@0 2214 product(uintx, MinSurvivorRatio, 3, \
aoqi@0 2215 "Minimum ratio of young generation/survivor space size") \
aoqi@0 2216 \
aoqi@0 2217 product(uintx, InitialSurvivorRatio, 8, \
aoqi@0 2218 "Initial ratio of young generation/survivor space size") \
aoqi@0 2219 \
aoqi@0 2220 product(uintx, BaseFootPrintEstimate, 256*M, \
aoqi@0 2221 "Estimate of footprint other than Java Heap") \
aoqi@0 2222 \
aoqi@0 2223 product(bool, UseGCOverheadLimit, true, \
aoqi@0 2224 "Use policy to limit of proportion of time spent in GC " \
aoqi@0 2225 "before an OutOfMemory error is thrown") \
aoqi@0 2226 \
aoqi@0 2227 product(uintx, GCTimeLimit, 98, \
aoqi@0 2228 "Limit of the proportion of time spent in GC before " \
aoqi@0 2229 "an OutOfMemoryError is thrown (used with GCHeapFreeLimit)") \
aoqi@0 2230 \
aoqi@0 2231 product(uintx, GCHeapFreeLimit, 2, \
aoqi@0 2232 "Minimum percentage of free space after a full GC before an " \
aoqi@0 2233 "OutOfMemoryError is thrown (used with GCTimeLimit)") \
aoqi@0 2234 \
aoqi@0 2235 develop(uintx, AdaptiveSizePolicyGCTimeLimitThreshold, 5, \
aoqi@0 2236 "Number of consecutive collections before gc time limit fires") \
aoqi@0 2237 \
aoqi@0 2238 product(bool, PrintAdaptiveSizePolicy, false, \
aoqi@0 2239 "Print information about AdaptiveSizePolicy") \
aoqi@0 2240 \
aoqi@0 2241 product(intx, PrefetchCopyIntervalInBytes, -1, \
aoqi@0 2242 "How far ahead to prefetch destination area (<= 0 means off)") \
aoqi@0 2243 \
aoqi@0 2244 product(intx, PrefetchScanIntervalInBytes, -1, \
aoqi@0 2245 "How far ahead to prefetch scan area (<= 0 means off)") \
aoqi@0 2246 \
aoqi@0 2247 product(intx, PrefetchFieldsAhead, -1, \
aoqi@0 2248 "How many fields ahead to prefetch in oop scan (<= 0 means off)") \
aoqi@0 2249 \
aoqi@0 2250 diagnostic(bool, VerifySilently, false, \
aoqi@0 2251 "Do not print the verification progress") \
aoqi@0 2252 \
aoqi@0 2253 diagnostic(bool, VerifyDuringStartup, false, \
aoqi@0 2254 "Verify memory system before executing any Java code " \
aoqi@0 2255 "during VM initialization") \
aoqi@0 2256 \
aoqi@0 2257 diagnostic(bool, VerifyBeforeExit, trueInDebug, \
aoqi@0 2258 "Verify system before exiting") \
aoqi@0 2259 \
aoqi@0 2260 diagnostic(bool, VerifyBeforeGC, false, \
aoqi@0 2261 "Verify memory system before GC") \
aoqi@0 2262 \
aoqi@0 2263 diagnostic(bool, VerifyAfterGC, false, \
aoqi@0 2264 "Verify memory system after GC") \
aoqi@0 2265 \
aoqi@0 2266 diagnostic(bool, VerifyDuringGC, false, \
aoqi@0 2267 "Verify memory system during GC (between phases)") \
aoqi@0 2268 \
aoqi@0 2269 diagnostic(bool, GCParallelVerificationEnabled, true, \
aoqi@0 2270 "Enable parallel memory system verification") \
aoqi@0 2271 \
aoqi@0 2272 diagnostic(bool, DeferInitialCardMark, false, \
aoqi@0 2273 "When +ReduceInitialCardMarks, explicitly defer any that " \
aoqi@0 2274 "may arise from new_pre_store_barrier") \
aoqi@0 2275 \
aoqi@0 2276 diagnostic(bool, VerifyRememberedSets, false, \
aoqi@0 2277 "Verify GC remembered sets") \
aoqi@0 2278 \
aoqi@0 2279 diagnostic(bool, VerifyObjectStartArray, true, \
aoqi@0 2280 "Verify GC object start array if verify before/after") \
aoqi@0 2281 \
aoqi@0 2282 product(bool, DisableExplicitGC, false, \
aoqi@0 2283 "Ignore calls to System.gc()") \
aoqi@0 2284 \
aoqi@0 2285 notproduct(bool, CheckMemoryInitialization, false, \
aoqi@0 2286 "Check memory initialization") \
aoqi@0 2287 \
aoqi@0 2288 product(bool, CollectGen0First, false, \
aoqi@0 2289 "Collect youngest generation before each full GC") \
aoqi@0 2290 \
aoqi@0 2291 diagnostic(bool, BindCMSThreadToCPU, false, \
aoqi@0 2292 "Bind CMS Thread to CPU if possible") \
aoqi@0 2293 \
aoqi@0 2294 diagnostic(uintx, CPUForCMSThread, 0, \
aoqi@0 2295 "When BindCMSThreadToCPU is true, the CPU to bind CMS thread to") \
aoqi@0 2296 \
aoqi@1 2297 product(bool, BindGCTaskThreadsToCPUs, MIPS64_ONLY(true) NOT_MIPS64(false), \
aoqi@0 2298 "Bind GCTaskThreads to CPUs if possible") \
aoqi@0 2299 \
aoqi@0 2300 product(bool, UseGCTaskAffinity, false, \
aoqi@0 2301 "Use worker affinity when asking for GCTasks") \
aoqi@0 2302 \
aoqi@0 2303 product(uintx, ProcessDistributionStride, 4, \
aoqi@0 2304 "Stride through processors when distributing processes") \
aoqi@0 2305 \
aoqi@0 2306 product(uintx, CMSCoordinatorYieldSleepCount, 10, \
aoqi@0 2307 "Number of times the coordinator GC thread will sleep while " \
aoqi@0 2308 "yielding before giving up and resuming GC") \
aoqi@0 2309 \
aoqi@0 2310 product(uintx, CMSYieldSleepCount, 0, \
aoqi@0 2311 "Number of times a GC thread (minus the coordinator) " \
aoqi@0 2312 "will sleep while yielding before giving up and resuming GC") \
aoqi@0 2313 \
aoqi@0 2314 /* gc tracing */ \
aoqi@0 2315 manageable(bool, PrintGC, false, \
aoqi@0 2316 "Print message at garbage collection") \
aoqi@0 2317 \
aoqi@0 2318 manageable(bool, PrintGCDetails, false, \
aoqi@0 2319 "Print more details at garbage collection") \
aoqi@0 2320 \
aoqi@0 2321 manageable(bool, PrintGCDateStamps, false, \
aoqi@0 2322 "Print date stamps at garbage collection") \
aoqi@0 2323 \
aoqi@0 2324 manageable(bool, PrintGCTimeStamps, false, \
aoqi@0 2325 "Print timestamps at garbage collection") \
aoqi@0 2326 \
aoqi@0 2327 product(bool, PrintGCTaskTimeStamps, false, \
aoqi@0 2328 "Print timestamps for individual gc worker thread tasks") \
aoqi@0 2329 \
aoqi@0 2330 develop(intx, ConcGCYieldTimeout, 0, \
aoqi@0 2331 "If non-zero, assert that GC threads yield within this " \
aoqi@0 2332 "number of milliseconds") \
aoqi@0 2333 \
aoqi@0 2334 notproduct(bool, TraceMarkSweep, false, \
aoqi@0 2335 "Trace mark sweep") \
aoqi@0 2336 \
aoqi@0 2337 product(bool, PrintReferenceGC, false, \
aoqi@0 2338 "Print times spent handling reference objects during GC " \
aoqi@0 2339 "(enabled only when PrintGCDetails)") \
aoqi@0 2340 \
aoqi@0 2341 develop(bool, TraceReferenceGC, false, \
aoqi@0 2342 "Trace handling of soft/weak/final/phantom references") \
aoqi@0 2343 \
aoqi@0 2344 develop(bool, TraceFinalizerRegistration, false, \
aoqi@0 2345 "Trace registration of final references") \
aoqi@0 2346 \
aoqi@0 2347 notproduct(bool, TraceScavenge, false, \
aoqi@0 2348 "Trace scavenge") \
aoqi@0 2349 \
aoqi@0 2350 product_rw(bool, TraceClassLoading, false, \
aoqi@0 2351 "Trace all classes loaded") \
aoqi@0 2352 \
aoqi@0 2353 product(bool, TraceClassLoadingPreorder, false, \
aoqi@0 2354 "Trace all classes loaded in order referenced (not loaded)") \
aoqi@0 2355 \
aoqi@0 2356 product_rw(bool, TraceClassUnloading, false, \
aoqi@0 2357 "Trace unloading of classes") \
aoqi@0 2358 \
aoqi@0 2359 product_rw(bool, TraceLoaderConstraints, false, \
aoqi@0 2360 "Trace loader constraints") \
aoqi@0 2361 \
aoqi@0 2362 develop(bool, TraceClassLoaderData, false, \
aoqi@0 2363 "Trace class loader loader_data lifetime") \
aoqi@0 2364 \
aoqi@0 2365 product(uintx, InitialBootClassLoaderMetaspaceSize, \
aoqi@0 2366 NOT_LP64(2200*K) LP64_ONLY(4*M), \
aoqi@0 2367 "Initial size of the boot class loader data metaspace") \
aoqi@0 2368 \
aoqi@0 2369 product(bool, TraceGen0Time, false, \
aoqi@0 2370 "Trace accumulated time for Gen 0 collection") \
aoqi@0 2371 \
aoqi@0 2372 product(bool, TraceGen1Time, false, \
aoqi@0 2373 "Trace accumulated time for Gen 1 collection") \
aoqi@0 2374 \
aoqi@0 2375 product(bool, PrintTenuringDistribution, false, \
aoqi@0 2376 "Print tenuring age information") \
aoqi@0 2377 \
aoqi@0 2378 product_rw(bool, PrintHeapAtGC, false, \
aoqi@0 2379 "Print heap layout before and after each GC") \
aoqi@0 2380 \
aoqi@0 2381 product_rw(bool, PrintHeapAtGCExtended, false, \
aoqi@0 2382 "Print extended information about the layout of the heap " \
aoqi@0 2383 "when -XX:+PrintHeapAtGC is set") \
aoqi@0 2384 \
aoqi@0 2385 product(bool, PrintHeapAtSIGBREAK, true, \
aoqi@0 2386 "Print heap layout in response to SIGBREAK") \
aoqi@0 2387 \
aoqi@0 2388 manageable(bool, PrintClassHistogramBeforeFullGC, false, \
aoqi@0 2389 "Print a class histogram before any major stop-world GC") \
aoqi@0 2390 \
aoqi@0 2391 manageable(bool, PrintClassHistogramAfterFullGC, false, \
aoqi@0 2392 "Print a class histogram after any major stop-world GC") \
aoqi@0 2393 \
aoqi@0 2394 manageable(bool, PrintClassHistogram, false, \
aoqi@0 2395 "Print a histogram of class instances") \
aoqi@0 2396 \
aoqi@0 2397 develop(bool, TraceWorkGang, false, \
aoqi@0 2398 "Trace activities of work gangs") \
aoqi@0 2399 \
aoqi@0 2400 product(bool, TraceParallelOldGCTasks, false, \
aoqi@0 2401 "Trace multithreaded GC activity") \
aoqi@0 2402 \
aoqi@0 2403 develop(bool, TraceBlockOffsetTable, false, \
aoqi@0 2404 "Print BlockOffsetTable maps") \
aoqi@0 2405 \
aoqi@0 2406 develop(bool, TraceCardTableModRefBS, false, \
aoqi@0 2407 "Print CardTableModRefBS maps") \
aoqi@0 2408 \
aoqi@0 2409 develop(bool, TraceGCTaskManager, false, \
aoqi@0 2410 "Trace actions of the GC task manager") \
aoqi@0 2411 \
aoqi@0 2412 develop(bool, TraceGCTaskQueue, false, \
aoqi@0 2413 "Trace actions of the GC task queues") \
aoqi@0 2414 \
aoqi@0 2415 diagnostic(bool, TraceGCTaskThread, false, \
aoqi@0 2416 "Trace actions of the GC task threads") \
aoqi@0 2417 \
aoqi@0 2418 product(bool, PrintParallelOldGCPhaseTimes, false, \
aoqi@0 2419 "Print the time taken by each phase in ParallelOldGC " \
aoqi@0 2420 "(PrintGCDetails must also be enabled)") \
aoqi@0 2421 \
aoqi@0 2422 develop(bool, TraceParallelOldGCMarkingPhase, false, \
aoqi@0 2423 "Trace marking phase in ParallelOldGC") \
aoqi@0 2424 \
aoqi@0 2425 develop(bool, TraceParallelOldGCSummaryPhase, false, \
aoqi@0 2426 "Trace summary phase in ParallelOldGC") \
aoqi@0 2427 \
aoqi@0 2428 develop(bool, TraceParallelOldGCCompactionPhase, false, \
aoqi@0 2429 "Trace compaction phase in ParallelOldGC") \
aoqi@0 2430 \
aoqi@0 2431 develop(bool, TraceParallelOldGCDensePrefix, false, \
aoqi@0 2432 "Trace dense prefix computation for ParallelOldGC") \
aoqi@0 2433 \
aoqi@0 2434 develop(bool, IgnoreLibthreadGPFault, false, \
aoqi@0 2435 "Suppress workaround for libthread GP fault") \
aoqi@0 2436 \
aoqi@0 2437 product(bool, PrintJNIGCStalls, false, \
aoqi@0 2438 "Print diagnostic message when GC is stalled " \
aoqi@0 2439 "by JNI critical section") \
aoqi@0 2440 \
aoqi@0 2441 experimental(double, ObjectCountCutOffPercent, 0.5, \
aoqi@0 2442 "The percentage of the used heap that the instances of a class " \
aoqi@0 2443 "must occupy for the class to generate a trace event") \
aoqi@0 2444 \
aoqi@0 2445 /* GC log rotation setting */ \
aoqi@0 2446 \
aoqi@0 2447 product(bool, UseGCLogFileRotation, false, \
aoqi@0 2448 "Rotate gclog files (for long running applications). It requires "\
aoqi@0 2449 "-Xloggc:<filename>") \
aoqi@0 2450 \
aoqi@0 2451 product(uintx, NumberOfGCLogFiles, 0, \
aoqi@0 2452 "Number of gclog files in rotation " \
aoqi@0 2453 "(default: 0, no rotation)") \
aoqi@0 2454 \
aoqi@0 2455 product(uintx, GCLogFileSize, 8*K, \
aoqi@0 2456 "GC log file size, requires UseGCLogFileRotation. " \
aoqi@0 2457 "Set to 0 to only trigger rotation via jcmd") \
aoqi@0 2458 \
aoqi@0 2459 /* JVMTI heap profiling */ \
aoqi@0 2460 \
aoqi@0 2461 diagnostic(bool, TraceJVMTIObjectTagging, false, \
aoqi@0 2462 "Trace JVMTI object tagging calls") \
aoqi@0 2463 \
aoqi@0 2464 diagnostic(bool, VerifyBeforeIteration, false, \
aoqi@0 2465 "Verify memory system before JVMTI iteration") \
aoqi@0 2466 \
aoqi@0 2467 /* compiler interface */ \
aoqi@0 2468 \
aoqi@0 2469 develop(bool, CIPrintCompilerName, false, \
aoqi@0 2470 "when CIPrint is active, print the name of the active compiler") \
aoqi@0 2471 \
aoqi@0 2472 develop(bool, CIPrintCompileQueue, false, \
aoqi@0 2473 "display the contents of the compile queue whenever a " \
aoqi@0 2474 "compilation is enqueued") \
aoqi@0 2475 \
aoqi@0 2476 develop(bool, CIPrintRequests, false, \
aoqi@0 2477 "display every request for compilation") \
aoqi@0 2478 \
aoqi@0 2479 product(bool, CITime, false, \
aoqi@0 2480 "collect timing information for compilation") \
aoqi@0 2481 \
aoqi@0 2482 develop(bool, CITimeEach, false, \
aoqi@0 2483 "display timing information after each successful compilation") \
aoqi@0 2484 \
aoqi@0 2485 develop(bool, CICountOSR, false, \
aoqi@0 2486 "use a separate counter when assigning ids to osr compilations") \
aoqi@0 2487 \
aoqi@0 2488 develop(bool, CICompileNatives, true, \
aoqi@0 2489 "compile native methods if supported by the compiler") \
aoqi@0 2490 \
aoqi@0 2491 develop_pd(bool, CICompileOSR, \
aoqi@0 2492 "compile on stack replacement methods if supported by the " \
aoqi@0 2493 "compiler") \
aoqi@0 2494 \
aoqi@0 2495 develop(bool, CIPrintMethodCodes, false, \
aoqi@0 2496 "print method bytecodes of the compiled code") \
aoqi@0 2497 \
aoqi@0 2498 develop(bool, CIPrintTypeFlow, false, \
aoqi@0 2499 "print the results of ciTypeFlow analysis") \
aoqi@0 2500 \
aoqi@0 2501 develop(bool, CITraceTypeFlow, false, \
aoqi@0 2502 "detailed per-bytecode tracing of ciTypeFlow analysis") \
aoqi@0 2503 \
aoqi@0 2504 develop(intx, OSROnlyBCI, -1, \
aoqi@0 2505 "OSR only at this bci. Negative values mean exclude that bci") \
aoqi@0 2506 \
aoqi@0 2507 /* compiler */ \
aoqi@0 2508 \
aoqi@0 2509 product(intx, CICompilerCount, CI_COMPILER_COUNT, \
aoqi@0 2510 "Number of compiler threads to run") \
aoqi@0 2511 \
aoqi@0 2512 product(intx, CompilationPolicyChoice, 0, \
aoqi@0 2513 "which compilation policy (0/1)") \
aoqi@0 2514 \
aoqi@0 2515 develop(bool, UseStackBanging, true, \
aoqi@0 2516 "use stack banging for stack overflow checks (required for " \
aoqi@0 2517 "proper StackOverflow handling; disable only to measure cost " \
aoqi@0 2518 "of stackbanging)") \
aoqi@0 2519 \
aoqi@0 2520 develop(bool, UseStrictFP, true, \
aoqi@0 2521 "use strict fp if modifier strictfp is set") \
aoqi@0 2522 \
aoqi@0 2523 develop(bool, GenerateSynchronizationCode, true, \
aoqi@0 2524 "generate locking/unlocking code for synchronized methods and " \
aoqi@0 2525 "monitors") \
aoqi@0 2526 \
aoqi@0 2527 develop(bool, GenerateCompilerNullChecks, true, \
aoqi@0 2528 "Generate explicit null checks for loads/stores/calls") \
aoqi@0 2529 \
aoqi@0 2530 develop(bool, GenerateRangeChecks, true, \
aoqi@0 2531 "Generate range checks for array accesses") \
aoqi@0 2532 \
aoqi@0 2533 develop_pd(bool, ImplicitNullChecks, \
aoqi@0 2534 "Generate code for implicit null checks") \
aoqi@0 2535 \
aoqi@0 2536 product_pd(bool, TrapBasedNullChecks, \
aoqi@0 2537 "Generate code for null checks that uses a cmp and trap " \
aoqi@0 2538 "instruction raising SIGTRAP. This is only used if an access to" \
aoqi@0 2539 "null (+offset) will not raise a SIGSEGV, i.e.," \
aoqi@0 2540 "ImplicitNullChecks don't work (PPC64).") \
aoqi@0 2541 \
aoqi@0 2542 product(bool, PrintSafepointStatistics, false, \
aoqi@0 2543 "Print statistics about safepoint synchronization") \
aoqi@0 2544 \
aoqi@0 2545 product(intx, PrintSafepointStatisticsCount, 300, \
aoqi@0 2546 "Total number of safepoint statistics collected " \
aoqi@0 2547 "before printing them out") \
aoqi@0 2548 \
aoqi@0 2549 product(intx, PrintSafepointStatisticsTimeout, -1, \
aoqi@0 2550 "Print safepoint statistics only when safepoint takes " \
aoqi@0 2551 "more than PrintSafepointSatisticsTimeout in millis") \
aoqi@0 2552 \
aoqi@0 2553 product(bool, TraceSafepointCleanupTime, false, \
aoqi@0 2554 "Print the break down of clean up tasks performed during " \
aoqi@0 2555 "safepoint") \
aoqi@0 2556 \
aoqi@0 2557 product(bool, Inline, true, \
aoqi@0 2558 "Enable inlining") \
aoqi@0 2559 \
aoqi@0 2560 product(bool, ClipInlining, true, \
aoqi@0 2561 "Clip inlining if aggregate method exceeds DesiredMethodLimit") \
aoqi@0 2562 \
aoqi@0 2563 develop(bool, UseCHA, true, \
aoqi@0 2564 "Enable CHA") \
aoqi@0 2565 \
aoqi@0 2566 product(bool, UseTypeProfile, true, \
aoqi@0 2567 "Check interpreter profile for historically monomorphic calls") \
aoqi@0 2568 \
aoqi@0 2569 notproduct(bool, TimeCompiler, false, \
aoqi@0 2570 "Time the compiler") \
aoqi@0 2571 \
aoqi@0 2572 diagnostic(bool, PrintInlining, false, \
aoqi@0 2573 "Print inlining optimizations") \
aoqi@0 2574 \
aoqi@0 2575 product(bool, UsePopCountInstruction, false, \
aoqi@0 2576 "Use population count instruction") \
aoqi@0 2577 \
aoqi@0 2578 develop(bool, EagerInitialization, false, \
aoqi@0 2579 "Eagerly initialize classes if possible") \
aoqi@0 2580 \
aoqi@0 2581 develop(bool, TraceMethodReplacement, false, \
aoqi@0 2582 "Print when methods are replaced do to recompilation") \
aoqi@0 2583 \
aoqi@0 2584 develop(bool, PrintMethodFlushing, false, \
aoqi@0 2585 "Print the nmethods being flushed") \
aoqi@0 2586 \
aoqi@0 2587 diagnostic(bool, PrintMethodFlushingStatistics, false, \
aoqi@0 2588 "print statistics about method flushing") \
aoqi@0 2589 \
aoqi@0 2590 develop(bool, UseRelocIndex, false, \
aoqi@0 2591 "Use an index to speed random access to relocations") \
aoqi@0 2592 \
aoqi@0 2593 develop(bool, StressCodeBuffers, false, \
aoqi@0 2594 "Exercise code buffer expansion and other rare state changes") \
aoqi@0 2595 \
aoqi@0 2596 diagnostic(bool, DebugNonSafepoints, trueInDebug, \
aoqi@0 2597 "Generate extra debugging information for non-safepoints in " \
aoqi@0 2598 "nmethods") \
aoqi@0 2599 \
aoqi@0 2600 product(bool, PrintVMOptions, false, \
aoqi@0 2601 "Print flags that appeared on the command line") \
aoqi@0 2602 \
aoqi@0 2603 product(bool, IgnoreUnrecognizedVMOptions, false, \
aoqi@0 2604 "Ignore unrecognized VM options") \
aoqi@0 2605 \
aoqi@0 2606 product(bool, PrintCommandLineFlags, false, \
aoqi@0 2607 "Print flags specified on command line or set by ergonomics") \
aoqi@0 2608 \
aoqi@0 2609 product(bool, PrintFlagsInitial, false, \
aoqi@0 2610 "Print all VM flags before argument processing and exit VM") \
aoqi@0 2611 \
aoqi@0 2612 product(bool, PrintFlagsFinal, false, \
aoqi@0 2613 "Print all VM flags after argument and ergonomic processing") \
aoqi@0 2614 \
aoqi@0 2615 notproduct(bool, PrintFlagsWithComments, false, \
aoqi@0 2616 "Print all VM flags with default values and descriptions and " \
aoqi@0 2617 "exit") \
aoqi@0 2618 \
aoqi@0 2619 diagnostic(bool, SerializeVMOutput, true, \
aoqi@0 2620 "Use a mutex to serialize output to tty and LogFile") \
aoqi@0 2621 \
aoqi@0 2622 diagnostic(bool, DisplayVMOutput, true, \
aoqi@0 2623 "Display all VM output on the tty, independently of LogVMOutput") \
aoqi@0 2624 \
aoqi@0 2625 diagnostic(bool, LogVMOutput, false, \
aoqi@0 2626 "Save VM output to LogFile") \
aoqi@0 2627 \
aoqi@0 2628 diagnostic(ccstr, LogFile, NULL, \
aoqi@0 2629 "If LogVMOutput or LogCompilation is on, save VM output to " \
aoqi@0 2630 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
aoqi@0 2631 \
aoqi@0 2632 product(ccstr, ErrorFile, NULL, \
aoqi@0 2633 "If an error occurs, save the error data to this file " \
aoqi@0 2634 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \
aoqi@0 2635 \
aoqi@0 2636 product(bool, DisplayVMOutputToStderr, false, \
aoqi@0 2637 "If DisplayVMOutput is true, display all VM output to stderr") \
aoqi@0 2638 \
aoqi@0 2639 product(bool, DisplayVMOutputToStdout, false, \
aoqi@0 2640 "If DisplayVMOutput is true, display all VM output to stdout") \
aoqi@0 2641 \
aoqi@0 2642 product(bool, UseHeavyMonitors, false, \
aoqi@0 2643 "use heavyweight instead of lightweight Java monitors") \
aoqi@0 2644 \
aoqi@0 2645 product(bool, PrintStringTableStatistics, false, \
aoqi@0 2646 "print statistics about the StringTable and SymbolTable") \
aoqi@0 2647 \
aoqi@0 2648 diagnostic(bool, VerifyStringTableAtExit, false, \
aoqi@0 2649 "verify StringTable contents at exit") \
aoqi@0 2650 \
aoqi@0 2651 notproduct(bool, PrintSymbolTableSizeHistogram, false, \
aoqi@0 2652 "print histogram of the symbol table") \
aoqi@0 2653 \
aoqi@0 2654 notproduct(bool, ExitVMOnVerifyError, false, \
aoqi@0 2655 "standard exit from VM if bytecode verify error " \
aoqi@0 2656 "(only in debug mode)") \
aoqi@0 2657 \
aoqi@0 2658 notproduct(ccstr, AbortVMOnException, NULL, \
aoqi@0 2659 "Call fatal if this exception is thrown. Example: " \
aoqi@0 2660 "java -XX:AbortVMOnException=java.lang.NullPointerException Foo") \
aoqi@0 2661 \
aoqi@0 2662 notproduct(ccstr, AbortVMOnExceptionMessage, NULL, \
aoqi@0 2663 "Call fatal if the exception pointed by AbortVMOnException " \
aoqi@0 2664 "has this message") \
aoqi@0 2665 \
aoqi@0 2666 develop(bool, DebugVtables, false, \
aoqi@0 2667 "add debugging code to vtable dispatch") \
aoqi@0 2668 \
aoqi@0 2669 develop(bool, PrintVtables, false, \
aoqi@0 2670 "print vtables when printing klass") \
aoqi@0 2671 \
aoqi@0 2672 notproduct(bool, PrintVtableStats, false, \
aoqi@0 2673 "print vtables stats at end of run") \
aoqi@0 2674 \
aoqi@0 2675 develop(bool, TraceCreateZombies, false, \
aoqi@0 2676 "trace creation of zombie nmethods") \
aoqi@0 2677 \
aoqi@0 2678 notproduct(bool, IgnoreLockingAssertions, false, \
aoqi@0 2679 "disable locking assertions (for speed)") \
aoqi@0 2680 \
aoqi@0 2681 product(bool, RangeCheckElimination, true, \
aoqi@0 2682 "Eliminate range checks") \
aoqi@0 2683 \
aoqi@0 2684 develop_pd(bool, UncommonNullCast, \
aoqi@0 2685 "track occurrences of null in casts; adjust compiler tactics") \
aoqi@0 2686 \
aoqi@0 2687 develop(bool, TypeProfileCasts, true, \
aoqi@0 2688 "treat casts like calls for purposes of type profiling") \
aoqi@0 2689 \
aoqi@0 2690 develop(bool, DelayCompilationDuringStartup, true, \
aoqi@0 2691 "Delay invoking the compiler until main application class is " \
aoqi@0 2692 "loaded") \
aoqi@0 2693 \
aoqi@0 2694 develop(bool, CompileTheWorld, false, \
aoqi@0 2695 "Compile all methods in all classes in bootstrap class path " \
aoqi@0 2696 "(stress test)") \
aoqi@0 2697 \
aoqi@0 2698 develop(bool, CompileTheWorldPreloadClasses, true, \
aoqi@0 2699 "Preload all classes used by a class before start loading") \
aoqi@0 2700 \
aoqi@0 2701 notproduct(intx, CompileTheWorldSafepointInterval, 100, \
aoqi@0 2702 "Force a safepoint every n compiles so sweeper can keep up") \
aoqi@0 2703 \
aoqi@0 2704 develop(bool, FillDelaySlots, true, \
aoqi@0 2705 "Fill delay slots (on SPARC only)") \
aoqi@0 2706 \
aoqi@0 2707 develop(bool, TimeLivenessAnalysis, false, \
aoqi@0 2708 "Time computation of bytecode liveness analysis") \
aoqi@0 2709 \
aoqi@0 2710 develop(bool, TraceLivenessGen, false, \
aoqi@0 2711 "Trace the generation of liveness analysis information") \
aoqi@0 2712 \
aoqi@0 2713 notproduct(bool, TraceLivenessQuery, false, \
aoqi@0 2714 "Trace queries of liveness analysis information") \
aoqi@0 2715 \
aoqi@0 2716 notproduct(bool, CollectIndexSetStatistics, false, \
aoqi@0 2717 "Collect information about IndexSets") \
aoqi@0 2718 \
aoqi@0 2719 develop(bool, UseLoopSafepoints, true, \
aoqi@0 2720 "Generate Safepoint nodes in every loop") \
aoqi@0 2721 \
aoqi@0 2722 develop(intx, FastAllocateSizeLimit, 128*K, \
aoqi@0 2723 /* Note: This value is zero mod 1<<13 for a cheap sparc set. */ \
aoqi@0 2724 "Inline allocations larger than this in doublewords must go slow")\
aoqi@0 2725 \
aoqi@0 2726 product(bool, AggressiveOpts, false, \
aoqi@0 2727 "Enable aggressive optimizations - see arguments.cpp") \
aoqi@0 2728 \
aoqi@0 2729 product_pd(uintx, TypeProfileLevel, \
aoqi@0 2730 "=XYZ, with Z: Type profiling of arguments at call; " \
aoqi@0 2731 "Y: Type profiling of return value at call; " \
aoqi@0 2732 "X: Type profiling of parameters to methods; " \
aoqi@0 2733 "X, Y and Z in 0=off ; 1=jsr292 only; 2=all methods") \
aoqi@0 2734 \
aoqi@0 2735 product(intx, TypeProfileArgsLimit, 2, \
aoqi@0 2736 "max number of call arguments to consider for type profiling") \
aoqi@0 2737 \
aoqi@0 2738 product(intx, TypeProfileParmsLimit, 2, \
aoqi@0 2739 "max number of incoming parameters to consider for type profiling"\
aoqi@0 2740 ", -1 for all") \
aoqi@0 2741 \
aoqi@0 2742 /* statistics */ \
aoqi@0 2743 develop(bool, CountCompiledCalls, false, \
aoqi@0 2744 "Count method invocations") \
aoqi@0 2745 \
aoqi@0 2746 notproduct(bool, CountRuntimeCalls, false, \
aoqi@0 2747 "Count VM runtime calls") \
aoqi@0 2748 \
aoqi@0 2749 develop(bool, CountJNICalls, false, \
aoqi@0 2750 "Count jni method invocations") \
aoqi@0 2751 \
aoqi@0 2752 notproduct(bool, CountJVMCalls, false, \
aoqi@0 2753 "Count jvm method invocations") \
aoqi@0 2754 \
aoqi@0 2755 notproduct(bool, CountRemovableExceptions, false, \
aoqi@0 2756 "Count exceptions that could be replaced by branches due to " \
aoqi@0 2757 "inlining") \
aoqi@0 2758 \
aoqi@0 2759 notproduct(bool, ICMissHistogram, false, \
aoqi@0 2760 "Produce histogram of IC misses") \
aoqi@0 2761 \
aoqi@0 2762 notproduct(bool, PrintClassStatistics, false, \
aoqi@0 2763 "Print class statistics at end of run") \
aoqi@0 2764 \
aoqi@0 2765 notproduct(bool, PrintMethodStatistics, false, \
aoqi@0 2766 "Print method statistics at end of run") \
aoqi@0 2767 \
aoqi@0 2768 /* interpreter */ \
aoqi@0 2769 develop(bool, ClearInterpreterLocals, false, \
aoqi@0 2770 "Always clear local variables of interpreter activations upon " \
aoqi@0 2771 "entry") \
aoqi@0 2772 \
aoqi@0 2773 product_pd(bool, RewriteBytecodes, \
aoqi@0 2774 "Allow rewriting of bytecodes (bytecodes are not immutable)") \
aoqi@0 2775 \
aoqi@0 2776 product_pd(bool, RewriteFrequentPairs, \
aoqi@0 2777 "Rewrite frequently used bytecode pairs into a single bytecode") \
aoqi@0 2778 \
aoqi@0 2779 diagnostic(bool, PrintInterpreter, false, \
aoqi@0 2780 "Print the generated interpreter code") \
aoqi@0 2781 \
aoqi@0 2782 product(bool, UseInterpreter, true, \
aoqi@0 2783 "Use interpreter for non-compiled methods") \
aoqi@0 2784 \
aoqi@0 2785 develop(bool, UseFastSignatureHandlers, true, \
aoqi@0 2786 "Use fast signature handlers for native calls") \
aoqi@0 2787 \
aoqi@0 2788 product(bool, UseLoopCounter, true, \
aoqi@0 2789 "Increment invocation counter on backward branch") \
aoqi@0 2790 \
aoqi@0 2791 product(bool, UseFastEmptyMethods, true, \
aoqi@0 2792 "Use fast method entry code for empty methods") \
aoqi@0 2793 \
aoqi@0 2794 product(bool, UseFastAccessorMethods, true, \
aoqi@0 2795 "Use fast method entry code for accessor methods") \
aoqi@0 2796 \
aoqi@0 2797 product_pd(bool, UseOnStackReplacement, \
aoqi@0 2798 "Use on stack replacement, calls runtime if invoc. counter " \
aoqi@0 2799 "overflows in loop") \
aoqi@0 2800 \
aoqi@0 2801 notproduct(bool, TraceOnStackReplacement, false, \
aoqi@0 2802 "Trace on stack replacement") \
aoqi@0 2803 \
aoqi@0 2804 product_pd(bool, PreferInterpreterNativeStubs, \
aoqi@0 2805 "Use always interpreter stubs for native methods invoked via " \
aoqi@0 2806 "interpreter") \
aoqi@0 2807 \
aoqi@0 2808 develop(bool, CountBytecodes, false, \
aoqi@0 2809 "Count number of bytecodes executed") \
aoqi@0 2810 \
aoqi@0 2811 develop(bool, PrintBytecodeHistogram, false, \
aoqi@0 2812 "Print histogram of the executed bytecodes") \
aoqi@0 2813 \
aoqi@0 2814 develop(bool, PrintBytecodePairHistogram, false, \
aoqi@0 2815 "Print histogram of the executed bytecode pairs") \
aoqi@0 2816 \
aoqi@0 2817 diagnostic(bool, PrintSignatureHandlers, false, \
aoqi@0 2818 "Print code generated for native method signature handlers") \
aoqi@0 2819 \
aoqi@0 2820 develop(bool, VerifyOops, false, \
aoqi@0 2821 "Do plausibility checks for oops") \
aoqi@0 2822 \
aoqi@0 2823 develop(bool, CheckUnhandledOops, false, \
aoqi@0 2824 "Check for unhandled oops in VM code") \
aoqi@0 2825 \
aoqi@0 2826 develop(bool, VerifyJNIFields, trueInDebug, \
aoqi@0 2827 "Verify jfieldIDs for instance fields") \
aoqi@0 2828 \
aoqi@0 2829 notproduct(bool, VerifyJNIEnvThread, false, \
aoqi@0 2830 "Verify JNIEnv.thread == Thread::current() when entering VM " \
aoqi@0 2831 "from JNI") \
aoqi@0 2832 \
aoqi@0 2833 develop(bool, VerifyFPU, false, \
aoqi@0 2834 "Verify FPU state (check for NaN's, etc.)") \
aoqi@0 2835 \
aoqi@0 2836 develop(bool, VerifyThread, false, \
aoqi@0 2837 "Watch the thread register for corruption (SPARC only)") \
aoqi@0 2838 \
aoqi@0 2839 develop(bool, VerifyActivationFrameSize, false, \
aoqi@0 2840 "Verify that activation frame didn't become smaller than its " \
aoqi@0 2841 "minimal size") \
aoqi@0 2842 \
aoqi@0 2843 develop(bool, TraceFrequencyInlining, false, \
aoqi@0 2844 "Trace frequency based inlining") \
aoqi@0 2845 \
aoqi@0 2846 develop_pd(bool, InlineIntrinsics, \
aoqi@0 2847 "Inline intrinsics that can be statically resolved") \
aoqi@0 2848 \
aoqi@0 2849 product_pd(bool, ProfileInterpreter, \
aoqi@0 2850 "Profile at the bytecode level during interpretation") \
aoqi@0 2851 \
aoqi@0 2852 develop(bool, TraceProfileInterpreter, false, \
aoqi@0 2853 "Trace profiling at the bytecode level during interpretation. " \
aoqi@0 2854 "This outputs the profiling information collected to improve " \
aoqi@0 2855 "jit compilation.") \
aoqi@0 2856 \
aoqi@0 2857 develop_pd(bool, ProfileTraps, \
aoqi@0 2858 "Profile deoptimization traps at the bytecode level") \
aoqi@0 2859 \
aoqi@0 2860 product(intx, ProfileMaturityPercentage, 20, \
aoqi@0 2861 "number of method invocations/branches (expressed as % of " \
aoqi@0 2862 "CompileThreshold) before using the method's profile") \
aoqi@0 2863 \
aoqi@0 2864 develop(bool, PrintMethodData, false, \
aoqi@0 2865 "Print the results of +ProfileInterpreter at end of run") \
aoqi@0 2866 \
aoqi@0 2867 develop(bool, VerifyDataPointer, trueInDebug, \
aoqi@0 2868 "Verify the method data pointer during interpreter profiling") \
aoqi@0 2869 \
aoqi@0 2870 develop(bool, VerifyCompiledCode, false, \
aoqi@0 2871 "Include miscellaneous runtime verifications in nmethod code; " \
aoqi@0 2872 "default off because it disturbs nmethod size heuristics") \
aoqi@0 2873 \
aoqi@0 2874 notproduct(bool, CrashGCForDumpingJavaThread, false, \
aoqi@0 2875 "Manually make GC thread crash then dump java stack trace; " \
aoqi@0 2876 "Test only") \
aoqi@0 2877 \
aoqi@0 2878 /* compilation */ \
aoqi@0 2879 product(bool, UseCompiler, true, \
aoqi@0 2880 "Use Just-In-Time compilation") \
aoqi@0 2881 \
aoqi@0 2882 develop(bool, TraceCompilationPolicy, false, \
aoqi@0 2883 "Trace compilation policy") \
aoqi@0 2884 \
aoqi@0 2885 develop(bool, TimeCompilationPolicy, false, \
aoqi@0 2886 "Time the compilation policy") \
aoqi@0 2887 \
aoqi@0 2888 product(bool, UseCounterDecay, true, \
aoqi@0 2889 "Adjust recompilation counters") \
aoqi@0 2890 \
aoqi@0 2891 develop(intx, CounterHalfLifeTime, 30, \
aoqi@0 2892 "Half-life time of invocation counters (in seconds)") \
aoqi@0 2893 \
aoqi@0 2894 develop(intx, CounterDecayMinIntervalLength, 500, \
aoqi@0 2895 "The minimum interval (in milliseconds) between invocation of " \
aoqi@0 2896 "CounterDecay") \
aoqi@0 2897 \
aoqi@0 2898 product(bool, AlwaysCompileLoopMethods, false, \
aoqi@0 2899 "When using recompilation, never interpret methods " \
aoqi@0 2900 "containing loops") \
aoqi@0 2901 \
aoqi@0 2902 product(bool, DontCompileHugeMethods, true, \
aoqi@0 2903 "Do not compile methods > HugeMethodLimit") \
aoqi@0 2904 \
aoqi@0 2905 /* Bytecode escape analysis estimation. */ \
aoqi@0 2906 product(bool, EstimateArgEscape, true, \
aoqi@0 2907 "Analyze bytecodes to estimate escape state of arguments") \
aoqi@0 2908 \
aoqi@0 2909 product(intx, BCEATraceLevel, 0, \
aoqi@0 2910 "How much tracing to do of bytecode escape analysis estimates") \
aoqi@0 2911 \
aoqi@0 2912 product(intx, MaxBCEAEstimateLevel, 5, \
aoqi@0 2913 "Maximum number of nested calls that are analyzed by BC EA") \
aoqi@0 2914 \
aoqi@0 2915 product(intx, MaxBCEAEstimateSize, 150, \
aoqi@0 2916 "Maximum bytecode size of a method to be analyzed by BC EA") \
aoqi@0 2917 \
aoqi@0 2918 product(intx, AllocatePrefetchStyle, 1, \
aoqi@0 2919 "0 = no prefetch, " \
aoqi@0 2920 "1 = prefetch instructions for each allocation, " \
aoqi@0 2921 "2 = use TLAB watermark to gate allocation prefetch, " \
aoqi@0 2922 "3 = use BIS instruction on Sparc for allocation prefetch") \
aoqi@0 2923 \
aoqi@0 2924 product(intx, AllocatePrefetchDistance, -1, \
aoqi@0 2925 "Distance to prefetch ahead of allocation pointer") \
aoqi@0 2926 \
aoqi@0 2927 product(intx, AllocatePrefetchLines, 3, \
aoqi@0 2928 "Number of lines to prefetch ahead of array allocation pointer") \
aoqi@0 2929 \
aoqi@0 2930 product(intx, AllocateInstancePrefetchLines, 1, \
aoqi@0 2931 "Number of lines to prefetch ahead of instance allocation " \
aoqi@0 2932 "pointer") \
aoqi@0 2933 \
aoqi@0 2934 product(intx, AllocatePrefetchStepSize, 16, \
aoqi@0 2935 "Step size in bytes of sequential prefetch instructions") \
aoqi@0 2936 \
aoqi@0 2937 product(intx, AllocatePrefetchInstr, 0, \
aoqi@0 2938 "Prefetch instruction to prefetch ahead of allocation pointer") \
aoqi@0 2939 \
aoqi@0 2940 /* deoptimization */ \
aoqi@0 2941 develop(bool, TraceDeoptimization, false, \
aoqi@0 2942 "Trace deoptimization") \
aoqi@0 2943 \
aoqi@0 2944 develop(bool, DebugDeoptimization, false, \
aoqi@0 2945 "Tracing various information while debugging deoptimization") \
aoqi@0 2946 \
aoqi@0 2947 product(intx, SelfDestructTimer, 0, \
aoqi@0 2948 "Will cause VM to terminate after a given time (in minutes) " \
aoqi@0 2949 "(0 means off)") \
aoqi@0 2950 \
aoqi@0 2951 product(intx, MaxJavaStackTraceDepth, 1024, \
aoqi@0 2952 "The maximum number of lines in the stack trace for Java " \
aoqi@0 2953 "exceptions (0 means all)") \
aoqi@0 2954 \
aoqi@0 2955 NOT_EMBEDDED(diagnostic(intx, GuaranteedSafepointInterval, 1000, \
aoqi@0 2956 "Guarantee a safepoint (at least) every so many milliseconds " \
aoqi@0 2957 "(0 means none)")) \
aoqi@0 2958 \
aoqi@0 2959 EMBEDDED_ONLY(product(intx, GuaranteedSafepointInterval, 0, \
aoqi@0 2960 "Guarantee a safepoint (at least) every so many milliseconds " \
aoqi@0 2961 "(0 means none)")) \
aoqi@0 2962 \
aoqi@0 2963 product(intx, SafepointTimeoutDelay, 10000, \
aoqi@0 2964 "Delay in milliseconds for option SafepointTimeout") \
aoqi@0 2965 \
aoqi@0 2966 product(intx, NmethodSweepFraction, 16, \
aoqi@0 2967 "Number of invocations of sweeper to cover all nmethods") \
aoqi@0 2968 \
aoqi@0 2969 product(intx, NmethodSweepCheckInterval, 5, \
aoqi@0 2970 "Compilers wake up every n seconds to possibly sweep nmethods") \
aoqi@0 2971 \
aoqi@0 2972 product(intx, NmethodSweepActivity, 10, \
aoqi@0 2973 "Removes cold nmethods from code cache if > 0. Higher values " \
aoqi@0 2974 "result in more aggressive sweeping") \
aoqi@0 2975 \
aoqi@0 2976 notproduct(bool, LogSweeper, false, \
aoqi@0 2977 "Keep a ring buffer of sweeper activity") \
aoqi@0 2978 \
aoqi@0 2979 notproduct(intx, SweeperLogEntries, 1024, \
aoqi@0 2980 "Number of records in the ring buffer of sweeper activity") \
aoqi@0 2981 \
aoqi@0 2982 notproduct(intx, MemProfilingInterval, 500, \
aoqi@0 2983 "Time between each invocation of the MemProfiler") \
aoqi@0 2984 \
aoqi@0 2985 develop(intx, MallocCatchPtr, -1, \
aoqi@0 2986 "Hit breakpoint when mallocing/freeing this pointer") \
aoqi@0 2987 \
aoqi@0 2988 notproduct(intx, AssertRepeat, 1, \
aoqi@0 2989 "number of times to evaluate expression in assert " \
aoqi@0 2990 "(to estimate overhead); only works with -DUSE_REPEATED_ASSERTS") \
aoqi@0 2991 \
aoqi@0 2992 notproduct(ccstrlist, SuppressErrorAt, "", \
aoqi@0 2993 "List of assertions (file:line) to muzzle") \
aoqi@0 2994 \
aoqi@0 2995 notproduct(uintx, HandleAllocationLimit, 1024, \
aoqi@0 2996 "Threshold for HandleMark allocation when +TraceHandleAllocation "\
aoqi@0 2997 "is used") \
aoqi@0 2998 \
aoqi@0 2999 develop(uintx, TotalHandleAllocationLimit, 1024, \
aoqi@0 3000 "Threshold for total handle allocation when " \
aoqi@0 3001 "+TraceHandleAllocation is used") \
aoqi@0 3002 \
aoqi@0 3003 develop(intx, StackPrintLimit, 100, \
aoqi@0 3004 "number of stack frames to print in VM-level stack dump") \
aoqi@0 3005 \
aoqi@0 3006 notproduct(intx, MaxElementPrintSize, 256, \
aoqi@0 3007 "maximum number of elements to print") \
aoqi@0 3008 \
aoqi@0 3009 notproduct(intx, MaxSubklassPrintSize, 4, \
aoqi@0 3010 "maximum number of subklasses to print when printing klass") \
aoqi@0 3011 \
aoqi@0 3012 product(intx, MaxInlineLevel, 9, \
aoqi@0 3013 "maximum number of nested calls that are inlined") \
aoqi@0 3014 \
aoqi@0 3015 product(intx, MaxRecursiveInlineLevel, 1, \
aoqi@0 3016 "maximum number of nested recursive calls that are inlined") \
aoqi@0 3017 \
aoqi@0 3018 develop(intx, MaxForceInlineLevel, 100, \
aoqi@0 3019 "maximum number of nested calls that are forced for inlining " \
aoqi@0 3020 "(using CompilerOracle or marked w/ @ForceInline)") \
aoqi@0 3021 \
aoqi@0 3022 product_pd(intx, InlineSmallCode, \
aoqi@0 3023 "Only inline already compiled methods if their code size is " \
aoqi@0 3024 "less than this") \
aoqi@0 3025 \
aoqi@0 3026 product(intx, MaxInlineSize, 35, \
aoqi@0 3027 "The maximum bytecode size of a method to be inlined") \
aoqi@0 3028 \
aoqi@0 3029 product_pd(intx, FreqInlineSize, \
aoqi@0 3030 "The maximum bytecode size of a frequent method to be inlined") \
aoqi@0 3031 \
aoqi@0 3032 product(intx, MaxTrivialSize, 6, \
aoqi@0 3033 "The maximum bytecode size of a trivial method to be inlined") \
aoqi@0 3034 \
aoqi@0 3035 product(intx, MinInliningThreshold, 250, \
aoqi@0 3036 "The minimum invocation count a method needs to have to be " \
aoqi@0 3037 "inlined") \
aoqi@0 3038 \
aoqi@0 3039 develop(intx, MethodHistogramCutoff, 100, \
aoqi@0 3040 "The cutoff value for method invocation histogram (+CountCalls)") \
aoqi@0 3041 \
aoqi@0 3042 develop(intx, ProfilerNumberOfInterpretedMethods, 25, \
aoqi@0 3043 "Number of interpreted methods to show in profile") \
aoqi@0 3044 \
aoqi@0 3045 develop(intx, ProfilerNumberOfCompiledMethods, 25, \
aoqi@0 3046 "Number of compiled methods to show in profile") \
aoqi@0 3047 \
aoqi@0 3048 develop(intx, ProfilerNumberOfStubMethods, 25, \
aoqi@0 3049 "Number of stub methods to show in profile") \
aoqi@0 3050 \
aoqi@0 3051 develop(intx, ProfilerNumberOfRuntimeStubNodes, 25, \
aoqi@0 3052 "Number of runtime stub nodes to show in profile") \
aoqi@0 3053 \
aoqi@0 3054 product(intx, ProfileIntervalsTicks, 100, \
aoqi@0 3055 "Number of ticks between printing of interval profile " \
aoqi@0 3056 "(+ProfileIntervals)") \
aoqi@0 3057 \
aoqi@0 3058 notproduct(intx, ScavengeALotInterval, 1, \
aoqi@0 3059 "Interval between which scavenge will occur with +ScavengeALot") \
aoqi@0 3060 \
aoqi@0 3061 notproduct(intx, FullGCALotInterval, 1, \
aoqi@0 3062 "Interval between which full gc will occur with +FullGCALot") \
aoqi@0 3063 \
aoqi@0 3064 notproduct(intx, FullGCALotStart, 0, \
aoqi@0 3065 "For which invocation to start FullGCAlot") \
aoqi@0 3066 \
aoqi@0 3067 notproduct(intx, FullGCALotDummies, 32*K, \
aoqi@0 3068 "Dummy object allocated with +FullGCALot, forcing all objects " \
aoqi@0 3069 "to move") \
aoqi@0 3070 \
aoqi@0 3071 develop(intx, DontYieldALotInterval, 10, \
aoqi@0 3072 "Interval between which yields will be dropped (milliseconds)") \
aoqi@0 3073 \
aoqi@0 3074 develop(intx, MinSleepInterval, 1, \
aoqi@0 3075 "Minimum sleep() interval (milliseconds) when " \
aoqi@0 3076 "ConvertSleepToYield is off (used for Solaris)") \
aoqi@0 3077 \
aoqi@0 3078 develop(intx, ProfilerPCTickThreshold, 15, \
aoqi@0 3079 "Number of ticks in a PC buckets to be a hotspot") \
aoqi@0 3080 \
aoqi@0 3081 notproduct(intx, DeoptimizeALotInterval, 5, \
aoqi@0 3082 "Number of exits until DeoptimizeALot kicks in") \
aoqi@0 3083 \
aoqi@0 3084 notproduct(intx, ZombieALotInterval, 5, \
aoqi@0 3085 "Number of exits until ZombieALot kicks in") \
aoqi@0 3086 \
aoqi@0 3087 diagnostic(intx, MallocVerifyInterval, 0, \
aoqi@0 3088 "If non-zero, verify C heap after every N calls to " \
aoqi@0 3089 "malloc/realloc/free") \
aoqi@0 3090 \
aoqi@0 3091 diagnostic(intx, MallocVerifyStart, 0, \
aoqi@0 3092 "If non-zero, start verifying C heap after Nth call to " \
aoqi@0 3093 "malloc/realloc/free") \
aoqi@0 3094 \
aoqi@0 3095 diagnostic(uintx, MallocMaxTestWords, 0, \
aoqi@0 3096 "If non-zero, maximum number of words that malloc/realloc can " \
aoqi@0 3097 "allocate (for testing only)") \
aoqi@0 3098 \
aoqi@0 3099 product(intx, TypeProfileWidth, 2, \
aoqi@0 3100 "Number of receiver types to record in call/cast profile") \
aoqi@0 3101 \
aoqi@0 3102 develop(intx, BciProfileWidth, 2, \
aoqi@0 3103 "Number of return bci's to record in ret profile") \
aoqi@0 3104 \
aoqi@0 3105 product(intx, PerMethodRecompilationCutoff, 400, \
aoqi@0 3106 "After recompiling N times, stay in the interpreter (-1=>'Inf')") \
aoqi@0 3107 \
aoqi@0 3108 product(intx, PerBytecodeRecompilationCutoff, 200, \
aoqi@0 3109 "Per-BCI limit on repeated recompilation (-1=>'Inf')") \
aoqi@0 3110 \
aoqi@0 3111 product(intx, PerMethodTrapLimit, 100, \
aoqi@0 3112 "Limit on traps (of one kind) in a method (includes inlines)") \
aoqi@0 3113 \
aoqi@0 3114 experimental(intx, PerMethodSpecTrapLimit, 5000, \
aoqi@0 3115 "Limit on speculative traps (of one kind) in a method (includes inlines)") \
aoqi@0 3116 \
aoqi@0 3117 product(intx, PerBytecodeTrapLimit, 4, \
aoqi@0 3118 "Limit on traps (of one kind) at a particular BCI") \
aoqi@0 3119 \
aoqi@0 3120 experimental(intx, SpecTrapLimitExtraEntries, 3, \
aoqi@0 3121 "Extra method data trap entries for speculation") \
aoqi@0 3122 \
aoqi@0 3123 develop(intx, InlineFrequencyRatio, 20, \
aoqi@0 3124 "Ratio of call site execution to caller method invocation") \
aoqi@0 3125 \
aoqi@0 3126 develop_pd(intx, InlineFrequencyCount, \
aoqi@0 3127 "Count of call site execution necessary to trigger frequent " \
aoqi@0 3128 "inlining") \
aoqi@0 3129 \
aoqi@0 3130 develop(intx, InlineThrowCount, 50, \
aoqi@0 3131 "Force inlining of interpreted methods that throw this often") \
aoqi@0 3132 \
aoqi@0 3133 develop(intx, InlineThrowMaxSize, 200, \
aoqi@0 3134 "Force inlining of throwing methods smaller than this") \
aoqi@0 3135 \
aoqi@0 3136 develop(intx, ProfilerNodeSize, 1024, \
aoqi@0 3137 "Size in K to allocate for the Profile Nodes of each thread") \
aoqi@0 3138 \
aoqi@0 3139 product_pd(intx, PreInflateSpin, \
aoqi@0 3140 "Number of times to spin wait before inflation") \
aoqi@0 3141 \
aoqi@0 3142 /* gc parameters */ \
aoqi@1 3143 product(uintx, InitialHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(0) *M), \
aoqi@0 3144 "Initial heap size (in bytes); zero means use ergonomics") \
aoqi@0 3145 \
aoqi@1 3146 product(uintx, MaxHeapSize, ScaleForWordSize(MIPS64_ONLY(2500) NOT_MIPS64(96) *M), \
aoqi@0 3147 "Maximum heap size (in bytes)") \
aoqi@0 3148 \
aoqi@0 3149 product(uintx, OldSize, ScaleForWordSize(4*M), \
aoqi@0 3150 "Initial tenured generation size (in bytes)") \
aoqi@0 3151 \
aoqi@0 3152 product(uintx, NewSize, ScaleForWordSize(1*M), \
aoqi@0 3153 "Initial new generation size (in bytes)") \
aoqi@0 3154 \
aoqi@0 3155 product(uintx, MaxNewSize, max_uintx, \
aoqi@0 3156 "Maximum new generation size (in bytes), max_uintx means set " \
aoqi@0 3157 "ergonomically") \
aoqi@0 3158 \
aoqi@0 3159 product(uintx, PretenureSizeThreshold, 0, \
aoqi@0 3160 "Maximum size in bytes of objects allocated in DefNew " \
aoqi@0 3161 "generation; zero means no maximum") \
aoqi@0 3162 \
aoqi@0 3163 product(uintx, TLABSize, 0, \
aoqi@0 3164 "Starting TLAB size (in bytes); zero means set ergonomically") \
aoqi@0 3165 \
aoqi@0 3166 product(uintx, MinTLABSize, 2*K, \
aoqi@0 3167 "Minimum allowed TLAB size (in bytes)") \
aoqi@0 3168 \
aoqi@0 3169 product(uintx, TLABAllocationWeight, 35, \
aoqi@0 3170 "Allocation averaging weight") \
aoqi@0 3171 \
aoqi@0 3172 product(uintx, TLABWasteTargetPercent, 1, \
aoqi@0 3173 "Percentage of Eden that can be wasted") \
aoqi@0 3174 \
aoqi@0 3175 product(uintx, TLABRefillWasteFraction, 64, \
aoqi@0 3176 "Maximum TLAB waste at a refill (internal fragmentation)") \
aoqi@0 3177 \
aoqi@0 3178 product(uintx, TLABWasteIncrement, 4, \
aoqi@0 3179 "Increment allowed waste at slow allocation") \
aoqi@0 3180 \
aoqi@0 3181 product(uintx, SurvivorRatio, 8, \
aoqi@0 3182 "Ratio of eden/survivor space size") \
aoqi@0 3183 \
aoqi@0 3184 product(uintx, NewRatio, 2, \
aoqi@0 3185 "Ratio of old/new generation sizes") \
aoqi@0 3186 \
aoqi@0 3187 product_pd(uintx, NewSizeThreadIncrease, \
aoqi@0 3188 "Additional size added to desired new generation size per " \
aoqi@0 3189 "non-daemon thread (in bytes)") \
aoqi@0 3190 \
aoqi@0 3191 product_pd(uintx, MetaspaceSize, \
aoqi@0 3192 "Initial size of Metaspaces (in bytes)") \
aoqi@0 3193 \
aoqi@0 3194 product(uintx, MaxMetaspaceSize, max_uintx, \
aoqi@0 3195 "Maximum size of Metaspaces (in bytes)") \
aoqi@0 3196 \
aoqi@0 3197 product(uintx, CompressedClassSpaceSize, 1*G, \
aoqi@0 3198 "Maximum size of class area in Metaspace when compressed " \
aoqi@0 3199 "class pointers are used") \
aoqi@0 3200 \
aoqi@0 3201 manageable(uintx, MinHeapFreeRatio, 40, \
aoqi@0 3202 "The minimum percentage of heap free after GC to avoid expansion."\
aoqi@0 3203 " For most GCs this applies to the old generation. In G1 and" \
aoqi@0 3204 " ParallelGC it applies to the whole heap.") \
aoqi@0 3205 \
aoqi@0 3206 manageable(uintx, MaxHeapFreeRatio, 70, \
aoqi@0 3207 "The maximum percentage of heap free after GC to avoid shrinking."\
aoqi@0 3208 " For most GCs this applies to the old generation. In G1 and" \
aoqi@0 3209 " ParallelGC it applies to the whole heap.") \
aoqi@0 3210 \
aoqi@0 3211 product(intx, SoftRefLRUPolicyMSPerMB, 1000, \
aoqi@0 3212 "Number of milliseconds per MB of free space in the heap") \
aoqi@0 3213 \
aoqi@0 3214 product(uintx, MinHeapDeltaBytes, ScaleForWordSize(128*K), \
aoqi@0 3215 "The minimum change in heap space due to GC (in bytes)") \
aoqi@0 3216 \
aoqi@0 3217 product(uintx, MinMetaspaceExpansion, ScaleForWordSize(256*K), \
aoqi@0 3218 "The minimum expansion of Metaspace (in bytes)") \
aoqi@0 3219 \
aoqi@0 3220 product(uintx, MinMetaspaceFreeRatio, 40, \
aoqi@0 3221 "The minimum percentage of Metaspace free after GC to avoid " \
aoqi@0 3222 "expansion") \
aoqi@0 3223 \
aoqi@0 3224 product(uintx, MaxMetaspaceFreeRatio, 70, \
aoqi@0 3225 "The maximum percentage of Metaspace free after GC to avoid " \
aoqi@0 3226 "shrinking") \
aoqi@0 3227 \
aoqi@0 3228 product(uintx, MaxMetaspaceExpansion, ScaleForWordSize(4*M), \
aoqi@0 3229 "The maximum expansion of Metaspace without full GC (in bytes)") \
aoqi@0 3230 \
aoqi@0 3231 product(uintx, QueuedAllocationWarningCount, 0, \
aoqi@0 3232 "Number of times an allocation that queues behind a GC " \
aoqi@0 3233 "will retry before printing a warning") \
aoqi@0 3234 \
aoqi@0 3235 diagnostic(uintx, VerifyGCStartAt, 0, \
aoqi@0 3236 "GC invoke count where +VerifyBefore/AfterGC kicks in") \
aoqi@0 3237 \
aoqi@0 3238 diagnostic(intx, VerifyGCLevel, 0, \
aoqi@0 3239 "Generation level at which to start +VerifyBefore/AfterGC") \
aoqi@0 3240 \
aoqi@0 3241 product(uintx, MaxTenuringThreshold, 15, \
aoqi@0 3242 "Maximum value for tenuring threshold") \
aoqi@0 3243 \
aoqi@0 3244 product(uintx, InitialTenuringThreshold, 7, \
aoqi@0 3245 "Initial value for tenuring threshold") \
aoqi@0 3246 \
aoqi@0 3247 product(uintx, TargetSurvivorRatio, 50, \
aoqi@0 3248 "Desired percentage of survivor space used after scavenge") \
aoqi@0 3249 \
aoqi@0 3250 product(uintx, MarkSweepDeadRatio, 5, \
aoqi@0 3251 "Percentage (0-100) of the old gen allowed as dead wood. " \
aoqi@0 3252 "Serial mark sweep treats this as both the minimum and maximum " \
aoqi@0 3253 "value. " \
aoqi@0 3254 "CMS uses this value only if it falls back to mark sweep. " \
aoqi@0 3255 "Par compact uses a variable scale based on the density of the " \
aoqi@0 3256 "generation and treats this as the maximum value when the heap " \
aoqi@0 3257 "is either completely full or completely empty. Par compact " \
aoqi@0 3258 "also has a smaller default value; see arguments.cpp.") \
aoqi@0 3259 \
aoqi@0 3260 product(uintx, MarkSweepAlwaysCompactCount, 4, \
aoqi@0 3261 "How often should we fully compact the heap (ignoring the dead " \
aoqi@0 3262 "space parameters)") \
aoqi@0 3263 \
aoqi@0 3264 product(intx, PrintCMSStatistics, 0, \
aoqi@0 3265 "Statistics for CMS") \
aoqi@0 3266 \
aoqi@0 3267 product(bool, PrintCMSInitiationStatistics, false, \
aoqi@0 3268 "Statistics for initiating a CMS collection") \
aoqi@0 3269 \
aoqi@0 3270 product(intx, PrintFLSStatistics, 0, \
aoqi@0 3271 "Statistics for CMS' FreeListSpace") \
aoqi@0 3272 \
aoqi@0 3273 product(intx, PrintFLSCensus, 0, \
aoqi@0 3274 "Census for CMS' FreeListSpace") \
aoqi@0 3275 \
aoqi@0 3276 develop(uintx, GCExpandToAllocateDelayMillis, 0, \
aoqi@0 3277 "Delay between expansion and allocation (in milliseconds)") \
aoqi@0 3278 \
aoqi@0 3279 develop(uintx, GCWorkerDelayMillis, 0, \
aoqi@0 3280 "Delay in scheduling GC workers (in milliseconds)") \
aoqi@0 3281 \
aoqi@0 3282 product(intx, DeferThrSuspendLoopCount, 4000, \
aoqi@0 3283 "(Unstable) Number of times to iterate in safepoint loop " \
aoqi@0 3284 "before blocking VM threads ") \
aoqi@0 3285 \
aoqi@0 3286 product(intx, DeferPollingPageLoopCount, -1, \
aoqi@0 3287 "(Unsafe,Unstable) Number of iterations in safepoint loop " \
aoqi@0 3288 "before changing safepoint polling page to RO ") \
aoqi@0 3289 \
aoqi@0 3290 product(intx, SafepointSpinBeforeYield, 2000, "(Unstable)") \
aoqi@0 3291 \
aoqi@0 3292 product(bool, PSChunkLargeArrays, true, \
aoqi@0 3293 "Process large arrays in chunks") \
aoqi@0 3294 \
aoqi@0 3295 product(uintx, GCDrainStackTargetSize, 64, \
aoqi@0 3296 "Number of entries we will try to leave on the stack " \
aoqi@0 3297 "during parallel gc") \
aoqi@0 3298 \
aoqi@0 3299 /* stack parameters */ \
aoqi@0 3300 product_pd(intx, StackYellowPages, \
aoqi@0 3301 "Number of yellow zone (recoverable overflows) pages") \
aoqi@0 3302 \
aoqi@0 3303 product_pd(intx, StackRedPages, \
aoqi@0 3304 "Number of red zone (unrecoverable overflows) pages") \
aoqi@0 3305 \
aoqi@0 3306 product_pd(intx, StackShadowPages, \
aoqi@0 3307 "Number of shadow zone (for overflow checking) pages " \
aoqi@0 3308 "this should exceed the depth of the VM and native call stack") \
aoqi@0 3309 \
aoqi@0 3310 product_pd(intx, ThreadStackSize, \
aoqi@0 3311 "Thread Stack Size (in Kbytes)") \
aoqi@0 3312 \
aoqi@0 3313 product_pd(intx, VMThreadStackSize, \
aoqi@0 3314 "Non-Java Thread Stack Size (in Kbytes)") \
aoqi@0 3315 \
aoqi@0 3316 product_pd(intx, CompilerThreadStackSize, \
aoqi@0 3317 "Compiler Thread Stack Size (in Kbytes)") \
aoqi@0 3318 \
aoqi@0 3319 develop_pd(uintx, JVMInvokeMethodSlack, \
aoqi@0 3320 "Stack space (bytes) required for JVM_InvokeMethod to complete") \
aoqi@0 3321 \
aoqi@0 3322 product(uintx, ThreadSafetyMargin, 50*M, \
aoqi@0 3323 "Thread safety margin is used on fixed-stack LinuxThreads (on " \
aoqi@0 3324 "Linux/x86 only) to prevent heap-stack collision. Set to 0 to " \
aoqi@0 3325 "disable this feature") \
aoqi@0 3326 \
aoqi@0 3327 /* code cache parameters */ \
aoqi@0 3328 /* ppc64 has large code-entry alignment. */ \
aoqi@0 3329 develop(uintx, CodeCacheSegmentSize, 64 PPC64_ONLY(+64), \
aoqi@0 3330 "Code cache segment size (in bytes) - smallest unit of " \
aoqi@0 3331 "allocation") \
aoqi@0 3332 \
aoqi@0 3333 develop_pd(intx, CodeEntryAlignment, \
aoqi@0 3334 "Code entry alignment for generated code (in bytes)") \
aoqi@0 3335 \
aoqi@0 3336 product_pd(intx, OptoLoopAlignment, \
aoqi@0 3337 "Align inner loops to zero relative to this modulus") \
aoqi@0 3338 \
aoqi@0 3339 product_pd(uintx, InitialCodeCacheSize, \
aoqi@0 3340 "Initial code cache size (in bytes)") \
aoqi@0 3341 \
aoqi@0 3342 develop_pd(uintx, CodeCacheMinimumUseSpace, \
aoqi@0 3343 "Minimum code cache size (in bytes) required to start VM.") \
aoqi@0 3344 \
aoqi@0 3345 product_pd(uintx, ReservedCodeCacheSize, \
aoqi@0 3346 "Reserved code cache size (in bytes) - maximum code cache size") \
aoqi@0 3347 \
aoqi@0 3348 product(uintx, CodeCacheMinimumFreeSpace, 500*K, \
aoqi@0 3349 "When less than X space left, we stop compiling") \
aoqi@0 3350 \
aoqi@0 3351 product_pd(uintx, CodeCacheExpansionSize, \
aoqi@0 3352 "Code cache expansion size (in bytes)") \
aoqi@0 3353 \
aoqi@0 3354 develop_pd(uintx, CodeCacheMinBlockLength, \
aoqi@0 3355 "Minimum number of segments in a code cache block") \
aoqi@0 3356 \
aoqi@0 3357 notproduct(bool, ExitOnFullCodeCache, false, \
aoqi@0 3358 "Exit the VM if we fill the code cache") \
aoqi@0 3359 \
aoqi@0 3360 product(bool, UseCodeCacheFlushing, true, \
aoqi@0 3361 "Remove cold/old nmethods from the code cache") \
aoqi@0 3362 \
aoqi@0 3363 /* interpreter debugging */ \
aoqi@0 3364 develop(intx, BinarySwitchThreshold, 5, \
aoqi@0 3365 "Minimal number of lookupswitch entries for rewriting to binary " \
aoqi@0 3366 "switch") \
aoqi@0 3367 \
aoqi@0 3368 develop(intx, StopInterpreterAt, 0, \
aoqi@0 3369 "Stop interpreter execution at specified bytecode number") \
aoqi@0 3370 \
aoqi@0 3371 develop(intx, TraceBytecodesAt, 0, \
aoqi@0 3372 "Trace bytecodes starting with specified bytecode number") \
aoqi@0 3373 \
aoqi@0 3374 /* compiler interface */ \
aoqi@0 3375 develop(intx, CIStart, 0, \
aoqi@0 3376 "The id of the first compilation to permit") \
aoqi@0 3377 \
aoqi@0 3378 develop(intx, CIStop, max_jint, \
aoqi@0 3379 "The id of the last compilation to permit") \
aoqi@0 3380 \
aoqi@0 3381 develop(intx, CIStartOSR, 0, \
aoqi@0 3382 "The id of the first osr compilation to permit " \
aoqi@0 3383 "(CICountOSR must be on)") \
aoqi@0 3384 \
aoqi@0 3385 develop(intx, CIStopOSR, max_jint, \
aoqi@0 3386 "The id of the last osr compilation to permit " \
aoqi@0 3387 "(CICountOSR must be on)") \
aoqi@0 3388 \
aoqi@0 3389 develop(intx, CIBreakAtOSR, -1, \
aoqi@0 3390 "The id of osr compilation to break at") \
aoqi@0 3391 \
aoqi@0 3392 develop(intx, CIBreakAt, -1, \
aoqi@0 3393 "The id of compilation to break at") \
aoqi@0 3394 \
aoqi@0 3395 product(ccstrlist, CompileOnly, "", \
aoqi@0 3396 "List of methods (pkg/class.name) to restrict compilation to") \
aoqi@0 3397 \
aoqi@0 3398 product(ccstr, CompileCommandFile, NULL, \
aoqi@0 3399 "Read compiler commands from this file [.hotspot_compiler]") \
aoqi@0 3400 \
aoqi@0 3401 product(ccstrlist, CompileCommand, "", \
aoqi@0 3402 "Prepend to .hotspot_compiler; e.g. log,java/lang/String.<init>") \
aoqi@0 3403 \
aoqi@0 3404 develop(bool, ReplayCompiles, false, \
aoqi@0 3405 "Enable replay of compilations from ReplayDataFile") \
aoqi@0 3406 \
aoqi@0 3407 product(ccstr, ReplayDataFile, NULL, \
aoqi@0 3408 "File containing compilation replay information" \
aoqi@0 3409 "[default: ./replay_pid%p.log] (%p replaced with pid)") \
aoqi@0 3410 \
aoqi@0 3411 product(ccstr, InlineDataFile, NULL, \
aoqi@0 3412 "File containing inlining replay information" \
aoqi@0 3413 "[default: ./inline_pid%p.log] (%p replaced with pid)") \
aoqi@0 3414 \
aoqi@0 3415 develop(intx, ReplaySuppressInitializers, 2, \
aoqi@0 3416 "Control handling of class initialization during replay: " \
aoqi@0 3417 "0 - don't do anything special; " \
aoqi@0 3418 "1 - treat all class initializers as empty; " \
aoqi@0 3419 "2 - treat class initializers for application classes as empty; " \
aoqi@0 3420 "3 - allow all class initializers to run during bootstrap but " \
aoqi@0 3421 " pretend they are empty after starting replay") \
aoqi@0 3422 \
aoqi@0 3423 develop(bool, ReplayIgnoreInitErrors, false, \
aoqi@0 3424 "Ignore exceptions thrown during initialization for replay") \
aoqi@0 3425 \
aoqi@0 3426 product(bool, DumpReplayDataOnError, true, \
aoqi@0 3427 "Record replay data for crashing compiler threads") \
aoqi@0 3428 \
aoqi@0 3429 product(bool, CICompilerCountPerCPU, false, \
aoqi@0 3430 "1 compiler thread for log(N CPUs)") \
aoqi@0 3431 \
aoqi@0 3432 develop(intx, CIFireOOMAt, -1, \
aoqi@0 3433 "Fire OutOfMemoryErrors throughout CI for testing the compiler " \
aoqi@0 3434 "(non-negative value throws OOM after this many CI accesses " \
aoqi@0 3435 "in each compile)") \
aoqi@0 3436 notproduct(intx, CICrashAt, -1, \
aoqi@0 3437 "id of compilation to trigger assert in compiler thread for " \
aoqi@0 3438 "the purpose of testing, e.g. generation of replay data") \
aoqi@0 3439 notproduct(bool, CIObjectFactoryVerify, false, \
aoqi@0 3440 "enable potentially expensive verification in ciObjectFactory") \
aoqi@0 3441 \
aoqi@0 3442 /* Priorities */ \
aoqi@0 3443 product_pd(bool, UseThreadPriorities, "Use native thread priorities") \
aoqi@0 3444 \
aoqi@0 3445 product(intx, ThreadPriorityPolicy, 0, \
aoqi@0 3446 "0 : Normal. "\
aoqi@0 3447 " VM chooses priorities that are appropriate for normal "\
aoqi@0 3448 " applications. On Solaris NORM_PRIORITY and above are mapped "\
aoqi@0 3449 " to normal native priority. Java priorities below " \
aoqi@0 3450 " NORM_PRIORITY map to lower native priority values. On "\
aoqi@0 3451 " Windows applications are allowed to use higher native "\
aoqi@0 3452 " priorities. However, with ThreadPriorityPolicy=0, VM will "\
aoqi@0 3453 " not use the highest possible native priority, "\
aoqi@0 3454 " THREAD_PRIORITY_TIME_CRITICAL, as it may interfere with "\
aoqi@0 3455 " system threads. On Linux thread priorities are ignored "\
aoqi@0 3456 " because the OS does not support static priority in "\
aoqi@0 3457 " SCHED_OTHER scheduling class which is the only choice for "\
aoqi@0 3458 " non-root, non-realtime applications. "\
aoqi@0 3459 "1 : Aggressive. "\
aoqi@0 3460 " Java thread priorities map over to the entire range of "\
aoqi@0 3461 " native thread priorities. Higher Java thread priorities map "\
aoqi@0 3462 " to higher native thread priorities. This policy should be "\
aoqi@0 3463 " used with care, as sometimes it can cause performance "\
aoqi@0 3464 " degradation in the application and/or the entire system. On "\
aoqi@0 3465 " Linux this policy requires root privilege.") \
aoqi@0 3466 \
aoqi@0 3467 product(bool, ThreadPriorityVerbose, false, \
aoqi@0 3468 "Print priority changes") \
aoqi@0 3469 \
aoqi@0 3470 product(intx, DefaultThreadPriority, -1, \
aoqi@0 3471 "The native priority at which threads run if not elsewhere " \
aoqi@0 3472 "specified (-1 means no change)") \
aoqi@0 3473 \
aoqi@0 3474 product(intx, CompilerThreadPriority, -1, \
aoqi@0 3475 "The native priority at which compiler threads should run " \
aoqi@0 3476 "(-1 means no change)") \
aoqi@0 3477 \
aoqi@0 3478 product(intx, VMThreadPriority, -1, \
aoqi@0 3479 "The native priority at which the VM thread should run " \
aoqi@0 3480 "(-1 means no change)") \
aoqi@0 3481 \
aoqi@0 3482 product(bool, CompilerThreadHintNoPreempt, true, \
aoqi@0 3483 "(Solaris only) Give compiler threads an extra quanta") \
aoqi@0 3484 \
aoqi@0 3485 product(bool, VMThreadHintNoPreempt, false, \
aoqi@0 3486 "(Solaris only) Give VM thread an extra quanta") \
aoqi@0 3487 \
aoqi@0 3488 product(intx, JavaPriority1_To_OSPriority, -1, \
aoqi@0 3489 "Map Java priorities to OS priorities") \
aoqi@0 3490 \
aoqi@0 3491 product(intx, JavaPriority2_To_OSPriority, -1, \
aoqi@0 3492 "Map Java priorities to OS priorities") \
aoqi@0 3493 \
aoqi@0 3494 product(intx, JavaPriority3_To_OSPriority, -1, \
aoqi@0 3495 "Map Java priorities to OS priorities") \
aoqi@0 3496 \
aoqi@0 3497 product(intx, JavaPriority4_To_OSPriority, -1, \
aoqi@0 3498 "Map Java priorities to OS priorities") \
aoqi@0 3499 \
aoqi@0 3500 product(intx, JavaPriority5_To_OSPriority, -1, \
aoqi@0 3501 "Map Java priorities to OS priorities") \
aoqi@0 3502 \
aoqi@0 3503 product(intx, JavaPriority6_To_OSPriority, -1, \
aoqi@0 3504 "Map Java priorities to OS priorities") \
aoqi@0 3505 \
aoqi@0 3506 product(intx, JavaPriority7_To_OSPriority, -1, \
aoqi@0 3507 "Map Java priorities to OS priorities") \
aoqi@0 3508 \
aoqi@0 3509 product(intx, JavaPriority8_To_OSPriority, -1, \
aoqi@0 3510 "Map Java priorities to OS priorities") \
aoqi@0 3511 \
aoqi@0 3512 product(intx, JavaPriority9_To_OSPriority, -1, \
aoqi@0 3513 "Map Java priorities to OS priorities") \
aoqi@0 3514 \
aoqi@0 3515 product(intx, JavaPriority10_To_OSPriority,-1, \
aoqi@0 3516 "Map Java priorities to OS priorities") \
aoqi@0 3517 \
aoqi@0 3518 experimental(bool, UseCriticalJavaThreadPriority, false, \
aoqi@0 3519 "Java thread priority 10 maps to critical scheduling priority") \
aoqi@0 3520 \
aoqi@0 3521 experimental(bool, UseCriticalCompilerThreadPriority, false, \
aoqi@0 3522 "Compiler thread(s) run at critical scheduling priority") \
aoqi@0 3523 \
aoqi@0 3524 experimental(bool, UseCriticalCMSThreadPriority, false, \
aoqi@0 3525 "ConcurrentMarkSweep thread runs at critical scheduling priority")\
aoqi@0 3526 \
aoqi@0 3527 /* compiler debugging */ \
aoqi@0 3528 notproduct(intx, CompileTheWorldStartAt, 1, \
aoqi@0 3529 "First class to consider when using +CompileTheWorld") \
aoqi@0 3530 \
aoqi@0 3531 notproduct(intx, CompileTheWorldStopAt, max_jint, \
aoqi@0 3532 "Last class to consider when using +CompileTheWorld") \
aoqi@0 3533 \
aoqi@0 3534 develop(intx, NewCodeParameter, 0, \
aoqi@0 3535 "Testing Only: Create a dedicated integer parameter before " \
aoqi@0 3536 "putback") \
aoqi@0 3537 \
aoqi@0 3538 /* new oopmap storage allocation */ \
aoqi@0 3539 develop(intx, MinOopMapAllocation, 8, \
aoqi@0 3540 "Minimum number of OopMap entries in an OopMapSet") \
aoqi@0 3541 \
aoqi@0 3542 /* Background Compilation */ \
aoqi@0 3543 develop(intx, LongCompileThreshold, 50, \
aoqi@0 3544 "Used with +TraceLongCompiles") \
aoqi@0 3545 \
aoqi@0 3546 product(intx, StarvationMonitorInterval, 200, \
aoqi@0 3547 "Pause between each check (in milliseconds)") \
aoqi@0 3548 \
aoqi@0 3549 /* recompilation */ \
aoqi@0 3550 product_pd(intx, CompileThreshold, \
aoqi@0 3551 "number of interpreted method invocations before (re-)compiling") \
aoqi@0 3552 \
aoqi@0 3553 product_pd(intx, BackEdgeThreshold, \
aoqi@0 3554 "Interpreter Back edge threshold at which an OSR compilation is " \
aoqi@0 3555 "invoked") \
aoqi@0 3556 \
aoqi@0 3557 product(intx, Tier0InvokeNotifyFreqLog, 7, \
aoqi@0 3558 "Interpreter (tier 0) invocation notification frequency") \
aoqi@0 3559 \
aoqi@0 3560 product(intx, Tier2InvokeNotifyFreqLog, 11, \
aoqi@0 3561 "C1 without MDO (tier 2) invocation notification frequency") \
aoqi@0 3562 \
aoqi@0 3563 product(intx, Tier3InvokeNotifyFreqLog, 10, \
aoqi@0 3564 "C1 with MDO profiling (tier 3) invocation notification " \
aoqi@0 3565 "frequency") \
aoqi@0 3566 \
aoqi@0 3567 product(intx, Tier23InlineeNotifyFreqLog, 20, \
aoqi@0 3568 "Inlinee invocation (tiers 2 and 3) notification frequency") \
aoqi@0 3569 \
aoqi@0 3570 product(intx, Tier0BackedgeNotifyFreqLog, 10, \
aoqi@0 3571 "Interpreter (tier 0) invocation notification frequency") \
aoqi@0 3572 \
aoqi@0 3573 product(intx, Tier2BackedgeNotifyFreqLog, 14, \
aoqi@0 3574 "C1 without MDO (tier 2) invocation notification frequency") \
aoqi@0 3575 \
aoqi@0 3576 product(intx, Tier3BackedgeNotifyFreqLog, 13, \
aoqi@0 3577 "C1 with MDO profiling (tier 3) invocation notification " \
aoqi@0 3578 "frequency") \
aoqi@0 3579 \
aoqi@0 3580 product(intx, Tier2CompileThreshold, 0, \
aoqi@0 3581 "threshold at which tier 2 compilation is invoked") \
aoqi@0 3582 \
aoqi@0 3583 product(intx, Tier2BackEdgeThreshold, 0, \
aoqi@0 3584 "Back edge threshold at which tier 2 compilation is invoked") \
aoqi@0 3585 \
aoqi@0 3586 product(intx, Tier3InvocationThreshold, 200, \
aoqi@0 3587 "Compile if number of method invocations crosses this " \
aoqi@0 3588 "threshold") \
aoqi@0 3589 \
aoqi@0 3590 product(intx, Tier3MinInvocationThreshold, 100, \
aoqi@0 3591 "Minimum invocation to compile at tier 3") \
aoqi@0 3592 \
aoqi@0 3593 product(intx, Tier3CompileThreshold, 2000, \
aoqi@0 3594 "Threshold at which tier 3 compilation is invoked (invocation " \
aoqi@0 3595 "minimum must be satisfied") \
aoqi@0 3596 \
aoqi@0 3597 product(intx, Tier3BackEdgeThreshold, 60000, \
aoqi@0 3598 "Back edge threshold at which tier 3 OSR compilation is invoked") \
aoqi@0 3599 \
aoqi@0 3600 product(intx, Tier4InvocationThreshold, 5000, \
aoqi@0 3601 "Compile if number of method invocations crosses this " \
aoqi@0 3602 "threshold") \
aoqi@0 3603 \
aoqi@0 3604 product(intx, Tier4MinInvocationThreshold, 600, \
aoqi@0 3605 "Minimum invocation to compile at tier 4") \
aoqi@0 3606 \
aoqi@0 3607 product(intx, Tier4CompileThreshold, 15000, \
aoqi@0 3608 "Threshold at which tier 4 compilation is invoked (invocation " \
aoqi@0 3609 "minimum must be satisfied") \
aoqi@0 3610 \
aoqi@0 3611 product(intx, Tier4BackEdgeThreshold, 40000, \
aoqi@0 3612 "Back edge threshold at which tier 4 OSR compilation is invoked") \
aoqi@0 3613 \
aoqi@0 3614 product(intx, Tier3DelayOn, 5, \
aoqi@0 3615 "If C2 queue size grows over this amount per compiler thread " \
aoqi@0 3616 "stop compiling at tier 3 and start compiling at tier 2") \
aoqi@0 3617 \
aoqi@0 3618 product(intx, Tier3DelayOff, 2, \
aoqi@0 3619 "If C2 queue size is less than this amount per compiler thread " \
aoqi@0 3620 "allow methods compiled at tier 2 transition to tier 3") \
aoqi@0 3621 \
aoqi@0 3622 product(intx, Tier3LoadFeedback, 5, \
aoqi@0 3623 "Tier 3 thresholds will increase twofold when C1 queue size " \
aoqi@0 3624 "reaches this amount per compiler thread") \
aoqi@0 3625 \
aoqi@0 3626 product(intx, Tier4LoadFeedback, 3, \
aoqi@0 3627 "Tier 4 thresholds will increase twofold when C2 queue size " \
aoqi@0 3628 "reaches this amount per compiler thread") \
aoqi@0 3629 \
aoqi@0 3630 product(intx, TieredCompileTaskTimeout, 50, \
aoqi@0 3631 "Kill compile task if method was not used within " \
aoqi@0 3632 "given timeout in milliseconds") \
aoqi@0 3633 \
aoqi@0 3634 product(intx, TieredStopAtLevel, 4, \
aoqi@0 3635 "Stop at given compilation level") \
aoqi@0 3636 \
aoqi@0 3637 product(intx, Tier0ProfilingStartPercentage, 200, \
aoqi@0 3638 "Start profiling in interpreter if the counters exceed tier 3 " \
aoqi@0 3639 "thresholds by the specified percentage") \
aoqi@0 3640 \
aoqi@0 3641 product(uintx, IncreaseFirstTierCompileThresholdAt, 50, \
aoqi@0 3642 "Increase the compile threshold for C1 compilation if the code " \
aoqi@0 3643 "cache is filled by the specified percentage") \
aoqi@0 3644 \
aoqi@0 3645 product(intx, TieredRateUpdateMinTime, 1, \
aoqi@0 3646 "Minimum rate sampling interval (in milliseconds)") \
aoqi@0 3647 \
aoqi@0 3648 product(intx, TieredRateUpdateMaxTime, 25, \
aoqi@0 3649 "Maximum rate sampling interval (in milliseconds)") \
aoqi@0 3650 \
aoqi@0 3651 product_pd(bool, TieredCompilation, \
aoqi@0 3652 "Enable tiered compilation") \
aoqi@0 3653 \
aoqi@0 3654 product(bool, PrintTieredEvents, false, \
aoqi@0 3655 "Print tiered events notifications") \
aoqi@0 3656 \
aoqi@0 3657 product_pd(intx, OnStackReplacePercentage, \
aoqi@0 3658 "NON_TIERED number of method invocations/branches (expressed as " \
aoqi@0 3659 "% of CompileThreshold) before (re-)compiling OSR code") \
aoqi@0 3660 \
aoqi@0 3661 product(intx, InterpreterProfilePercentage, 33, \
aoqi@0 3662 "NON_TIERED number of method invocations/branches (expressed as " \
aoqi@0 3663 "% of CompileThreshold) before profiling in the interpreter") \
aoqi@0 3664 \
aoqi@0 3665 develop(intx, MaxRecompilationSearchLength, 10, \
aoqi@0 3666 "The maximum number of frames to inspect when searching for " \
aoqi@0 3667 "recompilee") \
aoqi@0 3668 \
aoqi@0 3669 develop(intx, MaxInterpretedSearchLength, 3, \
aoqi@0 3670 "The maximum number of interpreted frames to skip when searching "\
aoqi@0 3671 "for recompilee") \
aoqi@0 3672 \
aoqi@0 3673 develop(intx, DesiredMethodLimit, 8000, \
aoqi@0 3674 "The desired maximum method size (in bytecodes) after inlining") \
aoqi@0 3675 \
aoqi@0 3676 develop(intx, HugeMethodLimit, 8000, \
aoqi@0 3677 "Don't compile methods larger than this if " \
aoqi@0 3678 "+DontCompileHugeMethods") \
aoqi@0 3679 \
aoqi@0 3680 /* New JDK 1.4 reflection implementation */ \
aoqi@0 3681 \
aoqi@0 3682 develop(bool, UseNewReflection, true, \
aoqi@0 3683 "Temporary flag for transition to reflection based on dynamic " \
aoqi@0 3684 "bytecode generation in 1.4; can no longer be turned off in 1.4 " \
aoqi@0 3685 "JDK, and is unneeded in 1.3 JDK, but marks most places VM " \
aoqi@0 3686 "changes were needed") \
aoqi@0 3687 \
aoqi@0 3688 develop(bool, VerifyReflectionBytecodes, false, \
aoqi@0 3689 "Force verification of 1.4 reflection bytecodes. Does not work " \
aoqi@0 3690 "in situations like that described in 4486457 or for " \
aoqi@0 3691 "constructors generated for serialization, so can not be enabled "\
aoqi@0 3692 "in product.") \
aoqi@0 3693 \
aoqi@0 3694 product(bool, ReflectionWrapResolutionErrors, true, \
aoqi@0 3695 "Temporary flag for transition to AbstractMethodError wrapped " \
aoqi@0 3696 "in InvocationTargetException. See 6531596") \
aoqi@0 3697 \
aoqi@0 3698 develop(intx, FastSuperclassLimit, 8, \
aoqi@0 3699 "Depth of hardwired instanceof accelerator array") \
aoqi@0 3700 \
aoqi@0 3701 /* Properties for Java libraries */ \
aoqi@0 3702 \
aoqi@0 3703 product(uintx, MaxDirectMemorySize, 0, \
aoqi@0 3704 "Maximum total size of NIO direct-buffer allocations") \
aoqi@0 3705 \
aoqi@0 3706 /* temporary developer defined flags */ \
aoqi@0 3707 \
aoqi@0 3708 diagnostic(bool, UseNewCode, false, \
aoqi@0 3709 "Testing Only: Use the new version while testing") \
aoqi@0 3710 \
aoqi@0 3711 diagnostic(bool, UseNewCode2, false, \
aoqi@0 3712 "Testing Only: Use the new version while testing") \
aoqi@0 3713 \
aoqi@0 3714 diagnostic(bool, UseNewCode3, false, \
aoqi@0 3715 "Testing Only: Use the new version while testing") \
aoqi@0 3716 \
aoqi@0 3717 /* flags for performance data collection */ \
aoqi@0 3718 \
aoqi@0 3719 product(bool, UsePerfData, falseInEmbedded, \
aoqi@0 3720 "Flag to disable jvmstat instrumentation for performance testing "\
aoqi@0 3721 "and problem isolation purposes") \
aoqi@0 3722 \
aoqi@0 3723 product(bool, PerfDataSaveToFile, false, \
aoqi@0 3724 "Save PerfData memory to hsperfdata_<pid> file on exit") \
aoqi@0 3725 \
aoqi@0 3726 product(ccstr, PerfDataSaveFile, NULL, \
aoqi@0 3727 "Save PerfData memory to the specified absolute pathname. " \
aoqi@0 3728 "The string %p in the file name (if present) " \
aoqi@0 3729 "will be replaced by pid") \
aoqi@0 3730 \
aoqi@0 3731 product(intx, PerfDataSamplingInterval, 50, \
aoqi@0 3732 "Data sampling interval (in milliseconds)") \
aoqi@0 3733 \
aoqi@0 3734 develop(bool, PerfTraceDataCreation, false, \
aoqi@0 3735 "Trace creation of Performance Data Entries") \
aoqi@0 3736 \
aoqi@0 3737 develop(bool, PerfTraceMemOps, false, \
aoqi@0 3738 "Trace PerfMemory create/attach/detach calls") \
aoqi@0 3739 \
aoqi@0 3740 product(bool, PerfDisableSharedMem, false, \
aoqi@0 3741 "Store performance data in standard memory") \
aoqi@0 3742 \
aoqi@0 3743 product(intx, PerfDataMemorySize, 32*K, \
aoqi@0 3744 "Size of performance data memory region. Will be rounded " \
aoqi@0 3745 "up to a multiple of the native os page size.") \
aoqi@0 3746 \
aoqi@0 3747 product(intx, PerfMaxStringConstLength, 1024, \
aoqi@0 3748 "Maximum PerfStringConstant string length before truncation") \
aoqi@0 3749 \
aoqi@0 3750 product(bool, PerfAllowAtExitRegistration, false, \
aoqi@0 3751 "Allow registration of atexit() methods") \
aoqi@0 3752 \
aoqi@0 3753 product(bool, PerfBypassFileSystemCheck, false, \
aoqi@0 3754 "Bypass Win32 file system criteria checks (Windows Only)") \
aoqi@0 3755 \
aoqi@0 3756 product(intx, UnguardOnExecutionViolation, 0, \
aoqi@0 3757 "Unguard page and retry on no-execute fault (Win32 only) " \
aoqi@0 3758 "0=off, 1=conservative, 2=aggressive") \
aoqi@0 3759 \
aoqi@0 3760 /* Serviceability Support */ \
aoqi@0 3761 \
aoqi@0 3762 product(bool, ManagementServer, false, \
aoqi@0 3763 "Create JMX Management Server") \
aoqi@0 3764 \
aoqi@0 3765 product(bool, DisableAttachMechanism, false, \
aoqi@0 3766 "Disable mechanism that allows tools to attach to this VM") \
aoqi@0 3767 \
aoqi@0 3768 product(bool, StartAttachListener, false, \
aoqi@0 3769 "Always start Attach Listener at VM startup") \
aoqi@0 3770 \
aoqi@0 3771 manageable(bool, PrintConcurrentLocks, false, \
aoqi@0 3772 "Print java.util.concurrent locks in thread dump") \
aoqi@0 3773 \
aoqi@0 3774 product(bool, TransmitErrorReport, false, \
aoqi@0 3775 "Enable error report transmission on erroneous termination") \
aoqi@0 3776 \
aoqi@0 3777 product(ccstr, ErrorReportServer, NULL, \
aoqi@0 3778 "Override built-in error report server address") \
aoqi@0 3779 \
aoqi@0 3780 /* Shared spaces */ \
aoqi@0 3781 \
aoqi@0 3782 product(bool, UseSharedSpaces, true, \
aoqi@0 3783 "Use shared spaces for metadata") \
aoqi@0 3784 \
aoqi@0 3785 product(bool, VerifySharedSpaces, false, \
aoqi@0 3786 "Verify shared spaces (false for default archive, true for " \
aoqi@0 3787 "archive specified by -XX:SharedArchiveFile)") \
aoqi@0 3788 \
aoqi@0 3789 product(bool, RequireSharedSpaces, false, \
aoqi@0 3790 "Require shared spaces for metadata") \
aoqi@0 3791 \
aoqi@0 3792 product(bool, DumpSharedSpaces, false, \
aoqi@0 3793 "Special mode: JVM reads a class list, loads classes, builds " \
aoqi@0 3794 "shared spaces, and dumps the shared spaces to a file to be " \
aoqi@0 3795 "used in future JVM runs") \
aoqi@0 3796 \
aoqi@0 3797 product(bool, PrintSharedSpaces, false, \
aoqi@0 3798 "Print usage of shared spaces") \
aoqi@0 3799 \
aoqi@0 3800 product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \
aoqi@0 3801 "Size of read-write space for metadata (in bytes)") \
aoqi@0 3802 \
aoqi@0 3803 product(uintx, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \
aoqi@0 3804 "Size of read-only space for metadata (in bytes)") \
aoqi@0 3805 \
aoqi@0 3806 product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \
aoqi@0 3807 "Size of the shared miscellaneous data area (in bytes)") \
aoqi@0 3808 \
aoqi@0 3809 product(uintx, SharedMiscCodeSize, 120*K, \
aoqi@0 3810 "Size of the shared miscellaneous code area (in bytes)") \
aoqi@0 3811 \
aoqi@0 3812 product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \
aoqi@0 3813 NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
aoqi@0 3814 "Address to allocate shared memory region for class data") \
aoqi@0 3815 \
aoqi@0 3816 diagnostic(bool, EnableInvokeDynamic, true, \
aoqi@0 3817 "support JSR 292 (method handles, invokedynamic, " \
aoqi@0 3818 "anonymous classes") \
aoqi@0 3819 \
aoqi@0 3820 diagnostic(bool, PrintMethodHandleStubs, false, \
aoqi@0 3821 "Print generated stub code for method handles") \
aoqi@0 3822 \
aoqi@0 3823 develop(bool, TraceMethodHandles, false, \
aoqi@0 3824 "trace internal method handle operations") \
aoqi@0 3825 \
aoqi@0 3826 diagnostic(bool, VerifyMethodHandles, trueInDebug, \
aoqi@0 3827 "perform extra checks when constructing method handles") \
aoqi@0 3828 \
aoqi@0 3829 diagnostic(bool, ShowHiddenFrames, false, \
aoqi@0 3830 "show method handle implementation frames (usually hidden)") \
aoqi@0 3831 \
aoqi@0 3832 experimental(bool, TrustFinalNonStaticFields, false, \
aoqi@0 3833 "trust final non-static declarations for constant folding") \
aoqi@0 3834 \
aoqi@0 3835 diagnostic(bool, FoldStableValues, true, \
aoqi@0 3836 "Optimize loads from stable fields (marked w/ @Stable)") \
aoqi@0 3837 \
aoqi@0 3838 develop(bool, TraceInvokeDynamic, false, \
aoqi@0 3839 "trace internal invoke dynamic operations") \
aoqi@0 3840 \
aoqi@0 3841 diagnostic(bool, PauseAtStartup, false, \
aoqi@0 3842 "Causes the VM to pause at startup time and wait for the pause " \
aoqi@0 3843 "file to be removed (default: ./vm.paused.<pid>)") \
aoqi@0 3844 \
aoqi@0 3845 diagnostic(ccstr, PauseAtStartupFile, NULL, \
aoqi@0 3846 "The file to create and for whose removal to await when pausing " \
aoqi@0 3847 "at startup. (default: ./vm.paused.<pid>)") \
aoqi@0 3848 \
aoqi@0 3849 diagnostic(bool, PauseAtExit, false, \
aoqi@0 3850 "Pause and wait for keypress on exit if a debugger is attached") \
aoqi@0 3851 \
aoqi@0 3852 product(bool, ExtendedDTraceProbes, false, \
aoqi@0 3853 "Enable performance-impacting dtrace probes") \
aoqi@0 3854 \
aoqi@0 3855 product(bool, DTraceMethodProbes, false, \
aoqi@0 3856 "Enable dtrace probes for method-entry and method-exit") \
aoqi@0 3857 \
aoqi@0 3858 product(bool, DTraceAllocProbes, false, \
aoqi@0 3859 "Enable dtrace probes for object allocation") \
aoqi@0 3860 \
aoqi@0 3861 product(bool, DTraceMonitorProbes, false, \
aoqi@0 3862 "Enable dtrace probes for monitor events") \
aoqi@0 3863 \
aoqi@0 3864 product(bool, RelaxAccessControlCheck, false, \
aoqi@0 3865 "Relax the access control checks in the verifier") \
aoqi@0 3866 \
aoqi@0 3867 diagnostic(bool, PrintDTraceDOF, false, \
aoqi@0 3868 "Print the DTrace DOF passed to the system for JSDT probes") \
aoqi@0 3869 \
aoqi@0 3870 product(uintx, StringTableSize, defaultStringTableSize, \
aoqi@0 3871 "Number of buckets in the interned String table") \
aoqi@0 3872 \
aoqi@0 3873 experimental(uintx, SymbolTableSize, defaultSymbolTableSize, \
aoqi@0 3874 "Number of buckets in the JVM internal Symbol table") \
aoqi@0 3875 \
aoqi@0 3876 product(bool, UseStringDeduplication, false, \
aoqi@0 3877 "Use string deduplication") \
aoqi@0 3878 \
aoqi@0 3879 product(bool, PrintStringDeduplicationStatistics, false, \
aoqi@0 3880 "Print string deduplication statistics") \
aoqi@0 3881 \
aoqi@0 3882 product(uintx, StringDeduplicationAgeThreshold, 3, \
aoqi@0 3883 "A string must reach this age (or be promoted to an old region) " \
aoqi@0 3884 "to be considered for deduplication") \
aoqi@0 3885 \
aoqi@0 3886 diagnostic(bool, StringDeduplicationResizeALot, false, \
aoqi@0 3887 "Force table resize every time the table is scanned") \
aoqi@0 3888 \
aoqi@0 3889 diagnostic(bool, StringDeduplicationRehashALot, false, \
aoqi@0 3890 "Force table rehash every time the table is scanned") \
aoqi@0 3891 \
aoqi@0 3892 develop(bool, TraceDefaultMethods, false, \
aoqi@0 3893 "Trace the default method processing steps") \
aoqi@0 3894 \
aoqi@0 3895 develop(bool, VerifyGenericSignatures, false, \
aoqi@0 3896 "Abort VM on erroneous or inconsistent generic signatures") \
aoqi@0 3897 \
aoqi@0 3898 product(bool, UseVMInterruptibleIO, false, \
aoqi@0 3899 "(Unstable, Solaris-specific) Thread interrupt before or with " \
aoqi@0 3900 "EINTR for I/O operations results in OS_INTRPT. The default " \
aoqi@0 3901 "value of this flag is true for JDK 6 and earlier") \
aoqi@0 3902 \
aoqi@0 3903 diagnostic(bool, WhiteBoxAPI, false, \
aoqi@0 3904 "Enable internal testing APIs") \
aoqi@0 3905 \
aoqi@0 3906 product(bool, PrintGCCause, true, \
aoqi@0 3907 "Include GC cause in GC logging") \
aoqi@0 3908 \
aoqi@0 3909 product(bool , AllowNonVirtualCalls, false, \
aoqi@0 3910 "Obey the ACC_SUPER flag and allow invokenonvirtual calls") \
aoqi@0 3911 \
aoqi@0 3912 diagnostic(ccstr, SharedArchiveFile, NULL, \
aoqi@0 3913 "Override the default location of the CDS archive file") \
aoqi@0 3914 \
aoqi@0 3915 experimental(uintx, ArrayAllocatorMallocLimit, \
aoqi@0 3916 SOLARIS_ONLY(64*K) NOT_SOLARIS(max_uintx), \
aoqi@0 3917 "Allocation less than this value will be allocated " \
aoqi@0 3918 "using malloc. Larger allocations will use mmap.") \
aoqi@0 3919 \
aoqi@0 3920 product(bool, EnableTracing, false, \
aoqi@0 3921 "Enable event-based tracing") \
aoqi@0 3922 \
aoqi@0 3923 product(bool, UseLockedTracing, false, \
aoqi@0 3924 "Use locked-tracing when doing event-based tracing")
aoqi@0 3925
aoqi@0 3926 /*
aoqi@0 3927 * Macros for factoring of globals
aoqi@0 3928 */
aoqi@0 3929
aoqi@0 3930 // Interface macros
aoqi@0 3931 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3932 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name;
aoqi@0 3933 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3934 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3935 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3936 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3937 #ifdef PRODUCT
aoqi@0 3938 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value;
aoqi@0 3939 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type CONST_##name; const type name = pd_##name;
aoqi@0 3940 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type CONST_##name;
aoqi@0 3941 #else
aoqi@0 3942 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3943 #define DECLARE_PD_DEVELOPER_FLAG(type, name, doc) extern "C" type name;
aoqi@0 3944 #define DECLARE_NOTPRODUCT_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3945 #endif
aoqi@0 3946 // Special LP64 flags, product only needed for now.
aoqi@0 3947 #ifdef _LP64
aoqi@0 3948 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
aoqi@0 3949 #else
aoqi@0 3950 #define DECLARE_LP64_PRODUCT_FLAG(type, name, value, doc) const type name = value;
aoqi@0 3951 #endif // _LP64
aoqi@0 3952
aoqi@0 3953 // Implementation macros
aoqi@0 3954 #define MATERIALIZE_PRODUCT_FLAG(type, name, value, doc) type name = value;
aoqi@0 3955 #define MATERIALIZE_PD_PRODUCT_FLAG(type, name, doc) type name = pd_##name;
aoqi@0 3956 #define MATERIALIZE_DIAGNOSTIC_FLAG(type, name, value, doc) type name = value;
aoqi@0 3957 #define MATERIALIZE_EXPERIMENTAL_FLAG(type, name, value, doc) type name = value;
aoqi@0 3958 #define MATERIALIZE_MANAGEABLE_FLAG(type, name, value, doc) type name = value;
aoqi@0 3959 #define MATERIALIZE_PRODUCT_RW_FLAG(type, name, value, doc) type name = value;
aoqi@0 3960 #ifdef PRODUCT
aoqi@0 3961 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type CONST_##name = value;
aoqi@0 3962 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type CONST_##name = pd_##name;
aoqi@0 3963 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type CONST_##name = value;
aoqi@0 3964 #else
aoqi@0 3965 #define MATERIALIZE_DEVELOPER_FLAG(type, name, value, doc) type name = value;
aoqi@0 3966 #define MATERIALIZE_PD_DEVELOPER_FLAG(type, name, doc) type name = pd_##name;
aoqi@0 3967 #define MATERIALIZE_NOTPRODUCT_FLAG(type, name, value, doc) type name = value;
aoqi@0 3968 #endif
aoqi@0 3969 #ifdef _LP64
aoqi@0 3970 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) type name = value;
aoqi@0 3971 #else
aoqi@0 3972 #define MATERIALIZE_LP64_PRODUCT_FLAG(type, name, value, doc) /* flag is constant */
aoqi@0 3973 #endif // _LP64
aoqi@0 3974
aoqi@0 3975 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 3976
aoqi@0 3977 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 3978
aoqi@0 3979 ARCH_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)
aoqi@0 3980
aoqi@0 3981 // Extensions
aoqi@0 3982
aoqi@0 3983 #include "runtime/globals_ext.hpp"
aoqi@0 3984
aoqi@0 3985 #endif // SHARE_VM_RUNTIME_GLOBALS_HPP

mercurial