Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data-race in iterate(::Dict)? #35835

Closed
tkf opened this issue May 11, 2020 · 0 comments · Fixed by #44534
Closed

Data-race in iterate(::Dict)? #35835

tkf opened this issue May 11, 2020 · 0 comments · Fixed by #44534
Labels
multithreading Base.Threads and related functionality

Comments

@tkf
Copy link
Member

tkf commented May 11, 2020

iterate(::Dict) calls skip_deleted_floor! which mutates a field

julia/base/dict.jl

Lines 664 to 670 in 65869b1

function skip_deleted_floor!(h::Dict)
idx = skip_deleted(h, h.idxfloor)
if idx != 0
h.idxfloor = idx
end
idx
end

@tkf tkf added the parallelism Parallel or distributed computation label May 11, 2020
@JeffBezanson JeffBezanson added multithreading Base.Threads and related functionality and removed parallelism Parallel or distributed computation labels May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants