Commit a564a5f
committed
fix dropping of resource borrows in async-lifted exports
Previously, I had been using a global variable to track borrows which needed to
be dropped when returning from an export, which works fine for sync-lifted
exports but not so fine for async-lifted ones. In the latter case, we would
incorrectly drop borrows from other concurrent calls. Now I've eliminated the
global variable in favor of tracking the borrows on a per-call basis.
This also includes few minor chores:
- Switch CI to use final CPython 3.14.0 release
- Update Wasmtime to v39.0.0
- Update to newer wasm-tools commit
I had also intended to update to WASI-SDK 29, but it seems to have broken the
TCP example. Will debug that later.
Signed-off-by: Joel Dice <[email protected]>1 parent b39f84b commit a564a5f
File tree
19 files changed
+217
-124
lines changed- .github/workflows
- bundled
- componentize_py_async_support
- examples
- cli
- http-p3
- http
- matrix-math
- sandbox
- tcp
- runtime/src
- src
- test
- python_source
- wit
19 files changed
+217
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments