maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject [26/30] git commit: o Made lower bound of executor threads 0 for artifact resolver
Date Sun, 09 Dec 2012 02:51:51 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/1a1fe6d5
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/1a1fe6d5
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/1a1fe6d5

Branch: refs/heads/slf4j-logback
Commit: 1a1fe6d50802713d969ed08d6fa06dec53cf90e9
Parents: 1062524
Author: Kristian Rosenvold <kristian.rosenvold@gmail.com>
Authored: Sat Dec 1 10:53:45 2012 +0100
Committer: Kristian Rosenvold <kristian.rosenvold@gmail.com>
Committed: Sat Dec 1 10:56:53 2012 +0100

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


http://git-wip-us.apache.org/repos/asf/maven/blob/1a1fe6d5/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