You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently been working on my About.jl package, for showing more information about the internals/memory representation of Julia values. When looking into strings a bit more, I came across this bit of jl_alloc_string:
It also doesn't include padding bytes in the allocator. I guess we should account for the null here though, in case someone is trying to expand their alloc request to fill that padding?
I've recently been working on my About.jl package, for showing more information about the internals/memory representation of Julia values. When looking into strings a bit more, I came across this bit of
jl_alloc_string
:julia/src/array.c
Line 301 in e9a24d4
In the REPL, with the 3-codunit string
hey
, I see this:Since I'm on a 64-byte system,
sizeof(size_t)
should be 64-bits/8-bytes, and so 8 + 3 + 1 gives us ... 12, not 11.It seems like
Base.summarysize
might be missing the trailing null byte?The text was updated successfully, but these errors were encountered: