Skip to content

Commit 49fc53a

Browse files
committed
uv_unref needs iolock
1 parent 0761a66 commit 49fc53a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/Base.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ function __init__()
600600
@static if !Sys.iswindows()
601601
# triggering a profile via signals is not implemented on windows
602602
cond = Base.AsyncCondition()
603+
Base.iolock_begin() # uv_unref needs lock
603604
Base.uv_unref(cond.handle)
605+
Base.iolock_end()
604606
PROFILE_PRINT_COND[] = cond
605607
ccall(:jl_set_peek_cond, Cvoid, (Ptr{Cvoid},), PROFILE_PRINT_COND[].handle)
606608
errormonitor(Threads.@spawn(profile_printing_listener()))

0 commit comments

Comments
 (0)