Re: UNIXProcess improvements

2010-06-11 Thread Martin Buchholz
I finally submitted this change 6944584: Improvements to subprocess handling on Unix Thanks to all the reviewers. Martin

Re: UNIXProcess improvements

2010-04-21 Thread Martin Buchholz
David, On Wed, Apr 21, 2010 at 20:15, David Schlosnagle wrote: > On Wed, Apr 21, 2010 at 9:14 PM, Martin Buchholz wrote: > Running ManyProcesses with Apple's version of 1.6.0_17-b04-248, > averages around 45 seconds and 4010 started threads. > Running ManyProcesses with the bsd-port of OpenJDK7

Re: UNIXProcess improvements

2010-04-21 Thread Rob Leland
. Fixed. (do you have a tool to detect extra imports?) There are a number of tools: IntelliJ: Free community version :http://download.jetbrains.com/idea/ideaIC-9.0.2.exe PMD: http://pmd.sourceforge.net/rules/imports.html NetBeans: http://netbeans.org/kb/67/java/editor-tips.html etc...

Re: UNIXProcess improvements

2010-04-21 Thread David Schlosnagle
On Wed, Apr 21, 2010 at 9:14 PM, Martin Buchholz wrote: > Thanks for the careful review. No problem, I wanted test this patch out on OS X since the current UNIXProcess.java.bsd is virtually identical to UNIXProcess.java.linux. I slightly tweaked the ManyProcesses test to exec /usr/bin/true and lo

Re: UNIXProcess improvements

2010-04-21 Thread Martin Buchholz
Thanks for the careful review. On Wed, Apr 21, 2010 at 17:47, David Schlosnagle wrote: > Martin, > > In src/solaris/classes/java/lang/UNIXProcess.java.linux, are lines > 177, 181, and 185 needed? If the assignment of these streams were in > the constructor, they could be final. Fixed. Yes, the

Re: UNIXProcess improvements

2010-04-21 Thread David Schlosnagle
Martin, In src/solaris/classes/java/lang/UNIXProcess.java.linux, are lines 177, 181, and 185 needed? If the assignment of these streams were in the constructor, they could be final.  176 synchronized void processExited(int exitcode) {  177 stdout = this.stdout;  178 if (stdout

Re: UNIXProcess improvements

2010-04-21 Thread Martin Buchholz
I now have the second part of my planned improvements to Linux process handling, and is now a serious proposal. for Michael and others to review. http://cr.openjdk.java.net/~martin/webrevs/openjdk7/UNIXProcess/ http://cr.openjdk.java.net/~martin/webrevs/openjdk7/UNIXProcess2/ This is a huge perfo

Re: UNIXProcess improvements

2010-04-20 Thread Michael McMahon
Martin, Thanks for the answers. The changes look fine to me. - Michael. Martin Buchholz wrote: On Mon, Apr 19, 2010 at 09:04, Michael McMahon wrote: Martin Buchholz wrote: On Fri, Apr 16, 2010 at 09:18, Mark Reinhold wrote: For now I suggest leaving old @author tags as-is

Re: UNIXProcess improvements

2010-04-19 Thread Martin Buchholz
On Mon, Apr 19, 2010 at 09:04, Michael McMahon wrote: > Martin Buchholz wrote: >> >> On Fri, Apr 16, 2010 at 09:18, Mark Reinhold wrote: >> >> >>> >>> For now I suggest leaving old @author tags as-is. >>> >> >> OK, done. >> >> Version 0.2 of the webrev is published. >> >> Martin >> > > Martin, >

Re: UNIXProcess improvements

2010-04-19 Thread Michael McMahon
Martin Buchholz wrote: On Fri, Apr 16, 2010 at 09:18, Mark Reinhold wrote: For now I suggest leaving old @author tags as-is. OK, done. Version 0.2 of the webrev is published. Martin Martin, From what I can see, you've cleaned up the code and the functional changes are the use

Re: UNIXProcess improvements

2010-04-16 Thread Martin Buchholz
On Fri, Apr 16, 2010 at 09:18, Mark Reinhold wrote: > For now I suggest leaving old @author tags as-is. OK, done. Version 0.2 of the webrev is published. Martin

Re: UNIXProcess improvements

2010-04-16 Thread Mark Reinhold
> Date: Fri, 16 Apr 2010 09:09:31 -0700 > From: Martin Buchholz > On Fri, Apr 16, 2010 at 09:00, chris.hega...@oracle.com wrote: >> I took a look at the preliminary changes. >>  * I'm not sure we can remove any previous authors names. > > We've considered doing that en masse. Yes, and we might

Re: UNIXProcess improvements

2010-04-16 Thread Martin Buchholz
I should have explicitly invited Michael and Xueming to review, as well. On Fri, Apr 16, 2010 at 09:00, Chris Hegarty wrote: > Martin, > > I filed the following to track this: >  6944584: Improvements to subprocess handling on Unix Thanks. > I took a look at the preliminary changes. >  * I'm no

Re: UNIXProcess improvements

2010-04-16 Thread Chris Hegarty
Martin, I filed the following to track this: 6944584: Improvements to subprocess handling on Unix I took a look at the preliminary changes. * I'm not sure we can remove any previous authors names. * I assume the second part, buffering of data after process termination has not been impleme

UNIXProcess improvements

2010-04-15 Thread Martin Buchholz
Chris and/or Alan, I am planning some improvements to Process. Please file a bug. Synopsis: Improvements to subprocess handling on Unix Description: Looking at UNIXProcess.java.linux, there are a number of possible improvements: The "process reaper" thread should run in a thread pool to save on t