bytecodealliance / wasmtime

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

move most of runtime/vm/cow.rs over to aligned byte counts #9652

Open sunshowers opened 10 hours ago

sunshowers commented 10 hours ago

As part of attempting to move some of these operations over to Mmap instances, it is nice to have type-level checking for aligned sizes. In upcoming PRs, APIs like map_at will be switched to using Mmap instances with aligned counts.

There are a couple of spots where I have questions -- will flag them in review comments.