RFR: 8314114: Fix -Wconversion warnings in os code, primarily linux [v7]

Coleen Phillimore coleenp at openjdk.org
Mon Aug 14 15:04:58 UTC 2023


> This change fixes various -Wconversion warnings from files in the os directories and related, widening types or adding checked_cast<> where narrowing.
> Tested with tier1 on linux/macosx/windows and tier1-4 on linux-x64-debug, windows-x64-debug.

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

  Use 'long' and fix -Wsign-compare warnings from previous edit.  Make max_len size_t in the three places.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15229/files
  - new: https://git.openjdk.org/jdk/pull/15229/files/c4c4584d..6d3f4765

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15229&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15229&range=05-06

  Stats: 18 lines in 6 files changed: 0 ins; 0 del; 18 mod
  Patch: https://git.openjdk.org/jdk/pull/15229.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15229/head:pull/15229

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


More information about the hotspot-dev mailing list