diff --git a/src/hotspot/share/classfile/systemDictionaryShared.cpp b/src/hotspot/share/classfile/systemDictionaryShared.cpp index 2d608b4e2b8..71bdfab62cc 100644 --- a/src/hotspot/share/classfile/systemDictionaryShared.cpp +++ b/src/hotspot/share/classfile/systemDictionaryShared.cpp @@ -1449,11 +1449,9 @@ class CloneDumpTimeClassTable: public StackObj { assert(_cloned_table != nullptr, "_cloned_table is nullptr"); } void do_entry(InstanceKlass* k, DumpTimeClassInfo& info) { - if (!info.is_excluded()) { - bool created; - _cloned_table->put_if_absent(k, info, &created); - assert(created, "must be"); - } + bool created; + _cloned_table->put_if_absent(k, info, &created); + assert(created, "must be"); } };