8208658: Make CDS archived heap regions usable even if compressed oop encoding has changed

Relocate and patch archive regions if necessary

Reviewed-by: jiangli, tschatzl
This commit is contained in:
Ioi Lam 2018-08-14 09:59:37 -07:00
parent aafb128d89
commit 5b2c081460
25 changed files with 611 additions and 197 deletions

View file

@ -777,7 +777,7 @@ oop ConstantPoolCache::archived_references() {
if (CompressedOops::is_null(_archived_references)) {
return NULL;
}
return MetaspaceShared::materialize_archived_object(CompressedOops::decode_not_null(_archived_references));
return MetaspaceShared::materialize_archived_object(_archived_references);
}
void ConstantPoolCache::set_archived_references(oop o) {