RFR(S) 8246181: Avoid walking SymbolTable during -Xshare:dump

Yumin Qi yumin.qi at oracle.com
Tue Jun 23 21:44:32 UTC 2020

Hi, Please review

Bug: https://bugs.openjdk.java.net/browse/JDK-8246181


Summary: This is a little different from the bug suggested 
implementation. To avoid working the SymbolTable during dump, the symbol 
is added to a global array when it is created, 
SymbolTable::do_add_if_needed. The symbol only created once during its 
lifetime. There is just little performance overhead for runtime.

Tests: local jtreg on runtime/cds/appcds for debug/release.

mach5: tier1,tier2,tier4



More information about the hotspot-runtime-dev mailing list