Dan Čermák cee12e
commit 216c65b135c2b0be7e048cdc6683873b03b99b9a
Dan Čermák cee12e
Author: Lars Ingebrigtsen <larsi@gnus.org>
Dan Čermák cee12e
Date:   Sun Mar 28 19:13:00 2021 +0200
Dan Čermák cee12e
Dan Čermák cee12e
    Use a 64KB page size for pdump
Dan Čermák cee12e
    
Dan Čermák cee12e
    * src/pdumper.c (dump_get_page_size): Use a 64KB page size on all
Dan Čermák cee12e
    architectures, as this many vary between systems (bug#47125).
Dan Čermák cee12e
Dan Čermák cee12e
diff --git a/src/pdumper.c b/src/pdumper.c
Dan Čermák cee12e
index 337742fda4..fdd9b3bacb 100644
Dan Čermák cee12e
--- a/src/pdumper.c
Dan Čermák cee12e
+++ b/src/pdumper.c
Dan Čermák cee12e
@@ -162,11 +162,7 @@ ptrdiff_t_to_dump_off (ptrdiff_t value)
Dan Čermák cee12e
 static int
Dan Čermák cee12e
 dump_get_page_size (void)
Dan Čermák cee12e
 {
Dan Čermák cee12e
-#if defined (WINDOWSNT) || defined (CYGWIN)
Dan Čermák cee12e
-  return 64 * 1024;  /* Worst-case allocation granularity.  */
Dan Čermák cee12e
-#else
Dan Čermák cee12e
-  return getpagesize ();
Dan Čermák cee12e
-#endif
Dan Čermák cee12e
+  return 64 * 1024;
Dan Čermák cee12e
 }
Dan Čermák cee12e
 
Dan Čermák cee12e
 #define dump_offsetof(type, member)                             \