On Mon, 3 Sep 2012 18:45:58 -0300 Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> said:

> Really bad
> 
> -1000

agreed. if u abort() or segv() it makes little difference. for small data
structs (linked list nodes for example) its VERY hard to recover sensibly from
such an out-of-memory situation. but for large allocs its perfectly possible. a
blanket "abort on fail" is bad. really bad. ESPECIALLY for a wm. we try and
recover in a lot of cases. but there is a lot of allocation going on.

also the same crash happens when you run out of stack space - no way to recover
or detect actually...

> On Monday, September 3, 2012, Daniel Juyung Seo wrote:
> 
> > Anyway the system will crash if it fails to allocate memory.
> > But +1 here. Doing exception handling is a good practice.
> >
> > Daniel Juyung Seo (SeoZ)
> >
> > On Tue, Sep 4, 2012 at 3:49 AM, rustyBSD <rusty...@gmx.fr <javascript:;>>
> > wrote:
> > > Hi,
> > > in a lot of files, we use calloc(), malloc(),
> > > realloc(), ...
> > >
> > > Wouldn't it be good to have stuffs like g_malloc()
> > > which aborts when it cannot allocate memory ?
> > >
> > > Because there are a lot of un-null-checked calls,
> > > which could be problematic...
> > >
> > ------------------------------------------------------------------------------
> > > Live Security Virtual Conference
> > > Exclusive live event will cover all the ways today's security and
> > > threat landscape has changed and how IT managers can respond. Discussions
> > > will include endpoint security, mobile security and the latest in malware
> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > enlightenment-devel@lists.sourceforge.net <javascript:;>
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> >
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net <javascript:;>
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> 
> -- 
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to