diff --git a/base/task.jl b/base/task.jl index e84c344c28d17..0d4e5da4ccfd4 100644 --- a/base/task.jl +++ b/base/task.jl @@ -818,6 +818,7 @@ end end function wait() + GC.safepoint() W = Workqueues[Threads.threadid()] poptask(W) result = try_yieldto(ensure_rescheduled)