< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

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



























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

1764           "Create JMX Management Server")                                   \
1765                                                                             \
1766   product(bool, DisableAttachMechanism, false,                              \
1767           "Disable mechanism that allows tools to attach to this VM")       \
1768                                                                             \
1769   product(bool, StartAttachListener, false,                                 \
1770           "Always start Attach Listener at VM startup")                     \
1771                                                                             \
1772   product(bool, EnableDynamicAgentLoading, true,                            \
1773           "Allow tools to load agents with the attach mechanism")           \
1774                                                                             \
1775   product(bool, PrintConcurrentLocks, false, MANAGEABLE,                    \
1776           "Print java.util.concurrent locks in thread dump")                \
1777                                                                             \
1778   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1779           "Print generated stub code for method handles")                   \
1780                                                                             \
1781   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1782           "perform extra checks when constructing method handles")          \
1783                                                                             \



1784   product(bool, ShowHiddenFrames, false, DIAGNOSTIC,                        \
1785           "show method handle implementation frames (usually hidden)")      \
1786                                                                             \
1787   product(bool, ShowCarrierFrames, false, DIAGNOSTIC,                       \
1788           "show virtual threads' carrier frames in exceptions")             \
1789                                                                             \
1790   product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL,             \
1791           "trust final non-static declarations for constant folding")       \
1792                                                                             \
1793   product(bool, FoldStableValues, true, DIAGNOSTIC,                         \
1794           "Optimize loads from stable fields (marked w/ @Stable)")          \
1795                                                                             \
1796   product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC,                         \
1797           "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1798           "resolved before the bootstrap method is called; 1: when a BSM "  \
1799           "that may accept a BootstrapCallInfo is detected, use that API "  \
1800           "to pass BSM arguments, which allows the BSM to delay their "     \
1801           "resolution; 2+: stress test the BCI API by calling more BSMs "   \
1802           "via that API, instead of with the eagerly-resolved array.")      \
1803                                                                             \

1935           "On internal errors, include registers in error report.")         \
1936                                                                             \
1937   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
1938           "leverage profiling for table/lookup switch")                     \
1939                                                                             \
1940   develop(bool, TraceMemoryWriteback, false,                                \
1941           "Trace memory writeback operations")                              \
1942                                                                             \
1943   JFR_ONLY(product(bool, FlightRecorder, false,                             \
1944           "(Deprecated) Enable Flight Recorder"))                           \
1945                                                                             \
1946   JFR_ONLY(product(ccstr, FlightRecorderOptions, nullptr,                   \
1947           "Flight Recorder options"))                                       \
1948                                                                             \
1949   JFR_ONLY(product(ccstr, StartFlightRecording, nullptr,                    \
1950           "Start flight recording with options"))                           \
1951                                                                             \
1952   product(bool, UseFastUnorderedTimeStamps, false, EXPERIMENTAL,            \
1953           "Use platform unstable time where supported for timestamps only") \
1954                                                                             \




















1955   product(bool, DeoptimizeNMethodBarriersALot, false, DIAGNOSTIC,           \
1956                 "Make nmethod barriers deoptimise a lot.")                  \
1957                                                                             \
1958   develop(bool, VerifyCrossModifyFence,                                     \
1959           false AARCH64_ONLY(DEBUG_ONLY(||true)),                           \
1960              "Mark all threads after a safepoint, and clear on a modify "   \
1961              "fence. Add cleanliness checks.")                              \
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,                                  \

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

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

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