NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/60995: libedit: allocate display rows on demand
>
> If you think this is a good idea, I can spend more time working out a
> solution, which will undoubtedly add more complexity. Honestly the
> application is already cooked if they cannot allocate more memory at this
> point, and often it's easier to restart it then to keep running. But if
> that's what it takes to optimize the memory usage I can do it. The memory
> savings can be huge.
>
Yes, but it is not up to the library to abort or exit if it can't allocate memory,
specially one that might not be the primary function of the application like
command line editing. The application might have already allocated all
the memory it needs to operate and just the editor part might be
non-functional. The library does not abort() or exit() anywhere else
now, (there are abort() calls from programming errors, not transient ones).
christos
Home |
Main Index |
Thread Index |
Old Index