Commit 2b7377ca authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars

before and after unexec.
parent 93c27ef1
......@@ -1974,8 +1974,15 @@ You must run Emacs in batch mode in order to dump it.")
#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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment