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