diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:45:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:45:08 +0000 |
commit | dd77599e4181fe32df31d53db6da4960033b7d90 (patch) | |
tree | b56cda9073367b16604dbdd66fcd12923a99f441 /emacs-64KB-page-size-for-pdump.patch | |
parent | 8ccab69f351d5a80602c5698dc420e18d1a583c8 (diff) |
automatic import of emacsopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'emacs-64KB-page-size-for-pdump.patch')
-rw-r--r-- | emacs-64KB-page-size-for-pdump.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/emacs-64KB-page-size-for-pdump.patch b/emacs-64KB-page-size-for-pdump.patch new file mode 100644 index 0000000..371e5c2 --- /dev/null +++ b/emacs-64KB-page-size-for-pdump.patch @@ -0,0 +1,31 @@ +From 216c65b135c2b0be7e048cdc6683873b03b99b9a Mon Sep 17 00:00:00 2001 +From: Lars Ingebrigtsen <larsi@gnus.org> +Date: Sun, 28 Mar 2021 19:13:00 +0200 +Subject: [PATCH] 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). +--- + src/pdumper.c | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/src/pdumper.c b/src/pdumper.c +index 337742fda4..fdd9b3bacb 100644 +--- a/src/pdumper.c ++++ b/src/pdumper.c +@@ -162,11 +162,7 @@ ptrdiff_t_to_dump_off (ptrdiff_t value) + static int + dump_get_page_size (void) + { +-#if defined (WINDOWSNT) || defined (CYGWIN) +- return 64 * 1024; /* Worst-case allocation granularity. */ +-#else +- return getpagesize (); +-#endif ++ return 64 * 1024; + } + + #define dump_offsetof(type, member) \ +-- +2.36.1 + |