< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page


1803       // Currently JVMCI compiler can only work at the full optimization level
1804       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
1805       TieredStopAtLevel = CompLevel_full_optimization;
1806     }
1807     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
1808       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
1809     }
1810   }
1811 }
1812 #endif
1813 
1814 jint Arguments::set_ergonomics_flags() {
1815 #ifdef TIERED
1816   if (!compilation_mode_selected()) {
1817     select_compilation_mode_ergonomically();
1818   }
1819 #endif
1820 
1821   GCConfig::initialize();
1822 
1823 #if COMPILER2_OR_JVMCI
1824   // Shared spaces work fine with other GCs but causes bytecode rewriting
1825   // to be disabled, which hurts interpreter performance and decreases
1826   // server performance.  When -server is specified, keep the default off
1827   // unless it is asked for.  Future work: either add bytecode rewriting
1828   // at link time, or rewrite bytecodes in non-shared methods.
1829   if (is_server_compilation_mode_vm() && !DumpSharedSpaces && !RequireSharedSpaces &&
1830       (FLAG_IS_DEFAULT(UseSharedSpaces) || !UseSharedSpaces)) {
1831     no_shared_spaces("COMPILER2 default: -Xshare:auto | off, have to manually setup to on.");
1832   }
1833 #endif
1834 
1835 #if defined(IA32)
1836   // Only server compiler can optimize safepoints well enough.
1837   if (!is_server_compilation_mode_vm()) {
1838     FLAG_SET_ERGO_IF_DEFAULT(bool, ThreadLocalHandshakes, false);
1839   }
1840 #endif
1841 
1842   set_conservative_max_heap_alignment();
1843 
1844 #ifndef ZERO
1845 #ifdef _LP64
1846   set_use_compressed_oops();
1847 
1848   // set_use_compressed_klass_ptrs() must be called after calling
1849   // set_use_compressed_oops().
1850   set_use_compressed_klass_ptrs();
1851 
1852   // Also checks that certain machines are slower with compressed oops
1853   // in vm_version initialization code.
1854 #endif // _LP64




1803       // Currently JVMCI compiler can only work at the full optimization level
1804       warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
1805       TieredStopAtLevel = CompLevel_full_optimization;
1806     }
1807     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
1808       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
1809     }
1810   }
1811 }
1812 #endif
1813 
1814 jint Arguments::set_ergonomics_flags() {
1815 #ifdef TIERED
1816   if (!compilation_mode_selected()) {
1817     select_compilation_mode_ergonomically();
1818   }
1819 #endif
1820 
1821   GCConfig::initialize();
1822 












1823 #if defined(IA32)
1824   // Only server compiler can optimize safepoints well enough.
1825   if (!is_server_compilation_mode_vm()) {
1826     FLAG_SET_ERGO_IF_DEFAULT(bool, ThreadLocalHandshakes, false);
1827   }
1828 #endif
1829 
1830   set_conservative_max_heap_alignment();
1831 
1832 #ifndef ZERO
1833 #ifdef _LP64
1834   set_use_compressed_oops();
1835 
1836   // set_use_compressed_klass_ptrs() must be called after calling
1837   // set_use_compressed_oops().
1838   set_use_compressed_klass_ptrs();
1839 
1840   // Also checks that certain machines are slower with compressed oops
1841   // in vm_version initialization code.
1842 #endif // _LP64


< prev index next >