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

Re: r17214, JavaHL thread local storeage and reentrant calls

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2005-11-14 21:52:45 CET

On 11/14/05, Mark Phippard <markp@softlanding.com> wrote:

> I do not believe that SVNClientSynchronized is synchronizing on a specific
> instance of the class. If it were, then it wouldn't be thread safe at
> all. It is synchrnonizing on a static instance of the .class which I
> believe will apply to all instances of the class and therefore all
> threads.
>
> We use SVNClientSynchronized in Subclipse.

Ok, but is it absolutely 100% required that any multithreaded code
that uses any part of JavaHL go through the SVNClientSynchronized
class? If so, that will prevent this problem, but if not it can still
occur.

If that is the case, btw, it seems rather odd to me. Why can't there
be multiple instances of SVNClient doing totally unrelated things at
the same time? There doesn't seem to be any fundamental reason that
they should be using any shared state.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 14 21:54:08 2005

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.