-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base.Filesystem.TEMP_CLEANUP
not empty after generating sysimage
#43702
Comments
These paths seem to be left over in the sysimg from: julia/contrib/generate_precompile.jl Lines 257 to 258 in 13b3e77
Possible simple fix: diff --git a/contrib/generate_precompile.jl b/contrib/generate_precompile.jl
index 00bbdc2652..b89265ef62 100644
--- a/contrib/generate_precompile.jl
+++ b/contrib/generate_precompile.jl
@@ -430,4 +430,5 @@ empty!(Base.ARGS)
empty!(Core.ARGS)
end # @eval
+Base.Filesystem.temp_cleanup_purge(force=true)
end Or would that have any downsides? |
Base.Filesystem.TEMP_CLEANUP
not empty after generating sysimage
How about just having the Line 548 in 13b3e77
execute unconditionally? |
AFAICT that line is never invoked for the paths in question before the system image is written, so modifying it is unlikely to help. |
I would have thought that the Edit: You seem to be right, even though the atexit hook run, it is too late. |
(since 1.6, including 1.7, and master)
The text was updated successfully, but these errors were encountered: