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

Re: [PATCH] Berkeley DB and Windows CRT Issue

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-06-17 01:56:14 CEST

Russell Yanofsky wrote:

>Log Message:
>
>Small change to the fs library which prevents the heap corruption that
>otherwise occurs when Subversion and Berkeley DB modules use different C
>runtime libraries. This change should eliminate the need to distribute
>separate builds of Berkeley DB for VC6 and VC7 on Windows.
>
>* subversion/libsvn_fs/fs.c (allocate_env): Changed to call set_alloc() on
> each new Berkeley DB environment object.
>
>
Good idea! I suspect this will work even once we start generating DLLs,
since all the memory blocks allocated by BDB should be freed inside
libsvn_fs.

By the way, you don't have to take the address of a function; function
names are implicitly converted to function pointers in parameters.
Committed with this change in revision 6256.

(BTW, Purify is happy with this change, too, it reported som other
problems in fs-test.)

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 17 01:56:58 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.