RFR: 8341095: Possible overflow in os::Posix::print_uptime_info
Gerard Ziemski
gziemski at openjdk.org
Fri Mar 21 14:26:07 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.
Thank you!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24140#issuecomment-2743524327
More information about the hotspot-runtime-dev
mailing list