Stream: git-wasmtime

Topic: wasmtime / PR #11320 Make table/memory allocation functio...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2025 at 19:49):

alexcrichton opened PR #11320 from alexcrichton:adjust-some-allocation-safety to bytecodealliance:main:

These were previously marked as unsafe trait methods with a requirement that the memory/table shape must be validated ahead of time. Neither the ondemand nor pooling allocator actually has an unsafe contract to uphold with respect to this and both may assert/reject non-validated shapes but memory unsafety won't happen as a result. Consequently these functions are made safe.

Instance allocation functions are adjusted to reflect how the correctness of imports is required for the functions to be safe.

<!--
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 (Jul 24 2025 at 19:49):

alexcrichton requested pchickey for a review on PR #11320.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2025 at 19:49):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2025 at 20:25):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 24 2025 at 20:51):

fitzgen merged PR #11320.


Last updated: Dec 06 2025 at 07:03 UTC