This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 155effe
committed
trap if sync->async call fails to produce a result
If the callee returns `CallbackCode.WAIT` and the event loop runs out of futures
without producing a ready waitable, we should trap. We were doing that in other
contexts, but not for sync->async calls.
Fixes #73
Signed-off-by: Joel Dice <joel.dice@fermyon.com>1 parent b1fb18e commit 155effe
2 files changed
Lines changed: 16 additions & 24 deletions
File tree
- crates/wasmtime/src/runtime/component
- tests/misc_testsuite/component-model-async
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
| 893 | + | |
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
| |||
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
1545 | | - | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
1550 | 1548 | | |
1551 | | - | |
| 1549 | + | |
1552 | 1550 | | |
1553 | 1551 | | |
1554 | 1552 | | |
| |||
1576 | 1574 | | |
1577 | 1575 | | |
1578 | 1576 | | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | 1577 | | |
1585 | 1578 | | |
1586 | 1579 | | |
| |||
1714 | 1707 | | |
1715 | 1708 | | |
1716 | 1709 | | |
1717 | | - | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1718 | 1715 | | |
1719 | 1716 | | |
1720 | 1717 | | |
| |||
2892 | 2889 | | |
2893 | 2890 | | |
2894 | 2891 | | |
2895 | | - | |
| 2892 | + | |
2896 | 2893 | | |
2897 | 2894 | | |
2898 | 2895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
155 | | - | |
156 | | - | |
| 153 | + | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
| |||
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
199 | | - | |
200 | | - | |
| 196 | + | |
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
| |||
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
247 | | - | |
248 | | - | |
| 243 | + | |
0 commit comments