yowl
yowl
That looks like its worth a try, thanks
Something I don't understand is that ``` size_t alignedSize = size + (alignment - OS_PAGE_SIZE); ``` If `alignment` < `OS_PAGE_SIZE` then you get less space than you asked for, but...
Wasm page size seems to be 16k, and some requests are for 4k alignment, so a request for 0x1000000 gets 0xffd000. As you say, if I switch it to memalign...
Seems like it should be `4` but at runtime is 0x4000, strange ``` #elif defined(HOST_WASM) #define DATA_ALIGNMENT 4 #ifndef OS_PAGE_SIZE #define OS_PAGE_SIZE 0x4 #endif ```
WebAssembly natural page size is 64KB, that being the Windows page size and the lowest common denominator. 16K is a bit of a hangover and I think they may just...
ok, I shamelessly quoted without checking from discord ``` It was chosen as the LCM of the page sizes on all major platforms (and windows has 64k pages). ```
So now I need to go back there as my Win10 reports ``` The page size for this system is 4096 bytes. ```
Have you got a stack trace? Do you mean the compiler or the program you built seg faults?
I dont believe Emscripten nor LLVM (https://reviews.llvm.org/D68254) support wasm64 yet, but it is planned so would be good to make any 64 bit refactoring available to Wasm also.
@jkotas Did you mean "did not help with clarity"?