Skip to content

Commit

Permalink
fix require_stdlib fast path for loaded exts
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jun 5, 2024
1 parent 2b41b87 commit 32522d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2503,6 +2503,9 @@ end
# load a serialized file directly from append_bundled_depot_path for uuidkey without stalechecks
function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing)
@lock require_lock begin
if ext isa String
uuidkey = PkgId(uuid5(uuidkey.uuid, ext), ext)
end
if root_module_exists(uuidkey)
return loaded_modules[uuidkey]
end
Expand All @@ -2513,7 +2516,6 @@ function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing)
sourcepath = normpath(env, uuidkey.name, "src", uuidkey.name * ".jl")
else
sourcepath = find_ext_path(normpath(joinpath(env, uuidkey.name)), ext)
uuidkey = PkgId(uuid5(uuidkey.uuid, ext), ext)
end
#mbypath = manifest_uuid_path(env, uuidkey)
#if mbypath isa String && isfile_casesensitive(mbypath)
Expand Down

0 comments on commit 32522d0

Please sign in to comment.