-
Notifications
You must be signed in to change notification settings - Fork 120
8364483: [lworld] Pre-register migrated classes in class loaders #1520
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
@@ -35,6 +35,7 @@ | |||
#include "memory/iterator.inline.hpp" | |||
#include "oops/inlineKlass.inline.hpp" | |||
#include "utilities/debug.hpp" | |||
#include "utilities/copy.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.
This is unrelated but needed to get the product build to build.
👋 Welcome back coleenp! A progress list of the required criteria for merging this PR into |
@coleenp 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 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
template<typename Function> | ||
static void migrated_class_names_do(Function f) { | ||
for (int i = 0; i < _migrated_class_names_length; i++) { | ||
//f->do_symbol(&_migrated_class_names[i]); |
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.
Commented line to be removed?
I don't love having to enumerate all the classes in more than one place, but I also don't want to add another X macro. |
_migrated_class_names[i++] = java_time_chrono_MinguoDate(); | ||
_migrated_class_names[i++] = java_time_chrono_HijrahDate(); | ||
_migrated_class_names[i++] = java_time_chrono_JapaneseDate(); | ||
_migrated_class_names[i++] = java_time_chrono_ThaiBuddhistDate(); |
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.
Should this assert(i == _migrated_class_names_length);
as a handshake with the size of the set of migrated classes declared in vmSymbols.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.
That's a good idea. I didn't know a better C++ way to initialize these. I'm sure it exists.
Thanks again, Dan. |
Going to push as commit ed21796.
Your commit was automatically rebased without conflicts. |
The official list of migrated classes is in |
This is a temporary measure to make up for classfiles that don't have a |
This change preloads and preregisters all classes in the migrated classes lists, in all class loaders.
Tested with tier1 locally and with -XX:+PrintSystemDictionaryAtExit.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1520/head:pull/1520
$ git checkout pull/1520
Update a local copy of the PR:
$ git checkout pull/1520
$ git pull https://git.openjdk.org/valhalla.git pull/1520/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1520
View PR using the GUI difftool:
$ git pr show -t 1520
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1520.diff
Using Webrev
Link to Webrev Comment