RFR: 8375668: Compiler warning implicit-const-int-float-conversion by clang23
SendaoYan
syan at openjdk.org
Wed Jan 21 03:40:02 UTC 2026
On Tue, 20 Jan 2026 15:39:46 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:
>> 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.
>
> Looks good! Thanks for catching and fixing this.
>
> I missed updating the initial value in my original change adding `MetricType`.
Thanks for the reviews @caspernorrbin @dholmes-ora
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29309#issuecomment-3775978331
More information about the hotspot-runtime-dev
mailing list