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

Gerard Ziemski gziemski at openjdk.org
Thu Mar 27 21:39:58 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 16 additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into JDK-8341095
 - remove test stufff
 - remove test stufff
 - remove test stufff
 - test
 - test
 - test
 - test
 - test
 - test
 - ... and 6 more: https://git.openjdk.org/jdk/compare/f6a4cebd...0ca5615f

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

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

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

  Stats: 4508 lines in 99 files changed: 1917 ins; 2030 del; 561 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