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

RE: svn_pool_xxx vs apr_pool_xxx

From: Sander Striker <striker_at_apache.org>
Date: 2003-08-15 20:02:11 CEST

> From: Greg Hudson [mailto:ghudson@MIT.EDU]
> Sent: Friday, August 15, 2003 7:55 PM

> Don't we also use svn_pool_create to set the abort_on_pool_failure
> handler?

Why yes indeed it does. Another reason to kill it. What an application
decides to do when it runs out of memory*, is a decision to make for
the app implementor, not for us libsvn_subr authors...

---
/* Pool allocation handler which just aborts, since we aren't generally
   prepared to deal with out-of-memory rerors.
 */
static int
abort_on_pool_failure (int retcode)
{
  abort ();
  return -1; /* prevent compiler warnings */
}
---
You might not want your app to abort.  We do want to cmdline client
to do that, but that can be simply handled in main.c.
Sander
*) and the user mode code gets a chance to handle it.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 15 20:03:01 2003

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.