From effc914de46f92d50f9e7e812ed903fe8d53ebe6 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Thu, 19 Apr 2018 14:30:02 -0400 Subject: [PATCH] separate `isbitstype(::Type)` from `isbits` (JuliaLang/julia#26850) --- src/clusterserialize.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clusterserialize.jl b/src/clusterserialize.jl index e961b4c7a86149..dcc4f4721dba92 100644 --- a/src/clusterserialize.jl +++ b/src/clusterserialize.jl @@ -126,7 +126,7 @@ function syms_2b_sent(s::ClusterSerializer, identifier) for sym in check_syms v = getfield(Main, sym) - if isbits(v) + if isbitstype(typeof(v)) push!(lst, sym) else oid = objectid(v) @@ -146,7 +146,7 @@ function serialize_global_from_main(s::ClusterSerializer, sym) oid = objectid(v) record_v = true - if isbits(v) + if isbitstype(typeof(v)) record_v = false elseif !haskey(s.glbs_sent, oid) # set up a finalizer the first time this object is sent