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