RFR: 8341095: Possible overflow in os::Posix::print_uptime_info
David Holmes
dholmes at openjdk.org
Fri Mar 21 03:08:31 UTC 2025
On Thu, 20 Mar 2025 20:08:16 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> This is a trivial change that will quiet Xcode only visual warning in os_posix.cpp file.
>
> There are 31,536,000 seconds in a year, so if int is 32bits, then we have MAX int value of 2,147,483,647 so it would overflow in 68 years - unlikely to affect anyone.
Okay and trivial.
Thanks
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24140#pullrequestreview-2704612696
More information about the hotspot-runtime-dev
mailing list