src/hotspot/share/runtime/arguments.cpp
branchepsilon-gc-branch
changeset 56489 016b77c3734a
parent 56452 ec435d4e0673
parent 49860 ca5216a2a2cc
child 56491 ad0621bda88a
--- a/src/hotspot/share/runtime/arguments.cpp	Mon Apr 23 12:53:43 2018 +0200
+++ b/src/hotspot/share/runtime/arguments.cpp	Thu Apr 26 17:59:02 2018 +0200
@@ -1821,18 +1821,6 @@
 
   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()) {