-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8336103: Clean up confusing Method::is_initializer #20120
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
8336103: Clean up confusing Method::is_initializer #20120
Conversation
|
👋 Welcome back shade! A progress list of the required criteria for merging this PR into |
|
@shipilev 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 251 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 |
|
Caught some test failures, back to draft. |
Webrevs
|
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.
It is evident that people have been unfamiliar/sloppy with this API. This change should help prevent that in future. I have a concern about one change.
Thanks
|
Putting back to draft until the behavioral changes are done in separate sub-tasks. |
|
@shipilev this pull request can not be integrated into git checkout JDK-8336103-is-initializer-checks
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
a18f7a4 to
b6653e6
Compare
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.
|
Thank you! I think I need another formal Reviewer comment before I can integrate. |
|
@dholmes-ora -- maybe you want to sanity check this again? |
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.
Simplified version looks good. Sorry I didn't spot this had been updated.
|
Thank you! /integrate |
|
Going to push as commit 54c9348.
Your commit was automatically rebased without conflicts. |
All around Hotspot, we have calls to
method->is_initializer(). That method tests for both instance and static initializers. In many cases, the uses imply we actually want to test for constructor, not static initializer. Sometimes we filter explicitly for!m->is_static(), sometimes we don't. At this point, I think the best way to prevent future accidents is to remove the confusingis_initializer.The behavioral changes have been handled by already integrated PRs, see the links in JBS. The changes left here are not (supposed to be) changing the behavior.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/20120/head:pull/20120$ git checkout pull/20120Update a local copy of the PR:
$ git checkout pull/20120$ git pull https://git.openjdk.org/jdk.git pull/20120/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 20120View PR using the GUI difftool:
$ git pr show -t 20120Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/20120.diff
Webrev
Link to Webrev Comment