--- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Sep 20 11:41:43 2016 +0200
+++ b/hotspot/src/share/vm/runtime/arguments.cpp Tue Sep 20 10:37:19 2016 -0700
@@ -3897,10 +3897,6 @@
void Arguments::set_shared_spaces_flags() {
if (DumpSharedSpaces) {
- if (Arguments::get_patch_mod_prefix() != NULL) {
- vm_exit_during_initialization(
- "Cannot use the following option when dumping the shared archive: --patch-module");
- }
if (RequireSharedSpaces) {
warning("Cannot dump shared archive while using shared archive");