-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8290464: Optimize ResourceArea zapping on ResourceMark release #9543
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
8290464: Optimize ResourceArea zapping on ResourceMark release #9543
Conversation
|
👋 Welcome back shade! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
I think the placement of ResourceMark should be moved as well (maybe in a separate PR). I wonder if we have more cases like the one you found inside |
All right, that would be #9548. I actually thought about introducing |
tstuefe
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!
|
@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 82 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! Any other reviews/opinions? |
zhengyu123
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.
LGTM
|
@coleenp, you would be interested in this as well, I think. |
|
Thanks @shipilev it does look very nice. Edit: this seems fine. The other PR you have is very nice that I have to read. |
coleenp
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.
Ok, looks fine. The comments help. "replaced" didn't help me that much but can't think of a better name for it.
Had it like "old" originally, but it feels even more confusing: is it "old" that was before RM acquisition, or "old" that would be after RM release? |
|
yeah, keep "replaced" the comments tell you what it means. |
|
I ran /integrate |
|
Going to push as commit 7841e5c.
Your commit was automatically rebased without conflicts. |
We have
ResourceMarkscopes where we either do not resource-allocate at all (see the bug for the example), or we do not allocate a lot in the arena. Still, in debug builds, we are zapping the entirety ofResourceAreachunk in those cases. This wastes testing cycles unnecessarily. Doing this in a bit smarter way -- zapping only the parts that were actually allocated in the chunk -- makes testing significantly faster.Linux x86_64 fastdebug,
tier1:Additional testing:
FieldSetAccessibleTest(~12% faster)FieldSetAccessibleTest(no regressions)hotspot:tier1(~6% faster)hotspot:tier1(no regressions)tier1(~4% faster)tier1(no regressions)Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9543/head:pull/9543$ git checkout pull/9543Update a local copy of the PR:
$ git checkout pull/9543$ git pull https://git.openjdk.org/jdk pull/9543/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9543View PR using the GUI difftool:
$ git pr show -t 9543Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9543.diff