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 staticfloat committed Dec 22, 2022
1 parent ef8a6b8 commit d216f5e
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 d216f5e

Please sign in to comment.