julia
julia copied to clipboard
Make threadcall gc safe
threadcall cannot call julia code. But due to thread adoption it currently is not marked gc safe. Which means that a blocking call will cause a hang in the GC
Someone should finish https://github.com/JuliaLang/julia/pull/49933
Just to confirm, is it safe to call jl_gc_safe_{enter/leave}() within a GC safepoint? Asking because I'll probably keep my hack of manually calling it to support current/older Julia versions.
"GC safepoint" are singular points in time.
GC safe regions are spans in time, and yes it is legal to to nest safe regions.