8263914: CDS fails to find the default shared archive on x86_32

Reviewed-by: dholmes, iklam
This commit is contained in:
Jie Fu 2021-03-23 01:18:38 +00:00
parent a5e7a890fe
commit b23228d152

View File

@ -3438,7 +3438,7 @@ char* Arguments::get_default_shared_archive_path() {
const size_t len = jvm_path_len + file_sep_len + 20;
default_archive_path = NEW_C_HEAP_ARRAY(char, len, mtArguments);
jio_snprintf(default_archive_path, len,
UseCompressedOops ? "%s%sclasses.jsa": "%s%sclasses_nocoops.jsa",
LP64_ONLY(!UseCompressedOops ? "%s%sclasses_nocoops.jsa":) "%s%sclasses.jsa",
jvm_path, os::file_separator());
return default_archive_path;
}