Skip to content

Commit bdc619f

Browse files
authored
make extension not load twice on workers (JuliaLang/julia#49441)
1 parent 9b73cf1 commit bdc619f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Distributed.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ function _require_callback(mod::Base.PkgId)
7676
# broadcast top-level (e.g. from Main) import/using from node 1 (only)
7777
@sync for p in procs()
7878
p == 1 && continue
79+
# Extensions are already loaded on workers by their triggers being loaded
80+
# so no need to fire the callback upon extension being loaded on master.
81+
Base.loading_extension && continue
7982
@async_unwrap remotecall_wait(p) do
8083
Base.require(mod)
8184
nothing

0 commit comments

Comments
 (0)