8306843: JVMTI tag map extremely slow after JDK-8292741

Reviewed-by: sspitsyn, iklam
This commit is contained in:
Coleen Phillimore 2023-05-10 12:32:06 +00:00
parent ab34cb98c8
commit 4251b56214
8 changed files with 286 additions and 84 deletions

View file

@ -659,12 +659,11 @@ class VerifyCompStrings : StackObj {
return java_lang_String::equals(a, b);
}
ResizeableResourceHashtable<oop, bool,
AnyObj::C_HEAP, mtInternal,
ResizeableResourceHashtable<oop, bool, AnyObj::C_HEAP, mtInternal,
string_hash, string_equals> _table;
public:
size_t _errors;
VerifyCompStrings() : _table(unsigned(_items_count / 8) + 1), _errors(0) {}
VerifyCompStrings() : _table(unsigned(_items_count / 8) + 1, 0 /* do not resize */), _errors(0) {}
bool operator()(WeakHandle* val) {
oop s = val->resolve();
if (s == nullptr) {