corda/classpath
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
..
avian implement ConcurrentHashMap and AtomicReferenceArray 2014-03-12 10:44:24 -06:00
java implement ConcurrentHashMap and AtomicReferenceArray 2014-03-12 10:44:24 -06:00
sun implement ConcurrentHashMap and AtomicReferenceArray 2014-03-12 10:44:24 -06:00
java-io.cpp Use 0777/0666 permissions when creating dirs/files. 2013-12-06 22:22:16 -07:00
java-lang.cpp stop using Gestalt on OS X 2014-01-16 17:00:52 -07:00
java-net.cpp fix header include order build regression 2013-12-18 11:40:23 -07:00
java-nio.cpp update copyright years 2013-07-02 20:52:38 -06:00
java-util-zip.cpp update copyright years 2013-07-02 20:52:38 -06:00
java-util.cpp update copyright years 2013-07-02 20:52:38 -06:00
jni-util.h update copyright years 2013-07-02 20:52:38 -06:00
sockets.cpp Implement socket API 2013-11-08 09:55:43 -07:00
sockets.h define ENOTCONN if necessary on Windows 2014-01-08 16:08:32 -07:00