mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -220,7 +220,7 @@ Symbol* SymbolTable::allocate_symbol(const char* name, int len, bool c_heap) {
|
|||
assert (len <= Symbol::max_length(), "should be checked by caller");
|
||||
|
||||
Symbol* sym;
|
||||
if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
|
||||
if (Arguments::is_dumping_archive()) {
|
||||
c_heap = false;
|
||||
}
|
||||
if (c_heap) {
|
||||
|
@ -283,7 +283,7 @@ public:
|
|||
};
|
||||
|
||||
void SymbolTable::metaspace_pointers_do(MetaspaceClosure* it) {
|
||||
assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "called only during dump time");
|
||||
Arguments::assert_is_dumping_archive();
|
||||
MetaspacePointersDo mpd(it);
|
||||
_local_table->do_safepoint_scan(mpd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue