[concurrency-interest] LongAdder in JDK?

Adrian Tarau adrian.tarau at gmail.com
Fri Dec 9 14:06:11 EST 2011


Sorry, forgot to include some Coliper documentation about how to read 
these graphs: 
http://code.google.com/p/caliper/wiki/OnlineResults?show=content

Thanks,
Adrian Tarau.

On 12/09/2011 11:00 AM, Adrian Tarau wrote:
> This chart shows you why you should use JDK classes before thinking 
> you can outsmart the default implementations :)
> StrippedAtomicLong is my naive implementation of a LongAdder using a 
> fixed number of AtomicLong instances and the masked thread id as the 
> index(using 64 AtomicLongs - best performance, increasing this number 
> doesn't help for maximum 20 threads).
>
> This chart was created using Caliper <http://code.google.com/p/caliper>.
>
>
>
> On 12/08/2011 04:38 PM, Doug Lea wrote:
>> On 12/08/11 15:04, Adrian Tarau wrote:
>>> There are any plans to include LongAdder in JDK
>>
>> Yes. Everything in package jsr166e is a candidate for JDK8.
>>
>>> Is this the stable version of the LongAdder?
>>> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/?pathrev=MAIN 
>>>
>>
>> Yes. Comments, experience reports, etc are welcome.
>>
>> -Doug
>> _______________________________________________
>> Concurrency-interest mailing list
>> Concurrency-interest at cs.oswego.edu
>> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20111209/dc329215/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 89637 bytes
Desc: not available
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20111209/dc329215/attachment-0001.png>


More information about the Concurrency-interest mailing list