< prev index next >

src/hotspot/share/runtime/globals.hpp

Print this page

 796           "Restrict @Contended to trusted classes")                         \
 797                                                                             \
 798   product(intx, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC,             \
 799              "Detect and take action upon identifying synchronization on "  \
 800              "value based classes. Modes: "                                 \
 801              "0: off; "                                                     \
 802              "1: exit with fatal error; "                                   \
 803              "2: log message to stdout. Output file can be specified with " \
 804              "   -Xlog:valuebasedclasses. If JFR is running it will "       \
 805              "   also generate JFR events.")                                \
 806              range(0, 2)                                                    \
 807                                                                             \
 808   product(bool, ExitOnOutOfMemoryError, false,                              \
 809           "JVM exits on the first occurrence of an out-of-memory error "    \
 810           "thrown from JVM")                                                \
 811                                                                             \
 812   product(bool, CrashOnOutOfMemoryError, false,                             \
 813           "JVM aborts, producing an error log and core/mini dump, on the "  \
 814           "first occurrence of an out-of-memory error thrown from JVM")     \
 815                                                                             \



 816   /* tracing */                                                             \
 817                                                                             \
 818   develop(bool, StressRewriter, false,                                      \
 819           "Stress linktime bytecode rewriting")                             \
 820                                                                             \
 821   product(ccstr, TraceJVMTI, NULL,                                          \
 822           "Trace flags for JVMTI functions and events")                     \
 823                                                                             \
 824   product(bool, StressLdcRewrite, false, DIAGNOSTIC,                        \
 825           "Force ldc -> ldc_w rewrite during RedefineClasses. "             \
 826           "This option can change an EMCP method into an obsolete method "  \
 827           "and can affect tests that expect specific methods to be EMCP. "  \
 828           "This option should be used with caution.")                       \
 829                                                                             \
 830   product(bool, AllowRedefinitionToAddDeleteMethods, false,                 \
 831           "(Deprecated) Allow redefinition to add and delete private "      \
 832           "static or final methods for compatibility with old releases")    \
 833                                                                             \
 834   develop(bool, TraceBytecodes, false,                                      \
 835           "Trace bytecode execution")                                       \

1713   product_pd(bool, TieredCompilation,                                       \
1714           "Enable tiered compilation")                                      \
1715                                                                             \
1716   /* Properties for Java libraries  */                                      \
1717                                                                             \
1718   product(uint64_t, MaxDirectMemorySize, 0,                                 \
1719           "Maximum total size of NIO direct-buffer allocations")            \
1720           range(0, max_jlong)                                               \
1721                                                                             \
1722   /* Flags used for temporary code during development  */                   \
1723                                                                             \
1724   product(bool, UseNewCode, false, DIAGNOSTIC,                              \
1725           "Testing Only: Use the new version while testing")                \
1726                                                                             \
1727   product(bool, UseNewCode2, false, DIAGNOSTIC,                             \
1728           "Testing Only: Use the new version while testing")                \
1729                                                                             \
1730   product(bool, UseNewCode3, false, DIAGNOSTIC,                             \
1731           "Testing Only: Use the new version while testing")                \
1732                                                                             \



1733   notproduct(bool, UseDebuggerErgo, false,                                  \
1734           "Debugging Only: Adjust the VM to be more debugger-friendly. "    \
1735           "Turns on the other UseDebuggerErgo* flags")                      \
1736                                                                             \
1737   notproduct(bool, UseDebuggerErgo1, false,                                 \
1738           "Debugging Only: Enable workarounds for debugger induced "        \
1739           "os::processor_id() >= os::processor_count() problems")           \
1740                                                                             \
1741   notproduct(bool, UseDebuggerErgo2, false,                                 \
1742           "Debugging Only: Limit the number of spawned JVM threads")        \
1743                                                                             \
1744   notproduct(bool, EnableJVMTIStackDepthAsserts, true,                      \
1745           "Enable JVMTI asserts related to stack depth checks")             \
1746                                                                             \
1747   /* flags for performance data collection */                               \
1748                                                                             \
1749   product(bool, UsePerfData, true,                                          \
1750           "Flag to disable jvmstat instrumentation for performance testing "\
1751           "and problem isolation purposes")                                 \
1752                                                                             \

