< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

 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, UseCompressedClassPointers, true,                           \
 128           "Use 32-bit class pointers in 64-bit VM. "                        \
 129           "lp64_product means flag is always constant in 32 bit VM")        \
 130                                                                             \





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

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






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

1003           "Print all VM flags after argument and ergonomic processing")     \
1004                                                                             \
1005   develop(bool, PrintFlagsWithComments, false,                              \
1006           "Print all VM flags with default values and descriptions and "    \
1007           "exit")                                                           \
1008                                                                             \
1009   product(bool, PrintFlagsRanges, false,                                    \
1010           "Print VM flags and their ranges")                                \
1011                                                                             \
1012   product(bool, SerializeVMOutput, true, DIAGNOSTIC,                        \
1013           "Use a mutex to serialize output to tty and LogFile")             \
1014                                                                             \
1015   product(bool, DisplayVMOutput, true, DIAGNOSTIC,                          \
1016           "Display all VM output on the tty, independently of LogVMOutput") \
1017                                                                             \
1018   product(bool, LogVMOutput, false, DIAGNOSTIC,                             \
1019           "Save VM output to LogFile")                                      \
1020                                                                             \
1021   product(ccstr, LogFile, nullptr, DIAGNOSTIC,                              \
1022           "If LogVMOutput or LogCompilation is on, save VM output to "      \
1023           "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
1024                                                                             \
1025   product(ccstr, ErrorFile, nullptr,                                        \
1026           "If an error occurs, save the error data to this file "           \
1027           "[default: ./hs_err_pid%p.log] (%p replaced with pid)")           \
1028                                                                             \
1029   product(bool, ExtensiveErrorReports,                                      \
1030           PRODUCT_ONLY(false) NOT_PRODUCT(true),                            \
1031           "Error reports are more extensive.")                              \
1032                                                                             \
1033   product(bool, DisplayVMOutputToStderr, false,                             \
1034           "If DisplayVMOutput is true, display all VM output to stderr")    \
1035                                                                             \
1036   product(bool, DisplayVMOutputToStdout, false,                             \
1037           "If DisplayVMOutput is true, display all VM output to stdout")    \
1038                                                                             \
1039   product(bool, ErrorFileToStderr, false,                                   \
1040           "If true, error data is printed to stderr instead of a file")     \
1041                                                                             \
1042   product(bool, ErrorFileToStdout, false,                                   \
1043           "If true, error data is printed to stdout instead of a file")     \
1044                                                                             \
1045   develop(bool, VerifyHeavyMonitors, false,                                 \
1046           "Checks that no stack locking happens when using "                \
1047           "-XX:LockingMode=0 (LM_MONITOR)")                                 \

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



1151           "Print histogram of the executed bytecodes")                      \
1152                                                                             \




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



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

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

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












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



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



2003   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
2004           "Use an extra lock during Thread start and exit to alleviate"     \
2005           "contention on Threads_lock.")                                    \
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

 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, UseCompressedClassPointers, true,                           \
 128           "Use 32-bit class pointers in 64-bit VM. "                        \
 129           "lp64_product means flag is always constant in 32 bit VM")        \
 130                                                                             \
 131   /* Leyden */                                                              \
 132   product(bool, UseCompatibleCompressedOops, false,                         \
 133           "Always use HeapBasedNarrowOop mode, so that AOT code can be "    \
 134           "always work regardless of runtime heap range")                   \
 135                                                                             \
 136   product(bool, UseCompactObjectHeaders, false, EXPERIMENTAL,               \
 137           "Use compact 64-bit object headers in 64-bit VM")                 \
 138                                                                             \
 139   product(int, ObjectAlignmentInBytes, 8,                                   \
 140           "Default object alignment in bytes, 8 is minimum")                \
 141           range(8, 256)                                                     \
 142           constraint(ObjectAlignmentInBytesConstraintFunc, AtParse)
 143 
 144 #else
 145 // !_LP64
 146 
 147 #define LP64_RUNTIME_FLAGS(develop,                                         \
 148                            develop_pd,                                      \
 149                            product,                                         \
 150                            product_pd,                                      \
 151                            range,                                           \
 152                            constraint)
 153 const bool UseCompressedOops = false;
 154 const bool UseCompressedClassPointers = false;
 155 const bool UseCompactObjectHeaders = false;

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

1014           "Print all VM flags after argument and ergonomic processing")     \
1015                                                                             \
1016   develop(bool, PrintFlagsWithComments, false,                              \
1017           "Print all VM flags with default values and descriptions and "    \
1018           "exit")                                                           \
1019                                                                             \
1020   product(bool, PrintFlagsRanges, false,                                    \
1021           "Print VM flags and their ranges")                                \
1022                                                                             \
1023   product(bool, SerializeVMOutput, true, DIAGNOSTIC,                        \
1024           "Use a mutex to serialize output to tty and LogFile")             \
1025                                                                             \
1026   product(bool, DisplayVMOutput, true, DIAGNOSTIC,                          \
1027           "Display all VM output on the tty, independently of LogVMOutput") \
1028                                                                             \
1029   product(bool, LogVMOutput, false, DIAGNOSTIC,                             \
1030           "Save VM output to LogFile")                                      \
1031                                                                             \
1032   product(ccstr, LogFile, nullptr, DIAGNOSTIC,                              \
1033           "If LogVMOutput or LogCompilation is on, save VM output to "      \
1034           "this file [default: ./hotspot_%p.log] (%p replaced with pidNNN)")\
1035                                                                             \
1036   product(ccstr, ErrorFile, nullptr,                                        \
1037           "If an error occurs, save the error data to this file "           \
1038           "[default: ./hs_err_%p.log] (%p replaced with pidNNN)")           \
1039                                                                             \
1040   product(bool, ExtensiveErrorReports,                                      \
1041           PRODUCT_ONLY(false) NOT_PRODUCT(true),                            \
1042           "Error reports are more extensive.")                              \
1043                                                                             \
1044   product(bool, DisplayVMOutputToStderr, false,                             \
1045           "If DisplayVMOutput is true, display all VM output to stderr")    \
1046                                                                             \
1047   product(bool, DisplayVMOutputToStdout, false,                             \
1048           "If DisplayVMOutput is true, display all VM output to stdout")    \
1049                                                                             \
1050   product(bool, ErrorFileToStderr, false,                                   \
1051           "If true, error data is printed to stderr instead of a file")     \
1052                                                                             \
1053   product(bool, ErrorFileToStdout, false,                                   \
1054           "If true, error data is printed to stdout instead of a file")     \
1055                                                                             \
1056   develop(bool, VerifyHeavyMonitors, false,                                 \
1057           "Checks that no stack locking happens when using "                \
1058           "-XX:LockingMode=0 (LM_MONITOR)")                                 \

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

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

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