RFR 8005311: Add Scalable Updatable Variables, DoubleAccumulator, DoubleAdder, LongAccumulator, LongAdder

Doug Lea dl at cs.oswego.edu
Sat Jan 5 21:01:17 UTC 2013


On 01/05/13 15:10, Martin Buchholz wrote:
> I did a bit of review.

Thanks especially for finding the  doc adaptions
missing in the transition from un-lambda-ized jsr166e versions!

>
> ----
>
> """The supplied accumulator function must be side-effect-free. It may be
> re-applied when attempted updates fail due to contention among threads. """
>
> Too strong.  I prefer """The supplied accumulator function should be
> side-effect-free, since it may be re-applied when attempted updates fail due to
> contention among threads. """  Users can usefully use side effects for e.g.
> performance monitoring or debugging.

Fine. We will need some consistent wording about such functions
all over the stream APIs as well.

-Doug




More information about the core-libs-dev mailing list