diff --git a/docs/reference/glib/programming.xml b/docs/reference/glib/programming.xml index e4cda4cec..a952ca3b3 100644 --- a/docs/reference/glib/programming.xml +++ b/docs/reference/glib/programming.xml @@ -19,6 +19,17 @@ General considerations when programming with GLib Writing GLib Applications + +Memory Allocations + + +Unless otherwise specified, all functions which allocate memory in GLib will +abort the process if heap allocation fails. This is because it is too hard to +recover from allocation failures in any non-trivial program and, in particular, +to test all the allocation failure code paths. + + + Threads