src/hotspot/share/runtime/arguments.cpp
changeset 53170 6a25433b30ed
parent 53116 bb03098c4dde
child 53177 2692d1bfe83a
child 53214 386df79e2011
--- a/src/hotspot/share/runtime/arguments.cpp	Fri Dec 14 11:22:26 2018 +0100
+++ b/src/hotspot/share/runtime/arguments.cpp	Thu Jan 03 14:33:58 2019 -0800
@@ -3111,6 +3111,10 @@
       BytecodeVerificationRemote = true;
       log_info(cds)("All non-system classes will be verified (-Xverify:remote) during CDS dump time.");
     }
+
+    // Compilation is already disabled if the user specifies -Xshare:dump.
+    // Disable compilation in case user specifies -XX:+DumpSharedSpaces instead of -Xshare:dump.
+    set_mode_flags(_int);
   }
   if (UseSharedSpaces && patch_mod_javabase) {
     no_shared_spaces("CDS is disabled when " JAVA_BASE_NAME " module is patched.");