Xref: utzoo comp.editors:1213 comp.unix.wizards:19973 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!mike From: mike@umn-cs.CS.UMN.EDU (Mike Haertel) Newsgroups: comp.editors,comp.unix.wizards Subject: Re: GNU Emacs, memory usage, releasing Keywords: GNU emacs malloc memory working set gap editor Message-ID: <18005@umn-cs.CS.UMN.EDU> Date: 3 Jan 90 03:42:26 GMT References: <1561@aber-cs.UUCP> Reply-To: mike@umn-cs.cs.umn.edu (Mike Haertel) Organization: Free Software Foundation Lines: 13 A word of warning regarding replacing the hand coded gap move with calls to memcpy(): memcpy() is not guaranteed to work correctly for overlapping source and destination regions. The proposed ANSI standard requires memmove() which does make this guarantee. bcopy() on 4.3BSD vaxes will work correctly, but this is not documented and may not work on other BSD derivatives. -- Mike Haertel "Of course, we have to keep in mind that this year's Killer Micro is next year's Lawn Sprinkler Controller . . ." -- Eugene Brooks