diff options
author | Evan Brown <ezb@google.com> | 2022-12-22 14:59:02 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-22 14:59:54 -0800 |
commit | f7affaf32a6a396465507dd10520a3fe183d4e40 (patch) | |
tree | 6d62a7c86602c57cbfdf2dff2e31d3cb56c0f6dd /absl/container/internal/raw_hash_set.h | |
parent | 8d77ac515bdd189b27d5006ee058c8898ceb756b (diff) | |
download | abseil-f7affaf32a6a396465507dd10520a3fe183d4e40.tar.gz abseil-f7affaf32a6a396465507dd10520a3fe183d4e40.tar.bz2 abseil-f7affaf32a6a396465507dd10520a3fe183d4e40.zip |
Fix a bug in iterator validation code in which we don't update the table's reserved growth if the reservation wouldn't grow the table.
PiperOrigin-RevId: 497246219
Change-Id: I9671236f56d10851c49de71c21899368be6c3a00
Diffstat (limited to 'absl/container/internal/raw_hash_set.h')
-rw-r--r-- | absl/container/internal/raw_hash_set.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h index ad4c2cc5..3762820d 100644 --- a/absl/container/internal/raw_hash_set.h +++ b/absl/container/internal/raw_hash_set.h @@ -2064,8 +2064,8 @@ class raw_hash_set { // This is after resize, to ensure that we have completed the allocation // and have potentially sampled the hashtable. infoz().RecordReservation(n); - common().reset_reserved_growth(n); } + common().reset_reserved_growth(n); } // Extension API: support for heterogeneous keys. |