RFR: 8297539: Use PrimitiveConversions::cast for local uses of the int<->float union conversion trick [v3]

Afshin Zafari duke at openjdk.org
Tue Mar 28 14:40:08 UTC 2023


> **Only** the instances of using `union` for converting `int` to `float` are replaced with call to `PrimitiveConversions::cast<To>(From)` method. Some few cases with conversion of `long` <->`double` are also replaced with `PrimitiveConversions::cast<To>(From)`. The other instances where the union contains other types of fields than `int` and `float` are left unchanged.
> 
> ### Test
> local hotspot:tier1
> mach5 tiers 1-5

Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:

  8297539: Use PrimitiveConversions::cast for local uses of the int<->float union conversion trick

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/13136/files
  - new: https://git.openjdk.org/jdk/pull/13136/files/675997a7..0c19a153

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13136&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13136&range=01-02

  Stats: 24 lines in 4 files changed: 0 ins; 1 del; 23 mod
  Patch: https://git.openjdk.org/jdk/pull/13136.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13136/head:pull/13136

PR: https://git.openjdk.org/jdk/pull/13136


More information about the hotspot-dev mailing list