1839                                                                             \
1840   product(ccstr, SharedArchiveConfigFile, NULL,                             \
1841           "Data to add to the CDS archive file")                            \
1842                                                                             \
1843   product(uintx, SharedSymbolTableBucketSize, 4,                            \
1844           "Average number of symbols per bucket in shared table")           \
1845           range(2, 246)                                                     \
1846                                                                             \
1847   product(bool, AllowArchivingWithJavaAgent, false, DIAGNOSTIC,             \
1848           "Allow Java agent to be run with CDS dumping")                    \
1849                                                                             \
1850   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1851           "Print generated stub code for method handles")                   \
1852                                                                             \
1853   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1854           "perform extra checks when constructing method handles")          \
1855                                                                             \
1856   product(bool, ShowHiddenFrames, false, DIAGNOSTIC,                        \
1857           "show method handle implementation frames (usually hidden)")      \
1858                                                                             \



1859   product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL,             \
1860           "trust final non-static declarations for constant folding")       \
1861                                                                             \
1862   product(bool, FoldStableValues, true, DIAGNOSTIC,                         \
1863           "Optimize loads from stable fields (marked w/ @Stable)")          \
1864                                                                             \
1865   product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC,                         \
1866           "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1867           "resolved before the bootstrap method is called; 1: when a BSM "  \
1868           "that may accept a BootstrapCallInfo is detected, use that API "  \
1869           "to pass BSM arguments, which allows the BSM to delay their "     \
1870           "resolution; 2+: stress test the BCI API by calling more BSMs "   \
1871           "via that API, instead of with the eagerly-resolved array.")      \
1872                                                                             \
1873   product(bool, PauseAtStartup,      false, DIAGNOSTIC,                     \
1874           "Causes the VM to pause at startup time and wait for the pause "  \
1875           "file to be removed (default: ./vm.paused.<pid>)")                \
1876                                                                             \
1877   product(ccstr, PauseAtStartupFile, NULL, DIAGNOSTIC,                      \
1878           "The file to create and for whose removal to await when pausing " \

1995              "@IntrinsicCandidate annotation, that "                        \
1996              "(2) there is an intrinsic registered for all loaded methods " \
1997              "that are annotated with the @IntrinsicCandidate annotation, " \
1998              "and that "                                                    \
1999              "(3) no orphan methods exist for class C (i.e., methods for "  \
2000              "which the VM declares an intrinsic but that are not declared "\
2001              "in the loaded class C. "                                      \
2002              "Check (3) is available only in debug builds.")                \
2003                                                                             \
2004   product_pd(intx, InitArrayShortSize, DIAGNOSTIC,                          \
2005           "Threshold small size (in bytes) for clearing arrays. "           \
2006           "Anything this size or smaller may get converted to discrete "    \
2007           "scalar stores.")                                                 \
2008           range(0, max_intx)                                                \
2009           constraint(InitArrayShortSizeConstraintFunc, AfterErgo)           \
2010                                                                             \
2011   product(ccstr, AllocateHeapAt, NULL,                                      \
2012           "Path to the directory where a temporary file will be created "   \
2013           "to use as the backing store for Java Heap.")                     \
2014                                                                             \
































