]> git.eshelyaron.com Git - emacs.git/commit
Fix memory allocation problems in Cygwin build (Bug#9273).
authorKen Brown <kbrown@cornell.edu>
Tue, 16 Aug 2011 13:27:12 +0000 (09:27 -0400)
committerKen Brown <kbrown@cornell.edu>
Tue, 16 Aug 2011 13:27:12 +0000 (09:27 -0400)
commita4579d332d432ea629a1ad2168ce8023d172d563
tree518252a17be98424e3744bc35dcc96fedf41c84a
parent9adfcd0bf50066cc678ba65fb1b236d1c4ca0334
Fix memory allocation problems in Cygwin build (Bug#9273).

* src/gmalloc.c [CYGWIN] (bss_sbrk_heapbase, bss_sbrk_heapinfo): New
variables.
(malloc_initialize_1) [CYGWIN]: Prepare for reinitializing the
dumped emacs.
(_free_internal_nolock) [CYGWIN]: Ignore requests to free storage
in the static heap.
[CYGWIN] (special_realloc): New function.
(_realloc_internal_nolock) [CYGWIN]: Use the new function on
requests to realloc storage in the static heap.

* src/unexcw.c ( __malloc_initialized): Declare external variable.
(fixup_executable): Force the dumped emacs to reinitialize malloc.
src/ChangeLog
src/gmalloc.c
src/unexcw.c