]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/pdumper.c (Fdump_emacs_portable): Check and warn for pure space overflow
authorAndrea Corallo <akrl@sdf.org>
Wed, 17 Aug 2022 20:48:59 +0000 (22:48 +0200)
committerAndrea Corallo <akrl@sdf.org>
Thu, 18 Aug 2022 15:11:59 +0000 (17:11 +0200)
src/alloc.c
src/pdumper.c

index 6e166d00d5b1a857e4ad6785360c351a3fa72808..2ffee9f729d2079a9413f4b8a36af2bd3a0b9e80 100644 (file)
@@ -5355,9 +5355,6 @@ pure_alloc (size_t size, int type)
   goto again;
 }
 
-
-#ifdef HAVE_UNEXEC
-
 /* Print a warning if PURESIZE is too small.  */
 
 void
@@ -5368,8 +5365,6 @@ check_pure_size (void)
              " bytes needed)"),
             pure_bytes_used + pure_bytes_used_before_overflow);
 }
-#endif
-
 
 /* Find the byte sequence {DATA[0], ..., DATA[NBYTES-1], '\0'} from
    the non-Lisp data pool of the pure storage, and return its start
index 33cb804dbae83703d2b732ac207448de0059c44d..168027726c5e9f0bba50784084114a6894b5932a 100644 (file)
@@ -4040,6 +4040,8 @@ types.  */)
   if (!NILP (XCDR (Fall_threads ())))
     error ("No other Lisp threads can be running when this function is called");
 
+  check_pure_size ();
+
   /* Clear out any detritus in memory.  */
   do
     {