diff --git a/src/main/java/com/google/devtools/build/lib/shell/Consumers.java b/src/main/java/com/google/devtools/build/lib/shell/Consumers.java index 94e2d743497865..3b11c2fd0db495 100644 --- a/src/main/java/com/google/devtools/build/lib/shell/Consumers.java +++ b/src/main/java/com/google/devtools/build/lib/shell/Consumers.java @@ -244,13 +244,8 @@ public void waitForCompletion() throws IOException { } } - /** - * Factory which produces threads with a 32K stack size. - */ private static class AccumulatorThreadFactory implements ThreadFactory { - private static final int THREAD_STACK_SIZE = 32 * 1024; - private static AtomicInteger threadInitNumber = new AtomicInteger(0); @Override @@ -258,13 +253,11 @@ public Thread newThread(final Runnable runnable) { final Thread t = new Thread(null, runnable, - "Command-Accumulator-Thread-" + threadInitNumber.getAndIncrement(), - THREAD_STACK_SIZE); + "Command-Accumulator-Thread-" + threadInitNumber.getAndIncrement()); // Don't let this thread hold up JVM exit t.setDaemon(true); return t; } - } /**