Stream: git-wasmtime

Topic: wasmtime / issue #10824 Is there a memory limit for a hea...


view this post on Zulip Wasmtime GitHub notifications bot (May 22 2025 at 13:15):

sammyne opened issue #10824.

view this post on Zulip Wasmtime GitHub notifications bot (May 22 2025 at 13:32):

bjorn3 commented on issue #10824:

Heap allocated variables end up in the linear memory of the component. The wasm module itself defines the size limit of the linear memory it creates (up to 4GB for a wasm32 module).

view this post on Zulip Wasmtime GitHub notifications bot (May 22 2025 at 14:27):

alexcrichton closed issue #10824.

view this post on Zulip Wasmtime GitHub notifications bot (May 22 2025 at 14:27):

alexcrichton commented on issue #10824:

In general there's no one heap limit in wasm and/or components. @bjorn3 is right that the abstraction level of a wasm component is the linear memory it places the heap into, which means that you'll be subject to a number of possible limits.

I'm going to close this as answered, but if you have follow-up questions please feel free to comment here.


Last updated: Dec 06 2025 at 07:03 UTC