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; " \
1733 "Create JMX Management Server") \
1734 \
1735 product(bool, DisableAttachMechanism, false, \
1736 "Disable mechanism that allows tools to attach to this VM") \
1737 \
1738 product(bool, StartAttachListener, false, \
1739 "Always start Attach Listener at VM startup") \
1740 \
1741 product(bool, EnableDynamicAgentLoading, true, \
1742 "Allow tools to load agents with the attach mechanism") \
1743 \
1744 product(bool, PrintConcurrentLocks, false, MANAGEABLE, \
1745 "Print java.util.concurrent locks in thread dump") \
1746 \
1747 product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC, \
1748 "Print generated stub code for method handles") \
1749 \
1750 product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC, \
1751 "perform extra checks when constructing method handles") \
1752 \
1753 product(bool, ShowHiddenFrames, false, DIAGNOSTIC, \
1754 "show method handle implementation frames (usually hidden)") \
1755 \
1756 product(bool, ShowCarrierFrames, false, DIAGNOSTIC, \
1757 "show virtual threads' carrier frames in exceptions") \
1758 \
1759 product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL, \
1760 "trust final non-static declarations for constant folding") \
1761 \
1762 product(bool, FoldStableValues, true, DIAGNOSTIC, \
1763 "Optimize loads from stable fields (marked w/ @Stable)") \
1764 \
1765 product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC, \
1766 "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1767 "resolved before the bootstrap method is called; 1: when a BSM " \
1768 "that may accept a BootstrapCallInfo is detected, use that API " \
1769 "to pass BSM arguments, which allows the BSM to delay their " \
1770 "resolution; 2+: stress test the BCI API by calling more BSMs " \
1771 "via that API, instead of with the eagerly-resolved array.") \
1772 \
1904 "On internal errors, include registers in error report.") \
1905 \
1906 product(bool, UseSwitchProfiling, true, DIAGNOSTIC, \
1907 "leverage profiling for table/lookup switch") \
1908 \
1909 develop(bool, TraceMemoryWriteback, false, \
1910 "Trace memory writeback operations") \
1911 \
1912 JFR_ONLY(product(bool, FlightRecorder, false, \
1913 "(Deprecated) Enable Flight Recorder")) \
1914 \
1915 JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr, \
1916 "Flight Recorder options")) \
1917 \
1918 JFR_ONLY(product(ccstr, StartFlightRecording, nullptr, \
1919 "Start flight recording with options")) \
1920 \
1921 product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL, \
1922 "Use platform unstable time where supported for timestamps only") \
1923 \
1924 product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC, \
1925 "Make nmethod barriers deoptimise a lot.") \
1926 \
1927 develop(bool, VerifyCrossModifyFence, \
1928 false AARCH64_ONLY(DEBUG_ONLY(||true)), \
1929 "Mark all threads after a safepoint, and clear on a modify " \
1930 "fence. Add cleanliness checks.") \
1931 \
1932 product(bool, UseObjectMonitorTable, true, DIAGNOSTIC, \
1933 "Use a table to record inflated monitors rather than the first " \
1934 "word of the object.") \
1935 \
1936 product(int, FastLockingSpins, 13, DIAGNOSTIC, \
1937 "Specifies the number of times fast locking will attempt to " \
1938 "CAS the markWord before inflating. Between each CAS it will " \
1939 "spin for exponentially more time, resulting in a total number " \
1940 "of spins on the order of O(2^value)") \
1941 range(1, 30) \
1942 \
1943 product(uint, TrimNativeHeapInterval, 0, \
1961 \
1962 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
1963 "Use secondary supers cache during subtype checks.") \
1964 \
1965 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
1966 "Use hash table to lookup secondary supers.") \
1967 \
1968 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
1969 "Check that linear and hashed secondary lookups return the same result.") \
1970 \
1971 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
1972 "Use a terrible hash function in order to generate many collisions.") \
1973 \
1974 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
1975 "Use an extra lock during Thread start and exit to alleviate" \
1976 "contention on Threads_lock.") \
1977 \
1978 develop(uint, BinarySearchThreshold, 16, \
1979 "Minimal number of elements in a sorted collection to prefer" \
1980 "binary search over simple linear search." ) \
1981 \
1982
1983 // end of RUNTIME_FLAGS
1984
1985 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
1986 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
1987 DECLARE_FLAGS(RUNTIME_FLAGS)
1988 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
1989
1990 #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; " \
1767 "Create JMX Management Server") \
1768 \
1769 product(bool, DisableAttachMechanism, false, \
1770 "Disable mechanism that allows tools to attach to this VM") \
1771 \
1772 product(bool, StartAttachListener, false, \
1773 "Always start Attach Listener at VM startup") \
1774 \
1775 product(bool, EnableDynamicAgentLoading, true, \
1776 "Allow tools to load agents with the attach mechanism") \
1777 \
1778 product(bool, PrintConcurrentLocks, false, MANAGEABLE, \
1779 "Print java.util.concurrent locks in thread dump") \
1780 \
1781 product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC, \
1782 "Print generated stub code for method handles") \
1783 \
1784 product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC, \
1785 "perform extra checks when constructing method handles") \
1786 \
1787 product(bool, IgnoreAssertUnsetFields, false, DIAGNOSTIC, \
1788 "Ignore assert_unset_fields") \
1789 \
1790 product(bool, ShowHiddenFrames, false, DIAGNOSTIC, \
1791 "show method handle implementation frames (usually hidden)") \
1792 \
1793 product(bool, ShowCarrierFrames, false, DIAGNOSTIC, \
1794 "show virtual threads' carrier frames in exceptions") \
1795 \
1796 product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL, \
1797 "trust final non-static declarations for constant folding") \
1798 \
1799 product(bool, FoldStableValues, true, DIAGNOSTIC, \
1800 "Optimize loads from stable fields (marked w/ @Stable)") \
1801 \
1802 product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC, \
1803 "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1804 "resolved before the bootstrap method is called; 1: when a BSM " \
1805 "that may accept a BootstrapCallInfo is detected, use that API " \
1806 "to pass BSM arguments, which allows the BSM to delay their " \
1807 "resolution; 2+: stress test the BCI API by calling more BSMs " \
1808 "via that API, instead of with the eagerly-resolved array.") \
1809 \
1941 "On internal errors, include registers in error report.") \
1942 \
1943 product(bool, UseSwitchProfiling, true, DIAGNOSTIC, \
1944 "leverage profiling for table/lookup switch") \
1945 \
1946 develop(bool, TraceMemoryWriteback, false, \
1947 "Trace memory writeback operations") \
1948 \
1949 JFR_ONLY(product(bool, FlightRecorder, false, \
1950 "(Deprecated) Enable Flight Recorder")) \
1951 \
1952 JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr, \
1953 "Flight Recorder options")) \
1954 \
1955 JFR_ONLY(product(ccstr, StartFlightRecording, nullptr, \
1956 "Start flight recording with options")) \
1957 \
1958 product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL, \
1959 "Use platform unstable time where supported for timestamps only") \
1960 \
1961 product_pd(bool, InlineTypePassFieldsAsArgs, DIAGNOSTIC, \
1962 "Pass each inline type field as an argument at calls") \
1963 \
1964 product_pd(bool, InlineTypeReturnedAsFields, DIAGNOSTIC, \
1965 "Return fields instead of an inline type reference") \
1966 \
1967 develop(bool, StressCallingConvention, false, \
1968 "Stress the scalarized calling convention.") \
1969 \
1970 develop(bool, PreloadClasses, true, \
1971 "Preloading all classes from the LoadableDescriptors attribute") \
1972 \
1973 product(ccstrlist, ForceNonTearable, "", DIAGNOSTIC, \
1974 "List of inline classes which are forced to be atomic " \
1975 "(whitespace and commas separate names, " \
1976 "and leading and trailing stars '*' are wildcards)") \
1977 \
1978 product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC, \
1979 "Make nmethod barriers deoptimise a lot.") \
1980 \
1981 develop(bool, VerifyCrossModifyFence, \
1982 false AARCH64_ONLY(DEBUG_ONLY(||true)), \
1983 "Mark all threads after a safepoint, and clear on a modify " \
1984 "fence. Add cleanliness checks.") \
1985 \
1986 product(bool, UseObjectMonitorTable, true, DIAGNOSTIC, \
1987 "Use a table to record inflated monitors rather than the first " \
1988 "word of the object.") \
1989 \
1990 product(int, FastLockingSpins, 13, DIAGNOSTIC, \
1991 "Specifies the number of times fast locking will attempt to " \
1992 "CAS the markWord before inflating. Between each CAS it will " \
1993 "spin for exponentially more time, resulting in a total number " \
1994 "of spins on the order of O(2^value)") \
1995 range(1, 30) \
1996 \
1997 product(uint, TrimNativeHeapInterval, 0, \
2015 \
2016 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
2017 "Use secondary supers cache during subtype checks.") \
2018 \
2019 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
2020 "Use hash table to lookup secondary supers.") \
2021 \
2022 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2023 "Check that linear and hashed secondary lookups return the same result.") \
2024 \
2025 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2026 "Use a terrible hash function in order to generate many collisions.") \
2027 \
2028 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2029 "Use an extra lock during Thread start and exit to alleviate" \
2030 "contention on Threads_lock.") \
2031 \
2032 develop(uint, BinarySearchThreshold, 16, \
2033 "Minimal number of elements in a sorted collection to prefer" \
2034 "binary search over simple linear search." ) \
2035
2036 // end of RUNTIME_FLAGS
2037
2038 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2039 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2040 DECLARE_FLAGS(RUNTIME_FLAGS)
2041 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2042
2043 #endif // SHARE_RUNTIME_GLOBALS_HPP
|