changeset 31413:c3b1fc2b0d11

(Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars before and after unexec.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 06 Sep 2000 21:25:22 +0000
parents 828b2b8afdc0
children 76dcf201d009
files src/emacs.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Wed Sep 06 21:25:12 2000 +0000
+++ b/src/emacs.c	Wed Sep 06 21:25:22 2000 +0000
@@ -1974,8 +1974,15 @@
 #ifdef DOUG_LEA_MALLOC
   malloc_state_ptr = malloc_get_state ();
 #endif
+
+#ifdef REL_ALLOC_MMAP
+  mmap_set_vars (0);
+#endif
   unexec (XSTRING (filename)->data,
 	  !NILP (symfile) ? XSTRING (symfile)->data : 0, my_edata, 0, 0);
+#ifdef REL_ALLOC_MMAP
+  mmap_set_vars (1);
+#endif
 #ifdef DOUG_LEA_MALLOC
   free (malloc_state_ptr);
 #endif