JDK-8318089: Class space not marked as such with NMT when CDS is off#16184
Conversation
|
👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into |
|
@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 76 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 |
| // This does currently not work because rs may be the result of a split | ||
| // operation and NMT seems not to be able to handle splits. | ||
| // Will be fixed with JDK-8243535. | ||
| // MemTracker::record_virtual_memory_type((address)rs.base(), mtClass); |
There was a problem hiding this comment.
So why not just uncomment this line, instead of moving this to the caller?
There was a problem hiding this comment.
There are two initialization paths: one is used when running with CDS, and metaspace is initialized together with it, and one is when running without CDS. This function is used for both. The CDS path is already covered, though, I only need to do the NMT registration for the non-CDS case. Otherwise, we register things doubly.
There was a problem hiding this comment.
Should have written that in the PR description, sorry.
dholmes-ora
left a comment
There was a problem hiding this comment.
Thanks for the explanation.
Looks good.
|
Thanks @dholmes-ora ! /integrate |
|
Going to push as commit c0e154c.
Your commit was automatically rebased without conflicts. |
If Xshare is off, we don't correctly register class space with NMT. We should do that.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16184/head:pull/16184$ git checkout pull/16184Update a local copy of the PR:
$ git checkout pull/16184$ git pull https://git.openjdk.org/jdk.git pull/16184/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16184View PR using the GUI difftool:
$ git pr show -t 16184Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16184.diff
Webrev
Link to Webrev Comment