diff --git a/base/task.jl b/base/task.jl index feec0371f754a..e49dcdc4bdfce 100644 --- a/base/task.jl +++ b/base/task.jl @@ -755,6 +755,7 @@ function workqueue_for(tid::Int) return @inbounds qs[tid] end # slow path to allocate it + @assert tid > 0 l = Workqueues_lock @lock l begin qs = Workqueues