Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnjum Fatima2017-09-13 16:16:49 +0000
committerAnjum Fatima2017-09-13 16:16:49 +0000
commit6004ff3a0110e03a3079890b6670313a5e9f9d40 (patch)
treeb358dc41f9b08589e195ca8f6382ec74f6ba2bc9
parent9e163a59af0816d8c6e574d21e1b12eced64adb4 (diff)
downloadrt.equinox.bundles-I20170915-1030.tar.gz
rt.equinox.bundles-I20170915-1030.tar.xz
rt.equinox.bundles-I20170915-1030.zip
Bug 521208 - PushStream returned by LogStreamProvider should be bufferedS4_8_0_M2I20170917-2000I20170916-1500I20170915-2000I20170915-1030I20170913-2000
rather than unbuffered Changed the number of threads for executor and made the thread a daemon thread Change-Id: If3ce8ad545670ec3bd4174e4cd6340053337f4a1 Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
-rw-r--r--bundles/org.eclipse.equinox.log.stream/src/org/eclipse/equinox/internal/log/stream/LogStreamProviderFactory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.log.stream/src/org/eclipse/equinox/internal/log/stream/LogStreamProviderFactory.java b/bundles/org.eclipse.equinox.log.stream/src/org/eclipse/equinox/internal/log/stream/LogStreamProviderFactory.java
index c75a6e445..12d4f9d03 100644
--- a/bundles/org.eclipse.equinox.log.stream/src/org/eclipse/equinox/internal/log/stream/LogStreamProviderFactory.java
+++ b/bundles/org.eclipse.equinox.log.stream/src/org/eclipse/equinox/internal/log/stream/LogStreamProviderFactory.java
@@ -32,10 +32,12 @@ public class LogStreamProviderFactory implements ServiceFactory<LogStreamProvide
ServiceTracker<LogReaderService, AtomicReference<LogReaderService>> logReaderService;
private final int cores = Runtime.getRuntime().availableProcessors();
- private final ExecutorService executor = Executors.newFixedThreadPool(cores - 1, new ThreadFactory() {
+ private final ExecutorService executor = Executors.newFixedThreadPool(cores, new ThreadFactory() {
@Override
public Thread newThread(Runnable r) {
- return new Thread(r, "LogStream thread"); //$NON-NLS-1$
+ Thread t = new Thread(r, "LogStream thread"); //$NON-NLS-1$
+ t.setDaemon(true);
+ return t;
}
});

Back to the top