Christian Brabandt wrote:
> On Di, 14 Apr 2015, Bram Moolenaar wrote:
>
> > It's weird to exit when running out of memory, that's not what users
> > want. It's easy to accidentally make a Vim script that consumes all
> > memory. It's making things easier for developers and worse for users.
> > Considering there are many more users than developers, that's a bad
> > choice.
>
> Chances are high, your vim will be killed by the kernels OOM killer if
> you ran out of memory, so that does not make any difference in
> practice.¹
The kernel killing a process for OOM? I have never seen that. I
believe it can happen in Linux if you use fork() and virtual memory, it
allows a process to run even though the memory isn't actually available.
But Vim doesn't do that.
I have seen Vim run out of memory when working with spell files. That's
why there is incremental compression.
> > Anyway, sometimes it's suffucient to just see what code to change to fix
> > a problem.
>
> I'll keep an eye on the neovim issues and keep posting here, if I notice
> any problems that also affect vim.
>
> ¹) I have an open issue for my csv plugin that makes my vim killed by
> the kernel. If I have debugged that correctly, this is caused mainly by
> memline/memfile.c functions causing a massive allocation of memory on a
> :s command. VimL is mostly innocent and calling garbagecollect() does
> not help.
Can't we catch the signal and handle it gracefully?
--
ARTHUR: The swallow may fly south with the sun, or the house martin or the
plover seek warmer hot lands in winter, yet these are not strangers to
our land.
SOLDIER: Are you suggesting coconuts migrate?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.