Add support for handling failure e.g. malloc failure, so that libst doesn't cause programs linked to it to abort: have a handler that can be longjmped to. This should be used for all exceptions: st_fail should always abort.
Logged In: YES user_id=572001 Originator: NO
Can a well-known programming interface or library help in this use case? - http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Allocation.html - http://en.wikipedia.org/wiki/Hoard_memory_allocator - http://en.wikipedia.org/wiki/Crash-only_software
How often would you like to retry an operation after any failed memory allocation?
Log in to post a comment.
Logged In: YES
user_id=572001
Originator: NO
Can a well-known programming interface or library help in this use case?
- http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Allocation.html
- http://en.wikipedia.org/wiki/Hoard_memory_allocator
- http://en.wikipedia.org/wiki/Crash-only_software
How often would you like to retry an operation after any failed memory allocation?