-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8353815: [ubsan] compilationPolicy.cpp: division by zero related to tiered compilation flags #25902
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mhaessig! A progress list of the required criteria for merging this PR into |
@mhaessig 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 29 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@MBaesken, @vnkozlov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good
A run of
runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
with an ubsan enabled binary revealed that passing the value 0 toTier(3|4)LoadFeedback
, andTieredRateUpdateMinTime
lead to division by zero.Since
Tier(3|4)LoadFeedback
should disable the scaling of the compilation thresholds, 8bf37ee special cases the 0 case to disable scaling and documents it accordingly.4893b28 sets the lower limit for
TieredRateUpdate(Min|Max)Time
to 1 since the code assumes that at least 1ms passes between each event:jdk/src/hotspot/share/compiler/compilationPolicy.cpp
Lines 968 to 974 in c4fb00a
This PR was tested with:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25902/head:pull/25902
$ git checkout pull/25902
Update a local copy of the PR:
$ git checkout pull/25902
$ git pull https://git.openjdk.org/jdk.git pull/25902/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25902
View PR using the GUI difftool:
$ git pr show -t 25902
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25902.diff
Using Webrev
Link to Webrev Comment