mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8306843: JVMTI tag map extremely slow after JDK-8292741
Reviewed-by: sspitsyn, iklam
This commit is contained in:
parent
ab34cb98c8
commit
4251b56214
8 changed files with 286 additions and 84 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue