fitzgen opened PR #13192 from fitzgen:wasmtime-drc-large-array-stack to bytecodealliance:main:
This commit adds an additional explicit stack for tracing and deallocating arrays with many elements. Instead of pushing all the elements onto the stack at once, we push the array onto the new stack, and push its elements onto the main stack in fixed-size chunks.
It is probably easiest to review this code while ignoring whitespace changes, as some indentation shifted around a bit.
Fixes #12958
<!--
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
-->
fitzgen requested dicej for a review on PR #13192.
fitzgen requested wasmtime-core-reviewers for a review on PR #13192.
alexcrichton submitted PR review.
fitzgen updated PR #13192.
fitzgen has enabled auto merge for PR #13192.
fitzgen added PR #13192 DRC: Use an additional stack for large arrays to the merge queue.
fitzgen merged PR #13192.
fitzgen removed PR #13192 DRC: Use an additional stack for large arrays from the merge queue.
Last updated: May 03 2026 at 22:13 UTC