src/share/vm/memory/metaspaceShared.cpp

changeset 7414
0558eb13dcf3
parent 7363
3375833a603e
child 7535
7ae4e26cb1e0
child 8497
50e62b688ddc
equal deleted inserted replaced
7413:9c8dbbd8694a 7414:0558eb13dcf3
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;

mercurial