Skip to content

Commit 47c3edf

Browse files
committed
fixup! pass the environment stack to precompile workers via serialization
1 parent ce24d02 commit 47c3edf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/Serialization/src/Serialization.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ function deserialize_string(s::AbstractSerializer, len::Int)
14741474
end
14751475

14761476
# default DataType deserializer
1477-
function deserialize(s::AbstractSerializer, ::Type{T}) where {T}
1477+
function deserialize(s::AbstractSerializer, t::DataType)
14781478
nf = length(t.types)
14791479
if isprimitivetype(t)
14801480
return read(s.io, t)
@@ -1489,7 +1489,7 @@ function deserialize(s::AbstractSerializer, ::Type{T}) where {T}
14891489
end
14901490
return x
14911491
elseif nf == 0
1492-
return ccall(:jl_new_struct_uninit, Any, (Any,), T)
1492+
return ccall(:jl_new_struct_uninit, Any, (Any,), t)
14931493
else
14941494
na = nf
14951495
vflds = Vector{Any}(undef, nf)
@@ -1502,7 +1502,7 @@ function deserialize(s::AbstractSerializer, ::Type{T}) where {T}
15021502
na >= i && (na = i - 1) # rest of tail must be undefined values
15031503
end
15041504
end
1505-
return ccall(:jl_new_structv, Any, (Any, Ptr{Any}, UInt32), T, vflds, na)
1505+
return ccall(:jl_new_structv, Any, (Any, Ptr{Any}, UInt32), t, vflds, na)
15061506
end
15071507
end
15081508

0 commit comments

Comments
 (0)