Legal series of updates corrupts map
Status: Beta
Brought to you by:
cliffclick
A valid series of updates leads to the NonBlockingHashMap getting corrupted. I have boiled down a piece of my code (attached) which essentially consists of using a NonBlockingHashMap to track counts for given keys to a simple failure case.
The code works fine with ConcurrentHashMap and only depends on basic features of the ConcurrentMap interface which NonBlockingHashMap should support.
My Java version is the latest Sun Java 6 JDK - Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
My CPU is Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
My OS is Ubuntu 9.04 32 bit
Repro'd on my core2 - with 1 Integer and 2 Threads and the JVM in -Xint mode.
Cliff
Fix with 1.1.2
Thanks for the nice bug report.
Cliff