Mercurial > emacs
changeset 23954:7a8677cdf2bd
(main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 29 Dec 1998 22:53:54 +0000 |
parents | c8cdb4e487cb |
children | 9f9e1b450ff5 |
files | src/emacs.c |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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