8290969: DumpClassListCLDClosure incorrectly uses ResizeableResourceHashtable
Reviewed-by: iklam, ccheung
This commit is contained in:
parent
28bbdc5ebb
commit
330adc03a9
@ -164,7 +164,7 @@ class DumpClassListCLDClosure : public CLDClosure {
|
|||||||
if (!created) {
|
if (!created) {
|
||||||
return;
|
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());
|
log_info(cds, hashtables)("Expanded _dumped_classes table to %d", _dumped_classes.table_size());
|
||||||
}
|
}
|
||||||
if (ik->java_super()) {
|
if (ik->java_super()) {
|
||||||
@ -180,7 +180,7 @@ class DumpClassListCLDClosure : public CLDClosure {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
DumpClassListCLDClosure(fileStream* f)
|
DumpClassListCLDClosure(fileStream* f)
|
||||||
: CLDClosure(), _dumped_classes(INITIAL_TABLE_SIZE) {
|
: CLDClosure(), _dumped_classes(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE) {
|
||||||
_stream = f;
|
_stream = f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user