[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ssfmalloc tests: Port to macOS 11
From: |
Bruno Haible |
Subject: |
ssfmalloc tests: Port to macOS 11 |
Date: |
Fri, 27 Nov 2020 20:56:49 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) |
It is being reported that the memory pagesize on macOS 11/arm64 is 16 KiB.
See <https://www.winehq.org/pipermail/wine-devel/2020-August/171857.html>.
2020-11-27 Bruno Haible <bruno@clisp.org>
ssfmalloc tests: Port to macOS 11.
* tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
diff --git a/tests/test-ssfmalloc.c b/tests/test-ssfmalloc.c
index 86fa42b..397fa98 100644
--- a/tests/test-ssfmalloc.c
+++ b/tests/test-ssfmalloc.c
@@ -124,12 +124,12 @@ free_pages (uintptr_t pages, size_t size)
/* ======================= Instantiate the front end ======================= */
#define PAGESIZE pagesize
-/* On Cygwin and Linux/PowerPC, PAGESIZE is 65536. On all other platforms, it
- is either 4096 or 8192. */
+/* On Cygwin and Linux/PowerPC, PAGESIZE is 65536. On macOS 11, it is 16384.
+ On all other platforms, it is either 4096 or 8192. */
#if defined __CYGWIN__ || (defined __linux__ && defined __powerpc__)
# define PAGESIZE_MAX 65536
#else
-# define PAGESIZE_MAX 8192
+# define PAGESIZE_MAX 16384
#endif
#define ALLOC_PAGES alloc_pages
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ssfmalloc tests: Port to macOS 11,
Bruno Haible <=