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 "(Deprecated) 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, \
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;
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 " \
1013 "Print all VM flags after argument and ergonomic processing") \
1014 \
1015 develop(bool, PrintFlagsWithComments, false, \
1016 "Print all VM flags with default values and descriptions and " \
1017 "exit") \
1018 \
1019 product(bool, PrintFlagsRanges, false, \
1020 "Print VM flags and their ranges") \
1021 \
1022 product(bool, SerializeVMOutput, true, DIAGNOSTIC, \
1023 "Use a mutex to serialize output to tty and LogFile") \
1024 \
1025 product(bool, DisplayVMOutput, true, DIAGNOSTIC, \
1026 "Display all VM output on the tty, independently of LogVMOutput") \
1027 \
1028 product(bool, LogVMOutput, false, DIAGNOSTIC, \
1029 "Save VM output to LogFile") \
1030 \
1031 product(ccstr, LogFile, nullptr, DIAGNOSTIC, \
1032 "If LogVMOutput or LogCompilation is on, save VM output to " \
1033 "this file [default: ./hotspot_pid%p.log] (%p replaced with pid)")\
1034 \
1035 product(ccstr, ErrorFile, nullptr, \
1036 "If an error occurs, save the error data to this file " \
1037 "[default: ./hs_err_pid%p.log] (%p replaced with pid)") \
1038 \
1039 product(bool, ExtensiveErrorReports, \
1040 PRODUCT_ONLY(false) NOT_PRODUCT(true), \
1041 "Error reports are more extensive.") \
1042 \
1043 product(bool, DisplayVMOutputToStderr, false, \
1044 "If DisplayVMOutput is true, display all VM output to stderr") \
1045 \
1046 product(bool, DisplayVMOutputToStdout, false, \
1047 "If DisplayVMOutput is true, display all VM output to stdout") \
1048 \
1049 product(bool, ErrorFileToStderr, false, \
1050 "If true, error data is printed to stderr instead of a file") \
1051 \
1052 product(bool, ErrorFileToStdout, false, \
1053 "If true, error data is printed to stdout instead of a file") \
1054 \
1055 develop(bool, VerifyHeavyMonitors, false, \
1056 "Checks that no stack locking happens when using " \
1057 "-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, " \
1714 develop(bool, EnableJVMTIStackDepthAsserts, true, \
1715 "Enable JVMTI asserts related to stack depth checks") \
1716 \
1717 /* flags for performance data collection */ \
1718 \
1719 product(bool, UsePerfData, true, \
1720 "Flag to disable jvmstat instrumentation for performance testing "\
1721 "and problem isolation purposes") \
1722 \
1723 product(bool, PerfDataSaveToFile, false, \
1724 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1725 \
1726 product(ccstr, PerfDataSaveFile, nullptr, \
1727 "Save PerfData memory to the specified absolute pathname. " \
1728 "The string %p in the file name (if present) " \
1729 "will be replaced by pid") \
1730 \
1731 product(bool, PerfDisableSharedMem, false, \
1732 "Store performance data in standard memory") \
1733 \
1734 product(int, PerfDataMemorySize, 32*K, \
1735 "Size of performance data memory region. Will be rounded " \
1736 "up to a multiple of the native os page size.") \
1737 range(128, 32*64*K) \
1738 \
1739 product(int, PerfMaxStringConstLength, 1024, \
1740 "Maximum PerfStringConstant string length before truncation") \
1741 range(32, 32*K) \
1742 \
1743 product(bool, PerfAllowAtExitRegistration, false, \
1744 "Allow registration of atexit() methods") \
1745 \
1746 product(bool, PerfBypassFileSystemCheck, false, \
1747 "Bypass Win32 file system criteria checks (Windows Only)") \
1748 \
1749 product(int, UnguardOnExecutionViolation, 0, \
1750 "Unguard page and retry on no-execute fault (Win32 only) " \
1751 "0=off, 1=conservative, 2=aggressive") \
1752 range(0, 2) \
1753 \
1754 /* Serviceability Support */ \
1961 range(0, 2) \
1962 \
1963 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1964 "With Lightweight Locking mode, use a table to record inflated " \
1965 "monitors rather than the first word of the object.") \
1966 \
1967 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1968 "Specifies the number of times lightweight fast locking will " \
1969 "attempt to CAS the markWord before inflating. Between each " \
1970 "CAS it will spin for exponentially more time, resulting in " \
1971 "a total number of spins on the order of O(2^value)") \
1972 range(1, 30) \
1973 \
1974 product(uint, TrimNativeHeapInterval, 0, \
1975 "Interval, in ms, at which the JVM will trim the native heap if " \
1976 "the platform supports that. Lower values will reclaim memory " \
1977 "more eagerly at the cost of higher overhead. A value of 0 " \
1978 "(default) disables native heap trimming.") \
1979 range(0, UINT_MAX) \
1980 \
1981 develop(bool, SimulateFullAddressSpace, false, \
1982 "Simulates a very populated, fragmented address space; no " \
1983 "targeted reservations will succeed.") \
1984 \
1985 product(bool, ProfileExceptionHandlers, true, \
1986 "Profile exception handlers") \
1987 \
1988 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
1989 "Unconditionally record nmethod dependencies on class " \
1990 "rewriting/transformation independently of the JVMTI " \
1991 "can_{retransform/redefine}_classes capabilities.") \
1992 \
1993 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
1994 "Use secondary supers cache during subtype checks.") \
1995 \
1996 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
1997 "Use hash table to lookup secondary supers.") \
1998 \
1999 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2000 "Check that linear and hashed secondary lookups return the same result.") \
2001 \
2002 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2003 "Use a terrible hash function in order to generate many collisions.") \
2004 \
2005 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2006 "Use an extra lock during Thread start and exit to alleviate" \
2007 "contention on Threads_lock.") \
2008
2009 // end of RUNTIME_FLAGS
2010
2011 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2012 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2013 DECLARE_FLAGS(RUNTIME_FLAGS)
2014 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2015
2016 #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 "(Deprecated) 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, \
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;
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 " \
1024 "Print all VM flags after argument and ergonomic processing") \
1025 \
1026 develop(bool, PrintFlagsWithComments, false, \
1027 "Print all VM flags with default values and descriptions and " \
1028 "exit") \
1029 \
1030 product(bool, PrintFlagsRanges, false, \
1031 "Print VM flags and their ranges") \
1032 \
1033 product(bool, SerializeVMOutput, true, DIAGNOSTIC, \
1034 "Use a mutex to serialize output to tty and LogFile") \
1035 \
1036 product(bool, DisplayVMOutput, true, DIAGNOSTIC, \
1037 "Display all VM output on the tty, independently of LogVMOutput") \
1038 \
1039 product(bool, LogVMOutput, false, DIAGNOSTIC, \
1040 "Save VM output to LogFile") \
1041 \
1042 product(ccstr, LogFile, nullptr, DIAGNOSTIC, \
1043 "If LogVMOutput or LogCompilation is on, save VM output to " \
1044 "this file [default: ./hotspot_%p.log] (%p replaced with pidNNN)")\
1045 \
1046 product(ccstr, ErrorFile, nullptr, \
1047 "If an error occurs, save the error data to this file " \
1048 "[default: ./hs_err_%p.log] (%p replaced with pidNNN)") \
1049 \
1050 product(bool, ExtensiveErrorReports, \
1051 PRODUCT_ONLY(false) NOT_PRODUCT(true), \
1052 "Error reports are more extensive.") \
1053 \
1054 product(bool, DisplayVMOutputToStderr, false, \
1055 "If DisplayVMOutput is true, display all VM output to stderr") \
1056 \
1057 product(bool, DisplayVMOutputToStdout, false, \
1058 "If DisplayVMOutput is true, display all VM output to stdout") \
1059 \
1060 product(bool, ErrorFileToStderr, false, \
1061 "If true, error data is printed to stderr instead of a file") \
1062 \
1063 product(bool, ErrorFileToStdout, false, \
1064 "If true, error data is printed to stdout instead of a file") \
1065 \
1066 develop(bool, VerifyHeavyMonitors, false, \
1067 "Checks that no stack locking happens when using " \
1068 "-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, " \
1735 develop(bool, EnableJVMTIStackDepthAsserts, true, \
1736 "Enable JVMTI asserts related to stack depth checks") \
1737 \
1738 /* flags for performance data collection */ \
1739 \
1740 product(bool, UsePerfData, true, \
1741 "Flag to disable jvmstat instrumentation for performance testing "\
1742 "and problem isolation purposes") \
1743 \
1744 product(bool, PerfDataSaveToFile, false, \
1745 "Save PerfData memory to hsperfdata_<pid> file on exit") \
1746 \
1747 product(ccstr, PerfDataSaveFile, nullptr, \
1748 "Save PerfData memory to the specified absolute pathname. " \
1749 "The string %p in the file name (if present) " \
1750 "will be replaced by pid") \
1751 \
1752 product(bool, PerfDisableSharedMem, false, \
1753 "Store performance data in standard memory") \
1754 \
1755 product(int, PerfDataMemorySize, 64*K, \
1756 "Size of performance data memory region. Will be rounded " \
1757 "up to a multiple of the native os page size.") \
1758 range(128, 32*64*K) \
1759 \
1760 product(int, PerfMaxStringConstLength, 1024, \
1761 "Maximum PerfStringConstant string length before truncation") \
1762 range(32, 32*K) \
1763 \
1764 product(bool, PerfAllowAtExitRegistration, false, \
1765 "Allow registration of atexit() methods") \
1766 \
1767 product(bool, PerfBypassFileSystemCheck, false, \
1768 "Bypass Win32 file system criteria checks (Windows Only)") \
1769 \
1770 product(int, UnguardOnExecutionViolation, 0, \
1771 "Unguard page and retry on no-execute fault (Win32 only) " \
1772 "0=off, 1=conservative, 2=aggressive") \
1773 range(0, 2) \
1774 \
1775 /* Serviceability Support */ \
1982 range(0, 2) \
1983 \
1984 product(bool, UseObjectMonitorTable, false, DIAGNOSTIC, \
1985 "With Lightweight Locking mode, use a table to record inflated " \
1986 "monitors rather than the first word of the object.") \
1987 \
1988 product(int, LightweightFastLockingSpins, 13, DIAGNOSTIC, \
1989 "Specifies the number of times lightweight fast locking will " \
1990 "attempt to CAS the markWord before inflating. Between each " \
1991 "CAS it will spin for exponentially more time, resulting in " \
1992 "a total number of spins on the order of O(2^value)") \
1993 range(1, 30) \
1994 \
1995 product(uint, TrimNativeHeapInterval, 0, \
1996 "Interval, in ms, at which the JVM will trim the native heap if " \
1997 "the platform supports that. Lower values will reclaim memory " \
1998 "more eagerly at the cost of higher overhead. A value of 0 " \
1999 "(default) disables native heap trimming.") \
2000 range(0, UINT_MAX) \
2001 \
2002 product(bool, ProfileVMLocks, false, DIAGNOSTIC, \
2003 "Profile VM locks usage on main thread") \
2004 \
2005 product(bool, ProfileVMCalls, false, DIAGNOSTIC, \
2006 "Profile VM calls on main thread") \
2007 \
2008 product(bool, ProfileVMOps, true, DIAGNOSTIC, \
2009 "Profile VM operations on main thread") \
2010 \
2011 product(bool, ProfileRuntimeCalls, false, DIAGNOSTIC, \
2012 "Profile calls into VM runtime on main thread") \
2013 \
2014 develop(bool, SimulateFullAddressSpace, false, \
2015 "Simulates a very populated, fragmented address space; no " \
2016 "targeted reservations will succeed.") \
2017 \
2018 product(bool, ProfileExceptionHandlers, true, \
2019 "Profile exception handlers") \
2020 \
2021 product(bool, AlwaysRecordEvolDependencies, true, EXPERIMENTAL, \
2022 "Unconditionally record nmethod dependencies on class " \
2023 "rewriting/transformation independently of the JVMTI " \
2024 "can_{retransform/redefine}_classes capabilities.") \
2025 \
2026 product(bool, TraceThreadTime, false, \
2027 "Enable tracing of thread time in Perf counters") \
2028 \
2029 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
2030 "Use secondary supers cache during subtype checks.") \
2031 \
2032 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
2033 "Use hash table to lookup secondary supers.") \
2034 \
2035 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2036 "Check that linear and hashed secondary lookups return the same result.") \
2037 \
2038 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2039 "Use a terrible hash function in order to generate many collisions.") \
2040 \
2041 develop(bool, TestAdapterLinkFailure, false, \
2042 "Test failure of adapter linking when loading from AOT cache.") \
2043 \
2044 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2045 "Use an extra lock during Thread start and exit to alleviate" \
2046 "contention on Threads_lock.") \
2047
2048
2049 // end of RUNTIME_FLAGS
2050
2051 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2052 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2053 DECLARE_FLAGS(RUNTIME_FLAGS)
2054 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2055
2056 #endif // SHARE_RUNTIME_GLOBALS_HPP
|