| Index: runtime/vm/hash_table.h
|
| ===================================================================
|
| --- runtime/vm/hash_table.h (revision 40404)
|
| +++ runtime/vm/hash_table.h (working copy)
|
| @@ -562,9 +562,14 @@
|
| }
|
| }
|
|
|
| + void Clear() const {
|
| + BaseIterTable::Initialize();
|
| + }
|
| +
|
| protected:
|
| void EnsureCapacity() const {
|
| static const double kMaxLoadFactor = 0.75;
|
| + // We currently never shrink.
|
| HashTables::EnsureLoadFactor(0.0, kMaxLoadFactor, *this);
|
| }
|
| };
|
| @@ -651,9 +656,14 @@
|
| }
|
| }
|
|
|
| + void Clear() const {
|
| + BaseIterTable::Initialize();
|
| + }
|
| +
|
| protected:
|
| void EnsureCapacity() const {
|
| static const double kMaxLoadFactor = 0.75;
|
| + // We currently never shrink.
|
| HashTables::EnsureLoadFactor(0.0, kMaxLoadFactor, *this);
|
| }
|
| };
|
|
|