mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8237637: Remove dubious type conversions from oop
Reviewed-by: kbarrett, dholmes, mdoerr
This commit is contained in:
parent
b223907794
commit
46423b0f70
83 changed files with 163 additions and 215 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue