< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

 107 
 108 // Default and minimum StringTable and SymbolTable size values
 109 // Must be powers of 2
 110 const size_t defaultStringTableSize = NOT_LP64(1024) LP64_ONLY(65536);
 111 const size_t minimumStringTableSize = 128;
 112 const size_t defaultSymbolTableSize = 32768; // 2^15
 113 const size_t minimumSymbolTableSize = 1024;
 114 
 115 #ifdef _LP64
 116 #define LP64_RUNTIME_FLAGS(develop,                                         \
 117                            develop_pd,                                      \
 118                            product,                                         \
 119                            product_pd,                                      \
 120                            range,                                           \
 121                            constraint)                                      \
 122                                                                             \
 123   product(bool, UseCompressedOops, false,                                   \
 124           "Use 32-bit object references in 64-bit VM. "                     \
 125           "lp64_product means flag is always constant in 32 bit VM")        \
 126                                                                             \





 127   product(bool, UseCompactObjectHeaders, false,                             \
 128           "Use compact 64-bit object headers in 64-bit VM")                 \
 129                                                                             \
 130   product(int, ObjectAlignmentInBytes, 8,                                   \
 131           "Default object alignment in bytes, 8 is minimum")                \
 132           range(8, 256)                                                     \
 133           constraint(ObjectAlignmentInBytesConstraintFunc, AtParse)
 134 
 135 #else
 136 // !_LP64
 137 
 138 #define LP64_RUNTIME_FLAGS(develop,                                         \
 139                            develop_pd,                                      \
 140                            product,                                         \
 141                            product_pd,                                      \
 142                            range,                                           \
 143                            constraint)
 144 const bool UseCompressedOops = false;
 145 const bool UseCompactObjectHeaders = false;
 146 const int ObjectAlignmentInBytes = 8;

 366           "Enables intrinsification of ArraysSupport.vectorizedHashCode()") \
 367                                                                             \
 368   product(bool, UseCopySignIntrinsic, false, DIAGNOSTIC,                    \
 369           "Enables intrinsification of Math.copySign")                      \
 370                                                                             \
 371   product(bool, UseSignumIntrinsic, false, DIAGNOSTIC,                      \
 372           "Enables intrinsification of Math.signum")                        \
 373                                                                             \
 374   product_pd(bool, DelayCompilerStubsGeneration, DIAGNOSTIC,                \
 375           "Use Compiler thread for compiler's stubs generation")            \
 376                                                                             \
 377   product(ccstrlist, DisableIntrinsic, "", DIAGNOSTIC,                      \
 378          "do not expand intrinsics whose (internal) names appear here")     \
 379          constraint(DisableIntrinsicConstraintFunc,AfterErgo)               \
 380                                                                             \
 381   product(ccstrlist, ControlIntrinsic, "", DIAGNOSTIC,                      \
 382          "Control intrinsics using a list of +/- (internal) names, "        \
 383          "separated by commas")                                             \
 384          constraint(ControlIntrinsicConstraintFunc,AfterErgo)               \
 385                                                                             \






 386   develop(bool, TraceCallFixup, false,                                      \
 387           "Trace all call fixups")                                          \
 388                                                                             \
 389   develop(bool, DeoptimizeALot, false,                                      \
 390           "Deoptimize at every exit from the runtime system")               \
 391                                                                             \
 392   develop(ccstrlist, DeoptimizeOnlyAt, "",                                  \
 393           "A comma separated list of bcis to deoptimize at")                \
 394                                                                             \
 395   develop(bool, DeoptimizeRandom, false,                                    \
 396           "Deoptimize random frames on random exit from the runtime system")\
 397                                                                             \
 398   develop(bool, ZombieALot, false,                                          \
 399           "Create non-entrant nmethods at exit from the runtime system")    \
 400                                                                             \
 401   develop(bool, WalkStackALot, false,                                       \
 402           "Trace stack (no print) at every exit from the runtime system")   \
 403                                                                             \
 404   develop(bool, DeoptimizeObjectsALot, false,                               \
 405           "For testing purposes concurrent threads revert optimizations "   \

1009           "Print all VM flags after argument and ergonomic processing")     \
1010                                                                             \
1011   develop(bool, PrintFlagsWithComments, false,                              \
1012           "Print all VM flags with default values and descriptions and "    \
1013           "exit")                                                           \
1014                                                                             \
1015   product(bool, PrintFlagsRanges, false,                                    \
1016           "Print VM flags and their ranges")                                \
1017                                                                             \
1018   product(bool, SerializeVMOutput, true, DIAGNOSTIC,                        \
1019           "Use a mutex to serialize output to tty and LogFile")             \
1020                                                                             \
1021   product(bool, DisplayVMOutput, true, DIAGNOSTIC,                          \
1022           "Display all VM output on the tty, independently of LogVMOutput") \
1023                                                                             \
1024   product(bool, LogVMOutput, false, DIAGNOSTIC,                             \
1025           "Save VM output to LogFile")                                      \
1026                                                                             \
1027   product(ccstr, LogFile, nullptr, DIAGNOSTIC,                              \
1028           "If LogVMOutput or LogCompilation is on, save VM output to "      \
1029           "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
1030                                                                             \
1031   product(ccstr, ErrorFile, nullptr,                                        \
1032           "If an error occurs, save the error data to this file "           \
1033           "[default: ./hs_err_pid%p.log] (%p replaced with pid)")           \
1034                                                                             \
1035   product(bool, ExtensiveErrorReports,                                      \
1036           PRODUCT_ONLY(false) NOT_PRODUCT(true),                            \
1037           "Error reports are more extensive.")                              \
1038                                                                             \
1039   product(bool, DisplayVMOutputToStderr, false,                             \
1040           "If DisplayVMOutput is true, display all VM output to stderr")    \
1041                                                                             \
1042   product(bool, DisplayVMOutputToStdout, false,                             \
1043           "If DisplayVMOutput is true, display all VM output to stdout")    \
1044                                                                             \
1045   product(bool, ErrorFileToStderr, false,                                   \
1046           "If true, error data is printed to stderr instead of a file")     \
1047                                                                             \
1048   product(bool, ErrorFileToStdout, false,                                   \
1049           "If true, error data is printed to stdout instead of a file")     \
1050                                                                             \
1051   product(bool, PrintStringTableStatistics, false,                          \
1052           "print statistics about the StringTable and SymbolTable")         \
1053                                                                             \

1133   product(bool, UseInterpreter, true,                                       \
1134           "Use interpreter for non-compiled methods")                       \
1135                                                                             \
1136   develop(bool, UseFastSignatureHandlers, true,                             \
1137           "Use fast signature handlers for native calls")                   \
1138                                                                             \
1139   product(bool, UseLoopCounter, true,                                       \
1140           "Increment invocation counter on backward branch")                \
1141                                                                             \
1142   product_pd(bool, UseOnStackReplacement,                                   \
1143           "Use on stack replacement, calls runtime if invoc. counter "      \
1144           "overflows in loop")                                              \
1145                                                                             \
1146   develop(bool, TraceOnStackReplacement, false,                             \
1147           "Trace on stack replacement")                                     \
1148                                                                             \
1149   product_pd(bool, PreferInterpreterNativeStubs,                            \
1150           "Use always interpreter stubs for native methods invoked via "    \
1151           "interpreter")                                                    \
1152                                                                             \
1153   develop(bool, CountBytecodes, false,                                      \
1154           "Count number of bytecodes executed")                             \
1155                                                                             \
1156   develop(bool, PrintBytecodeHistogram, false,                              \



1157           "Print histogram of the executed bytecodes")                      \
1158                                                                             \




1159   develop(bool, PrintBytecodePairHistogram, false,                          \
1160           "Print histogram of the executed bytecode pairs")                 \
1161                                                                             \
1162   product(bool, PrintSignatureHandlers, false, DIAGNOSTIC,                  \
1163           "Print code generated for native method signature handlers")      \
1164                                                                             \
1165   develop(bool, VerifyOops, false,                                          \
1166           "Do plausibility checks for oops")                                \
1167                                                                             \
1168   develop(bool, CheckUnhandledOops, false,                                  \
1169           "Check for unhandled oops in VM code")                            \
1170                                                                             \
1171   develop(bool, VerifyJNIFields, trueInDebug,                               \
1172           "Verify jfieldIDs for instance fields")                           \
1173                                                                             \
1174   develop(bool, VerifyActivationFrameSize, false,                           \
1175           "Verify that activation frame didn't become smaller than its "    \
1176           "minimal size")                                                   \
1177                                                                             \
1178   develop(bool, TraceFrequencyInlining, false,                              \
1179           "Trace frequency based inlining")                                 \
1180                                                                             \
1181   develop_pd(bool, InlineIntrinsics,                                        \
1182           "Use intrinsics in Interpreter that can be statically resolved")  \
1183                                                                             \
1184   product_pd(bool, ProfileInterpreter,                                      \
1185           "Profile at the bytecode level during interpretation")            \
1186                                                                             \
1187   develop_pd(bool, ProfileTraps,                                            \
1188           "Profile deoptimization traps at the bytecode level")             \
1189                                                                             \
1190   product(intx, ProfileMaturityPercentage, 20,                              \
1191           "number of method invocations/branches (expressed as % of "       \
1192           "CompileThreshold) before using the method's profile")            \
1193           range(0, 100)                                                     \
1194                                                                             \



1195   product(bool, PrintMethodData, false, DIAGNOSTIC,                         \
1196           "Print the results of +ProfileInterpreter at end of run")         \
1197                                                                             \
1198   develop(bool, VerifyDataPointer, trueInDebug,                             \
1199           "Verify the method data pointer during interpreter profiling")    \
1200                                                                             \
1201   develop(bool, CrashGCForDumpingJavaThread, false,                         \
1202           "Manually make GC thread crash then dump java stack trace;  "     \
1203           "Test only")                                                      \
1204                                                                             \
1205   /* compilation */                                                         \
1206   product(bool, UseCompiler, true,                                          \
1207           "Use Just-In-Time compilation")                                   \
1208                                                                             \
1209   product(bool, AlwaysCompileLoopMethods, false,                            \
1210           "When using recompilation, never interpret methods "              \
1211           "containing loops")                                               \
1212                                                                             \
1213   product(int,  AllocatePrefetchStyle, 1,                                   \
1214           "0 = no prefetch, "                                               \

1714   develop(bool, EnableJVMTIStackDepthAsserts, true,                         \
1715           "Enable JVMTI asserts related to stack depth checks")             \
1716                                                                             \
1717   /* flags for performance data collection */                               \
1718                                                                             \
1719   product(bool, UsePerfData, true,                                          \
1720           "Flag to disable jvmstat instrumentation for performance testing "\
1721           "and problem isolation purposes")                                 \
1722                                                                             \
1723   product(bool, PerfDataSaveToFile, false,                                  \
1724           "Save PerfData memory to hsperfdata_<pid> file on exit")          \
1725                                                                             \
1726   product(ccstr, PerfDataSaveFile, nullptr,                                 \
1727           "Save PerfData memory to the specified absolute pathname. "       \
1728           "The string %p in the file name (if present) "                    \
1729           "will be replaced by pid")                                        \
1730                                                                             \
1731   product(bool, PerfDisableSharedMem, false,                                \
1732           "Store performance data in standard memory")                      \
1733                                                                             \
1734   product(int, PerfDataMemorySize, 32*K,                                    \
1735           "Size of performance data memory region. Will be rounded "        \
1736           "up to a multiple of the native os page size.")                   \
1737           range(128, 32*64*K)                                               \
1738                                                                             \
1739   product(int, PerfMaxStringConstLength, 1024,                              \
1740           "Maximum PerfStringConstant string length before truncation")     \
1741           range(32, 32*K)                                                   \
1742                                                                             \
1743   product(bool, PerfAllowAtExitRegistration, false,                         \
1744           "Allow registration of atexit() methods")                         \
1745                                                                             \
1746   product(bool, PerfBypassFileSystemCheck, false,                           \
1747           "Bypass Win32 file system criteria checks (Windows Only)")        \
1748                                                                             \
1749   product(int, UnguardOnExecutionViolation, 0,                              \
1750           "Unguard page and retry on no-execute fault (Win32 only) "        \
1751           "0=off, 1=conservative, 2=aggressive")                            \
1752           range(0, 2)                                                       \
1753                                                                             \
1754   /* Serviceability Support */                                              \

1954              "fence. Add cleanliness checks.")                              \
1955                                                                             \
1956   product(bool, UseObjectMonitorTable, false, DIAGNOSTIC,                   \
1957           "With Lightweight Locking mode, use a table to record inflated "  \
1958           "monitors rather than the first word of the object.")             \
1959                                                                             \
1960   product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC,                 \
1961           "Specifies the number of times lightweight fast locking will "    \
1962           "attempt to CAS the markWord before inflating. Between each "     \
1963           "CAS it will spin for exponentially more time, resulting in "     \
1964           "a total number of spins on the order of O(2^value)")             \
1965           range(1, 30)                                                      \
1966                                                                             \
1967   product(uint, TrimNativeHeapInterval, 0,                                  \
1968           "Interval, in ms, at which the JVM will trim the native heap if " \
1969           "the platform supports that. Lower values will reclaim memory "   \
1970           "more eagerly at the cost of higher overhead. A value of 0 "      \
1971           "(default) disables native heap trimming.")                       \
1972           range(0, UINT_MAX)                                                \
1973                                                                             \












