Skip to content

Commit 738b0ae

Browse files
nsajkoKristofferC
authored andcommitted
Base.Precompilation.ExplicitEnv: handle type instability better in constructor (#57599)
Avoiding the converting `setindex!` should hopefully diminish unwarranted invalidation of user code. (cherry picked from commit 1e03ed6)
1 parent 0c9ac24 commit 738b0ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

base/precompilation.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,16 @@ function ExplicitEnv(envpath::String=Base.active_project())
141141

142142
# Extensions
143143
deps_pkg = get(Dict{String, Any}, pkg_info, "extensions")::Dict{String, Any}
144+
deps_pkg_concrete = Dict{String, Vector{String}}()
144145
for (ext, triggers) in deps_pkg
145146
if triggers isa String
146147
triggers = [triggers]
147148
else
148149
triggers = triggers::Vector{String}
149150
end
150-
deps_pkg[ext] = triggers
151+
deps_pkg_concrete[ext] = triggers
151152
end
152-
extensions[m_uuid] = deps_pkg
153+
extensions[m_uuid] = deps_pkg_concrete
153154

154155
# Determine strategy to find package
155156
lookup_strat = begin

0 commit comments

Comments
 (0)