8188105: Make -Xshare:auto the default for server VM

Reviewed-by: dholmes, lfoltan, acorn, mseledtsov, jiangli
This commit is contained in:
Ioi Lam 2018-04-23 07:51:46 -07:00
parent 2329ce7e2d
commit cac6379cc4
3 changed files with 32 additions and 42 deletions

View file

@ -1820,18 +1820,6 @@ jint Arguments::set_ergonomics_flags() {
GCConfig::initialize();
#if COMPILER2_OR_JVMCI
// Shared spaces work fine with other GCs but causes bytecode rewriting
// to be disabled, which hurts interpreter performance and decreases
// server performance. When -server is specified, keep the default off
// unless it is asked for. Future work: either add bytecode rewriting
// at link time, or rewrite bytecodes in non-shared methods.
if (is_server_compilation_mode_vm() && !DumpSharedSpaces && !RequireSharedSpaces &&
(FLAG_IS_DEFAULT(UseSharedSpaces) || !UseSharedSpaces)) {
no_shared_spaces("COMPILER2 default: -Xshare:auto | off, have to manually setup to on.");
}
#endif
#if defined(IA32)
// Only server compiler can optimize safepoints well enough.
if (!is_server_compilation_mode_vm()) {