1974   develop(bool, SimulateFullAddressSpace, false,                            \
1975           "Simulates a very populated, fragmented address space; no "       \
1976           "targeted reservations will succeed.")                            \
1977                                                                             \
1978   product(bool, ProfileExceptionHandlers, true,                             \
1979           "Profile exception handlers")                                     \
1980                                                                             \
1981   product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL,           \
1982                 "Unconditionally record nmethod dependencies on class "     \
1983                 "rewriting/transformation independently of the JVMTI "      \
1984                 "can_{retransform/redefine}_classes capabilities.")         \
1985                                                                             \



1986   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
1987                 "Use secondary supers cache during subtype checks.")        \
1988                                                                             \
1989   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
1990                 "Use hash table to lookup secondary supers.")               \
1991                                                                             \
1992   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
1993           "Check that linear and hashed secondary lookups return the same result.") \
1994                                                                             \
1995   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
1996           "Use a terrible hash function in order to generate many collisions.") \
1997                                                                             \



1998   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
1999           "Use an extra lock during Thread start and exit to alleviate"     \
2000           "contention on Threads_lock.")                                    \
2001                                                                             \
2002   develop(uint, BinarySearchThreshold, 16,                                  \
2003           "Minimal number of elements in a sorted collection to prefer"     \
2004           "binary search over simple linear search." )                      \
2005                                                                             \
2006 

