[jboss-cvs] JBossCache/src/org/jboss/cache ...

Manik Surtani manik at jboss.org
Sun Jul 29 11:21:42 EDT 2007


  User: msurtani
  Date: 07/07/29 11:21:42

  Modified:    src/org/jboss/cache  UnversionedNode.java
  Log:
  Changed to use a ConcurrentHashMap to prevent CMEs when doing concurrent puts and removes.
  
  Revision  Changes    Path
  1.41      +2 -2      JBossCache/src/org/jboss/cache/UnversionedNode.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: UnversionedNode.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/UnversionedNode.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -b -r1.40 -r1.41
  --- UnversionedNode.java	27 Jul 2007 15:39:28 -0000	1.40
  +++ UnversionedNode.java	29 Jul 2007 15:21:42 -0000	1.41
  @@ -66,7 +66,7 @@
      /**
       * Map of general data keys to values.
       */
  -   private final Map<K, V> data = new HashMap<K, V>();
  +   private final Map<K, V> data = new ConcurrentHashMap<K, V>();
   
      /**
       * Constructs a new node with an FQN of Root.
  
  
  



More information about the jboss-cvs-commits mailing list