RFR: 8292564: x86: Remove redundant casts in Assembler usages
Aleksey Shipilev
shade at openjdk.org
Thu Aug 18 07:53:12 UTC 2022
On Wed, 17 Aug 2022 19:29:18 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> Some of the casts are turned into `static_cast`s to assert that constants are small enough to fit into 32-bit immediate.
This confuses me a bit: I thought narrowing (implicit) conversions with `static_cast` would not assert safety in these cases. We have `checked_cast` for these.
-------------
PR: https://git.openjdk.org/jdk/pull/9909
More information about the hotspot-dev
mailing list