diff --git a/base/Base.jl b/base/Base.jl index 4fb29672f35d7..a330cbfe1dd4b 100644 --- a/base/Base.jl +++ b/base/Base.jl @@ -600,7 +600,9 @@ function __init__() @static if !Sys.iswindows() # triggering a profile via signals is not implemented on windows cond = Base.AsyncCondition() + Base.iolock_begin() # uv_unref needs lock Base.uv_unref(cond.handle) + Base.iolock_end() PROFILE_PRINT_COND[] = cond ccall(:jl_set_peek_cond, Cvoid, (Ptr{Cvoid},), PROFILE_PRINT_COND[].handle) errormonitor(Threads.@spawn(profile_printing_listener()))