alexcrichton opened PR #12718 from alexcrichton:fix-current-task-in-realloc to bytecodealliance:main:
This commit fixes some fallout from #12550 where after that PR the current task registered when a guest's
reallocwas called was incorrect. This additionally fixes issues where guest-to-guest trampolines also had the wrong task registered whenreallocwas being called. Finally this adjusts a few locations that "no borrows should be active" traps happen to ensure that it happens around the time of when a task returns rather than after the lowering of its values happens.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested cfallin for a review on PR #12718.
alexcrichton requested wasmtime-core-reviewers for a review on PR #12718.
alexcrichton requested dicej for a review on PR #12718.
alexcrichton unassigned cfallin from PR #12718 Fix the current guest task when calling realloc.
dicej submitted PR review.
alexcrichton updated PR #12718.
alexcrichton has enabled auto merge for PR #12718.
alexcrichton added PR #12718 Fix the current guest task when calling realloc to the merge queue
alexcrichton merged PR #12718.
alexcrichton removed PR #12718 Fix the current guest task when calling realloc from the merge queue
Last updated: Mar 23 2026 at 16:19 UTC