Skip to content

Commit ac4f385

Browse files
committed
Revert "add require_lock call to maybe_loaded_precompile (#56027)"
This reverts commit 4cdd864.
1 parent 44620b6 commit ac4f385

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/loading.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,13 +2397,12 @@ const module_keys = IdDict{Module,PkgId}() # the reverse of loaded_modules
23972397
root_module_key(m::Module) = @lock require_lock module_keys[m]
23982398

23992399
function maybe_loaded_precompile(key::PkgId, buildid::UInt128)
2400-
@lock require_lock begin
2400+
assert_havelock(require_lock)
24012401
mods = get(loaded_precompiles, key, nothing)
24022402
mods === nothing && return
24032403
for mod in mods
24042404
module_build_id(mod) == buildid && return mod
24052405
end
2406-
end
24072406
end
24082407

24092408
function module_build_id(m::Module)

0 commit comments

Comments
 (0)