mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8166848: Performance bug: SystemDictionary - optimization
Check instead that a bucket isn't 10x the average Reviewed-by: iklam, gziemski, sspitsyn
This commit is contained in:
parent
553d1e815b
commit
f820e2f2ee
9 changed files with 55 additions and 191 deletions
|
@ -510,18 +510,7 @@ void ModuleEntry::print(outputStream* st) {
|
|||
}
|
||||
|
||||
void ModuleEntryTable::verify() {
|
||||
int element_count = 0;
|
||||
for (int i = 0; i < table_size(); i++) {
|
||||
for (ModuleEntry* probe = bucket(i);
|
||||
probe != NULL;
|
||||
probe = probe->next()) {
|
||||
probe->verify();
|
||||
element_count++;
|
||||
}
|
||||
}
|
||||
guarantee(number_of_entries() == element_count,
|
||||
"Verify of Module Entry Table failed");
|
||||
DEBUG_ONLY(verify_lookup_length((double)number_of_entries() / table_size(), "Module Entry Table"));
|
||||
verify_table<ModuleEntry>("Module Entry Table");
|
||||
}
|
||||
|
||||
void ModuleEntry::verify() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue