>From 02a48f2388932ae78460a76f74e27202212994d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= Date: Wed, 4 Dec 2019 18:22:29 +0100 Subject: [PATCH] Warn pdumper users when pure space has been overflowed * src/alloc.c (check_pure_size): Expose when using the portable dumper. * src/pdumper.c (Fdump_emacs_portable): Use it. --- src/alloc.c | 2 +- src/pdumper.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/alloc.c b/src/alloc.c index 9fbd0d0573..52ea87c7b7 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -5125,7 +5125,7 @@ pure_alloc (size_t size, int type) } -#ifdef HAVE_UNEXEC +#if defined HAVE_UNEXEC || defined HAVE_PDUMPER /* Print a warning if PURESIZE is too small. */ diff --git a/src/pdumper.c b/src/pdumper.c index 74f198c4ae..721d23e696 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -4004,6 +4004,8 @@ DEFUN ("dump-emacs-portable", { eassert (initialized); + check_pure_size (); + if (will_dump_with_unexec_p ()) error ("This Emacs instance was started under the assumption " "that it would be dumped with unexec, not the portable " -- 2.20.1