Skip to content

Commit

Permalink
Update src/heartbeat.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
  • Loading branch information
halleysfifthinc and stevengj authored Dec 11, 2024
1 parent 3a9270c commit f5b8fbe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/heartbeat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ function heartbeat_thread(heartbeat_addr::Cstring)
end
ret = ZMQ.lib.zmq_proxy(heartbeat, heartbeat, C_NULL)
@static if VERSION v"1.9.0-DEV.1588" # julia#46609
# julia automatically "adopts" this thread because
# we entered a Julia cfunction. We then have to enable
# a GC "safe" region to prevent us from grabbing the
# GC lock with the call to zmq_proxy, which never returns.
# (see julia#47196)
# leave safe region if zmq_proxy returns (when context is closed)
ccall(:jl_gc_safe_leave, Int8, ())
end
return ret
Expand Down

0 comments on commit f5b8fbe

Please sign in to comment.