8213574: Deadlock in string table expansion when dumping lots of CDS classes

Reviewed-by: jiangli, iklam, dholmes
This commit is contained in:
Robbin Ehn 2018-11-14 07:50:37 +01:00
parent 61082e6b25
commit 9a79d90cc6
4 changed files with 56 additions and 3 deletions

View file

@ -847,7 +847,7 @@ void StringTable::copy_shared_string_table(CompactHashtableWriter* writer) {
assert(HeapShared::is_heap_object_archiving_allowed(), "must be");
CopyToArchive copy(writer);
StringTable::the_table()->_local_table->do_scan(Thread::current(), copy);
StringTable::the_table()->_local_table->do_safepoint_scan(copy);
}
void StringTable::write_to_archive() {