-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8366475: Rename MetaspaceShared class to AOTMetaspace #27017
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
8366475: Rename MetaspaceShared class to AOTMetaspace #27017
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 13 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 |
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.
Good.
@stefank also asked about |
…into 8366475-rename-metaspace-shared-to-aot-metaspace
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.
@@ -24,7 +24,7 @@ | |||
*/ | |||
|
|||
#include "cds/cdsConfig.hpp" | |||
#include "cds/metaspaceShared.hpp" | |||
#include "cds/aotMetaspace.hpp" |
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.
There are few places, like this, where the header files are no longer in sorted order. Can you please update them.
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.
Fixed.
@@ -23,7 +23,7 @@ | |||
*/ | |||
|
|||
#include "cds/cdsConfig.hpp" | |||
#include "cds/metaspaceShared.hpp" | |||
#include "cds/aotMetaspace.hpp" |
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.
header files are not sorted
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.
Fixed.
@@ -3504,7 +3504,7 @@ JVM_ENTRY(void, JVM_DumpClassListToFile(JNIEnv *env, jstring listFileName)) | |||
ResourceMark rm(THREAD); | |||
Handle file_handle(THREAD, JNIHandles::resolve_non_null(listFileName)); | |||
char* file_name = java_lang_String::as_utf8_string(file_handle()); | |||
MetaspaceShared::dump_loaded_classes(file_name, THREAD); | |||
AOTMetaspace::dump_loaded_classes(file_name, THREAD); |
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.
Shouldn't this file include aotMetaspace.hpp
directly?
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.
Fixed.
@@ -23,7 +23,7 @@ | |||
*/ | |||
|
|||
#include "cds/cdsConfig.hpp" | |||
#include "cds/metaspaceShared.hpp" | |||
#include "cds/aotMetaspace.hpp" |
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.
headers are not sorted
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.
Fixed.
src/hotspot/share/prims/whitebox.cpp
Outdated
@@ -27,7 +27,7 @@ | |||
#include "cds/cdsConstants.hpp" | |||
#include "cds/filemap.hpp" | |||
#include "cds/heapShared.hpp" | |||
#include "cds/metaspaceShared.hpp" | |||
#include "cds/aotMetaspace.hpp" |
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.
header files are not sorted
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.
Fixed.
@@ -448,7 +448,7 @@ void before_exit(JavaThread* thread, bool halt) { | |||
ClassListWriter::write_resolved_constants(); | |||
|
|||
if (CDSConfig::is_dumping_preimage_static_archive()) { | |||
MetaspaceShared::preload_and_dump(thread); | |||
AOTMetaspace::preload_and_dump(thread); |
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.
Shouldn't this file include aotMetaspace.hpp
directly?
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.
Fixed.
@@ -28,7 +28,7 @@ | |||
#include "cds/cds_globals.hpp" | |||
#include "cds/cdsConfig.hpp" | |||
#include "cds/heapShared.hpp" | |||
#include "cds/metaspaceShared.hpp" | |||
#include "cds/aotMetaspace.hpp" |
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.
header files are not sorted
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.
Fixed.
The parent pull request that this pull request depends on has now been integrated and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork: git checkout 8366475-rename-metaspace-shared-to-aot-metaspace
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
@iklam this pull request can not be integrated into git checkout 8366475-rename-metaspace-shared-to-aot-metaspace
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 |
|
…into 8366475-rename-metaspace-shared-to-aot-metaspace
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
@iklam thanks for addressing the comments. |
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.
Re-approved
Thanks @vnkozlov @ashu-mehra for the review |
Going to push as commit f90d520.
Your commit was automatically rebased without conflicts. |
This PR is one (of many) steps in JDK-8366473 (Refactor CDS source code with new AOT terminology):
Rename this class to with a naming convention that's consistent with other new AOT classes such as AOTClassLinker.
All changes are mechanical text replacement. Headers are resorted alphabetically.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27017/head:pull/27017
$ git checkout pull/27017
Update a local copy of the PR:
$ git checkout pull/27017
$ git pull https://git.openjdk.org/jdk.git pull/27017/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27017
View PR using the GUI difftool:
$ git pr show -t 27017
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27017.diff
Using Webrev
Link to Webrev Comment