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.)
wasm2c: Split size and capacity
This is a GitHub Issue
repo:wabt
owner:WebAssembly
Title : wasm2c: Split size and capacity
Issue date:

--- start body ---
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.)
--- end body ---
