Skip to content

Commit cd94d5c

Browse files
traktofonandreasnoack
authored andcommitted
Fix SPMD deadlock.
There was a leftover get from the Nullable times. This should cause an exception, but resulted in a deadlock. Julia bug?
1 parent 86d883c commit cd94d5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spmd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mutable struct SPMDContext
2424

2525
function SPMDContext(id)
2626
ctxt = new(id, Channel(typemax(Int)), Dict{Any,Any}(), [], false)
27-
finalizer(ctxt, finalize_ctxt)
27+
finalizer(finalize_ctxt, ctxt)
2828
ctxt
2929
end
3030
end
@@ -256,7 +256,7 @@ end
256256

257257
function Base.close(ctxt::SPMDContext)
258258
for p in ctxt.pids
259-
Base.remote_do(delete_ctxt_id, p, ctxt.id)
259+
remote_do(delete_ctxt_id, p, ctxt.id)
260260
end
261261
ctxt.release = false
262262
end

0 commit comments

Comments
 (0)