--- old/src/hotspot/share/classfile/symbolTable.cpp 2020-07-31 23:33:51.271935519 -0700 +++ new/src/hotspot/share/classfile/symbolTable.cpp 2020-07-31 23:33:51.075928141 -0700 @@ -513,13 +513,6 @@ } assert((sym == NULL) || sym->refcount() != 0, "found dead symbol"); -#if INCLUDE_CDS - if (DumpSharedSpaces) { - if (sym != NULL) { - MetaspaceShared::add_symbol(sym); - } - } -#endif return sym; }