[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev outofmem() allocating memory

From: Leonid Pauzner
Subject: Re: lynx-dev outofmem() allocating memory
Date: Wed, 7 Apr 1999 17:55:06 +0400 (MSD)

7-Apr-99 07:16 Klaus Weide wrote:
> On Mon, 5 Apr 1999, Gisle Vanem wrote:

> Alternatively, outofmem() could try to do some of the cleanups that
> free memory first, before doing anything else.  Then there should be
> at least enough memory available for stdio purposes.  Too bad that
> memory cleanup has just been disabled in recent patches!

Right. I think fprintf() message should be removed from outofmem()
and FatalProblem(), LYexit() [else] reorganized a little:
there is already a large chunk for LYOutOfMemory condition,
so place all atexit staff and messages there to close cleanly.

So we need two kind of atexit() calls - one for free_atexit()
to do only when necessary and another for special actions
like one pointed out by Doug recently.

>From the other hand, HText's is the most memory-hungry item
(unless we have a broken loop somewhere) so free_all_texts() may be enough
for stdio purposes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]