8301876: Crash in DumpTimeClassInfo::add_verification_constraint

Reviewed-by: ccheung, matsaave
This commit is contained in:
Ioi Lam 2023-02-09 00:30:07 +00:00
parent 873558ee80
commit dc6d52cea5

View File

@ -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");
}
};