8345374: Ubsan: runtime error: division by zero#22893
8345374: Ubsan: runtime error: division by zero#22893kimbarrett wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back kbarrett! A progress list of the required criteria for merging this PR into |
|
@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 4 new commits 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 |
|
@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. |
| } | ||
|
|
||
| static size_t target_heap_capacity(size_t used_bytes, uintx free_ratio) { | ||
| assert(free_ratio <= 100, "precondition"); |
There was a problem hiding this comment.
Doesn't debug.hpp have precond for this?
There was a problem hiding this comment.
It does, and hardly anyone uses it.
TheShermanTanker
left a comment
There was a problem hiding this comment.
Looks alright, but I think the title needs to be changed to match the one on the tracker
|
Thanks for reviews @TheShermanTanker , @albertnetymk , and @offamitkumar |
|
/integrate |
|
Going to push as commit a87bc7e.
Your commit was automatically rebased without conflicts. |
|
@kimbarrett Pushed as commit a87bc7e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this change to G1HeapSizingPolicy to avoid a float division by
zero when calculating the maximum desired capacity with a MaxHeapFreeRatio
value of 100%.
Testing: mach5 tier1 with G1 and MaxHeapFreeRatio=100.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22893/head:pull/22893$ git checkout pull/22893Update a local copy of the PR:
$ git checkout pull/22893$ git pull https://git.openjdk.org/jdk.git pull/22893/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22893View PR using the GUI difftool:
$ git pr show -t 22893Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22893.diff
Using Webrev
Link to Webrev Comment