Commit 100e305
authored
prevent deadlock when releasing the jl_unique_gcsafe_lock causes gc (#56563)
Caught this by running threads test repeatedly locally: the sweep needs
to acquire engine_lock, so we need to make sure to release that first
(the other jl_unique_gcsafe_lock users shouldn't care about this
ordering since they don't acquire their locks during sweeping)1 parent d99d569 commit 100e305
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments