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;
360 "Enables intrinsification of ArraysSupport.vectorizedHashCode()") \
361 \
362 product(bool, UseCopySignIntrinsic, false, DIAGNOSTIC, \
363 "Enables intrinsification of Math.copySign") \
364 \
365 product(bool, UseSignumIntrinsic, false, DIAGNOSTIC, \
366 "Enables intrinsification of Math.signum") \
367 \
368 product_pd(bool, DelayCompilerStubsGeneration, DIAGNOSTIC, \
369 "Use Compiler thread for compiler's stubs generation") \
370 \
371 product(ccstrlist, DisableIntrinsic, "", DIAGNOSTIC, \
372 "do not expand intrinsics whose (internal) names appear here") \
373 constraint(DisableIntrinsicConstraintFunc,AfterErgo) \
374 \
375 product(ccstrlist, ControlIntrinsic, "", DIAGNOSTIC, \
376 "Control intrinsics using a list of +/- (internal) names, " \
377 "separated by commas") \
378 constraint(ControlIntrinsicConstraintFunc,AfterErgo) \
379 \
380 develop(bool, TraceCallFixup, false, \
381 "Trace all call fixups") \
382 \
383 develop(bool, DeoptimizeALot, false, \
384 "Deoptimize at every exit from the runtime system") \
385 \
386 develop(ccstrlist, DeoptimizeOnlyAt, "", \
387 "A comma separated list of bcis to deoptimize at") \
388 \
389 develop(bool, DeoptimizeRandom, false, \
390 "Deoptimize random frames on random exit from the runtime system")\
391 \
392 develop(bool, ZombieALot, false, \
393 "Create non-entrant nmethods at exit from the runtime system") \
394 \
395 develop(bool, WalkStackALot, false, \
396 "Trace stack (no print) at every exit from the runtime system") \
397 \
398 develop(bool, DeoptimizeObjectsALot, false, \
399 "For testing purposes concurrent threads revert optimizations " \
1000 "Print all VM flags after argument and ergonomic processing") \
1001 \
1002 develop(bool, PrintFlagsWithComments, false, \
1003 "Print all VM flags with default values and descriptions and " \
1004 "exit") \
1005 \
1006 product(bool, PrintFlagsRanges, false, \
1007 "Print VM flags and their ranges") \
1008 \
1009 product(bool, SerializeVMOutput, true, DIAGNOSTIC, \
1010 "Use a mutex to serialize output to tty and LogFile") \
1011 \
1012 product(bool, DisplayVMOutput, true, DIAGNOSTIC, \
1013 "Display all VM output on the tty, independently of LogVMOutput") \
1014 \
1015 product(bool, LogVMOutput, false, DIAGNOSTIC, \
1016 "Save VM output to LogFile") \
1017 \
1018 product(ccstr, LogFile, nullptr, DIAGNOSTIC, \
1019 "If LogVMOutput or LogCompilation is on, save VM output to " \
1020 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
1021 \
1022 product(ccstr, ErrorFile, nullptr, \
1023 "If an error occurs, save the error data to this file " \
1024 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \
1025 \
1026 product(bool, ExtensiveErrorReports, \
1027 PRODUCT_ONLY(false) NOT_PRODUCT(true), \
1028 "Error reports are more extensive.") \
1029 \
1030 product(bool, DisplayVMOutputToStderr, false, \
1031 "If DisplayVMOutput is true, display all VM output to stderr") \
1032 \
1033 product(bool, DisplayVMOutputToStdout, false, \
1034 "If DisplayVMOutput is true, display all VM output to stdout") \
1035 \
1036 product(bool, ErrorFileToStderr, false, \
1037 "If true, error data is printed to stderr instead of a file") \
1038 \
1039 product(bool, ErrorFileToStdout, false, \
1040 "If true, error data is printed to stdout instead of a file") \
1041 \
1042 develop(bool, VerifyHeavyMonitors, false, \
1043 "Checks that no stack locking happens when using " \
1044 "-XX:LockingMode=0 (LM_MONITOR)") \
1124 product(bool, UseInterpreter, true, \
1125 "Use interpreter for non-compiled methods") \
1126 \
1127 develop(bool, UseFastSignatureHandlers, true, \
1128 "Use fast signature handlers for native calls") \
1129 \
1130 product(bool, UseLoopCounter, true, \
1131 "Increment invocation counter on backward branch") \
1132 \
1133 product_pd(bool, UseOnStackReplacement, \
1134 "Use on stack replacement, calls runtime if invoc. counter " \
1135 "overflows in loop") \
1136 \
1137 develop(bool, TraceOnStackReplacement, false, \
1138 "Trace on stack replacement") \
1139 \
1140 product_pd(bool, PreferInterpreterNativeStubs, \
1141 "Use always interpreter stubs for native methods invoked via " \
1142 "interpreter") \
1143 \
1144 develop(bool, CountBytecodes, false, \
1145 "Count number of bytecodes executed") \
1146 \
1147 develop(bool, PrintBytecodeHistogram, false, \
1148 "Print histogram of the executed bytecodes") \
1149 \
1150 develop(bool, PrintBytecodePairHistogram, false, \
1151 "Print histogram of the executed bytecode pairs") \
1152 \
1153 product(bool, PrintSignatureHandlers, false, DIAGNOSTIC, \
1154 "Print code generated for native method signature handlers") \
1155 \
1156 develop(bool, VerifyOops, false, \
1157 "Do plausibility checks for oops") \
1158 \
1159 develop(bool, CheckUnhandledOops, false, \
1160 "Check for unhandled oops in VM code") \
1161 \
1162 develop(bool, VerifyJNIFields, trueInDebug, \
1163 "Verify jfieldIDs for instance fields") \
1164 \
1165 develop(bool, VerifyFPU, false, \
1166 "Verify FPU state (check for NaN's, etc.)") \
1167 \
1168 develop(bool, VerifyActivationFrameSize, false, \
1169 "Verify that activation frame didn't become smaller than its " \
1170 "minimal size") \
1171 \
1172 develop(bool, TraceFrequencyInlining, false, \
1173 "Trace frequency based inlining") \
1174 \
1175 develop_pd(bool, InlineIntrinsics, \
1176 "Use intrinsics in Interpreter that can be statically resolved") \
1177 \
1178 product_pd(bool, ProfileInterpreter, \
1179 "Profile at the bytecode level during interpretation") \
1180 \
1181 develop_pd(bool, ProfileTraps, \
1182 "Profile deoptimization traps at the bytecode level") \
1183 \
1184 product(intx, ProfileMaturityPercentage, 20, \
1185 "number of method invocations/branches (expressed as % of " \
1186 "CompileThreshold) before using the method's profile") \
1187 range(0, 100) \
1188 \
1189 product(bool, PrintMethodData, false, DIAGNOSTIC, \
1190 "Print the results of +ProfileInterpreter at end of run") \
1191 \
1192 develop(bool, VerifyDataPointer, trueInDebug, \
1193 "Verify the method data pointer during interpreter profiling") \
1194 \
1195 develop(bool, CrashGCForDumpingJavaThread, false, \
1196 "Manually make GC thread crash then dump java stack trace; " \
1197 "Test only") \
1198 \
1199 /* compilation */ \
1200 product(bool, UseCompiler, true, \
1201 "Use Just-In-Time compilation") \
1202 \
1203 product(bool, AlwaysCompileLoopMethods, false, \
1204 "When using recompilation, never interpret methods " \
1205 "containing loops") \
1206 \
1207 product(int, AllocatePrefetchStyle, 1, \
1208 "0 = no prefetch, " \
1706 product(bool, UsePerfData, true, \
1707 "Flag to disable jvmstat instrumentation for performance testing "\
1708 "and problem isolation purposes") \
1709 \
1710 product(bool, PerfDataSaveToFile, false, \
1711 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1712 \
1713 product(ccstr, PerfDataSaveFile, nullptr, \
1714 "Save PerfData memory to the specified absolute pathname. " \
1715 "The string %p in the file name (if present) " \
1716 "will be replaced by pid") \
1717 \
1718 product(int, PerfDataSamplingInterval, 50, \
1719 "Data sampling interval (in milliseconds)") \
1720 range(PeriodicTask::min_interval, max_jint) \
1721 constraint(PerfDataSamplingIntervalFunc, AfterErgo) \
1722 \
1723 product(bool, PerfDisableSharedMem, false, \
1724 "Store performance data in standard memory") \
1725 \
1726 product(int, PerfDataMemorySize, 32*K, \
1727 "Size of performance data memory region. Will be rounded " \
1728 "up to a multiple of the native os page size.") \
1729 range(128, 32*64*K) \
1730 \
1731 product(int, PerfMaxStringConstLength, 1024, \
1732 "Maximum PerfStringConstant string length before truncation") \
1733 range(32, 32*K) \
1734 \
1735 product(bool, PerfAllowAtExitRegistration, false, \
1736 "Allow registration of atexit() methods") \
1737 \
1738 product(bool, PerfBypassFileSystemCheck, false, \
1739 "Bypass Win32 file system criteria checks (Windows Only)") \
1740 \
1741 product(int, UnguardOnExecutionViolation, 0, \
1742 "Unguard page and retry on no-execute fault (Win32 only) " \
1743 "0=off, 1=conservative, 2=aggressive") \
1744 range(0, 2) \
1745 \
1746 /* Serviceability Support */ \
1953 range(0, 2) \
1954 \
1955 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1956 "With Lightweight Locking mode, use a table to record inflated " \
1957 "monitors rather than the first word of the object.") \
1958 \
1959 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1960 "Specifies the number of times lightweight fast locking will " \
1961 "attempt to CAS the markWord before inflating. Between each " \
1962 "CAS it will spin for exponentially more time, resulting in " \
1963 "a total number of spins on the order of O(2^value)") \
1964 range(1, 30) \
1965 \
1966 product(uint, TrimNativeHeapInterval, 0, \
1967 "Interval, in ms, at which the JVM will trim the native heap if " \
1968 "the platform supports that. Lower values will reclaim memory " \
1969 "more eagerly at the cost of higher overhead. A value of 0 " \
1970 "(default) disables native heap trimming.") \
1971 range(0, UINT_MAX) \
1972 \
1973 develop(bool, SimulateFullAddressSpace, false, \
1974 "Simulates a very populated, fragmented address space; no " \
1975 "targeted reservations will succeed.") \
1976 \
1977 product(bool, ProfileExceptionHandlers, true, \
1978 "Profile exception handlers") \
1979 \
1980 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
1981 "Unconditionally record nmethod dependencies on class " \
1982 "rewriting/transformation independently of the JVMTI " \
1983 "can_{retransform/redefine}_classes capabilities.") \
1984 \
1985 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
1986 "Use secondary supers cache during subtype checks.") \
1987 \
1988 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
1989 "Use hash table to lookup secondary supers.") \
1990 \
1991 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
1992 "Check that linear and hashed secondary lookups return the same result.") \
1993 \
1994 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
1995 "Use a terrible hash function in order to generate many collisions.") \
1996 \
1997 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
1998 "Use an extra lock during Thread start and exit to alleviate" \
1999 "contention on Threads_lock.") \
2000
2001 // end of RUNTIME_FLAGS
2002
2003 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2004 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2005 DECLARE_FLAGS(RUNTIME_FLAGS)
2006 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2007
2008 #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;
365 "Enables intrinsification of ArraysSupport.vectorizedHashCode()") \
366 \
367 product(bool, UseCopySignIntrinsic, false, DIAGNOSTIC, \
368 "Enables intrinsification of Math.copySign") \
369 \
370 product(bool, UseSignumIntrinsic, false, DIAGNOSTIC, \
371 "Enables intrinsification of Math.signum") \
372 \
373 product_pd(bool, DelayCompilerStubsGeneration, DIAGNOSTIC, \
374 "Use Compiler thread for compiler's stubs generation") \
375 \
376 product(ccstrlist, DisableIntrinsic, "", DIAGNOSTIC, \
377 "do not expand intrinsics whose (internal) names appear here") \
378 constraint(DisableIntrinsicConstraintFunc,AfterErgo) \
379 \
380 product(ccstrlist, ControlIntrinsic, "", DIAGNOSTIC, \
381 "Control intrinsics using a list of +/- (internal) names, " \
382 "separated by commas") \
383 constraint(ControlIntrinsicConstraintFunc,AfterErgo) \
384 \
385 develop(ccstr, AddRuntimeUpcallsNOP, nullptr, \
386 "Register a runtime upcall for testing." \
387 "Format is '[upcallType]:[methodFilter]'" \
388 "where upcallType is one of 'onMethodEntry', 'onMethodExit'" \
389 "and methodFilter is one of 'none', 'all'") \
390 \
391 develop(bool, TraceCallFixup, false, \
392 "Trace all call fixups") \
393 \
394 develop(bool, DeoptimizeALot, false, \
395 "Deoptimize at every exit from the runtime system") \
396 \
397 develop(ccstrlist, DeoptimizeOnlyAt, "", \
398 "A comma separated list of bcis to deoptimize at") \
399 \
400 develop(bool, DeoptimizeRandom, false, \
401 "Deoptimize random frames on random exit from the runtime system")\
402 \
403 develop(bool, ZombieALot, false, \
404 "Create non-entrant nmethods at exit from the runtime system") \
405 \
406 develop(bool, WalkStackALot, false, \
407 "Trace stack (no print) at every exit from the runtime system") \
408 \
409 develop(bool, DeoptimizeObjectsALot, false, \
410 "For testing purposes concurrent threads revert optimizations " \
1011 "Print all VM flags after argument and ergonomic processing") \
1012 \
1013 develop(bool, PrintFlagsWithComments, false, \
1014 "Print all VM flags with default values and descriptions and " \
1015 "exit") \
1016 \
1017 product(bool, PrintFlagsRanges, false, \
1018 "Print VM flags and their ranges") \
1019 \
1020 product(bool, SerializeVMOutput, true, DIAGNOSTIC, \
1021 "Use a mutex to serialize output to tty and LogFile") \
1022 \
1023 product(bool, DisplayVMOutput, true, DIAGNOSTIC, \
1024 "Display all VM output on the tty, independently of LogVMOutput") \
1025 \
1026 product(bool, LogVMOutput, false, DIAGNOSTIC, \
1027 "Save VM output to LogFile") \
1028 \
1029 product(ccstr, LogFile, nullptr, DIAGNOSTIC, \
1030 "If LogVMOutput or LogCompilation is on, save VM output to " \
1031 "this file [default: ./hotspot_%p.log] (%p replaced with pidNNN)")\
1032 \
1033 product(ccstr, ErrorFile, nullptr, \
1034 "If an error occurs, save the error data to this file " \
1035 "[default: ./hs_err_%p.log] (%p replaced with pidNNN)") \
1036 \
1037 product(bool, ExtensiveErrorReports, \
1038 PRODUCT_ONLY(false) NOT_PRODUCT(true), \
1039 "Error reports are more extensive.") \
1040 \
1041 product(bool, DisplayVMOutputToStderr, false, \
1042 "If DisplayVMOutput is true, display all VM output to stderr") \
1043 \
1044 product(bool, DisplayVMOutputToStdout, false, \
1045 "If DisplayVMOutput is true, display all VM output to stdout") \
1046 \
1047 product(bool, ErrorFileToStderr, false, \
1048 "If true, error data is printed to stderr instead of a file") \
1049 \
1050 product(bool, ErrorFileToStdout, false, \
1051 "If true, error data is printed to stdout instead of a file") \
1052 \
1053 develop(bool, VerifyHeavyMonitors, false, \
1054 "Checks that no stack locking happens when using " \
1055 "-XX:LockingMode=0 (LM_MONITOR)") \
1135 product(bool, UseInterpreter, true, \
1136 "Use interpreter for non-compiled methods") \
1137 \
1138 develop(bool, UseFastSignatureHandlers, true, \
1139 "Use fast signature handlers for native calls") \
1140 \
1141 product(bool, UseLoopCounter, true, \
1142 "Increment invocation counter on backward branch") \
1143 \
1144 product_pd(bool, UseOnStackReplacement, \
1145 "Use on stack replacement, calls runtime if invoc. counter " \
1146 "overflows in loop") \
1147 \
1148 develop(bool, TraceOnStackReplacement, false, \
1149 "Trace on stack replacement") \
1150 \
1151 product_pd(bool, PreferInterpreterNativeStubs, \
1152 "Use always interpreter stubs for native methods invoked via " \
1153 "interpreter") \
1154 \
1155 product(bool, CountBytecodes, false, DIAGNOSTIC, \
1156 "Count number of bytecodes executed") \
1157 \
1158 product(bool, CountBytecodesPerThread, false, DIAGNOSTIC, \
1159 "Count number of bytecodes executed per thread") \
1160 \
1161 product(bool, PrintBytecodeHistogram, false, DIAGNOSTIC, \
1162 "Print histogram of the executed bytecodes") \
1163 \
1164 product(double, PrintBytecodeHistogramCutoff, 0.01, \
1165 "Print cutoff for histogram of the executed bytecodes") \
1166 range(0.0, 100.0) \
1167 \
1168 develop(bool, PrintBytecodePairHistogram, false, \
1169 "Print histogram of the executed bytecode pairs") \
1170 \
1171 product(bool, PrintSignatureHandlers, false, DIAGNOSTIC, \
1172 "Print code generated for native method signature handlers") \
1173 \
1174 develop(bool, VerifyOops, false, \
1175 "Do plausibility checks for oops") \
1176 \
1177 develop(bool, CheckUnhandledOops, false, \
1178 "Check for unhandled oops in VM code") \
1179 \
1180 develop(bool, VerifyJNIFields, trueInDebug, \
1181 "Verify jfieldIDs for instance fields") \
1182 \
1183 develop(bool, VerifyFPU, false, \
1184 "Verify FPU state (check for NaN's, etc.)") \
1185 \
1186 develop(bool, VerifyActivationFrameSize, false, \
1187 "Verify that activation frame didn't become smaller than its " \
1188 "minimal size") \
1189 \
1190 develop(bool, TraceFrequencyInlining, false, \
1191 "Trace frequency based inlining") \
1192 \
1193 develop_pd(bool, InlineIntrinsics, \
1194 "Use intrinsics in Interpreter that can be statically resolved") \
1195 \
1196 product_pd(bool, ProfileInterpreter, \
1197 "Profile at the bytecode level during interpretation") \
1198 \
1199 develop_pd(bool, ProfileTraps, \
1200 "Profile deoptimization traps at the bytecode level") \
1201 \
1202 product(intx, ProfileMaturityPercentage, 20, \
1203 "number of method invocations/branches (expressed as % of " \
1204 "CompileThreshold) before using the method's profile") \
1205 range(0, 100) \
1206 \
1207 product(bool, ForceProfiling, false, DIAGNOSTIC, \
1208 "Eagerly allocate MDOs") \
1209 \
1210 product(bool, PrintMethodData, false, DIAGNOSTIC, \
1211 "Print the results of +ProfileInterpreter at end of run") \
1212 \
1213 develop(bool, VerifyDataPointer, trueInDebug, \
1214 "Verify the method data pointer during interpreter profiling") \
1215 \
1216 develop(bool, CrashGCForDumpingJavaThread, false, \
1217 "Manually make GC thread crash then dump java stack trace; " \
1218 "Test only") \
1219 \
1220 /* compilation */ \
1221 product(bool, UseCompiler, true, \
1222 "Use Just-In-Time compilation") \
1223 \
1224 product(bool, AlwaysCompileLoopMethods, false, \
1225 "When using recompilation, never interpret methods " \
1226 "containing loops") \
1227 \
1228 product(int, AllocatePrefetchStyle, 1, \
1229 "0 = no prefetch, " \
1727 product(bool, UsePerfData, true, \
1728 "Flag to disable jvmstat instrumentation for performance testing "\
1729 "and problem isolation purposes") \
1730 \
1731 product(bool, PerfDataSaveToFile, false, \
1732 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1733 \
1734 product(ccstr, PerfDataSaveFile, nullptr, \
1735 "Save PerfData memory to the specified absolute pathname. " \
1736 "The string %p in the file name (if present) " \
1737 "will be replaced by pid") \
1738 \
1739 product(int, PerfDataSamplingInterval, 50, \
1740 "Data sampling interval (in milliseconds)") \
1741 range(PeriodicTask::min_interval, max_jint) \
1742 constraint(PerfDataSamplingIntervalFunc, AfterErgo) \
1743 \
1744 product(bool, PerfDisableSharedMem, false, \
1745 "Store performance data in standard memory") \
1746 \
1747 product(int, PerfDataMemorySize, 64*K, \
1748 "Size of performance data memory region. Will be rounded " \
1749 "up to a multiple of the native os page size.") \
1750 range(128, 32*64*K) \
1751 \
1752 product(int, PerfMaxStringConstLength, 1024, \
1753 "Maximum PerfStringConstant string length before truncation") \
1754 range(32, 32*K) \
1755 \
1756 product(bool, PerfAllowAtExitRegistration, false, \
1757 "Allow registration of atexit() methods") \
1758 \
1759 product(bool, PerfBypassFileSystemCheck, false, \
1760 "Bypass Win32 file system criteria checks (Windows Only)") \
1761 \
1762 product(int, UnguardOnExecutionViolation, 0, \
1763 "Unguard page and retry on no-execute fault (Win32 only) " \
1764 "0=off, 1=conservative, 2=aggressive") \
1765 range(0, 2) \
1766 \
1767 /* Serviceability Support */ \
1974 range(0, 2) \
1975 \
1976 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1977 "With Lightweight Locking mode, use a table to record inflated " \
1978 "monitors rather than the first word of the object.") \
1979 \
1980 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1981 "Specifies the number of times lightweight fast locking will " \
1982 "attempt to CAS the markWord before inflating. Between each " \
1983 "CAS it will spin for exponentially more time, resulting in " \
1984 "a total number of spins on the order of O(2^value)") \
1985 range(1, 30) \
1986 \
1987 product(uint, TrimNativeHeapInterval, 0, \
1988 "Interval, in ms, at which the JVM will trim the native heap if " \
1989 "the platform supports that. Lower values will reclaim memory " \
1990 "more eagerly at the cost of higher overhead. A value of 0 " \
1991 "(default) disables native heap trimming.") \
1992 range(0, UINT_MAX) \
1993 \
1994 product(bool, ProfileVMLocks, false, DIAGNOSTIC, \
1995 "Profile VM locks usage on main thread") \
1996 \
1997 product(bool, ProfileVMCalls, false, DIAGNOSTIC, \
1998 "Profile VM calls on main thread") \
1999 \
2000 product(bool, ProfileVMOps, true, DIAGNOSTIC, \
2001 "Profile VM operations on main thread") \
2002 \
2003 product(bool, ProfileRuntimeCalls, false, DIAGNOSTIC, \
2004 "Profile calls into VM runtime on main thread") \
2005 \
2006 develop(bool, SimulateFullAddressSpace, false, \
2007 "Simulates a very populated, fragmented address space; no " \
2008 "targeted reservations will succeed.") \
2009 \
2010 product(bool, ProfileExceptionHandlers, true, \
2011 "Profile exception handlers") \
2012 \
2013 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
2014 "Unconditionally record nmethod dependencies on class " \
2015 "rewriting/transformation independently of the JVMTI " \
2016 "can_{retransform/redefine}_classes capabilities.") \
2017 \
2018 product(bool, TraceThreadTime, false, \
2019 "Enable tracing of thread time in Perf counters") \
2020 \
2021 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
2022 "Use secondary supers cache during subtype checks.") \
2023 \
2024 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
2025 "Use hash table to lookup secondary supers.") \
2026 \
2027 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2028 "Check that linear and hashed secondary lookups return the same result.") \
2029 \
2030 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2031 "Use a terrible hash function in order to generate many collisions.") \
2032 \
2033 develop(bool, TestAdapterLinkFailure, false, \
2034 "Test failure of adapter linking when loading from AOT cache.") \
2035 \
2036 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2037 "Use an extra lock during Thread start and exit to alleviate" \
2038 "contention on Threads_lock.") \
2039
2040
2041 // end of RUNTIME_FLAGS
2042
2043 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2044 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2045 DECLARE_FLAGS(RUNTIME_FLAGS)
2046 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2047
2048 #endif // SHARE_RUNTIME_GLOBALS_HPP
|