On 12/30/2010 3:01 PM, Sergey Senozhatsky wrote:
Hello,
Below is part 2 of changes to use non-throwing operator delete in cpu/* classes 
(for review).

I have a question - should we remove package and core in case of (e.g.) cpu 
allocation error?
Something like this:

ok so I have applied all your other patches, but this one I want to think about a little more. the checks you add are valid, but I want to, before going down this road, make up my mind on how memory allocation failures
should be handled, program wide.

your opinion (as well as others) is well appreciated;
I think we have two choices

1) on any allocation failure, just give up and exit
2) unwinder on all allocation failure paths, and struggle along.

right now, I'm leaning towards option 1), but I also feel bad about it at the same time....
what do others think?

_______________________________________________
Discuss mailing list
[email protected]
http://lists.lesswatts.org/listinfo/discuss

Reply via email to