-
Notifications
You must be signed in to change notification settings - Fork 396
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
Define new IfJitProfiling option for optimizer #6782
Define new IfJitProfiling option for optimizer #6782
Conversation
Rahil @r30shah, I'm just running a personal build on this change to make sure there aren't any unexpected test failures, so I've marked it as a draft pull request. Once I mark it as ready-for-review, may I ask you to review this change? |
Hi @hzongaro I did skimmed through the update in eclipse-openj9/openj9#15569 (comment), will go in details soon, but to make clear, One of the main advantage of JProfiling over JIT profiling was that we were not limited in our capabilities in performing optimizations even at profiled very-hot case. So do you think compact locals are not compatible with the trees generated by JProfiling? If not, I would like to fix that. |
Hi, Rahil @r30shah.
No, I think the problem lies with trees that are unrelated to JProfiling. I think that dead trees elimination results in changes to the trees that invalidate the analysis that was performed by compact locals. Near the end of OpenJ9's hot and very-hot optimization strategies, we find
One of the opts defined in So if the profiling mode is I think we either need to change things so that compact locals is not run if the profiling mode is |
Hi @hzongaro sorry for the delay in looking at this. Looking at the detailed update in eclipse-openj9/openj9#15569 (comment) and #6782 (comment) I think the issue is actually with the In case of JProfiling we would not need to run |
I was hoping I would be able to rename the branch to reflect the new direction, but Github decided that I had deleted the branch and closed this pull request. I'll reopen it and put my revised changes on the old (now poorly named) branch. |
40e1ac7
to
1caae0b
Compare
The list of optimization options includes an IfNotJitProfiling that can be used to run optimizations only if JitProfiling mode is not enabled. This change adds an IfJitProfiling option that can be used to run optimizations only if JitProfiling mode is enabled.
1caae0b
to
c846aba
Compare
Rahil @r30shah, I have revised this pull request along with the downstream OpenJ9 pull request eclipse-openj9/openj9#16155. May I ask you to re-review? |
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 to me. @vijaysun-omr Can you please review and merge this change?
Jenkins build all |
The linux_ppc-64_le_gcc CI failure appears to be a long-standing problem unrelated to this change. See issue #6571 |
Reviews are done and checks have passed, except a known unrelated problem. Merging. |
The list of optimization options includes an
IfNotJitProfiling
that can be used to run optimizations only if JitProfiling mode is not enabled. This change adds anIfJitProfiling
option that can be used to run optimizations only if JitProfiling mode is enabled.This pull request is part of the fix for the problem reported in issue eclipse-openj9/openj9#15569
Downstream pull request eclipse-openj9/openj9#16155 depends on this pull request.