Skip to content

Commit

Permalink
uv_unref needs iolock
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Sep 7, 2023
1 parent 0761a66 commit 49fc53a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 49fc53a

Please sign in to comment.