Skip to content

Commit

Permalink
add a GC safepoint in Task.wait (#41441)
Browse files Browse the repository at this point in the history
(cherry picked from commit 97f817a)
  • Loading branch information
vilterp authored and KristofferC committed Jul 19, 2021
1 parent 816157d commit e053bb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/task.jl
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ end
end

function wait()
GC.safepoint()
W = Workqueues[Threads.threadid()]
poptask(W)
result = try_yieldto(ensure_rescheduled)
Expand Down

0 comments on commit e053bb7

Please sign in to comment.