2007 // end of RUNTIME_FLAGS
2008 
2009 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2010 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2011 DECLARE_FLAGS(RUNTIME_FLAGS)
2012 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2013 
2014 #endif // SHARE_RUNTIME_GLOBALS_HPP

 107 
 108 // Default and minimum StringTable and SymbolTable size values
 109 // Must be powers of 2
 110 const size_t defaultStringTableSize = NOT_LP64(1024) LP64_ONLY(65536);
 111 const size_t minimumStringTableSize = 128;
 112 const size_t defaultSymbolTableSize = 32768; // 2^15
 113 const size_t minimumSymbolTableSize = 1024;
 114 
 115 #ifdef _LP64
 116 #define LP64_RUNTIME_FLAGS(develop,                                         \
 117                            develop_pd,                                      \
 118                            product,                                         \
 119                            product_pd,                                      \
 120                            range,                                           \
 121                            constraint)                                      \
 122                                                                             \
 123   product(bool, UseCompressedOops, false,                                   \
 124           "Use 32-bit object references in 64-bit VM. "                     \
 125           "lp64_product means flag is always constant in 32 bit VM")        \
 126                                                                             \
 127   /* Leyden */                                                              \
 128   product(bool, UseCompatibleCompressedOops, false,                         \
 129           "Always use HeapBasedNarrowOop mode, so that AOT code can be "    \
 130           "always work regardless of runtime heap range")                   \
 131                                                                             \
 132   product(bool, UseCompactObjectHeaders, false,                             \
 133           "Use compact 64-bit object headers in 64-bit VM")                 \
 134                                                                             \
 135   product(int, ObjectAlignmentInBytes, 8,                                   \
 136           "Default object alignment in bytes, 8 is minimum")                \
 137           range(8, 256)                                                     \
 138           constraint(ObjectAlignmentInBytesConstraintFunc, AtParse)
 139 
 140 #else
 141 // !_LP64
 142 
 143 #define LP64_RUNTIME_FLAGS(develop,                                         \
 144                            develop_pd,                                      \
 145                            product,                                         \
 146                            product_pd,                                      \
 147                            range,                                           \
 148                            constraint)
 149 const bool UseCompressedOops = false;
 150 const bool UseCompactObjectHeaders = false;
 151 const int ObjectAlignmentInBytes = 8;

 371           "Enables intrinsification of ArraysSupport.vectorizedHashCode()") \
 372                                                                             \
 373   product(bool, UseCopySignIntrinsic, false, DIAGNOSTIC,                    \
 374           "Enables intrinsification of Math.copySign")                      \
 375                                                                             \
 376   product(bool, UseSignumIntrinsic, false, DIAGNOSTIC,                      \
 377           "Enables intrinsification of Math.signum")                        \
 378                                                                             \
 379   product_pd(bool, DelayCompilerStubsGeneration, DIAGNOSTIC,                \
 380           "Use Compiler thread for compiler's stubs generation")            \
 381                                                                             \
 382   product(ccstrlist, DisableIntrinsic, "", DIAGNOSTIC,                      \
 383          "do not expand intrinsics whose (internal) names appear here")     \
 384          constraint(DisableIntrinsicConstraintFunc,AfterErgo)               \
 385                                                                             \
 386   product(ccstrlist, ControlIntrinsic, "", DIAGNOSTIC,                      \
 387          "Control intrinsics using a list of +/- (internal) names, "        \
 388          "separated by commas")                                             \
 389          constraint(ControlIntrinsicConstraintFunc,AfterErgo)               \
 390                                                                             \
 391   develop(ccstr, AddRuntimeUpcallsNOP, nullptr,                             \
 392           "Register a runtime upcall for testing."                          \
 393           "Format is '[upcallType]:[methodFilter]'"                         \
 394           "where upcallType is one of 'onMethodEntry', 'onMethodExit'"      \
 395           "and methodFilter is one of 'none', 'all'")                       \
 396                                                                             \
 397   develop(bool, TraceCallFixup, false,                                      \
 398           "Trace all call fixups")                                          \
 399                                                                             \
 400   develop(bool, DeoptimizeALot, false,                                      \
 401           "Deoptimize at every exit from the runtime system")               \
 402                                                                             \
 403   develop(ccstrlist, DeoptimizeOnlyAt, "",                                  \
 404           "A comma separated list of bcis to deoptimize at")                \
 405                                                                             \
 406   develop(bool, DeoptimizeRandom, false,                                    \
 407           "Deoptimize random frames on random exit from the runtime system")\
 408                                                                             \
 409   develop(bool, ZombieALot, false,                                          \
 410           "Create non-entrant nmethods at exit from the runtime system")    \
 411                                                                             \
 412   develop(bool, WalkStackALot, false,                                       \
 413           "Trace stack (no print) at every exit from the runtime system")   \
 414                                                                             \
 415   develop(bool, DeoptimizeObjectsALot, false,                               \
 416           "For testing purposes concurrent threads revert optimizations "   \

1020           "Print all VM flags after argument and ergonomic processing")     \
1021                                                                             \
1022   develop(bool, PrintFlagsWithComments, false,                              \
1023           "Print all VM flags with default values and descriptions and "    \
1024           "exit")                                                           \
1025                                                                             \
1026   product(bool, PrintFlagsRanges, false,                                    \
1027           "Print VM flags and their ranges")                                \
1028                                                                             \
1029   product(bool, SerializeVMOutput, true, DIAGNOSTIC,                        \
1030           "Use a mutex to serialize output to tty and LogFile")             \
1031                                                                             \
1032   product(bool, DisplayVMOutput, true, DIAGNOSTIC,                          \
1033           "Display all VM output on the tty, independently of LogVMOutput") \
1034                                                                             \
1035   product(bool, LogVMOutput, false, DIAGNOSTIC,                             \
1036           "Save VM output to LogFile")                                      \
1037                                                                             \
1038   product(ccstr, LogFile, nullptr, DIAGNOSTIC,                              \
1039           "If LogVMOutput or LogCompilation is on, save VM output to "      \
1040           "this file [default: ./hotspot_%p.log] (%p replaced with pidNNN)")\
1041                                                                             \
1042   product(ccstr, ErrorFile, nullptr,                                        \
1043           "If an error occurs, save the error data to this file "           \
1044           "[default: ./hs_err_%p.log] (%p replaced with pidNNN)")           \
1045                                                                             \
1046   product(bool, ExtensiveErrorReports,                                      \
1047           PRODUCT_ONLY(false) NOT_PRODUCT(true),                            \
1048           "Error reports are more extensive.")                              \
1049                                                                             \
1050   product(bool, DisplayVMOutputToStderr, false,                             \
1051           "If DisplayVMOutput is true, display all VM output to stderr")    \
1052                                                                             \
1053   product(bool, DisplayVMOutputToStdout, false,                             \
1054           "If DisplayVMOutput is true, display all VM output to stdout")    \
1055                                                                             \
1056   product(bool, ErrorFileToStderr, false,                                   \
1057           "If true, error data is printed to stderr instead of a file")     \
1058                                                                             \
1059   product(bool, ErrorFileToStdout, false,                                   \
1060           "If true, error data is printed to stdout instead of a file")     \
1061                                                                             \
1062   product(bool, PrintStringTableStatistics, false,                          \
1063           "print statistics about the StringTable and SymbolTable")         \
1064                                                                             \

