From 97f817a379b0c3c5f9bb803427fe88a018ebfe18 Mon Sep 17 00:00:00 2001 From: Pete Vilter <7341+vilterp@users.noreply.github.com> Date: Wed, 7 Jul 2021 18:58:21 -0400 Subject: [PATCH] add a GC safepoint in Task.wait (#41441) --- base/task.jl | 1 + 1 file changed, 1 insertion(+) 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)