mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8174101: Bootclasspath append should not invalidate CDS archive
Reviewed-by: iklam, jiangli
This commit is contained in:
parent
d470bc0546
commit
40f06dc0e3
3 changed files with 50 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue