From 49fc53a23a89eaa5852b04d9ca9b83e95ed64725 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 7 Sep 2023 15:29:35 -0400 Subject: [PATCH] uv_unref needs iolock --- base/Base.jl | 2 ++ 1 file changed, 2 insertions(+) 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()))