Commit 1a0f953
authored
move waitable to original set after moving it to temporary one (#11357)
There are a few places in `concurrent.rs` where we use
`GuestTask::sync_call_set` to wait on waitables during synchronous calls.
However, they may have been members of another set before we joined them to
`sync_call_set`, in which case we need to move them back when we're done (or at
least remove them from `sync_call_set`).
Prior to this fix, we would panic when dropping a task which had subtasks which
had been synchronously cancelled. I've updated `async_cancel_callee.rs` to
cover that case.
Signed-off-by: Joel Dice <joel.dice@fermyon.com>1 parent 4c4e348 commit 1a0f953
File tree
4 files changed
+22
-4
lines changed- crates
- misc/component-async-tests
- tests/scenario
- wit
- test-programs/src/bin
- wasmtime/src/runtime/component
4 files changed
+22
-4
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
| 2415 | + | |
| 2416 | + | |
2415 | 2417 | | |
2416 | | - | |
| 2418 | + | |
2417 | 2419 | | |
2418 | 2420 | | |
2419 | 2421 | | |
| |||
2468 | 2470 | | |
2469 | 2471 | | |
2470 | 2472 | | |
2471 | | - | |
| 2473 | + | |
2472 | 2474 | | |
2473 | 2475 | | |
2474 | 2476 | | |
| |||
3167 | 3169 | | |
3168 | 3170 | | |
3169 | 3171 | | |
| 3172 | + | |
| 3173 | + | |
3170 | 3174 | | |
3171 | | - | |
| 3175 | + | |
3172 | 3176 | | |
3173 | 3177 | | |
| 3178 | + | |
| 3179 | + | |
3174 | 3180 | | |
3175 | 3181 | | |
3176 | 3182 | | |
| |||
3945 | 3951 | | |
3946 | 3952 | | |
3947 | 3953 | | |
| 3954 | + | |
| 3955 | + | |
3948 | 3956 | | |
3949 | 3957 | | |
3950 | 3958 | | |
| |||
0 commit comments