Skip to content

Commit

Permalink
reset maxprobe on empty!
Browse files Browse the repository at this point in the history
As pointed out in #51594 (comment), this is necessary for the assertion added in #49447 to be valid.
  • Loading branch information
oscardssmith authored Oct 4, 2023
1 parent 165f728 commit 59efcab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ function empty!(h::Dict{K,V}) where V where K
resize!(h.vals, sz)
h.ndel = 0
h.count = 0
h.maxprobe = 0
h.age += 1
h.idxfloor = sz
return h
Expand Down

0 comments on commit 59efcab

Please sign in to comment.