8290969: DumpClassListCLDClosure incorrectly uses ResizeableResourceHashtable

Reviewed-by: iklam, ccheung
This commit is contained in:
Evgeny Astigeevich 2022-07-26 12:10:56 +00:00 committed by Volker Simonis
parent 28bbdc5ebb
commit 330adc03a9

View File

@ -164,7 +164,7 @@ class DumpClassListCLDClosure : public CLDClosure {
if (!created) {
return;
}
if (_dumped_classes.maybe_grow(MAX_TABLE_SIZE)) {
if (_dumped_classes.maybe_grow()) {
log_info(cds, hashtables)("Expanded _dumped_classes table to %d", _dumped_classes.table_size());
}
if (ik->java_super()) {
@ -180,7 +180,7 @@ class DumpClassListCLDClosure : public CLDClosure {
public:
DumpClassListCLDClosure(fileStream* f)
: CLDClosure(), _dumped_classes(INITIAL_TABLE_SIZE) {
: CLDClosure(), _dumped_classes(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE) {
_stream = f;
}