< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

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





































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

1748           "Create JMX Management Server")                                   \
1749                                                                             \
1750   product(bool, DisableAttachMechanism, false,                              \
1751           "Disable mechanism that allows tools to attach to this VM")       \
1752                                                                             \
1753   product(bool, StartAttachListener, false,                                 \
1754           "Always start Attach Listener at VM startup")                     \
1755                                                                             \
1756   product(bool, EnableDynamicAgentLoading, true,                            \
1757           "Allow tools to load agents with the attach mechanism")           \
1758                                                                             \
1759   product(bool, PrintConcurrentLocks, false, MANAGEABLE,                    \
1760           "Print java.util.concurrent locks in thread dump")                \
1761                                                                             \
1762   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1763           "Print generated stub code for method handles")                   \
1764                                                                             \
1765   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1766           "perform extra checks when constructing method handles")          \
1767                                                                             \



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

1919           "On internal errors, include registers in error report.")         \
1920                                                                             \
1921   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
1922           "leverage profiling for table/lookup switch")                     \
1923                                                                             \
1924   develop(bool, TraceMemoryWriteback, false,                                \
1925           "Trace memory writeback operations")                              \
1926                                                                             \
1927   JFR_ONLY(product(bool, FlightRecorder, false,                             \
1928           "(Deprecated) Enable Flight Recorder"))                           \
1929                                                                             \
1930   JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr,                   \
1931           "Flight Recorder options"))                                       \
1932                                                                             \
1933   JFR_ONLY(product(ccstr, StartFlightRecording, nullptr,                    \
1934           "Start flight recording with options"))                           \
1935                                                                             \
1936   product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL,            \
1937           "Use platform unstable time where supported for timestamps only") \
1938                                                                             \

















1939   product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC,           \
1940                 "Make nmethod barriers deoptimise a lot.")                  \
1941                                                                             \
1942   develop(bool, VerifyCrossModifyFence,                                     \
1943           false AARCH64_ONLY(DEBUG_ONLY(||true)),                           \
1944              "Mark all threads after a safepoint, and clear on a modify "   \
1945              "fence. Add cleanliness checks.")                              \
1946                                                                             \
1947   product(bool, UseObjectMonitorTable, true, DIAGNOSTIC,                    \
1948           "Use a table to record inflated monitors rather than the first "  \
1949           "word of the object.")                                            \
1950                                                                             \
1951   product(int, FastLockingSpins, 8, DIAGNOSTIC,                             \
1952           "Specifies the number of times fast locking will attempt to "     \
1953           "CAS the markWord before inflating. Between each CAS it will "    \
1954           "spin for exponentially more time, resulting in a total number "  \
1955           "of spins on the order of O(2^value)")                            \
1956           range(1, 30)                                                      \
1957                                                                             \
1958   product(uint, TrimNativeHeapInterval, 0,                                  \

1977   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
1978                 "Use secondary supers cache during subtype checks.")        \
1979                                                                             \
1980   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
1981                 "Use hash table to lookup secondary supers.")               \
1982                                                                             \
1983   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
1984           "Check that linear and hashed secondary lookups return the same result.") \
1985                                                                             \
1986   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
1987           "Use a terrible hash function in order to generate many collisions.") \
1988                                                                             \
1989   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
1990           "Use an extra lock during Thread start and exit to alleviate"     \
1991           "contention on Threads_lock.")                                    \
1992                                                                             \
1993   develop(uint, BinarySearchThreshold, 16,                                  \
1994           "Minimal number of elements in a sorted collection to prefer"     \
1995           "binary search over simple linear search." )                      \
1996                                                                             \


1997 
1998 // end of RUNTIME_FLAGS
1999 
2000 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2001 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2002 DECLARE_FLAGS(RUNTIME_FLAGS)
2003 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2004 
2005 #endif // SHARE_RUNTIME_GLOBALS_HPP

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

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

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

2034   product(bool, UseSecondarySupersCache, true, DIAGNOSTIC,                  \
2035                 "Use secondary supers cache during subtype checks.")        \
2036                                                                             \
2037   product(bool, UseSecondarySupersTable, false, DIAGNOSTIC,                 \
2038                 "Use hash table to lookup secondary supers.")               \
2039                                                                             \
2040   product(bool, VerifySecondarySupers, false, DIAGNOSTIC,                   \
2041           "Check that linear and hashed secondary lookups return the same result.") \
2042                                                                             \
2043   product(bool, StressSecondarySupers, false, DIAGNOSTIC,                   \
2044           "Use a terrible hash function in order to generate many collisions.") \
2045                                                                             \
2046   product(bool, UseThreadsLockThrottleLock, true, DIAGNOSTIC,               \
2047           "Use an extra lock during Thread start and exit to alleviate"     \
2048           "contention on Threads_lock.")                                    \
2049                                                                             \
2050   develop(uint, BinarySearchThreshold, 16,                                  \
2051           "Minimal number of elements in a sorted collection to prefer"     \
2052           "binary search over simple linear search." )                      \
2053                                                                             \
2054   product(bool, UseAcmpFastPath, true, DIAGNOSTIC,                          \
2055           "Use fast path for acmp.")                                        \
2056 
2057 // end of RUNTIME_FLAGS
2058 
2059 DECLARE_FLAGS(LP64_RUNTIME_FLAGS)
2060 DECLARE_ARCH_FLAGS(ARCH_FLAGS)
2061 DECLARE_FLAGS(RUNTIME_FLAGS)
2062 DECLARE_FLAGS(RUNTIME_OS_FLAGS)
2063 
2064 #endif // SHARE_RUNTIME_GLOBALS_HPP
< prev index next >