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

Memory use pattern in svn_fs_base__retry_txn(

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Thu, 24 Nov 2011 23:38:55 +0200

svn_fs_base__retry_txn() is a while(1) loop that calls
begin_trail(pool) in every iteration. The latter function callocates
a struct trail_t out of POOL.

Is there a memory growth issue here? Will the number of iterations of
the while(1) loop be small or bounded? If not, should we avoid repeated
allocations out of POOL? (e.g., by re-using a single trail_t struct, or
by letting the struct live on stack until a successful txn)
Received on 2011-11-24 22:39:42 CET

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.