Skip to content

Commit

Permalink
8292686: runtime/cds/appcds/TestWithProfiler.java SIGSEGV in TableSta…
Browse files Browse the repository at this point in the history
…tistics ctr

Reviewed-by: dcubed, hseigel
  • Loading branch information
coleenp committed Aug 19, 2022
1 parent 235151e commit 07c9ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/stringTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/symbolTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 07c9ba7

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.