return zero if they can't allocate the memory you requested, unless
you register an abort function for them to call instead.
own hash table module assumes that pool allocation always succeeds,
and thus can't handle pools that don't have abort functions
For the Subversion filesystem library, I'd like to assume that
allocation always succeeds. I could simply make the requirement that
all pools must have an abort function registered, and add a new
Subversion error code, SVN_ERR_POOL_LACKS_ABORT. But this seems kind
of silly, since clearly everyone (well, apr/tables, at least) is
making this same assumption anyway.
I think it would be better to simply specify that the apr allocation
calls always succeed, specify some default behavior when we run out of
memory (the abort () function sounds fine to me), and let people
provide their own abort function if they don't like that.
Received on Sat Oct 21 14:36:10 2006