Skip to content

Refactor the may_enter calculation - #12547

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:refactor-may-enter
Feb 9, 2026
Merged

Refactor the may_enter calculation#12547
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:refactor-may-enter

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

I found the previous loop/iteration a bit confusing so it's now rewritten to a single function with a simpler (subjectively) loop which is a more straightforward iteration over the linked list of tasks.

I found the previous loop/iteration a bit confusing so it's now
rewritten to a single function with a simpler (subjectively) loop which
is a more straightforward iteration over the linked list of tasks.
@alexcrichton
alexcrichton added this pull request to the merge queue Feb 9, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 9, 2026
I found the previous loop/iteration a bit confusing so it's now
rewritten to a single function with a simpler (subjectively) loop which
is a more straightforward iteration over the linked list of tasks.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 9, 2026
@alexcrichton
alexcrichton added this pull request to the merge queue Feb 9, 2026
@github-actions github-actions Bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Feb 9, 2026
Merged via the queue into bytecodealliance:main with commit 1a154f6 Feb 9, 2026
45 checks passed
@alexcrichton
alexcrichton deleted the refactor-may-enter branch February 9, 2026 22:00
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Feb 19, 2026
This commit fixes a regression from bytecodealliance#12547 where traps happening in
component trampolines weren't respecting the signals-based-traps
configuration of the `Engine` meaning that native CLIF traps could be
executed in environments which weren't configured to catch it. This
refactors the implementation internally to share more code with
`FuncEnvironment` through some traits to ensure that the same knobs and
plumbing are used to translate traps.
github-merge-queue Bot pushed a commit that referenced this pull request Feb 20, 2026
This commit fixes a regression from #12547 where traps happening in
component trampolines weren't respecting the signals-based-traps
configuration of the `Engine` meaning that native CLIF traps could be
executed in environments which weren't configured to catch it. This
refactors the implementation internally to share more code with
`FuncEnvironment` through some traits to ensure that the same knobs and
plumbing are used to translate traps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants