Commit 4e5f85e
authored
The variable `i` was unintentionally shared between the generator
closure in `_register_kinds!` and another part of the body of
`_register_kinds!`. Thus `i` was boxed, causing trouble for inference.
Fix this by moving the part of `_register_kinds!` with `i` to a new
function.
Fixing this should make the sysimage more resistant to invalidation,
once the change propagates to Julia itself.
(cherry picked from commit 00bd17e)
1 parent dba9076 commit 4e5f85e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
| |||
0 commit comments