From cc5f52cbfa696dc1557f28b3c32f199f4620af62 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 1 Nov 1994 07:07:32 +0000 Subject: [PATCH] (Fdump_emacs): Don't reset the data start address by invoking memory_warnings just before unexec-ing. --- src/emacs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/emacs.c b/src/emacs.c index a943a0788d5..2e9a81a9091 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1037,7 +1037,11 @@ and announce itself normally when it is run.") /* Tell malloc where start of impure now is */ /* Also arrange for warnings when nearly out of space. */ #ifndef SYSTEM_MALLOC +#ifndef WINDOWSNT + /* On Windows, this was done before dumping, and that once suffices. + Meanwhile, my_edata is not valid on Windows. */ memory_warnings (&my_edata, malloc_warning); +#endif /* not WINDOWSNT */ #endif unexec (XSTRING (intoname)->data, !NILP (symname) ? XSTRING (symname)->data : 0, &my_edata, 0, 0); -- 2.39.5