[icedtea-web] RFC: Patch to use wait() when waiting for conditions to become true

Denis Lila dlila at redhat.com
Fri Apr 15 06:05:35 PDT 2011


> I don't particularly want to either, but I'm worried you're putting
> too much faith in CHMs. They do NOT lock for retrieval. 

I know they don't lock on get. That's exactly why I wanted to
use them. Why is it a problem that they don't?

> They are only
> guaranteed to not show results mid-put and (the important benefit)
> provide "weakly consistent" iteration:
> 
> 'The view's iterator is a "weakly consistent" iterator that will never
> throw ConcurrentModificationException, and guarantees to traverse
> elements as they existed upon construction of the iterator, and may
> (but is not guaranteed to) reflect any modifications subsequent to
> construction.'

We're not using them for iteration, so I don't see how this is a
problem.

Regards,
Denis.

----- Original Message -----
> On 17:30 Thu 14 Apr , Denis Lila wrote:
> 
> snip...
> 
> >
> > I really don't think we should go back to HMs though. If we did that
> > we'd have to lock on every get.
> >
> 

> 
> 
> > Regards,
> > Denis.
> >
> > ----- Original Message -----
> > > * Dr Andrew John Hughes <ahughes at redhat.com> [2011-04-14 16:32]:
> > > > On 09:22 Thu 14 Apr , Deepak Bhole wrote:
> > > > > * Dr Andrew John Hughes <ahughes at redhat.com> [2011-04-14
> > > > > 07:41]:
> > > > > > On 01:56 Thu 14 Apr , Deepak Bhole wrote:
> > > > > > > * Deepak Bhole <dbhole at redhat.com> [2011-04-13 20:48]:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > Andrew mentioned in one of the previous threads that the
> > > > > > > > current plugin
> > ...
> 
> --
> Andrew :)
> 
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
> 
> Support Free Java!
> Contribute to GNU Classpath and IcedTea
> http://www.gnu.org/software/classpath
> http://icedtea.classpath.org
> PGP Key: F5862A37 (https://keys.indymedia.org/)
> Fingerprint = EA30 D855 D50F 90CD F54D 0698 0713 C3ED F586 2A37



More information about the distro-pkg-dev mailing list