-
Notifications
You must be signed in to change notification settings - Fork 6k
8273712: C2: Add mechanism for rejecting inlining of low frequency call sites and deprecate MinInliningThreshold. #6046
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
Conversation
👋 Welcome back iveresov! A progress list of the required criteria for merging this PR into |
/label add hotspot-compiler |
/label remove hotspot |
@veresov |
@veresov |
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.
Looks fine but I don't see CSR filed for MinInliningThreshold which is product flag.
@veresov 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 63 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. ➡️ To integrate this PR with the above commit message to the |
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.
Looks good.
I'm going to file it now. |
I've filed a CSR (https://bugs.openjdk.java.net/browse/JDK-8275676). Could you guys please yourselves as reviewers to it? Thanks! |
/integrate |
Going to push as commit 89671aa.
Your commit was automatically rebased without conflicts. |
Currently the inlining heuristic uses absolute method invocation count to reject methods that are rarely executed (see MinInliningThreshold and its uses).
This presents two problems:
The proposed solution is to consider call site execution ratio in order to reject callees that are rarely executed. Set the old cutoff parameter (MinInliningThreshold) to 0 to essentially disable it and later deprecate it.
Setting the introduced MinInlineFrequencyRatio = 0.0085 produces the following notable improvements:
Renaissance-Dotty 1.23%
Renaissance-Mnemonics 3.88%
Renaissance-NaiveBayes 9.23%
Renaissance-ScalaKmeans 1.36%
SPECjvm2008-Derby 3.16%
There are of course some regressions but those are few and on the order of 1.5%
This PR will require a CSR before it can be pushed. I'll file a CSR after this is reviewed.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6046/head:pull/6046
$ git checkout pull/6046
Update a local copy of the PR:
$ git checkout pull/6046
$ git pull https://git.openjdk.java.net/jdk pull/6046/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6046
View PR using the GUI difftool:
$ git pr show -t 6046
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6046.diff