Skip to content

Commit

Permalink
Move assertion as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana committed Mar 28, 2022
1 parent 58fac2a commit a6f8e01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,16 @@ end
end
end

@assert h.age == age0 "Muliple concurent writes to Dict detected!"

h.age += 1
h.slots = slots
h.keys = keys
h.vals = vals
h.count = count
h.ndel = 0
h.maxprobe = maxprobe
@assert h.age == age0 "Muliple concurent writes to Dict detected!"


return h
end

Expand Down

0 comments on commit a6f8e01

Please sign in to comment.