RFR: 8341095: Possible overflow in os::Posix::print_uptime_info [v3]

Gerard Ziemski gziemski at openjdk.org
Fri Mar 28 14:36:08 UTC 2025


> 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.

Gerard Ziemski has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 17 additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into JDK-8341095
 - Merge remote-tracking branch 'upstream/master' into JDK-8341095
 - remove test stufff
 - remove test stufff
 - remove test stufff
 - test
 - test
 - test
 - test
 - test
 - ... and 7 more: https://git.openjdk.org/jdk/compare/5b2bfbfe...c9d07aa6

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24140/files
  - new: https://git.openjdk.org/jdk/pull/24140/files/0ca5615f..c9d07aa6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24140&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24140&range=01-02

  Stats: 51614 lines in 1598 files changed: 11978 ins; 34812 del; 4824 mod
  Patch: https://git.openjdk.org/jdk/pull/24140.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24140/head:pull/24140

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


More information about the hotspot-runtime-dev mailing list