diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/LargePipedInputStream.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/LargePipedInputStream.java index 4b5ba151cd4..d680c9bb0b1 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/LargePipedInputStream.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/LargePipedInputStream.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2009 Wind River Systems and others. + * Copyright (c) 2006, 2012 Wind River Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -7,6 +7,8 @@ * * Contributors: * Wind River Systems - initial API and implementation + * Marc Khouzam (Ericsson) - Specify the larger size in the new constructor + * of PipedInputStream provided by Java 6 *******************************************************************************/ package org.eclipse.cdt.dsf.mi.service.command; @@ -17,13 +19,12 @@ import java.io.PipedOutputStream; class LargePipedInputStream extends PipedInputStream { - private final int LARGE_BUF_SIZE = 1024 * 1024; // 1 megs + private static final int LARGE_BUF_SIZE = 1024 * 1024; // 1M public LargePipedInputStream(PipedOutputStream pipedoutputstream) throws IOException { - super(pipedoutputstream); - buffer = new byte[LARGE_BUF_SIZE]; + super(pipedoutputstream, LARGE_BUF_SIZE); } }