How to mount a volume with file owners being nobody?

2014-04-17 Thread Wang Weijun
I have seen such things before but cannot create one now. I would like to simulate a problematic environment on my own machines. Any suggestion is welcomed, I have Mac OS X and Windows at hand but Linux and Solaris are also OK. Thanks Max

Re: ProcessReaper: single thread reaper

2014-04-17 Thread David M. Lloyd
On 04/17/2014 02:58 PM, Peter Levart wrote: On 04/17/2014 05:15 PM, David M. Lloyd wrote: On 04/17/2014 09:43 AM, Peter Levart wrote: On 04/17/2014 09:07 AM, Martin Buchholz wrote: Many possible solutions eventually fail because whatever we do cannot take ownership of any global resource. Ca

Re: RFR: 8000975: (process) Merge UNIXProcess.java.bsd & UNIXProcess.java.linux (& .solaris & .aix)

2014-04-17 Thread Peter Levart
Hi, I'm cross-posting this on the mlvm-dev mailing list, because I think it concerns internal MHs implementation. While replacing some inner classes with lambdas in java.lang.UNIXProcess class, a jtreg test started failing. This test is employing a security manager with an unusual configurat

Re: ProcessReaper: single thread reaper

2014-04-17 Thread Peter Levart
On 04/17/2014 05:15 PM, David M. Lloyd wrote: On 04/17/2014 09:43 AM, Peter Levart wrote: On 04/17/2014 09:07 AM, Martin Buchholz wrote: Many possible solutions eventually fail because whatever we do cannot take ownership of any global resource. Calling waitid on all child processes, even wit

Re: Covariant overrides on the Buffer Hierachy

2014-04-17 Thread Stuart Marks
On 4/15/14 1:46 AM, Alan Bateman wrote: On 15/04/2014 09:05, Richard Warburton wrote: The only issue that I'm aware of that is related to this kind of change is the requirement to recompile all the classes in the hierarchy when making a change [0]. If you don't do this its possible for an infini

Re: getFirst and getLast on Iterable

2014-04-17 Thread Brian Goetz
In the course of JSR-335, we considered a number of possible methods on Iterable. There are literally hundreds of methods that might "sensibly" appear on Iterable; see RichIterable from GS-Collections or IEnumerable from .NET for some examples. After considering the landscape, we decided, bas

Re: Wrong encoding after XML identity transformation

2014-04-17 Thread huizhe wang
Hi Nico, The JDK is a few patches short of Xalan 2.7.1. At least one of the patches caused performance regression, which was the main reason they were not brought in. We plan to fix the issue and bring JDK to Xalan version 2.7.1. Could you file at https://bugs.openjdk.java.net/browse/JDK? Pl

Re: RFR: 8000975: (process) Merge UNIXProcess.java.bsd & UNIXProcess.java.linux (& .solaris & .aix)

2014-04-17 Thread Peter Levart
Hi Martin, Since you are the author of the test/java/lang/ProcessBuilder/SecurityManagerClinit.java test, I thought I'll ask you about the purpose of the following line in the test just before setting up the Policy and SecurityManager: // A funky contrived security setup, just for bu

Re: ProcessReaper: single thread reaper

2014-04-17 Thread David M. Lloyd
On 04/17/2014 09:43 AM, Peter Levart wrote: On 04/17/2014 09:07 AM, Martin Buchholz wrote: Many possible solutions eventually fail because whatever we do cannot take ownership of any global resource. Calling waitid on all child processes, even with NOWAIT and NOHANG changes global state (what i

Re: ProcessReaper: single thread reaper

2014-04-17 Thread roger riggs
Hi Peter, Yes, factoring this into a discrete function make sense and then alternate implementations (if needed) are easy to select. I'm not sure it needs to build on the CompleteableFuture model but I don't see a reason to create something else. Roger On 4/17/2014 10:23 AM, Peter Levart w

Re: ProcessReaper: single thread reaper

2014-04-17 Thread Peter Levart
On 04/17/2014 09:07 AM, Martin Buchholz wrote: Many possible solutions eventually fail because whatever we do cannot take ownership of any global resource. Calling waitid on all child processes, even with NOWAIT and NOHANG changes global state (what if another subprocess library in the same pr

Re: RFR 8040809: '}' left in the spec for j.u.Random.doubles(..)

2014-04-17 Thread roger riggs
Hi Michael, Looks good. Roger On 4/17/2014 10:27 AM, Michael McMahon wrote: Trivial doc change to remove extraneous '}' characters in two places http://cr.openjdk.java.net/~michaelm/8040809/webrev.1/ Thanks, Michael

RFR 8040809: '}' left in the spec for j.u.Random.doubles(..)

2014-04-17 Thread Michael McMahon
Trivial doc change to remove extraneous '}' characters in two places http://cr.openjdk.java.net/~michaelm/8040809/webrev.1/ Thanks, Michael

Re: ProcessReaper: single thread reaper

2014-04-17 Thread Peter Levart
On 04/16/2014 03:18 PM, roger riggs wrote: Hi, Another approach was suggested by a member of the Solaris team. If you open /proc/pid O_RDONLY for any process you wish to monitor and use poll(2), you can wait for a hangup event which indicates that the process has exited. You can then reap that

Re: RFR 8040760: Addition of new java.sql tests

2014-04-17 Thread Roger Riggs
Hi Lance, - The empty method for @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod could be deleted (and related imports) - Ditto the empty public constructors - The javadoc first sentences should end with a "." (Though we rarely generate javadoc for tests). - Binary files (BatchUpda

Re: getFirst and getLast on Iterable

2014-04-17 Thread Vitaly Davidovich
getLast is a bit dangerous since the sequence can be infinite. Both getFirst and getLast (ignoring infinite sequences) seem too trivial to provide in the JDK, IMHO. Sent from my phone On Apr 17, 2014 7:53 AM, "Otávio Gonçalves de Santana" wrote: > I would to add for news methods on Iterable, I

getFirst and getLast on Iterable

2014-04-17 Thread Otávio Gonçalves de Santana
I would to add for news methods on Iterable, I believe it will helpful for many Java Developers. diff -r 3dd165facde7 test/java/util/Iterator/IteratorDefaults.java --- a/test/java/util/Iterator/IteratorDefaults.java Wed Apr 09 12:26:00 2014 -0700 +++ b/test/java/util/Iterator/IteratorDefaults.j