subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <danie...@apache.org>
Subject Re: C++ thoughts for Berlin
Date Sun, 02 Jun 2013 02:17:39 GMT
On Sat, Jun 01, 2013 at 04:23:22PM -0700, Blair Zajac wrote:
> I agree it's not worth going to C++.  Where I'm coming from is a 
> frustration on the number of times I've seen pool lifetime bugs get fixed 
> and it would be great to be in a language where one doesn't need to worry 
> about that, or as much.

Maybe there's another way of discouraging those bugs?

Perhaps we should run the test suite under valgrind, with APR pool debugging
enabled, and clearing every scratch_pool parameter immediately after the call,
on a regular basis?  

(I mean: wherever we have 'f(foo, pool, pool);', convert that to
's = svn_pool_create(pool); f(foo, s, pool); svn_pool_destroy(s);', 
then run 'make svnserveautocheck THREADED=1' under valgrind.)

Mime
View raw message