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 Aug 31, 2021
1 parent 63c0257 commit 2916959
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 2916959

Please sign in to comment.