Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make python GC always run on thread 1 #520

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
use errormonitor conditionally
ericphanson committed Jul 10, 2024

Verified

This commit was signed with the committer’s verified signature.
agnesLeroy Agnès Leroy
commit 364a6f874e1937280909a289d8a60afd84c3cfd0
4 changes: 3 additions & 1 deletion src/GC/GC.jl
Original file line number Diff line number Diff line change
@@ -104,7 +104,9 @@ function launch_gc_task()
# ensure the task runs from thread 1
ccall(:jl_set_task_tid, Cvoid, (Any, Cint), task, 0)
schedule(task)
Base.errormonitor(task)
if isdefined(Base, :errormonitor)
Base.errormonitor(task)
end
GC_TASK[] = task
task
end