commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [pool] synchronization issues in Pool
Date Sun, 23 Oct 2005 14:38:05 GMT
On 23/10/05, Stephen Colebourne <scolebourne@btopenworld.com> wrote:

> My main question is can these tests be run against any class? We're
> particularly stuck with
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32573 collections
> LRUMap at present where a bug can easily be reproduced when you don't
> sync, but not at all when you do sync. Yet we have bugs reported! So, is

The issue is not clear to me on the exact circumstances when the
reported bugs do occur:
- do problems ever occur in single-threaded use?
- if problems only occur in multi-threaded use, is access synchronized?
and, just as important:
- are all uses of Iterators synchronized on the map?

See for example:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#synchronizedMap(java.util.Map)

HTH.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message