< prev index next >
src/hotspot/share/memory/filemap.cpp
Print this page
*** 215,224 ****
--- 215,225 ----
}
_compressed_oops = UseCompressedOops;
_compressed_class_ptrs = UseCompressedClassPointers;
_max_heap_size = MaxHeapSize;
_narrow_klass_shift = CompressedKlassPointers::shift();
+ _use_optimized_module_handling = MetaspaceShared::use_optimized_module_handling();
// The following fields are for sanity checks for whether this archive
// will function correctly with this JVM and the bootclasspath it's
// invoked with.
*** 2138,2147 ****
--- 2139,2153 ----
FileMapInfo::fail_continue("Unable to use shared archive.\nThe saved state of UseCompressedOops and UseCompressedClassPointers is "
"different from runtime, CDS will be disabled.");
return false;
}
+ if (!_use_optimized_module_handling) {
+ MetaspaceShared::disable_optimized_module_handling();
+ log_info(cds)("use_optimized_module_handling disabled: archive was created without optimized module handling");
+ }
+
return true;
}
bool FileMapInfo::validate_header() {
return header()->validate();
< prev index next >