File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ void G1CodeRootSet::add(nmethod* nm) {
38
38
}
39
39
added = _table->put (nm, nm);
40
40
if (added && _table->table_size () == SmallSize && length () == Threshold) {
41
- _table->resize (SmallSize, LargeSize);
41
+ _table->resize (LargeSize);
42
42
}
43
43
}
44
44
Original file line number Diff line number Diff line change @@ -98,19 +98,19 @@ class ResizeableResourceHashtable : public ResourceHashtableBase<
98
98
}
99
99
if (BASE::number_of_entries () / int (old_size) > load_factor) {
100
100
unsigned new_size = MIN2<unsigned >(old_size * 2 , _max_size);
101
- resize (old_size, new_size);
101
+ resize (new_size);
102
102
return true ;
103
103
} else {
104
104
return false ;
105
105
}
106
106
}
107
107
108
- void resize (unsigned old_size, unsigned new_size) {
108
+ void resize (unsigned new_size) {
109
109
Node** old_table = BASE::_table;
110
110
Node** new_table = BASE::alloc_table (new_size);
111
111
112
112
Node* const * bucket = old_table;
113
- while (bucket < &old_table[old_size ]) {
113
+ while (bucket < &old_table[BASE::_table_size ]) {
114
114
Node* node = *bucket;
115
115
while (node != nullptr ) {
116
116
Node* next = node->_next ;
You can’t perform that action at this time.
0 commit comments