[RFC][icedtea-web]: possible race condition.
Denis Lila
dlila at redhat.com
Tue Mar 8 06:43:57 PST 2011
> Have you thought about using an AtomicLong instead?
Yes, but AtomicLong doesn't have an atomic operation for
what we're trying to do. We're trying to compute the function
f(long i) = 0 if i==long_max else i+i
AtomicLong only has things like set, add, increment.
As for why we're trying to compute the above function instead
of a simple increment (and letting the result overflow into
the negatives), I don't know. I will ask Deepak when he returns.
Regards,
Denis.
----- Original Message -----
> On 19:02 Mon 07 Mar , Omair Majid wrote:
> > On 03/07/2011 06:55 PM, Denis Lila wrote:
> > > This is better. It fixes a few issues I discussed with
...
More information about the distro-pkg-dev
mailing list