Stream: git-wasmtime

Topic: wasmtime / PR #8434 Fix a panic calling host functions wi...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 16:41):

alexcrichton opened PR #8434 from alexcrichton:fix-panic to bytecodealliance:main:

This commit fixes a panic when a host function defined with Func::new returned GC references and was called in async mode. The logic to auto-gc before the return values go to wasm asserted that a synchronous GC was possible but the context this function is called in could be either async or sync. The fix applied in this commit is to remove the auto-gc. This means that hosts will need to explicitly GC in these situations until auto-gc is re-added back to Wasmtime.

cc #8433 as this will make the behavior consistent, but we'll want to re-add the gc behavior.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 16:41):

alexcrichton requested fitzgen for a review on PR #8434.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 16:41):

alexcrichton requested wasmtime-core-reviewers for a review on PR #8434.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 16:42):

alexcrichton commented on PR #8434:

I'll also note that I plan on backporting this to the 20.0.0 release to happen today too.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 19:24):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 22 2024 at 19:49):

fitzgen merged PR #8434.


Last updated: Dec 23 2024 at 13:07 UTC