-
Notifications
You must be signed in to change notification settings - Fork 6.2k
JDK-8267916: Adopt cast notation for CompilerThread conversions #4240
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 ayang! A progress list of the required criteria for merging this PR into |
|
@albertnetymk 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. |
Webrevs
|
|
Sorry I'm not seeing the need for a new compilerThread.inline.hpp. That isn't making things consistent AFAICS - if we haven't factored out CompilerThread into its own header we shouldn't have compilerThread.inline.hpp. David |
It's the renaming and move to |
|
Sorry I looked at this too late at night:
but we do of course have that. |
|
I encountered some circular dependencies after moving the definition to |
kimbarrett
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.
as_Worker_thread => WorkerThread::cast could pretty easily be added to this change. There's only one call. There are lots of as_Java_thread calls. Maybe check with runtime team how they feel about the inconsistency vs code churn. |
I prefer As far as code churn, JDK-8252685 already removed a bunch of |
iklam
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.
This looks good to me. If we decide to use Compiler::cast, the RFE title should be updated before integration.
dholmes-ora
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.
The change to CompilerThread::cast doesn't seem necessary to address any circular header dependencies - what am I missing?
I personally prefer the as_X() style for thread casts (though X is spelt incorrectly in most places), but cast is a more traditional name and used for other type hierarchies in the VM. So we can change this for other thread types in a separate RFE.
As Ioi notes, this RFE needs a new synopsis: "Adopt cast notation for CompilerThread conversions" or something like that.
Thanks,
David
Doh! I was missing the fact the cast method goes in compilerThread.hpp not thread.hpp. |
|
@albertnetymk 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 98 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 |
I will do that in another PR to keep this one more focused.
Updated. Thank you all for the suggestions and reviews. /integrate |
|
@albertnetymk Since your change was applied there have been 98 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit a52a08d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Simple refactoring around
as_CompilerThread. A new file,compilerThread.inline.hpp, is created to get around the circular dependency.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4240/head:pull/4240$ git checkout pull/4240Update a local copy of the PR:
$ git checkout pull/4240$ git pull https://git.openjdk.java.net/jdk pull/4240/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4240View PR using the GUI difftool:
$ git pr show -t 4240Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4240.diff