github.com/wasilibs/nottinygc@v0.7.2-0.20240312114022-d59c9478ef51/buildtools/bdwgc/bdwgc.patch (about) 1 diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h 2 index 6970e6f2..a3af3824 100644 3 --- a/include/private/gcconfig.h 4 +++ b/include/private/gcconfig.h 5 @@ -2480,6 +2480,8 @@ EXTERN_C_BEGIN 6 # endif 7 # undef USE_MMAP /* similar to Emscripten */ 8 # undef USE_MUNMAP 9 + /* The real page size in WebAssembly is 64 KB. */ 10 +# define GETPAGESIZE() 65536 11 # if defined(GC_THREADS) && !defined(CPPCHECK) 12 # error No threads support yet 13 # endif