summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2023-03-05 17:46:05 +0700
committerIvan Maidanski <ivmai@mail.ru>2023-03-06 22:09:37 +0300
commit0854bfe2f82538977abd1ad5a53506918d2e9ab1 (patch)
treedf365e06d6b76565d32c1361e21d2cc091654d60 /include
parent6a283de1db84c15e048cf9df6b47f4368b2e226a (diff)
downloadbdwgc-0854bfe2f82538977abd1ad5a53506918d2e9ab1.tar.gz
Do not hard-code page size for wasm32-wasi
(refactoring) PR #534 (bdwgc). Instead of defining GETPAGESIZE() for WASI, we can do what we do in Emscripten and other targets and just fall back to the default handling of this which invokes getpagesize(). * include/private/gcconfig.h [WEBASSEMBLY]: Remove comment about page size. * include/private/gcconfig.h [WEBASSEMBLY && WASI] (GETPAGESIZE): Remove explicit definition.
Diffstat (limited to 'include')
-rw-r--r--include/private/gcconfig.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 4e2d843e..839f0ef1 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -2384,7 +2384,6 @@ EXTERN_C_BEGIN
/* native support of memory mapping. Use sbrk() instead. */
# undef USE_MMAP
# undef USE_MUNMAP
- /* The real page size in WebAssembly is 64 KB. */
# if defined(GC_THREADS) && !defined(CPPCHECK)
# error No threads support yet
# endif
@@ -2403,8 +2402,6 @@ EXTERN_C_BEGIN
# endif
# undef USE_MMAP /* similar to Emscripten */
# undef USE_MUNMAP
- /* The real page size in WebAssembly is 64 KB. */
-# define GETPAGESIZE() 65536
# if defined(GC_THREADS) && !defined(CPPCHECK)
# error No threads support yet
# endif