src/hotspot/share/runtime/arguments.cpp
changeset 53177 2692d1bfe83a
parent 53154 3da307766fb1
parent 53170 6a25433b30ed
child 53232 32c6cc430526
--- a/src/hotspot/share/runtime/arguments.cpp	Tue Jan 08 11:16:32 2019 +0530
+++ b/src/hotspot/share/runtime/arguments.cpp	Tue Jan 08 07:29:13 2019 +0100
@@ -3088,6 +3088,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.");