Stream: git-wasmtime

Topic: wasmtime / PR #10483 Improve errors with pooling-by-defau...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2025 at 14:57):

alexcrichton opened PR #10483 from alexcrichton:flags-affect-pooling to bytecodealliance:main:

This commit is intended to address #10482 where the defaults of the wasmtime serve subcommand produced a confusing and surprising error. Specifically the -Wmax-table-elements option, prior to this change, only affected the store limiter used and didn't actually affect the pooling allocator settings. That meant that if a module exceeded the limits of the pooling allocator it would produce an error message that seemed like -Wmax-table-elements would fix but it wouldn't actually.

Two changes in this commit are meant to address this:

That should mean that the original error should be a bit easier to debug while the attempted solution will also work.

Closes #10482
<!--
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 (Mar 28 2025 at 14:57):

alexcrichton has marked PR #10483 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2025 at 14:57):

alexcrichton requested pchickey for a review on PR #10483.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2025 at 14:57):

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

view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2025 at 15:55):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 28 2025 at 15:56):

abrown commented on PR #10483:

...but it looks like there are a few more tests to fix up.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2025 at 14:45):

alexcrichton updated PR #10483.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2025 at 14:45):

alexcrichton has enabled auto merge for PR #10483.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2025 at 16:59):

alexcrichton updated PR #10483.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2025 at 17:00):

alexcrichton commented on PR #10483:

Turns out the test I added is the first test of the CLI using the pooling allocator. Also turns out that with the default configuration the pooling allocator couldn't work on 32-bit platforms. I've adjusted the pooling allocator defaults on 32-bit platforms to work-by-default (but it's still not that useful)

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2025 at 18:17):

alexcrichton merged PR #10483.


Last updated: Apr 17 2025 at 02:30 UTC