-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8366474: Rename MetaspaceObj::is_shared() to MetaspaceObj::in_aot_cache() #27016
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
8366474: Rename MetaspaceObj::is_shared() to MetaspaceObj::in_aot_cache() #27016
Conversation
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
@iklam 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 ➡️ To integrate this PR with the above commit message to the |
src/hotspot/share/include/cds.h
Outdated
@@ -35,7 +35,7 @@ | |||
// | |||
// Also, this is a C header file. Do not use C++ here. | |||
|
|||
#define NUM_CDS_REGIONS 5 // this must be the same as MetaspaceShared::n_regions | |||
#define NUM_CDS_REGIONS 5 // this must be the same as AOTMetaspace::n_regions |
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.
This file changes seems belong to your other RFE JDK-8366475.
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.
But I am fine to have it here - it is only in comments.
System.out.println("MetaspaceShared::core_region_alignment() = " + reserve_alignment); | ||
System.out.println("AOTMetaspace::core_region_alignment() = " + reserve_alignment); |
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.
Here too.
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 removed these changes and re-applied them in #27017 .
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.
Good. In few places you used AOTMetaspace
in comments and messages. But I think it is fine. I assume you push this first.
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.
Update is good.
Maybe the JBS title should be a bit more generic as you seem to be renaming many occurrences of "shared" not just the one listed. |
The majority of the changes are about This PR is one of the (many) subtasks for the "CDS" -> "AOT" renaming (main issue is JDK-8366473). My plan is to name each subtask to indicate its main purpose. Otherwise it will be difficult to be both precise and concise in the JBS title.
|
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.
This rename is absolutely clarifying. Did not review the technical aspects of hotspot.
@iklam this pull request can not be integrated into git checkout 8366474-rename_metaspaceobj_is_shared_to_in_aot_cache
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
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.
The subsequent fix looks good.
This PR is one (of many) steps in JDK-8366473 (Refactor CDS source code with new AOT terminology):
Rename
is_shared()
inMetaspace
(and various other classes) toin_aot_cache()
to reflect its true meaning:Also various forms of "shared metaspace" are updated to "aot metaspace"
Please start your review with allocations.hpp
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27016/head:pull/27016
$ git checkout pull/27016
Update a local copy of the PR:
$ git checkout pull/27016
$ git pull https://git.openjdk.org/jdk.git pull/27016/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27016
View PR using the GUI difftool:
$ git pr show -t 27016
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27016.diff
Using Webrev
Link to Webrev Comment