On 8/9/2011 10:39 PM, Ryan Johnson wrote:
Given that the static heap is only 12MB, with most of that arguably
occupied by stuff that isn't going away, what if we did "just ignore the
static heap" (mostly)? Anything freed from that regionjust gets dropped
on the floor and all new requests are served from the cygwin heap? I
assume temacs stays away from the dynamic heap, since otherwise the dump
would be corrupted.
I tried forcing malloc to reinitialize itself in emacs.c, and emacs
crashed almost immediately. A gdb backtrace showed that the memory got
corrupted as soon as realloc got called on objects that were originally
stored in the static heap. After reinitialization, malloc had no
knowledge of memory allocation in the static heap.