Menu

#4 Legal series of updates corrupts map

closed-fixed
None
9
2009-08-11
2009-06-22
Nick Reeves
No

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

Discussion

  • Nick Reeves

    Nick Reeves - 2009-06-22
     
  • Cliff Click

    Cliff Click - 2009-06-22
    • priority: 5 --> 9
    • assigned_to: nobody --> cliffclick
     
  • Cliff Click

    Cliff Click - 2009-06-22

    Repro'd on my core2 - with 1 Integer and 2 Threads and the JVM in -Xint mode.
    Cliff

     
  • Cliff Click

    Cliff Click - 2009-08-11
    • status: open --> closed-fixed
     
  • Cliff Click

    Cliff Click - 2009-08-11

    Fix with 1.1.2
    Thanks for the nice bug report.

    Cliff

     

Log in to post a comment.