Skip to content

Commit 72e5765

Browse files
committed
Avoid hitting IO locks in more printing
1 parent c127fe1 commit 72e5765

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JuliaInterpreter.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function set_compiled_methods()
5959
push!(compiled_methods, which(reenable_sigint, Tuple{Function}))
6060
# Signal-handling in the `print` dispatch hierarchy
6161
push!(compiled_methods, which(Base.unsafe_write, Tuple{Base.LibuvStream, Ptr{UInt8}, UInt}))
62+
push!(compiled_methods, which(print, Tuple{IO, Any}))
63+
push!(compiled_methods, which(print, Tuple{IO, Any, Any}))
6264
# Libc.GetLastError()
6365
@static if Sys.iswindows()
6466
push!(compiled_methods, which(Base.access_env, Tuple{Function, AbstractString}))

0 commit comments

Comments
 (0)