river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1468119 [7/15] - in /river/jtsk/skunk/qa_refactor/trunk: qa/src/com/sun/jini/qa/harness/ qa/src/com/sun/jini/test/impl/mahalo/ qa/src/com/sun/jini/test/resources/ qa/src/com/sun/jini/test/share/ qa/src/com/sun/jini/test/spec/javaspace/conf...
Date Mon, 15 Apr 2013 15:26:46 GMT
Modified: river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/mahalo/TxnManagerImplInitializer.java
URL: http://svn.apache.org/viewvc/river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/mahalo/TxnManagerImplInitializer.java?rev=1468119&r1=1468118&r2=1468119&view=diff
==============================================================================
--- river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/mahalo/TxnManagerImplInitializer.java
(original)
+++ river/jtsk/skunk/qa_refactor/trunk/src/com/sun/jini/mahalo/TxnManagerImplInitializer.java
Mon Apr 15 15:26:44 2013
@@ -38,6 +38,8 @@ import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
 import java.util.logging.Level;
 import net.jini.activation.ActivationExporter;
 import net.jini.config.Configuration;
@@ -64,7 +66,7 @@ class TxnManagerImplInitializer {
     int taskthreads = 50;
     long tasktimeout = 1000 * 15;
     float taskload = 1.0F;
-    Map<Long, TxnManagerTransaction> txns = Collections.synchronizedMap(new HashMap<Long,
TxnManagerTransaction>());
+    ConcurrentMap<Long, TxnManagerTransaction> txns = new ConcurrentHashMap<Long,
TxnManagerTransaction>();
     /* Retrieve values from properties.          */
     ActivationSystem activationSystem = null;
     boolean activationPrepared = false;



Mime
View raw message