-
Notifications
You must be signed in to change notification settings - Fork 5.8k
JDK-8254189: Improve comments for StackOverFlow and fix in_xxx() functions #795
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 stuefe! 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.
Hi Thomas,
Seems okay.
One nit below.
Thanks,
David
@tstuefe 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 125 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 |
Ping... May I have a second review please? Its quite trivial. |
Very nice. Personally I'd like to see additional: ASSERT_TRUE(so.in_stack_red_zone(so.stack_end())); in the test, to drive home the point of the inclusion of the ranges, but that's a tiny nick pick. |
Thank you, Gerard.
I can do this. Will have to reshape those a bit since there is no "in_yellow_zone" (I considered adding one for tests sake but then did not). ...Thomas |
... and StackOverFlow::stack_end() is private, so I cannot use it in ASSERT either... |
/integrate |
@tstuefe Since your change was applied there have been 125 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 4031cb4. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Sorry for not getting to this review on time. Thank you for doing this and writing the gtest. This is really nice. |
Hi,
may I please have reviews for this small cleanup / fix?
While reviewing JDK-8253717 it was found that comments would help with understanding the StackOverFlow class. Especially the fact that the various base are actually pointing outside their respective zone, since the stack grows downward and a zone (and the stack itself) range is [end, base). If you don't look at this code daily it can be surprising.
This also fixes some small off-by-one errors in various "in_stack_xxx_zone()" methods which test whether a given address is inside a zone and gave wrong results for address=base since base points outside its zone. This had the effect that an address could be in multiple zones.
Finally it adds a small gtest which tests the StackOverFlow methods.
/issue: JDK-8254189
Progress
Testing
Failed test task
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/795/head:pull/795
$ git checkout pull/795