From dc6d52cea54eb8c8793dd0f46002c28ec43d9d2c Mon Sep 17 00:00:00 2001 From: Ioi Lam Date: Thu, 9 Feb 2023 00:30:07 +0000 Subject: [PATCH] 8301876: Crash in DumpTimeClassInfo::add_verification_constraint Reviewed-by: ccheung, matsaave --- src/hotspot/share/classfile/systemDictionaryShared.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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"); } };