[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: return value of apr_palloc

From: Joe Orton <joe_at_orton.demon.co.uk>
Date: 2000-08-12 03:34:05 CEST

On Fri, Aug 11, 2000 at 06:27:04PM -0700, Greg Stein wrote:
> If any of the ap_palloc(), ap_pcalloc(), etc return, then it succeeded. You
> will never see an "out of memory" error.

This was true in Apache 1.3 but I don't think it's true in APR... as far
as I can see, you have to explicitly register an "apr_abort" function
with the pool, else the *alloc functions will just return NULL if
malloc() ever returns NULL.

And you can't seem to register an apr_abort function using
apr_create_pool, only with make_sub_pool... which seems wrong; maybe I'm
missing something.

Received on Sat Oct 21 14:36:06 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.