8292446: Make TableRateStatistics optional in CHT

Reviewed-by: coleenp, rehn
This commit is contained in:
Johan Sjölén 2022-08-19 16:39:32 +00:00 committed by Coleen Phillimore
parent 45dec480ef
commit 1f3578b79c
8 changed files with 45 additions and 28 deletions

View file

@ -223,7 +223,7 @@ void StringTable::create_table() {
_current_size = ((size_t)1) << start_size_log_2;
log_trace(stringtable)("Start size: " SIZE_FORMAT " (" SIZE_FORMAT ")",
_current_size, start_size_log_2);
_local_table = new StringTableHash(start_size_log_2, END_SIZE, REHASH_LEN);
_local_table = new StringTableHash(start_size_log_2, END_SIZE, REHASH_LEN, true);
_oop_storage = OopStorageSet::create_weak("StringTable Weak", mtSymbol);
_oop_storage->register_num_dead_callback(&gc_notification);
}