Commit 1eef09a
committed
Embedded WASI: fix
Fixes Embedded Swift concurrency tests that crash with this stack trace:
```
Error: Trap: indirect call type mismatch, expected FunctionType(parameters: [WasmTypes.ValueType.i32, WasmTypes.ValueType.i32], results: []), got FunctionType(parameters: [W
asmTypes.ValueType.i32, WasmTypes.ValueType.i32, WasmTypes.ValueType.i32], results: [WasmTypes.ValueType.i32])
0: swift::AsyncTask::completeFuture(swift::AsyncContext*)
1: completeTaskAndRelease(swift::AsyncContext*, swift::SwiftError*)
2: completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*)
3: $exIeAgHr_xs5Error_pIegHrzo_s8SendableRzs5NeverORs_r0_lTRyt_Tg5TATQ0_
4: $exIeAgHr_xs5Error_pIegHrzo_s8SendableRzs5NeverORs_r0_lTRyt_Tg5TQ0_
5: $e1a4MainV4mainyyYaFZyyYacfU_TATQ0_
6: $e1a4MainV4mainyyYaFZyyYacfU_TY1_
7: swift_task_switch
8: $e1a4MainV4mainyyYaFZyyYacfU_TQ0_
9: $e1a4testSiyYaFTY0_
10: swift::runJobInEstablishedExecutorContext(swift::Job*)
11: swift_job_run
12: $es19CooperativeExecutorC8runUntilyySbyXEKF
13: $es19CooperativeExecutorCs07RunLoopB0ssACP3runyyKFTW
14: swift_task_asyncMainDrainQueueImpl
15: swift_task_asyncMainDrainQueue
16: main
17: __main_void
18: _start
19: unknown
```InitializeWithCopy VWT type mismatch1 parent d63bbb9 commit 1eef09a
File tree
3 files changed
+6
-6
lines changed- include/swift/ABI
- test/embedded
3 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments