796 "Verify all arguments to JNI calls") \
797 \
798 product(bool, UseFastJNIAccessors, true, \
799 "Use optimized versions of Get<Primitive>Field") \
800 \
801 product(intx, MaxJNILocalCapacity, 65536, \
802 "Maximum allowable local JNI handle capacity to " \
803 "EnsureLocalCapacity() and PushLocalFrame(), " \
804 "where <= 0 is unlimited, default: 65536") \
805 range(min_intx, max_intx) \
806 \
807 product(bool, EagerXrunInit, false, \
808 "Eagerly initialize -Xrun libraries; allows startup profiling, " \
809 "but not all -Xrun libraries may support the state of the VM " \
810 "at this time") \
811 \
812 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \
813 "Number of OutOfMemoryErrors preallocated with backtrace") \
814 range(0, 1024) \
815 \
816 develop(bool, PrintFieldLayout, false, \
817 "Print field layout for each class") \
818 \
819 /* Need to limit the extent of the padding to reasonable size. */\
820 /* 8K is well beyond the reasonable HW cache line size, even with */\
821 /* aggressive prefetching, while still leaving the room for segregating */\
822 /* among the distinct pages. */\
823 product(int, ContendedPaddingWidth, 128, \
824 "How many bytes to pad the fields/classes marked @Contended with")\
825 range(0, 8192) \
826 constraint(ContendedPaddingWidthConstraintFunc,AfterErgo) \
827 \
828 product(bool, EnableContended, true, \
829 "Enable @Contended annotation support") \
830 \
831 product(bool, RestrictContended, true, \
832 "Restrict @Contended to trusted classes") \
833 \
834 product(int, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC, \
835 "Detect and take action upon identifying synchronization on " \
836 "value based classes. Modes: " \
837 "0: off; " \
838 "1: exit with fatal error; " \
1752 "Create JMX Management Server") \
1753 \
1754 product(bool, DisableAttachMechanism, false, \
1755 "Disable mechanism that allows tools to attach to this VM") \
1756 \
1757 product(bool, StartAttachListener, false, \
1758 "Always start Attach Listener at VM startup") \
1759 \
1760 product(bool, EnableDynamicAgentLoading, true, \
1761 "Allow tools to load agents with the attach mechanism") \
1762 \
1763 product(bool, PrintConcurrentLocks, false, MANAGEABLE, \
1764 "Print java.util.concurrent locks in thread dump") \
1765 \
1766 product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC, \
1767 "Print generated stub code for method handles") \
1768 \
1769 product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC, \
1770 "perform extra checks when constructing method handles") \
1771 \
1772 product(bool, ShowHiddenFrames, false, DIAGNOSTIC, \
1773 "show method handle implementation frames (usually hidden)") \
1774 \
1775 product(bool, ShowCarrierFrames, false, DIAGNOSTIC, \
1776 "show virtual threads' carrier frames in exceptions") \
1777 \
1778 product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL, \
1779 "trust final non-static declarations for constant folding") \
1780 \
1781 product(bool, FoldStableValues, true, DIAGNOSTIC, \
1782 "Optimize loads from stable fields (marked w/ @Stable)") \
1783 \
1784 product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC, \
1785 "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1786 "resolved before the bootstrap method is called; 1: when a BSM " \
1787 "that may accept a BootstrapCallInfo is detected, use that API " \
1788 "to pass BSM arguments, which allows the BSM to delay their " \
1789 "resolution; 2+: stress test the BCI API by calling more BSMs " \
1790 "via that API, instead of with the eagerly-resolved array.") \
1791 \
1923 "On internal errors, include registers in error report.") \
1924 \
1925 product(bool, UseSwitchProfiling, true, DIAGNOSTIC, \
1926 "leverage profiling for table/lookup switch") \
1927 \
1928 develop(bool, TraceMemoryWriteback, false, \
1929 "Trace memory writeback operations") \
1930 \
1931 JFR_ONLY(product(bool, FlightRecorder, false, \
1932 "(Deprecated) Enable Flight Recorder")) \
1933 \
1934 JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr, \
1935 "Flight Recorder options")) \
1936 \
1937 JFR_ONLY(product(ccstr, StartFlightRecording, nullptr, \
1938 "Start flight recording with options")) \
1939 \
1940 product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL, \
1941 "Use platform unstable time where supported for timestamps only") \
1942 \
1943 product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC, \
1944 "Make nmethod barriers deoptimise a lot.") \
1945 \
1946 develop(bool, VerifyCrossModifyFence, \
1947 false AARCH64_ONLY(DEBUG_ONLY(||true)), \
1948 "Mark all threads after a safepoint, and clear on a modify " \
1949 "fence. Add cleanliness checks.") \
1950 \
1951 product(bool, UseObjectMonitorTable, true, DIAGNOSTIC, \
1952 "Use a table to record inflated monitors rather than the first " \
1953 "word of the object.") \
1954 \
1955 product(int, FastLockingSpins, 8, DIAGNOSTIC, \
1956 "Specifies the number of times fast locking will attempt to " \
1957 "CAS the markWord before inflating. Between each CAS it will " \
1958 "spin for exponentially more time, resulting in a total number " \
1959 "of spins on the order of O(2^value)") \
1960 range(1, 30) \
1961 \
1962 product(uint, TrimNativeHeapInterval, 0, \
1981 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
1982 "Use secondary supers cache during subtype checks.") \
1983 \
1984 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
1985 "Use hash table to lookup secondary supers.") \
1986 \
1987 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
1988 "Check that linear and hashed secondary lookups return the same result.") \
1989 \
1990 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
1991 "Use a terrible hash function in order to generate many collisions.") \
1992 \
1993 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
1994 "Use an extra lock during Thread start and exit to alleviate" \
1995 "contention on Threads_lock.") \
1996 \
1997 develop(uint, BinarySearchThreshold, 16, \
1998 "Minimal number of elements in a sorted collection to prefer" \
1999 "binary search over simple linear search." ) \
2000 \
2001
2002 // end of RUNTIME_FLAGS
2003
2004 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2005 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2006 DECLARE_FLAGS(RUNTIME_FLAGS)
2007 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2008
2009 #endif // SHARE_RUNTIME_GLOBALS_HPP
|
796 "Verify all arguments to JNI calls") \
797 \
798 product(bool, UseFastJNIAccessors, true, \
799 "Use optimized versions of Get<Primitive>Field") \
800 \
801 product(intx, MaxJNILocalCapacity, 65536, \
802 "Maximum allowable local JNI handle capacity to " \
803 "EnsureLocalCapacity() and PushLocalFrame(), " \
804 "where <= 0 is unlimited, default: 65536") \
805 range(min_intx, max_intx) \
806 \
807 product(bool, EagerXrunInit, false, \
808 "Eagerly initialize -Xrun libraries; allows startup profiling, " \
809 "but not all -Xrun libraries may support the state of the VM " \
810 "at this time") \
811 \
812 develop(uintx, PreallocatedOutOfMemoryErrorCount, 4, \
813 "Number of OutOfMemoryErrors preallocated with backtrace") \
814 range(0, 1024) \
815 \
816 product(bool, PrintFieldLayout, false, DIAGNOSTIC, \
817 "Print field layout for each class") \
818 \
819 product(bool, PrintInlineLayout, false, DIAGNOSTIC, \
820 "Print field layout for each value class or class containing " \
821 "inlined value fields") \
822 \
823 product(bool, PrintFlatArrayLayout, false, DIAGNOSTIC, \
824 "Print array layout for each flattened value array") \
825 \
826 product(bool, UseArrayFlattening, true, DIAGNOSTIC, \
827 "Allow the JVM to flatten arrays of concrete value objects " \
828 "when it determines it is possible and beneficial to do so") \
829 \
830 product(bool, UseFieldFlattening, true, DIAGNOSTIC, \
831 "Allow the JVM to inline the fields of concrete value objects " \
832 "when it determines it is possible and beneficial to do so") \
833 \
834 product(bool, UseNullableAtomicValueFlattening, true, DIAGNOSTIC, \
835 "Allow the JVM to flatten some nullable atomic values") \
836 \
837 product(bool, UseNullFreeNonAtomicValueFlattening, true, EXPERIMENTAL, \
838 "Allow the JVM to flatten some null-free non-atomic values") \
839 \
840 product(bool, UseNullFreeAtomicValueFlattening, true, EXPERIMENTAL, \
841 "Allow the JVM to flatten some null-free atomic values") \
842 \
843 product(bool, UseNullableNonAtomicValueFlattening, true, DIAGNOSTIC, \
844 "Allow the JVM to flatten some strict final non-static fields") \
845 \
846 product(intx, FlatArrayElementMaxOops, 4, DIAGNOSTIC, \
847 "Max number of embedded object references in a value container " \
848 "before no flattening attempts are made, <0 indicates no limit") \
849 \
850 product(uint, FlatteningBudget, 1024, EXPERIMENTAL, \
851 "Maximum size (in bytes) dedicated to flat fields in an instance")\
852 range(0, 1024 * 1024) \
853 develop(ccstrlist, PrintInlineKlassFields, "", \
854 "Print fields collected by InlineKlass::collect_fields") \
855 \
856 /* Need to limit the extent of the padding to reasonable size. */\
857 /* 8K is well beyond the reasonable HW cache line size, even with */\
858 /* aggressive prefetching, while still leaving the room for segregating */\
859 /* among the distinct pages. */\
860 product(int, ContendedPaddingWidth, 128, \
861 "How many bytes to pad the fields/classes marked @Contended with")\
862 range(0, 8192) \
863 constraint(ContendedPaddingWidthConstraintFunc,AfterErgo) \
864 \
865 product(bool, EnableContended, true, \
866 "Enable @Contended annotation support") \
867 \
868 product(bool, RestrictContended, true, \
869 "Restrict @Contended to trusted classes") \
870 \
871 product(int, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC, \
872 "Detect and take action upon identifying synchronization on " \
873 "value based classes. Modes: " \
874 "0: off; " \
875 "1: exit with fatal error; " \
1789 "Create JMX Management Server") \
1790 \
1791 product(bool, DisableAttachMechanism, false, \
1792 "Disable mechanism that allows tools to attach to this VM") \
1793 \
1794 product(bool, StartAttachListener, false, \
1795 "Always start Attach Listener at VM startup") \
1796 \
1797 product(bool, EnableDynamicAgentLoading, true, \
1798 "Allow tools to load agents with the attach mechanism") \
1799 \
1800 product(bool, PrintConcurrentLocks, false, MANAGEABLE, \
1801 "Print java.util.concurrent locks in thread dump") \
1802 \
1803 product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC, \
1804 "Print generated stub code for method handles") \
1805 \
1806 product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC, \
1807 "perform extra checks when constructing method handles") \
1808 \
1809 product(bool, IgnoreAssertUnsetFields, false, DIAGNOSTIC, \
1810 "Ignore assert_unset_fields") \
1811 \
1812 product(bool, ShowHiddenFrames, false, DIAGNOSTIC, \
1813 "show method handle implementation frames (usually hidden)") \
1814 \
1815 product(bool, ShowCarrierFrames, false, DIAGNOSTIC, \
1816 "show virtual threads' carrier frames in exceptions") \
1817 \
1818 product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL, \
1819 "trust final non-static declarations for constant folding") \
1820 \
1821 product(bool, FoldStableValues, true, DIAGNOSTIC, \
1822 "Optimize loads from stable fields (marked w/ @Stable)") \
1823 \
1824 product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC, \
1825 "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1826 "resolved before the bootstrap method is called; 1: when a BSM " \
1827 "that may accept a BootstrapCallInfo is detected, use that API " \
1828 "to pass BSM arguments, which allows the BSM to delay their " \
1829 "resolution; 2+: stress test the BCI API by calling more BSMs " \
1830 "via that API, instead of with the eagerly-resolved array.") \
1831 \
1963 "On internal errors, include registers in error report.") \
1964 \
1965 product(bool, UseSwitchProfiling, true, DIAGNOSTIC, \
1966 "leverage profiling for table/lookup switch") \
1967 \
1968 develop(bool, TraceMemoryWriteback, false, \
1969 "Trace memory writeback operations") \
1970 \
1971 JFR_ONLY(product(bool, FlightRecorder, false, \
1972 "(Deprecated) Enable Flight Recorder")) \
1973 \
1974 JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr, \
1975 "Flight Recorder options")) \
1976 \
1977 JFR_ONLY(product(ccstr, StartFlightRecording, nullptr, \
1978 "Start flight recording with options")) \
1979 \
1980 product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL, \
1981 "Use platform unstable time where supported for timestamps only") \
1982 \
1983 product_pd(bool, InlineTypePassFieldsAsArgs, DIAGNOSTIC, \
1984 "Pass each inline type field as an argument at calls") \
1985 \
1986 product_pd(bool, InlineTypeReturnedAsFields, DIAGNOSTIC, \
1987 "Return fields instead of an inline type reference") \
1988 \
1989 develop(bool, StressCallingConvention, false, \
1990 "Stress the scalarized calling convention.") \
1991 \
1992 develop(bool, PreloadClasses, true, \
1993 "Preloading all classes from the LoadableDescriptors attribute") \
1994 \
1995 product(ccstrlist, ForceNonTearable, "", DIAGNOSTIC, \
1996 "List of inline classes which are forced to be atomic " \
1997 "(whitespace and commas separate names, " \
1998 "and leading and trailing stars '*' are wildcards)") \
1999 \
2000 product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC, \
2001 "Make nmethod barriers deoptimise a lot.") \
2002 \
2003 develop(bool, VerifyCrossModifyFence, \
2004 false AARCH64_ONLY(DEBUG_ONLY(||true)), \
2005 "Mark all threads after a safepoint, and clear on a modify " \
2006 "fence. Add cleanliness checks.") \
2007 \
2008 product(bool, UseObjectMonitorTable, true, DIAGNOSTIC, \
2009 "Use a table to record inflated monitors rather than the first " \
2010 "word of the object.") \
2011 \
2012 product(int, FastLockingSpins, 8, DIAGNOSTIC, \
2013 "Specifies the number of times fast locking will attempt to " \
2014 "CAS the markWord before inflating. Between each CAS it will " \
2015 "spin for exponentially more time, resulting in a total number " \
2016 "of spins on the order of O(2^value)") \
2017 range(1, 30) \
2018 \
2019 product(uint, TrimNativeHeapInterval, 0, \
2038 product(bool, UseSecondarySupersCache, true, DIAGNOSTIC, \
2039 "Use secondary supers cache during subtype checks.") \
2040 \
2041 product(bool, UseSecondarySupersTable, false, DIAGNOSTIC, \
2042 "Use hash table to lookup secondary supers.") \
2043 \
2044 product(bool, VerifySecondarySupers, false, DIAGNOSTIC, \
2045 "Check that linear and hashed secondary lookups return the same result.") \
2046 \
2047 product(bool, StressSecondarySupers, false, DIAGNOSTIC, \
2048 "Use a terrible hash function in order to generate many collisions.") \
2049 \
2050 product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC, \
2051 "Use an extra lock during Thread start and exit to alleviate" \
2052 "contention on Threads_lock.") \
2053 \
2054 develop(uint, BinarySearchThreshold, 16, \
2055 "Minimal number of elements in a sorted collection to prefer" \
2056 "binary search over simple linear search." ) \
2057 \
2058 product(bool, UseAcmpFastPath, true, DIAGNOSTIC, \
2059 "Use fast path for acmp.") \
2060
2061 // end of RUNTIME_FLAGS
2062
2063 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2064 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2065 DECLARE_FLAGS(RUNTIME_FLAGS)
2066 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2067
2068 #endif // SHARE_RUNTIME_GLOBALS_HPP
|