8292686: runtime/cds/appcds/TestWithProfiler.java SIGSEGV in TableStatistics ctr

Reviewed-by: dcubed, hseigel
This commit is contained in:
Coleen Phillimore 2022-08-19 20:47:24 +00:00
parent 235151ead8
commit 07c9ba74fa
2 changed files with 2 additions and 2 deletions
src/hotspot/share/classfile

@ -503,7 +503,7 @@ bool StringTable::do_rehash() {
// We use current size, not max size.
size_t new_size = _local_table->get_size_log2(Thread::current());
StringTableHash* new_table = new StringTableHash(new_size, END_SIZE, REHASH_LEN);
StringTableHash* new_table = new StringTableHash(new_size, END_SIZE, REHASH_LEN, true);
// Use alt hash from now on
_alt_hash = true;
if (!_local_table->try_move_nodes_to(Thread::current(), new_table)) {

@ -172,7 +172,7 @@ void SymbolTable::create_table () {
_current_size = ((size_t)1) << start_size_log_2;
log_trace(symboltable)("Start size: " SIZE_FORMAT " (" SIZE_FORMAT ")",
_current_size, start_size_log_2);
_local_table = new SymbolTableHash(start_size_log_2, END_SIZE, REHASH_LEN);
_local_table = new SymbolTableHash(start_size_log_2, END_SIZE, REHASH_LEN, true);
// Initialize the arena for global symbols, size passed in depends on CDS.
if (symbol_alloc_arena_size == 0) {