corda/classpath/java
Joel Dice c0d178d5f1 implement ConcurrentHashMap and AtomicReferenceArray
This is the simplest possible ConcurrentHashMap I could come up with
that works and is actually concurrent in the way one would expect.
It's pretty unconventional, being based on a persistent red-black
tree, and not particularly memory-efficient or cache-friendly.  I
think this is a good place to start, though, and it should perform
reasonably well for most workloads.  Patches for a more efficient
implementation are welcome!

I also implemented AtomicReferenceArray, since I was using it in my
first, naive attempt to implement ConcurrentHashMap.

I had to do a bit of refactoring, including moving some non-standard
stuff from java.util.Collections to avian.Data so I could make it
available to code outside the java.util package, which is why I had to
modify several unrelated files.
2014-03-12 10:44:24 -06:00
..
io Add FileChannel#size() 2013-12-04 15:23:03 -06:00
lang Merge pull request #189 from jentfoo/interface_improvements 2014-03-07 20:48:40 -07:00
math update copyright years 2013-07-02 20:52:38 -06:00
net don't throw UnknownHostException from InetAddress.getByName("0.0.0.0") 2013-12-18 10:12:10 -07:00
nio Add FileChannel#size() 2013-12-04 15:23:03 -06:00
security update copyright years 2013-07-02 20:52:38 -06:00
text Implement single quotes in MessageFormat 2014-01-28 09:56:25 -07:00
util implement ConcurrentHashMap and AtomicReferenceArray 2014-03-12 10:44:24 -06:00