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

Re: svn commit: r18170 - trunk/subversion/libsvn_fs_base/bdb

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-01-20 01:19:50 CET

maxb@tigris.org wrote:
> Author: maxb
> Date: Thu Jan 19 11:28:07 2006
> New Revision: 18170
>
> Modified:
> trunk/subversion/libsvn_fs_base/bdb/env.c
>
> Log:
> In the BDB environment cache, implement an enumerated type using small integers
> instead of self-referential pointers, thus allowing the use of apr_atomic_cas()
> instead of apr_atomic_casptr(), thus avoiding breaking GCC's strict-aliasing
> rules, and provoking warnings. Incidentally, it also avoids confusing humans,
> which the use of self-referential pointers merely as unique tokens is prone to
> do :-).
>
I'm glad you agree that the spinlock idea works. :)

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 20 02:27:35 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.