1.1 --- a/src/share/vm/memory/metaspaceShared.cpp Fri Dec 05 10:04:37 2014 -0800 1.2 +++ b/src/share/vm/memory/metaspaceShared.cpp Thu Dec 04 15:20:09 2014 -0800 1.3 @@ -967,7 +967,7 @@ 1.4 #endif 1.5 // If -Xshare:on is specified, print out the error message and exit VM, 1.6 // otherwise, set UseSharedSpaces to false and continue. 1.7 - if (RequireSharedSpaces) { 1.8 + if (RequireSharedSpaces || PrintSharedArchiveAndExit) { 1.9 vm_exit_during_initialization("Unable to use shared archive.", "Failed map_region for using -Xshare:on."); 1.10 } else { 1.11 FLAG_SET_DEFAULT(UseSharedSpaces, false);