Skip to content

Commit

Permalink
8290969: DumpClassListCLDClosure incorrectly uses ResizeableResourceH…
Browse files Browse the repository at this point in the history
…ashtable

Reviewed-by: iklam, ccheung
  • Loading branch information
eastig authored and simonis committed Jul 26, 2022
1 parent 28bbdc5 commit 330adc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/cds/metaspaceShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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;
}

Expand Down

1 comment on commit 330adc0

@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.