mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -708,7 +708,7 @@ void ConstantPoolCache::remove_unshareable_info() {
|
|||
}
|
||||
|
||||
void ConstantPoolCache::walk_entries_for_initialization(bool check_only) {
|
||||
assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "sanity");
|
||||
Arguments::assert_is_dumping_archive();
|
||||
// When dumping the archive, we want to clean up the ConstantPoolCache
|
||||
// to remove any effect of linking due to the execution of Java code --
|
||||
// each ConstantPoolCacheEntry will have the same contents as if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue