< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page




1842     if (TieredStopAtLevel != CompLevel_full_optimization) {
1843       // Currently JVMCI compiler can only work at the full optimization level
1844       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
1845       TieredStopAtLevel = CompLevel_full_optimization;
1846     }
1847     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
1848       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
1849     }
1850   }
1851 }
1852 #endif
1853 
1854 void Arguments::set_ergonomics_flags() {
1855 #ifdef TIERED
1856   if (!compilation_mode_selected()) {
1857     select_compilation_mode_ergonomically();
1858   }
1859 #endif
1860   select_gc();
1861 
1862 #if defined(COMPILER2) || INCLUDE_JVMCI
1863   // Shared spaces work fine with other GCs but causes bytecode rewriting
1864   // to be disabled, which hurts interpreter performance and decreases
1865   // server performance.  When -server is specified, keep the default off
1866   // unless it is asked for.  Future work: either add bytecode rewriting
1867   // at link time, or rewrite bytecodes in non-shared methods.
1868   if (is_server_compilation_mode_vm() && !DumpSharedSpaces && !RequireSharedSpaces &&
1869       (FLAG_IS_DEFAULT(UseSharedSpaces) || !UseSharedSpaces)) {
1870     no_shared_spaces("COMPILER2 default: -Xshare:auto | off, have to manually setup to on.");
1871   }
1872 #endif
1873 
1874   set_conservative_max_heap_alignment();
1875 
1876 #ifndef ZERO
1877 #ifdef _LP64
1878   set_use_compressed_oops();
1879 
1880   // set_use_compressed_klass_ptrs() must be called after calling
1881   // set_use_compressed_oops().
1882   set_use_compressed_klass_ptrs();




1842     if (TieredStopAtLevel != CompLevel_full_optimization) {
1843       // Currently JVMCI compiler can only work at the full optimization level
1844       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
1845       TieredStopAtLevel = CompLevel_full_optimization;
1846     }
1847     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
1848       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
1849     }
1850   }
1851 }
1852 #endif
1853 
1854 void Arguments::set_ergonomics_flags() {
1855 #ifdef TIERED
1856   if (!compilation_mode_selected()) {
1857     select_compilation_mode_ergonomically();
1858   }
1859 #endif
1860   select_gc();
1861 
1862 #if COMPILER2_OR_JVMCI
1863   // Shared spaces work fine with other GCs but causes bytecode rewriting
1864   // to be disabled, which hurts interpreter performance and decreases
1865   // server performance.  When -server is specified, keep the default off
1866   // unless it is asked for.  Future work: either add bytecode rewriting
1867   // at link time, or rewrite bytecodes in non-shared methods.
1868   if (is_server_compilation_mode_vm() && !DumpSharedSpaces && !RequireSharedSpaces &&
1869       (FLAG_IS_DEFAULT(UseSharedSpaces) || !UseSharedSpaces)) {
1870     no_shared_spaces("COMPILER2 default: -Xshare:auto | off, have to manually setup to on.");
1871   }
1872 #endif
1873 
1874   set_conservative_max_heap_alignment();
1875 
1876 #ifndef ZERO
1877 #ifdef _LP64
1878   set_use_compressed_oops();
1879 
1880   // set_use_compressed_klass_ptrs() must be called after calling
1881   // set_use_compressed_oops().
1882   set_use_compressed_klass_ptrs();


< prev index next >