< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

 781           "Verify all arguments to JNI calls")                              \
 782                                                                             \
 783   product(bool, UseFastJNIAccessors, true,                                  \
 784           "Use optimized versions of Get<Primitive>Field")                  \
 785                                                                             \
 786   product(intx, MaxJNILocalCapacity, 65536,                                 \
 787           "Maximum allowable local JNI handle capacity to "                 \
 788           "EnsureLocalCapacity() and PushLocalFrame(), "                    \
 789           "where <= 0 is unlimited, default: 65536")                        \
 790           range(min_intx, max_intx)                                         \
 791                                                                             \
 792   product(bool, EagerXrunInit, false,                                       \
 793           "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
 794           "but not all -Xrun libraries may support the state of the VM "    \
 795           "at this time")                                                   \
 796                                                                             \
 797   develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
 798           "Number of OutOfMemoryErrors preallocated with backtrace")        \
 799           range(0, 1024)                                                    \
 800                                                                             \
 801   develop(bool, PrintFieldLayout, false,                                    \
 802           "Print field layout for each class")                              \
 803                                                                             \


































 804   /* Need to limit the extent of the padding to reasonable size.          */\
 805   /* 8K is well beyond the reasonable HW cache line size, even with       */\
 806   /* aggressive prefetching, while still leaving the room for segregating */\
 807   /* among the distinct pages.                                            */\
 808   product(int, ContendedPaddingWidth, 128,                                  \
 809           "How many bytes to pad the fields/classes marked @Contended with")\
 810           range(0, 8192)                                                    \
 811           constraint(ContendedPaddingWidthConstraintFunc,AfterErgo)         \
 812                                                                             \
 813   product(bool, EnableContended, true,                                      \
 814           "Enable @Contended annotation support")                           \
 815                                                                             \
 816   product(bool, RestrictContended, true,                                    \
 817           "Restrict @Contended to trusted classes")                         \
 818                                                                             \
 819   product(int, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC,              \
 820              "Detect and take action upon identifying synchronization on "  \
 821              "value based classes. Modes: "                                 \
 822              "0: off; "                                                     \
 823              "1: exit with fatal error; "                                   \

1737           "Create JMX Management Server")                                   \
1738                                                                             \
1739   product(bool, DisableAttachMechanism, false,                              \
1740           "Disable mechanism that allows tools to attach to this VM")       \
1741                                                                             \
1742   product(bool, StartAttachListener, false,                                 \
1743           "Always start Attach Listener at VM startup")                     \
1744                                                                             \
1745   product(bool, EnableDynamicAgentLoading, true,                            \
1746           "Allow tools to load agents with the attach mechanism")           \
1747                                                                             \
1748   product(bool, PrintConcurrentLocks, false, MANAGEABLE,                    \
1749           "Print java.util.concurrent locks in thread dump")                \
1750                                                                             \
1751   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1752           "Print generated stub code for method handles")                   \
1753                                                                             \
1754   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1755           "perform extra checks when constructing method handles")          \
1756                                                                             \



1757   product(bool, ShowHiddenFrames, false, DIAGNOSTIC,                        \
1758           "show method handle implementation frames (usually hidden)")      \
1759                                                                             \
1760   product(bool, ShowCarrierFrames, false, DIAGNOSTIC,                       \
1761           "show virtual threads' carrier frames in exceptions")             \
1762                                                                             \
1763   product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL,             \
1764           "trust final non-static declarations for constant folding")       \
1765                                                                             \
1766   product(bool, FoldStableValues, true, DIAGNOSTIC,                         \
1767           "Optimize loads from stable fields (marked w/ @Stable)")          \
1768                                                                             \
1769   product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC,                         \
1770           "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1771           "resolved before the bootstrap method is called; 1: when a BSM "  \
1772           "that may accept a BootstrapCallInfo is detected, use that API "  \
1773           "to pass BSM arguments, which allows the BSM to delay their "     \
1774           "resolution; 2+: stress test the BCI API by calling more BSMs "   \
1775           "via that API, instead of with the eagerly-resolved array.")      \
1776                                                                             \

