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