[concurrency-interest] LongAdder in JDK?

Adrian Tarau adrian.tarau at gmail.com
Thu Dec 8 15:04:57 EST 2011


There are any plans to include LongAdder in JDK(I searched 
concurrency-interest at cs.oswego.edu on MarkMail but I coudn't find an 
answer to my question)? There are some good use cases for this 
structure, like holding a hit ratio? You might use a concurrent map but 
threads will block when updating atomic hits and misses counters, which 
happens in my case(16 threads).

Is this the stable version of the LongAdder? 
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/jsr166e/?pathrev=MAIN

Thank you,
Adrian Tarau.


More information about the Concurrency-interest mailing list