bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.46k stars 1.31k forks source link

Fix a panic with custom-page-sizes and pooling allocation #9547

Closed alexcrichton closed 3 weeks ago

alexcrichton commented 3 weeks ago

This commit fixes a similar panic to one found in #9533 where the pooling allocator was combined with modules using custom page sizes. The fix is similar where a variable needs page-aligning where previously it wasn't necessary due to wasm sizes always being page-aligned.