-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8293849: PrintIdealPhase in compiler directives file is ignored when used with other compile commands #10283
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
…used with other compile commands
|
👋 Welcome back chagedorn! A progress list of the required criteria for merging this PR into |
|
@chhagedorn 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. |
robcasloz
left a comment
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! Besides reproducing the reported issue, I also tested that
- compiler directives take precedence over compile commands (as specified in the Compiler Control JEP, paragraph "CompileCommand and backwards compatibility") if both provide a PrintIdealPhase; and
- the fix makes it possible to run compile commands on top of IR tests in your prototype changeset for JDK-8280378.
|
@chhagedorn 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 62 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 |
|
Thanks a lot Roberto for your review, the additional testing, and originally finding this bug! |
vnkozlov
left a comment
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.
|
Thanks Vladimir for your review! /integrate |
|
Going to push as commit d41f69f.
Your commit was automatically rebased without conflicts. |
|
@chhagedorn Pushed as commit d41f69f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
When using a compiler directives file with
PrintIdealPhase:together with other compile commands specified in
compilerdirectives_common_flagsand/orcompilerdirectives_c2_flags:jdk/src/hotspot/share/compiler/compilerDirectives.hpp
Lines 38 to 39 in aff5ff1
jdk/src/hotspot/share/compiler/compilerDirectives.hpp
Lines 63 to 64 in aff5ff1
then the
PrintIdealPhaseoption is ignored.The reason is that when cloning the
DirectiveSetfor the current compilation inDirectiveSet::clone(), we only setPrintIdealPhaseOptionbut forget to also set_ideal_phase_name_maskwhich is used when deciding if a compile phase should be dumped or not. As a result, the mask keeps its default value zero and nothing is dumped becauseCompile::shoud_print_phase()returns false:jdk/src/hotspot/share/opto/compile.cpp
Lines 5060 to 5067 in aff5ff1
The fix is to also clone the old value of
_ideal_phase_name_mask.Thanks,
Christian
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10283/head:pull/10283$ git checkout pull/10283Update a local copy of the PR:
$ git checkout pull/10283$ git pull https://git.openjdk.org/jdk pull/10283/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10283View PR using the GUI difftool:
$ git pr show -t 10283Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10283.diff