www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/04/11/05:28:45

Date: Thu, 11 Apr 1996 12:20:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-workers AT delorie DOT com
Subject: Emacs works under v2.0!
Message-Id: <Pine.SUN.3.91.960411120916.27524W-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019