summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-12-29 22:53:54 +0000
committerRichard M. Stallman <rms@gnu.org>1998-12-29 22:53:54 +0000
commitbf7f4e9066f5bd53ca8d7ac448b53aae3bd092bc (patch)
tree3c082d136623895dc7c15b3a3cc77f353fea7ef4 /src
parent5c9c2c3f3365c5203c737081a31117103c47abcf (diff)
downloademacs-bf7f4e9066f5bd53ca8d7ac448b53aae3bd092bc.tar.gz
(main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 8d10e17a50d..dec656e8752 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -707,15 +707,14 @@ main (argc, argv, envp)
clearerr (stdin);
#ifndef SYSTEM_MALLOC
- if (! initialized)
- {
- /* Arrange to get warning messages as memory fills up. */
- memory_warnings (0, malloc_warning);
+ /* Arrange to get warning messages as memory fills up. */
+ memory_warnings (0, malloc_warning);
- /* Arrange to disable interrupt input while malloc and friends are
- running. */
- uninterrupt_malloc ();
- }
+ /* Call malloc at least once, to run the initial __malloc_hook. */
+ malloc (4);
+
+ /* Arrange to disable interrupt input inside malloc etc. */
+ uninterrupt_malloc ();
#endif /* not SYSTEM_MALLOC */
#ifdef MSDOS