mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8231606: _method_ordering is not set during CDS dynamic dump time
Add the missing DynamicDumpSharedSpaces check in sort_methods(); replace the (DumpSharedSpaces || DynamicDumpSharedSpaces) with the Arguments::is_dumping_archive() function call. Reviewed-by: iklam, coleenp, jiangli
This commit is contained in:
parent
72c2079fd0
commit
b08a8c5cc3
24 changed files with 73 additions and 54 deletions
|
@ -525,7 +525,7 @@ void Klass::metaspace_pointers_do(MetaspaceClosure* it) {
|
|||
}
|
||||
|
||||
void Klass::remove_unshareable_info() {
|
||||
assert (DumpSharedSpaces || DynamicDumpSharedSpaces,
|
||||
assert (Arguments::is_dumping_archive(),
|
||||
"only called during CDS dump time");
|
||||
JFR_ONLY(REMOVE_ID(this);)
|
||||
if (log_is_enabled(Trace, cds, unshareable)) {
|
||||
|
@ -543,7 +543,7 @@ void Klass::remove_unshareable_info() {
|
|||
}
|
||||
|
||||
void Klass::remove_java_mirror() {
|
||||
assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "only called during CDS dump time");
|
||||
Arguments::assert_is_dumping_archive();
|
||||
if (log_is_enabled(Trace, cds, unshareable)) {
|
||||
ResourceMark rm;
|
||||
log_trace(cds, unshareable)("remove java_mirror: %s", external_name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue