--- a/src/hotspot/share/classfile/stringTable.cpp Fri May 17 10:48:02 2019 -0400
+++ b/src/hotspot/share/classfile/stringTable.cpp Fri May 17 08:29:55 2019 -0700
@@ -779,9 +779,7 @@
assert(HeapShared::is_heap_object_archiving_allowed(), "must be");
_shared_table.reset();
- int num_buckets = CompactHashtableWriter::default_num_buckets(_items_count);
- CompactHashtableWriter writer(num_buckets,
- &MetaspaceShared::stats()->string);
+ CompactHashtableWriter writer(_items_count, &MetaspaceShared::stats()->string);
// Copy the interned strings into the "string space" within the java heap
copy_shared_string_table(&writer);