Closed yowl closed 2 months ago
would this fix some of the align issues we were having with the tests?
If they are around lists them possibly. I'm not saying I've found all the align errors, but this one manifested with WebGPU. Have we disabled some tests because of alignment issues? If so I can try enabling those.
I was thinking of the variants test but looks like we fixed that a couple months ago https://github.com/bytecodealliance/wit-bindgen/pull/993
This PR fixes the alignment of align 8 list elements. We also now use
NativeMemory.AlignedAlloc
for the allocation on imports, and fix the free of these allocs to be before the return instead of at the end of the block