aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-03-28 19:13:00 +0200
committerLars Ingebrigtsen2021-03-28 19:17:34 +0200
commit216c65b135c2b0be7e048cdc6683873b03b99b9a (patch)
tree94c43542e46ca8310ae36887afe042e075665d71 /src
parent81b56434a536f2f8849957e23f2bc3f83e16751f (diff)
downloademacs-216c65b135c2b0be7e048cdc6683873b03b99b9a.tar.gz
emacs-216c65b135c2b0be7e048cdc6683873b03b99b9a.zip
Use a 64KB page size for pdump
* src/pdumper.c (dump_get_page_size): Use a 64KB page size on all architectures, as this many vary between systems (bug#47125).
Diffstat (limited to 'src')
-rw-r--r--src/pdumper.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index 337742fda4a..fdd9b3bacb4 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -162,11 +162,7 @@ ptrdiff_t_to_dump_off (ptrdiff_t value)
162static int 162static int
163dump_get_page_size (void) 163dump_get_page_size (void)
164{ 164{
165#if defined (WINDOWSNT) || defined (CYGWIN) 165 return 64 * 1024;
166 return 64 * 1024; /* Worst-case allocation granularity. */
167#else
168 return getpagesize ();
169#endif
170} 166}
171 167
172#define dump_offsetof(type, member) \ 168#define dump_offsetof(type, member) \