maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject [4/50] git commit: o Made lower bound of executor threads 0 for artifact resolver
Date Sat, 01 Dec 2012 14:50:01 GMT
o Made lower bound of executor threads 0 for artifact resolver

Ideally I think we should just get rid of the whole executor and use new Thread() instead,
which would mean we'd need some way of constraining thread counts.

Freeing the threads mean they also release the classloader


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/ba5e00a2
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/ba5e00a2
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/ba5e00a2

Branch: refs/heads/feature/colorized-console/log4j2
Commit: ba5e00a2523ad8c27b8593cdbf613b27ecc5e03c
Parents: 81e0d1f
Author: Kristian Rosenvold <kristian.rosenvold@gmail.com>
Authored: Sat Dec 1 10:53:45 2012 +0100
Committer: Arnaud HeĢritier <aheritier@exoplatform.com>
Committed: Sat Dec 1 13:53:43 2012 +0100

----------------------------------------------------------------------
 .../artifact/resolver/DefaultArtifactResolver.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/ba5e00a2/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
----------------------------------------------------------------------
diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
index e75c61d..2b978b0 100644
--- a/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
+++ b/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
@@ -111,7 +111,7 @@ public class DefaultArtifactResolver
         else
         {
             executor =
-                new ThreadPoolExecutor( threads, threads, 3, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
new DaemonThreadCreator());
+                new ThreadPoolExecutor( 0, threads, 3, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
new DaemonThreadCreator());
         }
     }
 


Mime
View raw message