wabt icon indicating copy to clipboard operation
wabt copied to clipboard

wasm2c: Split size and capacity

Open SoniEx2 opened this issue 2 years ago • 0 comments

wasm2c memories currently only take size into account. Splitting into size and capacity would impact threads/shared memory support (since realloc is unsound) but is also relevant for big-endian (both guard pages and shared memory). cc @shravanrn

(This also lets the runtime use more efficient memory growth strategies, if desired.)

SoniEx2 avatar Nov 15 '23 10:11 SoniEx2