Commit 840e489
Ensure correct type parameter of serialized RemoteChannel (#179)
This is a forward-port of
JuliaLang/Distributed.jl#179
(JuliaLang/Distributed.jl@6649a94).
When serializing RemoteChannels, a new zeroed RemoteChannel is
constructed. However, the input type parameter might be part of an outer
type parameter which can then lead to a TypeError during deserialization.
The fix is just to reuse the type parameter of the input when
constructing the zeroed RemoteChannel.
(cherry picked from commit 6649a94075ff6a52ee9558db3ec4491496bf1bea)
(cherry picked from commit 2e52996)1 parent 8e3fb14 commit 840e489
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
| 416 | + | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
347 | 350 | | |
348 | | - | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
| |||
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
| 367 | + | |
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
| |||
0 commit comments