Thread View: news.software.readers
1 messages
1 total messages
Started by Jim Rees
Thu, 05 Sep 1991 16:39
More on xrn memory leaks
Author: 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 ----
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads