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 develop(bool, VerifyHeavyMonitors, false, \
1052 "Checks that no stack locking happens when using " \
1053 "-XX:LockingMode=0 (LM_MONITOR)") \
1137 product(bool, UseInterpreter, true, \
1138 "Use interpreter for non-compiled methods") \
1139 \
1140 develop(bool, UseFastSignatureHandlers, true, \
1141 "Use fast signature handlers for native calls") \
1142 \
1143 product(bool, UseLoopCounter, true, \
1144 "Increment invocation counter on backward branch") \
1145 \
1146 product_pd(bool, UseOnStackReplacement, \
1147 "Use on stack replacement, calls runtime if invoc. counter " \
1148 "overflows in loop") \
1149 \
1150 develop(bool, TraceOnStackReplacement, false, \
1151 "Trace on stack replacement") \
1152 \
1153 product_pd(bool, PreferInterpreterNativeStubs, \
1154 "Use always interpreter stubs for native methods invoked via " \
1155 "interpreter") \
1156 \
1157 develop(bool, CountBytecodes, false, \
1158 "Count number of bytecodes executed") \
1159 \
1160 develop(bool, PrintBytecodeHistogram, false, \
1161 "Print histogram of the executed bytecodes") \
1162 \
1163 develop(bool, PrintBytecodePairHistogram, false, \
1164 "Print histogram of the executed bytecode pairs") \
1165 \
1166 product(bool, PrintSignatureHandlers, false, DIAGNOSTIC, \
1167 "Print code generated for native method signature handlers") \
1168 \
1169 develop(bool, VerifyOops, false, \
1170 "Do plausibility checks for oops") \
1171 \
1172 develop(bool, CheckUnhandledOops, false, \
1173 "Check for unhandled oops in VM code") \
1174 \
1175 develop(bool, VerifyJNIFields, trueInDebug, \
1176 "Verify jfieldIDs for instance fields") \
1177 \
1178 develop(bool, VerifyActivationFrameSize, false, \
1179 "Verify that activation frame didn't become smaller than its " \
1180 "minimal size") \
1181 \
1182 develop(bool, TraceFrequencyInlining, false, \
1183 "Trace frequency based inlining") \
1184 \
1185 develop_pd(bool, InlineIntrinsics, \
1186 "Use intrinsics in Interpreter that can be statically resolved") \
1187 \
1188 product_pd(bool, ProfileInterpreter, \
1189 "Profile at the bytecode level during interpretation") \
1190 \
1191 develop_pd(bool, ProfileTraps, \
1192 "Profile deoptimization traps at the bytecode level") \
1193 \
1194 product(intx, ProfileMaturityPercentage, 20, \
1195 "number of method invocations/branches (expressed as % of " \
1196 "CompileThreshold) before using the method's profile") \
1197 range(0, 100) \
1198 \
1199 product(bool, PrintMethodData, false, DIAGNOSTIC, \
1200 "Print the results of +ProfileInterpreter at end of run") \
1201 \
1202 develop(bool, VerifyDataPointer, trueInDebug, \
1203 "Verify the method data pointer during interpreter profiling") \
1204 \
1205 develop(bool, CrashGCForDumpingJavaThread, false, \
1206 "Manually make GC thread crash then dump java stack trace; " \
1207 "Test only") \
1208 \
1209 /* compilation */ \
1210 product(bool, UseCompiler, true, \
1211 "Use Just-In-Time compilation") \
1212 \
1213 product(bool, AlwaysCompileLoopMethods, false, \
1214 "When using recompilation, never interpret methods " \
1215 "containing loops") \
1216 \
1217 product(int, AllocatePrefetchStyle, 1, \
1218 "0 = no prefetch, " \
1715 develop(bool, EnableJVMTIStackDepthAsserts, true, \
1716 "Enable JVMTI asserts related to stack depth checks") \
1717 \
1718 /* flags for performance data collection */ \
1719 \
1720 product(bool, UsePerfData, true, \
1721 "Flag to disable jvmstat instrumentation for performance testing "\
1722 "and problem isolation purposes") \
1723 \
1724 product(bool, PerfDataSaveToFile, false, \
1725 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1726 \
1727 product(ccstr, PerfDataSaveFile, nullptr, \
1728 "Save PerfData memory to the specified absolute pathname. " \
1729 "The string %p in the file name (if present) " \
1730 "will be replaced by pid") \
1731 \
1732 product(bool, PerfDisableSharedMem, false, \
1733 "Store performance data in standard memory") \
1734 \
1735 product(int, PerfDataMemorySize, 32*K, \
1736 "Size of performance data memory region. Will be rounded " \
1737 "up to a multiple of the native os page size.") \
1738 range(128, 32*64*K) \
1739 \
1740 product(int, PerfMaxStringConstLength, 1024, \
1741 "Maximum PerfStringConstant string length before truncation") \
1742 range(32, 32*K) \
1743 \
1744 product(bool, PerfAllowAtExitRegistration, false, \
1745 "Allow registration of atexit() methods") \
1746 \
1747 product(bool, PerfBypassFileSystemCheck, false, \
1748 "Bypass Win32 file system criteria checks (Windows Only)") \
1749 \
1750 product(int, UnguardOnExecutionViolation, 0, \
1751 "Unguard page and retry on no-execute fault (Win32 only) " \
1752 "0=off, 1=conservative, 2=aggressive") \
1753 range(0, 2) \
1754 \
1755 /* Serviceability Support */ \
1955 "fence. Add cleanliness checks.") \
1956 \
1957 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1958 "With Lightweight Locking mode, use a table to record inflated " \
1959 "monitors rather than the first word of the object.") \
1960 \
1961 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1962 "Specifies the number of times lightweight fast locking will " \
1963 "attempt to CAS the markWord before inflating. Between each " \
1964 "CAS it will spin for exponentially more time, resulting in " \
1965 "a total number of spins on the order of O(2^value)") \
1966 range(1, 30) \
1967 \
1968 product(uint, TrimNativeHeapInterval, 0, \
1969 "Interval, in ms, at which the JVM will trim the native heap if " \
1970 "the platform supports that. Lower values will reclaim memory " \
1971 "more eagerly at the cost of higher overhead. A value of 0 " \
1972 "(default) disables native heap trimming.") \
1973 range(0, UINT_MAX) \
1974 \
1975 develop(bool, SimulateFullAddressSpace, false, \
1976 "Simulates a very populated, fragmented address space; no " \
1977 "targeted reservations will succeed.") \
1978 \
1979 product(bool, ProfileExceptionHandlers, true, \
1980 "Profile exception handlers") \
1981 \
1982 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
1983 "Unconditionally record nmethod dependencies on class " \
1984 "rewriting/transformation independently of the JVMTI " \
1985 "can_{retransform/redefine}_classes capabilities.") \
1986 \
1987 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
1988 "Use secondary supers cache during subtype checks.") \
1989 \
1990 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
1991 "Use hash table to lookup secondary supers.") \
1992 \
1993 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
1994 "Check that linear and hashed secondary lookups return the same result.") \
1995 \
1996 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
1997 "Use a terrible hash function in order to generate many collisions.") \
1998 \
1999 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2000 "Use an extra lock during Thread start and exit to alleviate" \
2001 "contention on Threads_lock.") \
2002 \
2003 develop(uint, BinarySearchThreshold, 16, \
2004 "Minimal number of elements in a sorted collection to prefer" \
2005 "binary search over simple linear search." ) \
2006 \
2007 product(bool, UseClassMetaspaceForAllClasses, false, DIAGNOSTIC, \
2008 "Use the class metaspace for all classes including " \
2009 "abstract and interface classes.") \
2010
2011 // end of RUNTIME_FLAGS
2012
2013 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2014 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2015 DECLARE_FLAGS(RUNTIME_FLAGS)
2016 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2017
2018 #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 develop(bool, VerifyHeavyMonitors, false, \
1063 "Checks that no stack locking happens when using " \
1064 "-XX:LockingMode=0 (LM_MONITOR)") \
1148 product(bool, UseInterpreter, true, \
1149 "Use interpreter for non-compiled methods") \
1150 \
1151 develop(bool, UseFastSignatureHandlers, true, \
1152 "Use fast signature handlers for native calls") \
1153 \
1154 product(bool, UseLoopCounter, true, \
1155 "Increment invocation counter on backward branch") \
1156 \
1157 product_pd(bool, UseOnStackReplacement, \
1158 "Use on stack replacement, calls runtime if invoc. counter " \
1159 "overflows in loop") \
1160 \
1161 develop(bool, TraceOnStackReplacement, false, \
1162 "Trace on stack replacement") \
1163 \
1164 product_pd(bool, PreferInterpreterNativeStubs, \
1165 "Use always interpreter stubs for native methods invoked via " \
1166 "interpreter") \
1167 \
1168 product(bool, CountBytecodes, false, DIAGNOSTIC, \
1169 "Count number of bytecodes executed") \
1170 \
1171 product(bool, CountBytecodesPerThread, false, DIAGNOSTIC, \
1172 "Count number of bytecodes executed per thread") \
1173 \
1174 product(bool, PrintBytecodeHistogram, false, DIAGNOSTIC, \
1175 "Print histogram of the executed bytecodes") \
1176 \
1177 product(double, PrintBytecodeHistogramCutoff, 0.01, \
1178 "Print cutoff for histogram of the executed bytecodes") \
1179 range(0.0, 100.0) \
1180 \
1181 develop(bool, PrintBytecodePairHistogram, false, \
1182 "Print histogram of the executed bytecode pairs") \
1183 \
1184 product(bool, PrintSignatureHandlers, false, DIAGNOSTIC, \
1185 "Print code generated for native method signature handlers") \
1186 \
1187 develop(bool, VerifyOops, false, \
1188 "Do plausibility checks for oops") \
1189 \
1190 develop(bool, CheckUnhandledOops, false, \
1191 "Check for unhandled oops in VM code") \
1192 \
1193 develop(bool, VerifyJNIFields, trueInDebug, \
1194 "Verify jfieldIDs for instance fields") \
1195 \
1196 develop(bool, VerifyActivationFrameSize, false, \
1197 "Verify that activation frame didn't become smaller than its " \
1198 "minimal size") \
1199 \
1200 develop(bool, TraceFrequencyInlining, false, \
1201 "Trace frequency based inlining") \
1202 \
1203 develop_pd(bool, InlineIntrinsics, \
1204 "Use intrinsics in Interpreter that can be statically resolved") \
1205 \
1206 product_pd(bool, ProfileInterpreter, \
1207 "Profile at the bytecode level during interpretation") \
1208 \
1209 develop_pd(bool, ProfileTraps, \
1210 "Profile deoptimization traps at the bytecode level") \
1211 \
1212 product(intx, ProfileMaturityPercentage, 20, \
1213 "number of method invocations/branches (expressed as % of " \
1214 "CompileThreshold) before using the method's profile") \
1215 range(0, 100) \
1216 \
1217 product(bool, ForceProfiling, false, DIAGNOSTIC, \
1218 "Eagerly allocate MDOs") \
1219 \
1220 product(bool, PrintMethodData, false, DIAGNOSTIC, \
1221 "Print the results of +ProfileInterpreter at end of run") \
1222 \
1223 develop(bool, VerifyDataPointer, trueInDebug, \
1224 "Verify the method data pointer during interpreter profiling") \
1225 \
1226 develop(bool, CrashGCForDumpingJavaThread, false, \
1227 "Manually make GC thread crash then dump java stack trace; " \
1228 "Test only") \
1229 \
1230 /* compilation */ \
1231 product(bool, UseCompiler, true, \
1232 "Use Just-In-Time compilation") \
1233 \
1234 product(bool, AlwaysCompileLoopMethods, false, \
1235 "When using recompilation, never interpret methods " \
1236 "containing loops") \
1237 \
1238 product(int, AllocatePrefetchStyle, 1, \
1239 "0 = no prefetch, " \
1736 develop(bool, EnableJVMTIStackDepthAsserts, true, \
1737 "Enable JVMTI asserts related to stack depth checks") \
1738 \
1739 /* flags for performance data collection */ \
1740 \
1741 product(bool, UsePerfData, true, \
1742 "Flag to disable jvmstat instrumentation for performance testing "\
1743 "and problem isolation purposes") \
1744 \
1745 product(bool, PerfDataSaveToFile, false, \
1746 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1747 \
1748 product(ccstr, PerfDataSaveFile, nullptr, \
1749 "Save PerfData memory to the specified absolute pathname. " \
1750 "The string %p in the file name (if present) " \
1751 "will be replaced by pid") \
1752 \
1753 product(bool, PerfDisableSharedMem, false, \
1754 "Store performance data in standard memory") \
1755 \
1756 product(int, PerfDataMemorySize, 64*K, \
1757 "Size of performance data memory region. Will be rounded " \
1758 "up to a multiple of the native os page size.") \
1759 range(128, 32*64*K) \
1760 \
1761 product(int, PerfMaxStringConstLength, 1024, \
1762 "Maximum PerfStringConstant string length before truncation") \
1763 range(32, 32*K) \
1764 \
1765 product(bool, PerfAllowAtExitRegistration, false, \
1766 "Allow registration of atexit() methods") \
1767 \
1768 product(bool, PerfBypassFileSystemCheck, false, \
1769 "Bypass Win32 file system criteria checks (Windows Only)") \
1770 \
1771 product(int, UnguardOnExecutionViolation, 0, \
1772 "Unguard page and retry on no-execute fault (Win32 only) " \
1773 "0=off, 1=conservative, 2=aggressive") \
1774 range(0, 2) \
1775 \
1776 /* Serviceability Support */ \
1976 "fence. Add cleanliness checks.") \
1977 \
1978 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1979 "With Lightweight Locking mode, use a table to record inflated " \
1980 "monitors rather than the first word of the object.") \
1981 \
1982 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1983 "Specifies the number of times lightweight fast locking will " \
1984 "attempt to CAS the markWord before inflating. Between each " \
1985 "CAS it will spin for exponentially more time, resulting in " \
1986 "a total number of spins on the order of O(2^value)") \
1987 range(1, 30) \
1988 \
1989 product(uint, TrimNativeHeapInterval, 0, \
1990 "Interval, in ms, at which the JVM will trim the native heap if " \
1991 "the platform supports that. Lower values will reclaim memory " \
1992 "more eagerly at the cost of higher overhead. A value of 0 " \
1993 "(default) disables native heap trimming.") \
1994 range(0, UINT_MAX) \
1995 \
1996 product(bool, ProfileVMLocks, false, DIAGNOSTIC, \
1997 "Profile VM locks usage on main thread") \
1998 \
1999 product(bool, ProfileVMCalls, false, DIAGNOSTIC, \
2000 "Profile VM calls on main thread") \
2001 \
2002 product(bool, ProfileVMOps, true, DIAGNOSTIC, \
2003 "Profile VM operations on main thread") \
2004 \
2005 product(bool, ProfileRuntimeCalls, false, DIAGNOSTIC, \
2006 "Profile calls into VM runtime on main thread") \
2007 \
2008 develop(bool, SimulateFullAddressSpace, false, \
2009 "Simulates a very populated, fragmented address space; no " \
2010 "targeted reservations will succeed.") \
2011 \
2012 product(bool, ProfileExceptionHandlers, true, \
2013 "Profile exception handlers") \
2014 \
2015 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
2016 "Unconditionally record nmethod dependencies on class " \
2017 "rewriting/transformation independently of the JVMTI " \
2018 "can_{retransform/redefine}_classes capabilities.") \
2019 \
2020 product(bool, TraceThreadTime, false, \
2021 "Enable tracing of thread time in Perf counters") \
2022 \
2023 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
2024 "Use secondary supers cache during subtype checks.") \
2025 \
2026 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
2027 "Use hash table to lookup secondary supers.") \
2028 \
2029 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2030 "Check that linear and hashed secondary lookups return the same result.") \
2031 \
2032 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2033 "Use a terrible hash function in order to generate many collisions.") \
2034 \
2035 develop(bool, TestAdapterLinkFailure, false, \
2036 "Test failure of adapter linking when loading from AOT cache.") \
2037 \
2038 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2039 "Use an extra lock during Thread start and exit to alleviate" \
2040 "contention on Threads_lock.") \
2041 \
2042 develop(uint, BinarySearchThreshold, 16, \
2043 "Minimal number of elements in a sorted collection to prefer" \
2044 "binary search over simple linear search." ) \
2045 \
2046 product(bool, UseClassMetaspaceForAllClasses, false, DIAGNOSTIC, \
2047 "Use the class metaspace for all classes including " \
2048 "abstract and interface classes.") \
2049
2050
2051 // end of RUNTIME_FLAGS
2052
2053 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2054 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2055 DECLARE_FLAGS(RUNTIME_FLAGS)
2056 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2057
2058 #endif // SHARE_RUNTIME_GLOBALS_HPP
|