https://github.com/JuliaLang/julia
Raw File
Tip revision: 6dae1f3a08822794fd3f5254b4cccb840fd846f9 authored by K Pamnany on 13 February 2024, 22:31:41 UTC
Correct GC bug (usage of `not_freed_enough`)
Tip revision: 6dae1f3
write_base_cache.jl
# Write the sys source cache in format readable by Base._read_dependency_src
cachefile = ARGS[1]
open(cachefile, "w") do io
    for (_, filename) in Base._included_files
        src = read(filename, String)
        write(io, Int32(sizeof(filename)))
        write(io, filename)
        write(io, UInt64(sizeof(src)))
        write(io, src)
    end
    write(io, Int32(0))
end
back to top