-
Notifications
You must be signed in to change notification settings - Fork 137
8373347: [lworld] Minor cleanups in the memory directory #1781
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 stefank! A progress list of the required criteria for merging this PR into |
|
@stefank 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 no new commits pushed to the 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 (@fparain) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Arraying
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, although maybe someone knows the historic reason of why we had do_oop_no_buffering to begin with.
|
It is a remain of an experiment to use a small thread-local area to store buffered values, which are often short lived, with a kind of automatic reclamation based on frame exits (I'm simplifying here). The idea was to avoid filling the Java heap with those buffered values. It worked but performance was bad. Browsing interpreter frames to find which values in this thread-local area were still alive was expensive, and the ratio cost/amount_of_memory_freed was not good. At the end, the Java heap GC was more efficient to handle those short lived buffered values, especially with generational GCs. |
|
Thanks for the reviews. This passed tier1 testing. |
|
/sponsor |
|
Going to push as commit 6e15674. |
There are a few left-over blank line changes, redundant includes, and unused code in the memory/ directory. I suggest that we clean those out to make it nicer to review the patch.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1781/head:pull/1781$ git checkout pull/1781Update a local copy of the PR:
$ git checkout pull/1781$ git pull https://git.openjdk.org/valhalla.git pull/1781/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1781View PR using the GUI difftool:
$ git pr show -t 1781Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1781.diff
Using Webrev
Link to Webrev Comment