Article View: news.software.readers
Article #555More on xrn memory leaks
From: Jim Rees
Date: Thu, 05 Sep 1991 16:39
Date: Thu, 05 Sep 1991 16:39
38 lines
2029 bytes
2029 bytes
Earlier I posted a patch for a memory leak in xrn, that worked around an
apparent bug in the text widget.
I have another simple patch to xrn that prevents it from growing to 20 Mb
while running, which it will easily do in the course of a day. I haven't
completely tested this but it seems to be OK so far.
I don't recommend simply #defining STUPIDMMU. This fix is a real fix, not a
time/space tradeoff.
Maybe someone who understand xrn memory management can tell me why it wasn't
just done this way in the first place. The only thing I can figure is that
you will see cross-posted duplicates if you susbscribe to a new group after
seeing the article in another group. I don't consider this to be a problem
worth spending 15 Mb of swap space to solve.
% diff -cb internals.c.08.29 internals.c
*** internals.c.08.29 Thu Aug 29 19:46:32 1991
--- internals.c Thu Aug 29 19:48:11 1991
***************
*** 1708,1723 ****
newsgroup = (struct newsgroup *) gptr;
- #ifndef STUPIDMMU /* defer until we have to do this */
- SETARTICLES(newsgroup);
- #endif
-
if (IS_SUBSCRIBED(newsgroup) &&
(number >= newsgroup->first) && (number <= newsgroup->last)) {
- #ifdef STUPIDMMU
SETARTICLES(newsgroup);
- #endif
SET_READ(newsgroup->articles[INDEX(number)]);
--- 1708,1717 ----
Technical Details
Message-ID:
<53ccc075.1bc5b@pisa.citi.umich.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!unidui!math.fu-berlin.de!ox.com!umich!terminator!pisa.citi.umich.edu!reesShow Full Headers
Complete Article Headers
Message-ID: <53ccc075.1bc5b@pisa.citi.umich.edu> Subject: More on xrn memory leaks Date: Thu, 05 Sep 1991 16:39:23 +0000 From: rees@pisa.citi.umich.edu (Jim Rees) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmdzi!unido!unidui!math.fu-berlin.de!ox.com!umich!terminator!pisa.citi.umich.edu!rees Newsgroups: news.software.readers Sender: usenet@terminator.cc.umich.edu (usenet news) Reply-To: rees@citi.umich.edu (Jim Rees) Organization: University of Michigan IFS Project Lines: 38