a = zeros(4000000000) resize!(a, 0) sizehint!(a, 0) b = zeros(4000000000) resize!(b, 0) sizehint!(b, 0) c = zeros(4000000000) while true end
I ran into OutOfMemoryError with the above program. My computer has 64GiB of RAM. According to https://github.com/JuliaLang/julia/pull/26201, I was hoping that when I actually need to create
b's memory have been released instead of running out of memory. Calling
gc() doesn’t help. Is there anything I can do to force Julia to release
b's memory? Thanks!