Mail Archives: djgpp-workers/1996/04/11/05:28:45
Yes, that's true: the one and only bug that is known to me (that Emacs
can't be used under v2.0 with the relocatable allocation package) is now
solved! I was looking in the wrong direction all the time; I'm sorry for
bugging others, mostly Morten and Charles, about what can happen in the
dumped Emacs. The solution came within hours of the discovery that the
same bug also happens in the pure undumped Emacs.
Here is the scoop: amazingly enough, any library function that gets a
pointer to a text in an Emacs buffer, cannot call `malloc', because GNU
malloc can cause relocation of the buffer, which invalidates the passed
pointer. And our `write' does just that when it writes to a text file.
Since `write' will probably be fixed anyway in the future release, for the
time being I just overloaded `__write' on src/msdos.c.
If everything goes according to plan, you should see an Emacs pretest in a
day or two that should build cleanly under v2.0, and v2 support should be
part of the official Emacs 19.31 distribution. (Can you imagine to launch
a compilation, or shell out to DOS, and see the results lightning-fast
instead of waiting for Emacs to page itself out?)
Yeee-haa!!
Oh, and thanks to everybody who helped me with this.
- Raw text -