v icon indicating copy to clipboard operation
v copied to clipboard

Handle memory allocation failures

Open Undumendil opened this issue 7 years ago • 1 comments

https://github.com/vlang/v/blob/master/builtin/builtin.v#L78 https://github.com/vlang/v/blob/master/builtin/builtin.v#L87 https://github.com/vlang/v/blob/master/builtin/array.v#L167

Panics/segfaults/leaks because of temporary memory issues should be avoided; at least in builtin modules. Keeping some pre-allocated memory may solve most of such cases.

Undumendil avatar Jun 25 '19 23:06 Undumendil

If there's an out of memory error, the application should exit. That's how it works right now.

medvednikov avatar Aug 04 '19 07:08 medvednikov