You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since one of the intended uses of this is for ArrayBuffers, I am wondering about the performance (and predictability) implications of using mapping operations on buffers whose sizes are not a multiple of a page size (and indeed may be smaller than a page). What is supposed to happen if you access past the end of a mapped buffer?
At one point I had envisioned a set of memory instructions that accepted an object pointer and performed bounds checks (WebAssembly/gc#109). Do you imagine that these mapping instructions would be able to take the place of those?
The text was updated successfully, but these errors were encountered:
Sorry for the late reply, I'm catching up after being out on vacation.
The proposal in this repository doesn't explicitly state this, but the proposed operators would take size in multiples of page size, and not as a number of bytes. My original thought was that accessing past the end of a mapped buffer should be an out of bounds check, but other options were mentioned in the design issue here - WebAssembly/design#1439.
By the mapping instruction do you mean the addition of fat pointers of fully dynamic memories?
Since one of the intended uses of this is for ArrayBuffers, I am wondering about the performance (and predictability) implications of using mapping operations on buffers whose sizes are not a multiple of a page size (and indeed may be smaller than a page). What is supposed to happen if you access past the end of a mapped buffer?
At one point I had envisioned a set of memory instructions that accepted an object pointer and performed bounds checks (WebAssembly/gc#109). Do you imagine that these mapping instructions would be able to take the place of those?
The text was updated successfully, but these errors were encountered: