8246181: Avoid walking SymbolTable during -Xshare:dump

All symbols at dump are created as permanent. Store them in a global array to avoid working SymbolTable.

Reviewed-by: iklam, ccheung
This commit is contained in:
Yumin Qi 2020-06-24 11:15:22 -07:00
parent 1550fd889b
commit 0e60e8ad85
5 changed files with 47 additions and 42 deletions

View file

@ -130,6 +130,7 @@ extern Mutex* CDSClassFileStream_lock; // FileMapInfo::open_stream_for
#endif
extern Mutex* DumpTimeTable_lock; // SystemDictionaryShared::find_or_allocate_info_for
extern Mutex* CDSLambda_lock; // SystemDictionaryShared::get_shared_lambda_proxy_class
extern Mutex* CDSAddSymbol_lock; // SystemDictionaryShared::add_symbol
#endif // INCLUDE_CDS
#if INCLUDE_JFR
extern Mutex* JfrStacktrace_lock; // used to guard access to the JFR stacktrace table