8306695: Divide by zero in G1Policy::logged_cards_processing_time#13601
8306695: Divide by zero in G1Policy::logged_cards_processing_time#13601kimbarrett wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back kbarrett! A progress list of the required criteria for merging this PR into |
|
@kimbarrett The following label will be automatically applied to this pull request:
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. |
Webrevs
|
|
@kimbarrett 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: 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 1 new commit pushed to the Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
@kimbarrett Pushed as commit 8063aa2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this change to G1Policy::logged_cards_processing_time to avoid a
floating point division by zero when both the number of logged cards and the
total cards processed are zero. This happens during early GCs. The fix is to
change the comparison used to decide between scaling the total time vs
ascribing all of the time to the logged cards. It is changed from ">" to ">="
so that it also covers the case of both values being zero.
Testing:
mach5 tier1
Local build with UBSAN and verified there are no longer any division by zero
errors reported by it.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13601/head:pull/13601$ git checkout pull/13601Update a local copy of the PR:
$ git checkout pull/13601$ git pull https://git.openjdk.org/jdk.git pull/13601/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13601View PR using the GUI difftool:
$ git pr show -t 13601Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13601.diff
Webrev
Link to Webrev Comment