Skip to content

Commit 4cdd8cd

Browse files
authored
Properly isolate sysimg bootstrap environment (#50683)
The stdlib environment should be isolated from the global environment while it is bootstrapping; it should only load from the stdlib directory.
1 parent c43e5a1 commit 4cdd8cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/sysimg.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ let
7777

7878
tot_time_stdlib = 0.0
7979
# use a temp module to avoid leaving the type of this closure in Main
80+
push!(empty!(LOAD_PATH), "@stdlib")
8081
m = Module()
8182
GC.@preserve m begin
8283
print_time = @eval m (mod, t) -> (print(rpad(string(mod) * " ", $maxlen + 3, ""));

0 commit comments

Comments
 (0)