# HG changeset patch # User Richard M. Stallman # Date 914972034 0 # Node ID 7a8677cdf2bdb8ae1ada82fc1c913eed8fb7b0ff # Parent c8cdb4e487cb6c8133d9b88b30b74a67c96df939 (main): Call memory_warnings and uninterrupt_malloc even when starting the dumped Emacs. diff -r c8cdb4e487cb -r 7a8677cdf2bd src/emacs.c --- a/src/emacs.c Tue Dec 29 22:53:25 1998 +0000 +++ b/src/emacs.c Tue Dec 29 22:53:54 1998 +0000 @@ -707,15 +707,14 @@ 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