Stream: git-wasmtime

Topic: wasmtime / PR #4354 Update may_enter flag handling in com...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2022 at 17:06):

alexcrichton opened PR #4354 from component-lock to main:

This commit updates the management of the may_enter flag in line with
WebAssembly/component-model#57. Namely the may_enter flag is now
exclusively managed in the canon lift function (which is
TypedFunc::call) and is only unset after post-return completes
successfully. This implements semantics where if any trap happens for
any reason (lifting, lowering, execution, imports, etc) then the
instance is considered permanently poisoned and can no longer be
entered.

Tests needed many updates to create new instances where previously the
same instance was reused after it had an erroneous state.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2022 at 17:06):

alexcrichton requested fitzgen for a review on PR #4354.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2022 at 21:29):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 29 2022 at 21:31):

alexcrichton merged PR #4354.


Last updated: Nov 22 2024 at 16:03 UTC