8174101: Bootclasspath append should not invalidate CDS archive

Reviewed-by: iklam, jiangli
This commit is contained in:
Calvin Cheung 2017-11-30 14:25:33 -08:00
parent d470bc0546
commit 40f06dc0e3
3 changed files with 50 additions and 1 deletions

View file

@ -139,7 +139,8 @@ bool SharedPathsMiscInfo::check() {
bool SharedPathsMiscInfo::check(jint type, const char* path) {
switch (type) {
case BOOT:
if (os::file_name_strcmp(path, Arguments::get_sysclasspath()) != 0) {
// In the future we should perform the check based on the content of the mapped archive.
if (UseAppCDS && os::file_name_strcmp(path, Arguments::get_sysclasspath()) != 0) {
return fail("[BOOT classpath mismatch, actual =", Arguments::get_sysclasspath());
}
break;