965 // Release the entire mapped region |
965 // Release the entire mapped region |
966 shared_rs.release(); |
966 shared_rs.release(); |
967 #endif |
967 #endif |
968 // If -Xshare:on is specified, print out the error message and exit VM, |
968 // If -Xshare:on is specified, print out the error message and exit VM, |
969 // otherwise, set UseSharedSpaces to false and continue. |
969 // otherwise, set UseSharedSpaces to false and continue. |
970 if (RequireSharedSpaces) { |
970 if (RequireSharedSpaces || PrintSharedArchiveAndExit) { |
971 vm_exit_during_initialization("Unable to use shared archive.", "Failed map_region for using -Xshare:on."); |
971 vm_exit_during_initialization("Unable to use shared archive.", "Failed map_region for using -Xshare:on."); |
972 } else { |
972 } else { |
973 FLAG_SET_DEFAULT(UseSharedSpaces, false); |
973 FLAG_SET_DEFAULT(UseSharedSpaces, false); |
974 } |
974 } |
975 return false; |
975 return false; |