lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev PATCH [dev21]: source caching


From: Leonid Pauzner
Subject: Re: lynx-dev PATCH [dev21]: source caching
Date: Mon, 12 Apr 1999 03:12:17 +0400 (MSD)

11-Apr-99 17:53 address@hidden wrote:
>> > > (examines code) Wait a minute.  The declaration and definition of
>> > > free_all_texts() are wrapped in '#ifdef LY_FIND_LEAKS', but the
>> > > atexit(free_all_texts) call in HText_new() isn't.  How can that even
>> > > compile without LY_FIND_LEAKS #define'd?  [...]
>>
>> > That was the very recent changes that #define atexit to nothing
>> > to decrease shutdown time (and free_all_texts() is the main contributor),
>>
>> Eek!  That's almost certainly a bad idea.

> no - only on MSDOS is it a bad idea (good idea on Unix and VMS, since 
> allocated
> memory is returned on exit from a process).  MSDOS doesn't have separate
> address spaces (nor does DJGPP implement that, apparently ;-).

Wrong. DJGPP applications runs with DPMI dos extender
which allocate memory and manage virtual pages.
On exit from application all allocated memory returned to the system.
(No memory problem with dev21, Doug reported a problem with restoring
a BREAK signal on exit, completely different story).

Not sure how DJGPP will serve several application,
share the memory etc., probably no multitasking here.

>>                                              -sbigham


> --
> Thomas E. Dickey
> address@hidden
> http://www.clark.net/pub/dickey




reply via email to

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