Skip to content

8341095: Possible overflow in os::Posix::print_uptime_info #24140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 17 commits into from

Conversation

gerard-ziemski
Copy link

@gerard-ziemski gerard-ziemski commented Mar 20, 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.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8341095: Possible overflow in os::Posix::print_uptime_info (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24140/head:pull/24140
$ git checkout pull/24140

Update a local copy of the PR:
$ git checkout pull/24140
$ git pull https://git.openjdk.org/jdk.git pull/24140/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24140

View PR using the GUI difftool:
$ git pr show -t 24140

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24140.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 20, 2025

👋 Welcome back gziemski! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 20, 2025

@gerard-ziemski This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8341095: Possible overflow in os::Posix::print_uptime_info

Reviewed-by: dholmes

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Mar 20, 2025

@gerard-ziemski The following label will be automatically applied to this pull request:

  • hotspot-runtime

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@gerard-ziemski gerard-ziemski marked this pull request as ready for review March 20, 2025 20:11
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 20, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 20, 2025

Webrevs

Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay and trivial.

Thanks

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 21, 2025
@gerard-ziemski
Copy link
Author

Thank you!

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 21, 2025
@gerard-ziemski gerard-ziemski marked this pull request as draft March 21, 2025 21:09
@openjdk openjdk bot removed the rfr Pull request is ready for review label Mar 21, 2025
@gerard-ziemski gerard-ziemski marked this pull request as ready for review March 27, 2025 21:36
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 27, 2025
@gerard-ziemski
Copy link
Author

/integrate

@openjdk
Copy link

openjdk bot commented Apr 7, 2025

Going to push as commit 77fff61.
Since your change was applied there have been 130 commits pushed to the master branch:

  • 9128ec6: 8352935: Launcher should not add $JDK/../lib to LD_LIBRARY_PATH
  • 27c8d9d: 8352686: Opensource JInternalFrame tests - series3
  • 66435c2: 8352684: Opensource JInternalFrame tests - series1
  • 353e173: 8219408: Tests should handle ${} in the view of jtreg "smart action"
  • 26bb183: 8352621: MatchException from backwards incompatible change to switch expressions
  • e8c9e5c: 8353231: Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad still fails intermittently
  • 6ab1647: 8353637: ZGC: Discontiguous memory reservation is broken on Windows
  • c494a00: 8353559: Restructure CollectedHeap error printing
  • 32d6d03: 8349348: Refactor ClassLoaderDeadlock.sh and Deadlock.sh to run fully in java
  • 39549f8: 8352116: Deadlock with GCLocker and JVMTI after JDK-8192647
  • ... and 120 more: https://git.openjdk.org/jdk/compare/c0292203794bf3a8bfb02eac062e226ef2d07ee1...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 7, 2025
@openjdk openjdk bot closed this Apr 7, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 7, 2025
@openjdk
Copy link

openjdk bot commented Apr 7, 2025

@gerard-ziemski Pushed as commit 77fff61.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-runtime [email protected] integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants