From adbe096c0f83a4c2fcbd629577f662b8f25df6e9 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Fri, 28 Mar 2025 15:41:39 -0400 Subject: [PATCH] fix trimming for scheduler task --- base/task.jl | 2 +- contrib/juliac-buildscript.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/task.jl b/base/task.jl index 15ac907c18988..cddf1fc854f4c 100644 --- a/base/task.jl +++ b/base/task.jl @@ -1152,7 +1152,7 @@ end end const get_sched_task = OncePerThread{Task}() do - @task wait_forever() + Task(wait_forever) end function ensure_rescheduled(othertask::Task) diff --git a/contrib/juliac-buildscript.jl b/contrib/juliac-buildscript.jl index 363330e4a3a79..0549afc0e1508 100644 --- a/contrib/juliac-buildscript.jl +++ b/contrib/juliac-buildscript.jl @@ -197,6 +197,7 @@ let mod = Base.include(Base.__toplevel__, inputfile) #entrypoint(join, (Base.GenericIOBuffer{Memory{UInt8}}, Array{String, 1}, Char)) entrypoint(Base.task_done_hook, (Task,)) entrypoint(Base.wait, ()) + entrypoint(Base.wait_forever, ()) entrypoint(Base.trypoptask, (Base.StickyWorkqueue,)) entrypoint(Base.checktaskempty, ()) if add_ccallables