8237637: Remove dubious type conversions from oop

Reviewed-by: kbarrett, dholmes, mdoerr
This commit is contained in:
Stefan Karlsson 2020-01-24 09:27:07 +01:00
parent b223907794
commit 46423b0f70
83 changed files with 163 additions and 215 deletions

View file

@ -1559,9 +1559,9 @@ address FileMapInfo::decode_start_address(FileMapRegion* spc, bool with_current_
assert(offset == (size_t)(uint32_t)offset, "must be 32-bit only");
uint n = (uint)offset;
if (with_current_oop_encoding_mode) {
return (address)CompressedOops::decode_not_null(n);
return cast_from_oop<address>(CompressedOops::decode_not_null(n));
} else {
return (address)HeapShared::decode_from_archive(n);
return cast_from_oop<address>(HeapShared::decode_from_archive(n));
}
}