-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Wrong call-tree output when using -H:+PrintAnalysisCallTree
#3166
Comments
So when I look at the diff between the actual out and what you expect, then
But we want to have methods at the lowest depth possible and without repetition. Why would you want to change that? |
If I am not mistaken,
If not printed multiple times how can we know that |
ad 1) Our static analysis (like about every other static analysis) does not look at primitive values. So even if for you it is obvious that a constant parameter ad 2) Note that |
Interesting, thanks for the explanation Christian! |
And for the record: We have started working on method inlining before static analysis, and will expand that work in the future. That means for really small methods (which in your example is the case), method inlining before static analysis will at some point in the future be able to inline all your No idea yet how that will show up in the text format of the call tree printing, maybe something like |
Describe the issue
Using
-H:+PrintAnalysisCallTree
on the following java example:results in the following call tree:
while I would expect something like the following:
Steps to reproduce the issue
Please include both build steps as well as run steps
javac CallTree.java
native-image -H:+PrintAnalysisCallTree CallTree
grep -C10 CallTree reports/call_tree_calltree_*.txt
Describe GraalVM and your environment:
The text was updated successfully, but these errors were encountered: