RFR: 8375668: Compiler warning implicit-const-int-float-conversion by clang23

SendaoYan syan at openjdk.org
Tue Jan 20 06:55:52 UTC 2026


Hi all,

File src/hotspot/os/linux/cgroupSubsystem_linux.hpp was reported compiler warning `implicit conversion from 'const uint64_t' (aka 'const unsigned long') to 'double' changes value from 18446744073709551615 to 18446744073709551616` by clang23. This compiler waring can be fixed by use explict convert instead the implict convert. This change do not change the orginal logic.

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

Commit messages:
 - 8375668: Compiler warning implicit-const-int-float-conversion by clang23

Changes: https://git.openjdk.org/jdk/pull/29309/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29309&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8375668
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29309.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29309/head:pull/29309

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


More information about the hotspot-runtime-dev mailing list