1908           "On internal errors, include registers in error report.")         \
1909                                                                             \
1910   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
1911           "leverage profiling for table/lookup switch")                     \
1912                                                                             \
1913   develop(bool, TraceMemoryWriteback, false,                                \
1914           "Trace memory writeback operations")                              \
1915                                                                             \
1916   JFR_ONLY(product(bool, FlightRecorder, false,                             \
1917           "(Deprecated) Enable Flight Recorder"))                           \
1918                                                                             \
1919   JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr,                   \
1920           "Flight Recorder options"))                                       \
1921                                                                             \
1922   JFR_ONLY(product(ccstr, StartFlightRecording, nullptr,                    \
1923           "Start flight recording with options"))                           \
1924                                                                             \
1925   product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL,            \
1926           "Use platform unstable time where supported for timestamps only") \
1927                                                                             \

















1928   product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC,           \
1929                 "Make nmethod barriers deoptimise a lot.")                  \
1930                                                                             \
1931   develop(bool, VerifyCrossModifyFence,                                     \
1932           false AARCH64_ONLY(DEBUG_ONLY(||true)),                           \
1933              "Mark all threads after a safepoint, and clear on a modify "   \
1934              "fence. Add cleanliness checks.")                              \
1935                                                                             \
1936   product(bool, UseObjectMonitorTable, true, DIAGNOSTIC,                    \
1937           "Use a table to record inflated monitors rather than the first "  \
1938           "word of the object.")                                            \
1939                                                                             \
1940   product(int, FastLockingSpins, 13, DIAGNOSTIC,                            \
1941           "Specifies the number of times fast locking will attempt to "     \
1942           "CAS the markWord before inflating. Between each CAS it will "    \
1943           "spin for exponentially more time, resulting in a total number "  \
1944           "of spins on the order of O(2^value)")                            \
1945           range(1, 30)                                                      \
1946                                                                             \
1947   product(uint, TrimNativeHeapInterval, 0,                                  \

1965                                                                             \
1966   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
1967                 "Use secondary supers cache during subtype checks.")        \
1968                                                                             \
1969   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
1970                 "Use hash table to lookup secondary supers.")               \
1971                                                                             \
1972   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
1973           "Check that linear and hashed secondary lookups return the same result.") \
1974                                                                             \
1975   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
1976           "Use a terrible hash function in order to generate many collisions.") \
1977                                                                             \
1978   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
1979           "Use an extra lock during Thread start and exit to alleviate"     \
1980           "contention on Threads_lock.")                                    \
1981                                                                             \
1982   develop(uint, BinarySearchThreshold, 16,                                  \
1983           "Minimal number of elements in a sorted collection to prefer"     \
1984           "binary search over simple linear search." )                      \
1985                                                                             \
1986 
1987 // end of RUNTIME_FLAGS
1988 
1989 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
1990 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
1991 DECLARE_FLAGS(RUNTIME_FLAGS)
1992 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
1993 
1994 #endif // SHARE_RUNTIME_GLOBALS_HPP

 781           "Verify all arguments to JNI calls")                              \
 782                                                                             \
 783   product(bool, UseFastJNIAccessors, true,                                  \
 784           "Use optimized versions of Get<Primitive>Field")                  \
 785                                                                             \
 786   product(intx, MaxJNILocalCapacity, 65536,                                 \
 787           "Maximum allowable local JNI handle capacity to "                 \
 788           "EnsureLocalCapacity() and PushLocalFrame(), "                    \
 789           "where <= 0 is unlimited, default: 65536")                        \
 790           range(min_intx, max_intx)                                         \
 791                                                                             \
 792   product(bool, EagerXrunInit, false,                                       \
 793           "Eagerly initialize -Xrun libraries; allows startup profiling, "  \
 794           "but not all -Xrun libraries may support the state of the VM "    \
 795           "at this time")                                                   \
 796                                                                             \
 797   develop(uintx, PreallocatedOutOfMemoryErrorCount, 4,                      \
 798           "Number of OutOfMemoryErrors preallocated with backtrace")        \
 799           range(0, 1024)                                                    \
 800                                                                             \
 801   product(bool, PrintFieldLayout, false, DIAGNOSTIC,                        \
 802           "Print field layout for each class")                              \
 803                                                                             \
 804   product(bool, PrintInlineLayout, false, DIAGNOSTIC,                       \
 805           "Print field layout for each value class or class containing "    \
 806           "inlined value fields")                                           \
 807                                                                             \
 808   product(bool, PrintFlatArrayLayout, false, DIAGNOSTIC,                    \
 809           "Print array layout for each flattened value array")              \
 810                                                                             \
 811   product(bool, UseArrayFlattening, true, DIAGNOSTIC,                       \
 812           "Allow the JVM to flatten arrays of concrete value objects "      \
 813           "when it determines it is possible and beneficial to do so")      \
 814                                                                             \
 815   product(bool, UseFieldFlattening, true, DIAGNOSTIC,                       \
 816           "Allow the JVM to inline the fields of concrete value objects "   \
 817           "when it determines it is possible and beneficial to do so")      \
 818                                                                             \
 819   product(bool, UseNullableAtomicValueFlattening, true, DIAGNOSTIC,         \
 820           "Allow the JVM to flatten some nullable atomic values")           \
 821                                                                             \
 822   product(bool, UseNullFreeNonAtomicValueFlattening, true, EXPERIMENTAL,    \
 823           "Allow the JVM to flatten some null-free non-atomic values")      \
 824                                                                             \
 825   product(bool, UseNullFreeAtomicValueFlattening, true, EXPERIMENTAL,       \
 826           "Allow the JVM to flatten some null-free atomic values")          \
 827                                                                             \
 828   product(bool, UseNullableNonAtomicValueFlattening, true, DIAGNOSTIC,      \
 829           "Allow the JVM to flatten some strict final non-static fields")   \
 830                                                                             \
 831   product(intx, FlatArrayElementMaxOops, 4, DIAGNOSTIC,                     \
 832           "Max number of embedded object references in a value container "  \
 833           "before no flattening attempts are made, <0 indicates no limit")  \
 834                                                                             \
 835   develop(ccstrlist, PrintInlineKlassFields, "",                            \
 836           "Print fields collected by InlineKlass::collect_fields")          \
 837                                                                             \
 838   /* Need to limit the extent of the padding to reasonable size.          */\
 839   /* 8K is well beyond the reasonable HW cache line size, even with       */\
 840   /* aggressive prefetching, while still leaving the room for segregating */\
 841   /* among the distinct pages.                                            */\
 842   product(int, ContendedPaddingWidth, 128,                                  \
 843           "How many bytes to pad the fields/classes marked @Contended with")\
 844           range(0, 8192)                                                    \
 845           constraint(ContendedPaddingWidthConstraintFunc,AfterErgo)         \
 846                                                                             \
 847   product(bool, EnableContended, true,                                      \
 848           "Enable @Contended annotation support")                           \
 849                                                                             \
 850   product(bool, RestrictContended, true,                                    \
 851           "Restrict @Contended to trusted classes")                         \
 852                                                                             \
 853   product(int, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC,              \
 854              "Detect and take action upon identifying synchronization on "  \
 855              "value based classes. Modes: "                                 \
 856              "0: off; "                                                     \
 857              "1: exit with fatal error; "                                   \

1771           "Create JMX Management Server")                                   \
1772                                                                             \
1773   product(bool, DisableAttachMechanism, false,                              \
1774           "Disable mechanism that allows tools to attach to this VM")       \
1775                                                                             \
1776   product(bool, StartAttachListener, false,                                 \
1777           "Always start Attach Listener at VM startup")                     \
1778                                                                             \
1779   product(bool, EnableDynamicAgentLoading, true,                            \
1780           "Allow tools to load agents with the attach mechanism")           \
1781                                                                             \
1782   product(bool, PrintConcurrentLocks, false, MANAGEABLE,                    \
1783           "Print java.util.concurrent locks in thread dump")                \
1784                                                                             \
1785   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1786           "Print generated stub code for method handles")                   \
1787                                                                             \
1788   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1789           "perform extra checks when constructing method handles")          \
1790                                                                             \
1791   product(bool, IgnoreAssertUnsetFields, false, DIAGNOSTIC,                           \
1792           "Ignore assert_unset_fields")                                     \
1793                                                                             \
1794   product(bool, ShowHiddenFrames, false, DIAGNOSTIC,                        \
1795           "show method handle implementation frames (usually hidden)")      \
1796                                                                             \
1797   product(bool, ShowCarrierFrames, false, DIAGNOSTIC,                       \
1798           "show virtual threads' carrier frames in exceptions")             \
1799                                                                             \
1800   product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL,             \
1801           "trust final non-static declarations for constant folding")       \
1802                                                                             \
1803   product(bool, FoldStableValues, true, DIAGNOSTIC,                         \
1804           "Optimize loads from stable fields (marked w/ @Stable)")          \
1805                                                                             \
1806   product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC,                         \
1807           "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1808           "resolved before the bootstrap method is called; 1: when a BSM "  \
1809           "that may accept a BootstrapCallInfo is detected, use that API "  \
1810           "to pass BSM arguments, which allows the BSM to delay their "     \
1811           "resolution; 2+: stress test the BCI API by calling more BSMs "   \
1812           "via that API, instead of with the eagerly-resolved array.")      \
1813                                                                             \

