RFR: 8310906: Fix -Wconversion warnings in runtime, oops and some code header files. [v5]

Coleen Phillimore coleenp at openjdk.org
Wed Jun 28 19:48:29 UTC 2023


> This is another version of PR https://github.com/openjdk/jdk/pull/14659 but I've added a pointer delta function in globalDefinitions.hpp to use for these pointer diff calculations that return int everywhere.  If the name is agreeable, I'll fix the other cases of this like this.  It's better than raw casts.
> Tested with tier1-4.

Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:

  Clarify that pointer_delta_as_int() returns a non-negative int.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14675/files
  - new: https://git.openjdk.org/jdk/pull/14675/files/9fed8c89..856cafd4

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14675&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14675&range=03-04

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/14675.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14675/head:pull/14675

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


More information about the hotspot-dev mailing list