You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/11/07 16:40:11 UTC

svn commit: r1198783 - /incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java

Author: andy
Date: Mon Nov  7 15:40:11 2011
New Revision: 1198783

URL: http://svn.apache.org/viewvc?rev=1198783&view=rev
Log:
Don't create huge numbers of threads.

Modified:
    incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java

Modified: incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java?rev=1198783&r1=1198782&r2=1198783&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java (original)
+++ incubator/jena/Jena2/TDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/T_TransSystem.java Mon Nov  7 15:40:11 2011
@@ -358,9 +358,11 @@ public class T_TransSystem
     {
         for ( int i = 0 ; i < numTasks ; i++ )
         {
-            //execService.submit(proc) ;
-            counter++ ;
-            new Thread(new Callable2Runnable<T>(proc), label+counter).start() ;
+            execService.submit(proc) ;
+            // This creates an lot of threads, which aren't collected up.
+            // But the thread is named.
+//            counter++ ;
+//            new Thread(new Callable2Runnable<T>(proc), label+counter).start() ;
         }
     }