1945           "On internal errors, include registers in error report.")         \
1946                                                                             \
1947   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
1948           "leverage profiling for table/lookup switch")                     \
1949                                                                             \
1950   develop(bool, TraceMemoryWriteback, false,                                \
1951           "Trace memory writeback operations")                              \
1952                                                                             \
1953   JFR_ONLY(product(bool, FlightRecorder, false,                             \
1954           "(Deprecated) Enable Flight Recorder"))                           \
1955                                                                             \
1956   JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr,                   \
1957           "Flight Recorder options"))                                       \
1958                                                                             \
1959   JFR_ONLY(product(ccstr, StartFlightRecording, nullptr,                    \
1960           "Start flight recording with options"))                           \
1961                                                                             \
1962   product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL,            \
1963           "Use platform unstable time where supported for timestamps only") \
1964                                                                             \
1965   product_pd(bool, InlineTypePassFieldsAsArgs, DIAGNOSTIC,                  \
1966           "Pass each inline type field as an argument at calls")            \
1967                                                                             \
1968   product_pd(bool, InlineTypeReturnedAsFields, DIAGNOSTIC,                  \
1969           "Return fields instead of an inline type reference")              \
1970                                                                             \
1971   develop(bool, StressCallingConvention, false,                             \
1972           "Stress the scalarized calling convention.")                      \
1973                                                                             \
1974   develop(bool, PreloadClasses, true,                                       \
1975           "Preloading all classes from the LoadableDescriptors attribute")  \
1976                                                                             \
1977   product(ccstrlist, ForceNonTearable, "", DIAGNOSTIC,                      \
1978           "List of inline classes which are forced to be atomic "           \
1979           "(whitespace and commas separate names, "                         \
1980           "and leading and trailing stars '*' are wildcards)")              \
1981                                                                             \
1982   product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC,           \
1983                 "Make nmethod barriers deoptimise a lot.")                  \
1984                                                                             \
1985   develop(bool, VerifyCrossModifyFence,                                     \
1986           false AARCH64_ONLY(DEBUG_ONLY(||true)),                           \
1987              "Mark all threads after a safepoint, and clear on a modify "   \
1988              "fence. Add cleanliness checks.")                              \
1989                                                                             \
1990   product(bool, UseObjectMonitorTable, true, DIAGNOSTIC,                    \
1991           "Use a table to record inflated monitors rather than the first "  \
1992           "word of the object.")                                            \
1993                                                                             \
1994   product(int, FastLockingSpins, 13, DIAGNOSTIC,                            \
1995           "Specifies the number of times fast locking will attempt to "     \
1996           "CAS the markWord before inflating. Between each CAS it will "    \
1997           "spin for exponentially more time, resulting in a total number "  \
1998           "of spins on the order of O(2^value)")                            \
1999           range(1, 30)                                                      \
2000                                                                             \
2001   product(uint, TrimNativeHeapInterval, 0,                                  \

2019                                                                             \
2020   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
2021                 "Use secondary supers cache during subtype checks.")        \
2022                                                                             \
2023   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
2024                 "Use hash table to lookup secondary supers.")               \
2025                                                                             \
2026   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
2027           "Check that linear and hashed secondary lookups return the same result.") \
2028                                                                             \
2029   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
2030           "Use a terrible hash function in order to generate many collisions.") \
2031                                                                             \
2032   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
2033           "Use an extra lock during Thread start and exit to alleviate"     \
2034           "contention on Threads_lock.")                                    \
2035                                                                             \
2036   develop(uint, BinarySearchThreshold, 16,                                  \
2037           "Minimal number of elements in a sorted collection to prefer"     \
2038           "binary search over simple linear search." )                      \

2039 
2040 // end of RUNTIME_FLAGS
2041 
2042 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2043 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2044 DECLARE_FLAGS(RUNTIME_FLAGS)
2045 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2046 
2047 #endif // SHARE_RUNTIME_GLOBALS_HPP
< prev index next >