aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-06 21:25:22 +0000
committerGerd Moellmann2000-09-06 21:25:22 +0000
commit2b7377cadb2a0fc085b7e1375061e728bde99de7 (patch)
tree336cc6e255e3d66f4959772477206fb7f8e598c2 /src
parent93c27ef1aa381d52cb84866451bc07c6095e1bd4 (diff)
downloademacs-2b7377cadb2a0fc085b7e1375061e728bde99de7.tar.gz
emacs-2b7377cadb2a0fc085b7e1375061e728bde99de7.zip
(Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
before and after unexec.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ef28352d3d4..ff4fe11e75e 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1974,8 +1974,15 @@ You must run Emacs in batch mode in order to dump it.")
1974#ifdef DOUG_LEA_MALLOC 1974#ifdef DOUG_LEA_MALLOC
1975 malloc_state_ptr = malloc_get_state (); 1975 malloc_state_ptr = malloc_get_state ();
1976#endif 1976#endif
1977
1978#ifdef REL_ALLOC_MMAP
1979 mmap_set_vars (0);
1980#endif
1977 unexec (XSTRING (filename)->data, 1981 unexec (XSTRING (filename)->data,
1978 !NILP (symfile) ? XSTRING (symfile)->data : 0, my_edata, 0, 0); 1982 !NILP (symfile) ? XSTRING (symfile)->data : 0, my_edata, 0, 0);
1983#ifdef REL_ALLOC_MMAP
1984 mmap_set_vars (1);
1985#endif
1979#ifdef DOUG_LEA_MALLOC 1986#ifdef DOUG_LEA_MALLOC
1980 free (malloc_state_ptr); 1987 free (malloc_state_ptr);
1981#endif 1988#endif