jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r998025 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java
Date Fri, 17 Sep 2010 09:14:53 GMT
Author: jukka
Date: Fri Sep 17 09:14:52 2010
New Revision: 998025

URL: http://svn.apache.org/viewvc?rev=998025&view=rev
Log:
JCR-2089: Use java.util.concurrent

Force the dynamic thread pool to have always at least one thread available, as otherwise tasks
may get stalled until the queue limit is reached.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java?rev=998025&r1=998024&r2=998025&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/DynamicPooledExecutor.java
Fri Sep 17 09:14:52 2010
@@ -43,7 +43,7 @@ public class DynamicPooledExecutor imple
      */
     public DynamicPooledExecutor() {
         this.executor = new ThreadPoolExecutor(
-                0, Runtime.getRuntime().availableProcessors(),
+                1, Runtime.getRuntime().availableProcessors(),
                 500, TimeUnit.MILLISECONDS,
                 new LinkedBlockingQueue<Runnable>());
         this.lastCheck = System.currentTimeMillis();



Mime
View raw message