1144   product(bool, UseInterpreter, true,                                       \
1145           "Use interpreter for non-compiled methods")                       \
1146                                                                             \
1147   develop(bool, UseFastSignatureHandlers, true,                             \
1148           "Use fast signature handlers for native calls")                   \
1149                                                                             \
1150   product(bool, UseLoopCounter, true,                                       \
1151           "Increment invocation counter on backward branch")                \
1152                                                                             \
1153   product_pd(bool, UseOnStackReplacement,                                   \
1154           "Use on stack replacement, calls runtime if invoc. counter "      \
1155           "overflows in loop")                                              \
1156                                                                             \
1157   develop(bool, TraceOnStackReplacement, false,                             \
1158           "Trace on stack replacement")                                     \
1159                                                                             \
1160   product_pd(bool, PreferInterpreterNativeStubs,                            \
1161           "Use always interpreter stubs for native methods invoked via "    \
1162           "interpreter")                                                    \
1163                                                                             \
1164   product(bool, CountBytecodes, false, DIAGNOSTIC,                          \
1165           "Count number of bytecodes executed")                             \
1166                                                                             \
1167   product(bool, CountBytecodesPerThread, false, DIAGNOSTIC,                 \
1168           "Count number of bytecodes executed per thread")                  \
1169                                                                             \
1170   product(bool, PrintBytecodeHistogram, false, DIAGNOSTIC,                  \
1171           "Print histogram of the executed bytecodes")                      \
1172                                                                             \
1173   product(double, PrintBytecodeHistogramCutoff, 0.01,                       \
1174           "Print cutoff for histogram of the executed bytecodes")           \
1175           range(0.0, 100.0)                                                 \
1176                                                                             \
1177   develop(bool, PrintBytecodePairHistogram, false,                          \
1178           "Print histogram of the executed bytecode pairs")                 \
1179                                                                             \
1180   product(bool, PrintSignatureHandlers, false, DIAGNOSTIC,                  \
1181           "Print code generated for native method signature handlers")      \
1182                                                                             \
1183   develop(bool, VerifyOops, false,                                          \
1184           "Do plausibility checks for oops")                                \
1185                                                                             \
1186   develop(bool, CheckUnhandledOops, false,                                  \
1187           "Check for unhandled oops in VM code")                            \
1188                                                                             \
1189   develop(bool, VerifyJNIFields, trueInDebug,                               \
1190           "Verify jfieldIDs for instance fields")                           \
1191                                                                             \
1192   develop(bool, VerifyActivationFrameSize, false,                           \
1193           "Verify that activation frame didn't become smaller than its "    \
1194           "minimal size")                                                   \
1195                                                                             \
1196   develop(bool, TraceFrequencyInlining, false,                              \
1197           "Trace frequency based inlining")                                 \
1198                                                                             \
1199   develop_pd(bool, InlineIntrinsics,                                        \
1200           "Use intrinsics in Interpreter that can be statically resolved")  \
1201                                                                             \
1202   product_pd(bool, ProfileInterpreter,                                      \
1203           "Profile at the bytecode level during interpretation")            \
1204                                                                             \
1205   develop_pd(bool, ProfileTraps,                                            \
1206           "Profile deoptimization traps at the bytecode level")             \
1207                                                                             \
1208   product(intx, ProfileMaturityPercentage, 20,                              \
1209           "number of method invocations/branches (expressed as % of "       \
1210           "CompileThreshold) before using the method's profile")            \
1211           range(0, 100)                                                     \
1212                                                                             \
1213   product(bool, ForceProfiling, false, DIAGNOSTIC,                          \
1214           "Eagerly allocate MDOs")                                          \
1215                                                                             \
1216   product(bool, PrintMethodData, false, DIAGNOSTIC,                         \
1217           "Print the results of +ProfileInterpreter at end of run")         \
1218                                                                             \
1219   develop(bool, VerifyDataPointer, trueInDebug,                             \
1220           "Verify the method data pointer during interpreter profiling")    \
1221                                                                             \
1222   develop(bool, CrashGCForDumpingJavaThread, false,                         \
1223           "Manually make GC thread crash then dump java stack trace;  "     \
1224           "Test only")                                                      \
1225                                                                             \
1226   /* compilation */                                                         \
1227   product(bool, UseCompiler, true,                                          \
1228           "Use Just-In-Time compilation")                                   \
1229                                                                             \
1230   product(bool, AlwaysCompileLoopMethods, false,                            \
1231           "When using recompilation, never interpret methods "              \
1232           "containing loops")                                               \
1233                                                                             \
1234   product(int,  AllocatePrefetchStyle, 1,                                   \
1235           "0 = no prefetch, "                                               \

1735   develop(bool, EnableJVMTIStackDepthAsserts, true,                         \
1736           "Enable JVMTI asserts related to stack depth checks")             \
1737                                                                             \
1738   /* flags for performance data collection */                               \
1739                                                                             \
1740   product(bool, UsePerfData, true,                                          \
1741           "Flag to disable jvmstat instrumentation for performance testing "\
1742           "and problem isolation purposes")                                 \
1743                                                                             \
1744   product(bool, PerfDataSaveToFile, false,                                  \
1745           "Save PerfData memory to hsperfdata_<pid> file on exit")          \
1746                                                                             \
1747   product(ccstr, PerfDataSaveFile, nullptr,                                 \
1748           "Save PerfData memory to the specified absolute pathname. "       \
1749           "The string %p in the file name (if present) "                    \
1750           "will be replaced by pid")                                        \
1751                                                                             \
1752   product(bool, PerfDisableSharedMem, false,                                \
1753           "Store performance data in standard memory")                      \
1754                                                                             \
1755   product(int, PerfDataMemorySize, 64*K,                                    \
1756           "Size of performance data memory region. Will be rounded "        \
1757           "up to a multiple of the native os page size.")                   \
1758           range(128, 32*64*K)                                               \
1759                                                                             \
1760   product(int, PerfMaxStringConstLength, 1024,                              \
1761           "Maximum PerfStringConstant string length before truncation")     \
1762           range(32, 32*K)                                                   \
1763                                                                             \
1764   product(bool, PerfAllowAtExitRegistration, false,                         \
1765           "Allow registration of atexit() methods")                         \
1766                                                                             \
1767   product(bool, PerfBypassFileSystemCheck, false,                           \
1768           "Bypass Win32 file system criteria checks (Windows Only)")        \
1769                                                                             \
1770   product(int, UnguardOnExecutionViolation, 0,                              \
1771           "Unguard page and retry on no-execute fault (Win32 only) "        \
1772           "0=off, 1=conservative, 2=aggressive")                            \
1773           range(0, 2)                                                       \
1774                                                                             \
1775   /* Serviceability Support */                                              \

1975              "fence. Add cleanliness checks.")                              \
1976                                                                             \
1977   product(bool, UseObjectMonitorTable, false, DIAGNOSTIC,                   \
1978           "With Lightweight Locking mode, use a table to record inflated "  \
1979           "monitors rather than the first word of the object.")             \
1980                                                                             \
1981   product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC,                 \
1982           "Specifies the number of times lightweight fast locking will "    \
1983           "attempt to CAS the markWord before inflating. Between each "     \
1984           "CAS it will spin for exponentially more time, resulting in "     \
1985           "a total number of spins on the order of O(2^value)")             \
1986           range(1, 30)                                                      \
1987                                                                             \
1988   product(uint, TrimNativeHeapInterval, 0,                                  \
1989           "Interval, in ms, at which the JVM will trim the native heap if " \
1990           "the platform supports that. Lower values will reclaim memory "   \
1991           "more eagerly at the cost of higher overhead. A value of 0 "      \
1992           "(default) disables native heap trimming.")                       \
1993           range(0, UINT_MAX)                                                \
1994                                                                             \
1995   product(bool, ProfileVMLocks, false, DIAGNOSTIC,                          \
1996           "Profile VM locks usage on main thread")                          \
1997                                                                             \
1998   product(bool, ProfileVMCalls, false, DIAGNOSTIC,                          \
1999           "Profile VM calls on main thread")                                \
2000                                                                             \
2001   product(bool, ProfileVMOps, true, DIAGNOSTIC,                             \
2002           "Profile VM operations on main thread")                           \
2003                                                                             \
2004   product(bool, ProfileRuntimeCalls, false, DIAGNOSTIC,                     \
2005           "Profile calls into VM runtime on main thread")                   \
2006                                                                             \
2007   develop(bool, SimulateFullAddressSpace, false,                            \
2008           "Simulates a very populated, fragmented address space; no "       \
2009           "targeted reservations will succeed.")                            \
2010                                                                             \
2011   product(bool, ProfileExceptionHandlers, true,                             \
2012           "Profile exception handlers")                                     \
2013                                                                             \
2014   product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL,           \
2015                 "Unconditionally record nmethod dependencies on class "     \
2016                 "rewriting/transformation independently of the JVMTI "      \
2017                 "can_{retransform/redefine}_classes capabilities.")         \
2018                                                                             \
2019   product(bool, TraceThreadTime, false,                                     \
2020           "Enable tracing of thread time in Perf counters")                 \
2021                                                                             \
2022   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
2023                 "Use secondary supers cache during subtype checks.")        \
2024                                                                             \
2025   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
2026                 "Use hash table to lookup secondary supers.")               \
2027                                                                             \
2028   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
2029           "Check that linear and hashed secondary lookups return the same result.") \
2030                                                                             \
2031   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
2032           "Use a terrible hash function in order to generate many collisions.") \
2033                                                                             \
2034   develop(bool, TestAdapterLinkFailure, false,                              \
2035           "Test failure of adapter linking when loading from AOT cache.")   \
2036                                                                             \
2037   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
2038           "Use an extra lock during Thread start and exit to alleviate"     \
2039           "contention on Threads_lock.")                                    \
2040                                                                             \
2041   develop(uint, BinarySearchThreshold, 16,                                  \
2042           "Minimal number of elements in a sorted collection to prefer"     \
2043           "binary search over simple linear search." )                      \
2044                                                                             \
2045 
2046 
2047 // end of RUNTIME_FLAGS
2048 
2049 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2050 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2051 DECLARE_FLAGS(RUNTIME_FLAGS)
2052 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2053 
2054 #endif // SHARE_RUNTIME_GLOBALS_HPP
< prev index next >