aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2022-08-17 22:48:59 +0200
committerAndrea Corallo2022-08-19 10:09:38 +0200
commit095ea821208b7470da98d95820653c8d527cd745 (patch)
tree40e9fd052be6e19d842f6c70d5e0f1dd03d7e715 /src
parent8f1d0295bcf5ff5b2899831a5705051bca366c0e (diff)
downloademacs-095ea821208b7470da98d95820653c8d527cd745.tar.gz
emacs-095ea821208b7470da98d95820653c8d527cd745.zip
* src/pdumper.c (Fdump_emacs_portable): Check and warn for pure space overflow
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c5
-rw-r--r--src/pdumper.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 6e166d00d5b..2ffee9f729d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5355,9 +5355,6 @@ pure_alloc (size_t size, int type)
5355 goto again; 5355 goto again;
5356} 5356}
5357 5357
5358
5359#ifdef HAVE_UNEXEC
5360
5361/* Print a warning if PURESIZE is too small. */ 5358/* Print a warning if PURESIZE is too small. */
5362 5359
5363void 5360void
@@ -5368,8 +5365,6 @@ check_pure_size (void)
5368 " bytes needed)"), 5365 " bytes needed)"),
5369 pure_bytes_used + pure_bytes_used_before_overflow); 5366 pure_bytes_used + pure_bytes_used_before_overflow);
5370} 5367}
5371#endif
5372
5373 5368
5374/* Find the byte sequence {DATA[0], ..., DATA[NBYTES-1], '\0'} from 5369/* Find the byte sequence {DATA[0], ..., DATA[NBYTES-1], '\0'} from
5375 the non-Lisp data pool of the pure storage, and return its start 5370 the non-Lisp data pool of the pure storage, and return its start
diff --git a/src/pdumper.c b/src/pdumper.c
index 33cb804dbae..168027726c5 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -4040,6 +4040,8 @@ types. */)
4040 if (!NILP (XCDR (Fall_threads ()))) 4040 if (!NILP (XCDR (Fall_threads ())))
4041 error ("No other Lisp threads can be running when this function is called"); 4041 error ("No other Lisp threads can be running when this function is called");
4042 4042
4043 check_pure_size ();
4044
4043 /* Clear out any detritus in memory. */ 4045 /* Clear out any detritus in memory. */
4044 do 4046 do
4045 { 4047 {