-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8261675: ObjectValue::set_visited(bool) sets _visited false #2560
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 xliu! A progress list of the required criteria for merging this PR into |
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.
Wow. This was original changes for first implementation of Escape Analysis 6558600.
But it works because the only place where set_visited()
is called it sets to false
:
debugInfoRec.cpp#L358
is_visited()
is not called at all - _visited
field is accessed directly only in one place:
debugInfo.cpp#L161
Would be nice to clean up this mess.
In addition to your fix you can consider next changes to avoid dumping unneeded data in debug info (deoptimizer reads objects data only from top frame deoptimization.cpp#L190:
|
hi, Vladimir, Thank you for reviewing this patch. I don't understand why it's depth < max_depth instead of <=.
but I get your point. It seems that |
use getter and setter of _visited. update the year of copyright.
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.
I am fine with your current change (getter and setter). Let push it.
And I will work on suggested optimization/clean in separate RFE (change will need comments to avoid confusion, as you have).
@navyxliu 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 81 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@vnkozlov) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
Hi, Vladimir,
Sounds good. Thank you for sponsoring it. |
/sponsor |
Note, I think it is trivial change and one review is enough. |
@vnkozlov @navyxliu Since your change was applied there have been 81 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 2677f6f. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The setter is error-prone. it unconditionally sets _visited false.
this patch stores the argument to it.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2560/head:pull/2560
$ git checkout pull/2560