2015   develop(int, VerifyMetaspaceInterval, DEBUG_ONLY(500) NOT_DEBUG(0),       \
2016                "Run periodic metaspace verifications (0 - none, "           \
2017                "1 - always, >1 every nth interval)")                        \
2018                                                                             \
2019   product(bool, ShowRegistersOnAssert, true, DIAGNOSTIC,                    \
2020           "On internal errors, include registers in error report.")         \
2021                                                                             \
2022   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
2023           "leverage profiling for table/lookup switch")                     \
2024                                                                             \
2025   develop(bool, TraceMemoryWriteback, false,                                \
2026           "Trace memory writeback operations")                              \
2027                                                                             \
2028   JFR_ONLY(product(bool, FlightRecorder, false,                             \
2029           "(Deprecated) Enable Flight Recorder"))                           \
2030                                                                             \
2031   JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL,                      \
2032           "Flight Recorder options"))                                       \
2033                                                                             \
2034   JFR_ONLY(product(ccstr, StartFlightRecording, NULL,                       \

 796           "Restrict @Contended to trusted classes")                         \
 797                                                                             \
 798   product(intx, DiagnoseSyncOnValueBasedClasses, 0, DIAGNOSTIC,             \
 799              "Detect and take action upon identifying synchronization on "  \
 800              "value based classes. Modes: "                                 \
 801              "0: off; "                                                     \
 802              "1: exit with fatal error; "                                   \
 803              "2: log message to stdout. Output file can be specified with " \
 804              "   -Xlog:valuebasedclasses. If JFR is running it will "       \
 805              "   also generate JFR events.")                                \
 806              range(0, 2)                                                    \
 807                                                                             \
 808   product(bool, ExitOnOutOfMemoryError, false,                              \
 809           "JVM exits on the first occurrence of an out-of-memory error "    \
 810           "thrown from JVM")                                                \
 811                                                                             \
 812   product(bool, CrashOnOutOfMemoryError, false,                             \
 813           "JVM aborts, producing an error log and core/mini dump, on the "  \
 814           "first occurrence of an out-of-memory error thrown from JVM")     \
 815                                                                             \
 816   product(bool, DetectLocksInCompiledFrames, true,                          \
 817           "Detect monitors in continuation compiled frames")                \
 818                                                                             \
 819   /* tracing */                                                             \
 820                                                                             \
 821   develop(bool, StressRewriter, false,                                      \
 822           "Stress linktime bytecode rewriting")                             \
 823                                                                             \
 824   product(ccstr, TraceJVMTI, NULL,                                          \
 825           "Trace flags for JVMTI functions and events")                     \
 826                                                                             \
 827   product(bool, StressLdcRewrite, false, DIAGNOSTIC,                        \
 828           "Force ldc -> ldc_w rewrite during RedefineClasses. "             \
 829           "This option can change an EMCP method into an obsolete method "  \
 830           "and can affect tests that expect specific methods to be EMCP. "  \
 831           "This option should be used with caution.")                       \
 832                                                                             \
 833   product(bool, AllowRedefinitionToAddDeleteMethods, false,                 \
 834           "(Deprecated) Allow redefinition to add and delete private "      \
 835           "static or final methods for compatibility with old releases")    \
 836                                                                             \
 837   develop(bool, TraceBytecodes, false,                                      \
 838           "Trace bytecode execution")                                       \

1716   product_pd(bool, TieredCompilation,                                       \
1717           "Enable tiered compilation")                                      \
1718                                                                             \
1719   /* Properties for Java libraries  */                                      \
1720                                                                             \
1721   product(uint64_t, MaxDirectMemorySize, 0,                                 \
1722           "Maximum total size of NIO direct-buffer allocations")            \
1723           range(0, max_jlong)                                               \
1724                                                                             \
1725   /* Flags used for temporary code during development  */                   \
1726                                                                             \
1727   product(bool, UseNewCode, false, DIAGNOSTIC,                              \
1728           "Testing Only: Use the new version while testing")                \
1729                                                                             \
1730   product(bool, UseNewCode2, false, DIAGNOSTIC,                             \
1731           "Testing Only: Use the new version while testing")                \
1732                                                                             \
1733   product(bool, UseNewCode3, false, DIAGNOSTIC,                             \
1734           "Testing Only: Use the new version while testing")                \
1735                                                                             \
1736   product(intx, ContPerfTest, 1000, DIAGNOSTIC,                             \
1737           "Testing Only: Use the new version while testing")                \
1738                                                                             \
1739   notproduct(bool, UseDebuggerErgo, false,                                  \
1740           "Debugging Only: Adjust the VM to be more debugger-friendly. "    \
1741           "Turns on the other UseDebuggerErgo* flags")                      \
1742                                                                             \
1743   notproduct(bool, UseDebuggerErgo1, false,                                 \
1744           "Debugging Only: Enable workarounds for debugger induced "        \
1745           "os::processor_id() >= os::processor_count() problems")           \
1746                                                                             \
1747   notproduct(bool, UseDebuggerErgo2, false,                                 \
1748           "Debugging Only: Limit the number of spawned JVM threads")        \
1749                                                                             \
1750   notproduct(bool, EnableJVMTIStackDepthAsserts, true,                      \
1751           "Enable JVMTI asserts related to stack depth checks")             \
1752                                                                             \
1753   /* flags for performance data collection */                               \
1754                                                                             \
1755   product(bool, UsePerfData, true,                                          \
1756           "Flag to disable jvmstat instrumentation for performance testing "\
1757           "and problem isolation purposes")                                 \
1758                                                                             \

1845                                                                             \
1846   product(ccstr, SharedArchiveConfigFile, NULL,                             \
1847           "Data to add to the CDS archive file")                            \
1848                                                                             \
1849   product(uintx, SharedSymbolTableBucketSize, 4,                            \
1850           "Average number of symbols per bucket in shared table")           \
1851           range(2, 246)                                                     \
1852                                                                             \
1853   product(bool, AllowArchivingWithJavaAgent, false, DIAGNOSTIC,             \
1854           "Allow Java agent to be run with CDS dumping")                    \
1855                                                                             \
1856   product(bool, PrintMethodHandleStubs, false, DIAGNOSTIC,                  \
1857           "Print generated stub code for method handles")                   \
1858                                                                             \
1859   product(bool, VerifyMethodHandles, trueInDebug, DIAGNOSTIC,               \
1860           "perform extra checks when constructing method handles")          \
1861                                                                             \
1862   product(bool, ShowHiddenFrames, false, DIAGNOSTIC,                        \
1863           "show method handle implementation frames (usually hidden)")      \
1864                                                                             \
1865   product(bool, ShowCarrierFrames, false, DIAGNOSTIC,                       \
1866           "show virtual threads' carrier frames in exceptions")             \
1867                                                                             \
1868   product(bool, TrustFinalNonStaticFields, false, EXPERIMENTAL,             \
1869           "trust final non-static declarations for constant folding")       \
1870                                                                             \
1871   product(bool, FoldStableValues, true, DIAGNOSTIC,                         \
1872           "Optimize loads from stable fields (marked w/ @Stable)")          \
1873                                                                             \
1874   product(int, UseBootstrapCallInfo, 1, DIAGNOSTIC,                         \
1875           "0: when resolving InDy or ConDy, force all BSM arguments to be " \
1876           "resolved before the bootstrap method is called; 1: when a BSM "  \
1877           "that may accept a BootstrapCallInfo is detected, use that API "  \
1878           "to pass BSM arguments, which allows the BSM to delay their "     \
1879           "resolution; 2+: stress test the BCI API by calling more BSMs "   \
1880           "via that API, instead of with the eagerly-resolved array.")      \
1881                                                                             \
1882   product(bool, PauseAtStartup,      false, DIAGNOSTIC,                     \
1883           "Causes the VM to pause at startup time and wait for the pause "  \
1884           "file to be removed (default: ./vm.paused.<pid>)")                \
1885                                                                             \
1886   product(ccstr, PauseAtStartupFile, NULL, DIAGNOSTIC,                      \
1887           "The file to create and for whose removal to await when pausing " \

2004              "@IntrinsicCandidate annotation, that "                        \
2005              "(2) there is an intrinsic registered for all loaded methods " \
2006              "that are annotated with the @IntrinsicCandidate annotation, " \
2007              "and that "                                                    \
2008              "(3) no orphan methods exist for class C (i.e., methods for "  \
2009              "which the VM declares an intrinsic but that are not declared "\
2010              "in the loaded class C. "                                      \
2011              "Check (3) is available only in debug builds.")                \
2012                                                                             \
2013   product_pd(intx, InitArrayShortSize, DIAGNOSTIC,                          \
2014           "Threshold small size (in bytes) for clearing arrays. "           \
2015           "Anything this size or smaller may get converted to discrete "    \
2016           "scalar stores.")                                                 \
2017           range(0, max_intx)                                                \
2018           constraint(InitArrayShortSizeConstraintFunc, AfterErgo)           \
2019                                                                             \
2020   product(ccstr, AllocateHeapAt, NULL,                                      \
2021           "Path to the directory where a temporary file will be created "   \
2022           "to use as the backing store for Java Heap.")                     \
2023                                                                             \
2024   product(bool, LoomGenCode, true,                                          \
2025           "Generate oopmap code")                                           \
2026                                                                             \
2027   develop(bool, LoomDeoptAfterThaw, false,                                  \
2028           "Deopt stack after thaw")                                         \
2029                                                                             \
2030   develop(bool, LoomVerifyAfterThaw, false,                                 \
2031           "Verify stack after thaw")                                        \
2032                                                                             \
2033   product(bool, UseContinuationStrong, true,                                \
2034           "The weak keepalive is considered strong on stack")               \
2035                                                                             \
2036   product(bool, TrimContinuationChunksInGC, false,                          \
2037          "Trim stack chunks when copying objects in GC")                    \
2038                                                                             \
2039   product(bool, UseChunkBitmaps, false,                                    \
2040          "Generate oop bitmaps for continuation chunks")                    \
2041                                                                             \
2042   product(bool, UseContinuationFastPath, true,                              \
2043           "Use fast-path frame walking in continuations")                   \
2044                                                                             \
2045   product(bool, UseContinuationStreamingCopy, false,                        \
2046           "Use streaming memory when copying continuation stack chunks")    \
2047                                                                             \
2048   develop(bool, VerifyContinuations, true,                                  \
2049           "Verify continuation consistency")                                \
2050                                                                             \
2051   product(intx, ScopeLocalCacheSize, 16,                                    \
2052           "Size of the cache for scoped values")                            \
2053            range(0, max_intx)                                               \
2054            constraint(ScopeLocalCacheSizeConstraintFunc, AtParse)           \
2055                                                                             \
2056   develop(int, VerifyMetaspaceInterval, DEBUG_ONLY(500) NOT_DEBUG(0),       \
2057                "Run periodic metaspace verifications (0 - none, "           \
2058                "1 - always, >1 every nth interval)")                        \
2059                                                                             \
2060   product(bool, ShowRegistersOnAssert, true, DIAGNOSTIC,                    \
2061           "On internal errors, include registers in error report.")         \
2062                                                                             \
2063   product(bool, UseSwitchProfiling, true, DIAGNOSTIC,                       \
2064           "leverage profiling for table/lookup switch")                     \
2065                                                                             \
2066   develop(bool, TraceMemoryWriteback, false,                                \
2067           "Trace memory writeback operations")                              \
2068                                                                             \
2069   JFR_ONLY(product(bool, FlightRecorder, false,                             \
2070           "(Deprecated) Enable Flight Recorder"))                           \
2071                                                                             \
2072   JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL,                      \
2073           "Flight Recorder options"))                                       \
2074                                                                             \
2075   JFR_ONLY(product(ccstr, StartFlightRecording, NULL,                       \
< prev index next >