Having a log message inside an @floop
gives a deep copy error. Is this expected behaviour?
julia> using FLoops
julia> @floop for _ in 1:24
@info Threads.threadid()
sleep(1)
end
ERROR: LoadError: deepcopy of Modules not supported
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] deepcopy_internal(x::Module, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:33
[3] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[4] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[5] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[6] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[7] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[8] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[9] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[10] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[11] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[12] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[13] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[14] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[15] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[16] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[17] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[18] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[19] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[20] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[21] _deepcopy_array_t(x::Array, T::Type, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:105
[22] deepcopy_internal(x::Vector{Any}, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:92
[23] deepcopy_internal(x::Any, stackdict::IdDict{Any, Any})
@ Base ./deepcopy.jl:65
[24] deepcopy
@ ./deepcopy.jl:26 [inlined]
[25] as_parallel_loop(ctx::FLoops.MacroContext, rf_arg::Symbol, coll::Expr, body0::Expr, simd::Bool, executor::Nothing)
@ FLoops ~/.julia/packages/FLoops/3ZEuy/src/reduce.jl:606
[26] floop_parallel(ctx::FLoops.MacroContext, ex::Expr, simd::Bool, executor::Nothing)
@ FLoops ~/.julia/packages/FLoops/3ZEuy/src/reduce.jl:255
[27] floop_parallel(ctx::FLoops.MacroContext, ex::Expr, simd::Bool)
@ FLoops ~/.julia/packages/FLoops/3ZEuy/src/reduce.jl:245
[28] var"@floop"(__source__::LineNumberNode, __module__::Module, ex::Any)
@ FLoops ~/.julia/packages/FLoops/3ZEuy/src/macro.jl:43
in expression starting at REPL[7]:1