Skip to content

Conversation

@dicej
Copy link
Collaborator

@dicej dicej commented Nov 24, 2025

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.

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]>
@dicej dicej merged commit 1068496 into bytecodealliance:main Nov 24, 2025
4 checks passed
@dicej dicej deleted the fix-borrows-in-async-lifts branch November 24, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant