Re: RFR 9: 8064932: test java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough

2014-11-14 Thread Martin Buchholz
Hi Roger, I keep staring at the code in UNIXProcess.java and am having trouble imagining how waitFor could possibly return early - that loop can only terminate when elapsed time as measured by System.nanoTime exceeds timeoutAsNanos. It's true that we might have truncation when converting to milli

Re: RFR : 8047340 - (process) Runtime.exec() fails in Turkish locale

2014-11-14 Thread Martin Buchholz
Another amusing "Turkish I bug"! Looks good to me! On Fri, Nov 14, 2014 at 7:27 AM, Seán Coffey wrote: > This issue was addressed in JDK8u and later via JDK-8000975. I'm planning on > fixing this in JDK 7u by itself. > > webrev : http://cr.openjdk.java.net/~coffeys/webrev.8047340.7u/webrev/ > bu

Re: RFR 9: 8064932: test java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough

2014-11-14 Thread roger riggs
Hi Martin, The artifact is by-product of using System.nanoTime to measure the duration in UNIXProcess and the conversion to milliseconds to call Object.wait(): The low order bits of nanoseconds are truncated in the conversion. long timeoutAsNanos = unit.toNanos(timeout); long st

Re: RFR: 8064846: Lazy-init thread safety problems in core reflection

2014-11-14 Thread Martin Buchholz
On Fri, Nov 14, 2014 at 9:32 AM, Peter Levart wrote: > Hi Martin, > > I dont know if you saw https://bugs.openjdk.java.net/browse/JDK-8064517 (a > followup to your fix for final fields). It would be best to merge those > fixes, what do you think? I've deliberately ignored those changes for now, s

Re: RFR: 8064846: Lazy-init thread safety problems in core reflection

2014-11-14 Thread Martin Buchholz
Hi Aleksey, I've implemented your suggestions and regenerated the webrev. On Fri, Nov 14, 2014 at 12:03 AM, Aleksey Shipilev wrote: > Hi Martin, > > On 11/14/2014 03:03 AM, Martin Buchholz wrote: >> I'd like you to do a code review. >> >> http://cr.openjdk.java.net/~martin/webrevs/openjdk9/core-

Re: RFR: 8062773: Clarifications for Class specification

2014-11-14 Thread Martin Buchholz
Companion change to getFields has been submitted. I plan on submitting this one soon if I don't hear any objections. On Thu, Nov 6, 2014 at 11:05 AM, Martin Buchholz wrote: > I moved the change to getFields to another changeset, redid some > wording as suggested, harmonized getInterfaces and > g

Re: RFR: 8063147: Class.getFields spec should state that fields are inherited from superinterfaces

2014-11-14 Thread Martin Buchholz
Committed. On Fri, Nov 14, 2014 at 7:53 AM, Paul Sandoz wrote: > On Nov 10, 2014, at 10:43 AM, Paul Sandoz wrote: Please shepherd through CCC. >> >> Kick started. >> > > CCC has been approved, > Paul. >

Re: RFR 9: 8064932: test java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough

2014-11-14 Thread Martin Buchholz
This sort of change may be a necessary concession to reality, but before we go there ... as I said in a previous review, this test may demonstrate a real bug in the jdk implementation. Is this system-dependent? Is it easy to reproduce? Can we fix the JDK? On Fri, Nov 14, 2014 at 11:48 AM, roger

RFR 9: 8064932: test java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough

2014-11-14 Thread roger riggs
Please review this test change to make the wait time in ProcessBuilder/Basic a bit more lenient. Webrev: http://cr.openjdk.java.net/~rriggs/webrev-basic-notenough-8064932/ Issue: 8064932: java/lang/ProcessBuilder/Basic.java: waitFor didn't take long enough Thanks, Roger

Re: RFR: 8062194: java.util.jar.Attributes should use insertion-ordered iteration

2014-11-14 Thread Martin Buchholz
Committed as http://hg.openjdk.java.net/jdk9/dev/jdk/rev/3ff567ffe52a. On Sat, Nov 8, 2014 at 12:59 AM, Alan Bateman wrote: > On 07/11/2014 20:52, Martin Buchholz wrote: >> >> : >> I don't much care either way, so the spec change to >> Attributes(Attributes) is reverted, as you wish. Webrev refr

Re: RFR: 8064846: Lazy-init thread safety problems in core reflection

2014-11-14 Thread Peter Levart
Hi Martin, I dont know if you saw https://bugs.openjdk.java.net/browse/JDK-8064517 (a followup to your fix for final fields). It would be best to merge those fixes, what do you think? Otherwise I think that making all lazily initialized fields volatile is not necessary. Since you have made the Ty

Re: RFR: 8063147: Class.getFields spec should state that fields are inherited from superinterfaces

2014-11-14 Thread Paul Sandoz
On Nov 10, 2014, at 10:43 AM, Paul Sandoz wrote: >>> Please shepherd through CCC. > > Kick started. > CCC has been approved, Paul.

RFR : 8047340 - (process) Runtime.exec() fails in Turkish locale

2014-11-14 Thread Seán Coffey
This issue was addressed in JDK8u and later via JDK-8000975. I'm planning on fixing this in JDK 7u by itself. webrev : http://cr.openjdk.java.net/~coffeys/webrev.8047340.7u/webrev/ bug report : https://bugs.openjdk.java.net/browse/JDK-8047340 regards, Sean.

AnnotationInvocationHandler - null check for hashCode / equals / toString computation?

2014-11-14 Thread Rafael Winterhalter
For reasons I am not going into, I am implementing my own AnnotationInvocationHandler and I want it to be compatible to the OpenJDK's annotation invocation handler with respect to the hash code and equals functionality, thus I just looked at the source in more detail. During implementing the handle

Re: RFR: 8064846: Lazy-init thread safety problems in core reflection

2014-11-14 Thread Joel Borggrén-Franck
On 2014-11-13, Martin Buchholz wrote: > Hi Joel, Joe, Paul, > > I'd like you to do a code review. > > http://cr.openjdk.java.net/~martin/webrevs/openjdk9/core-reflection-volatile/ > https://bugs.openjdk.java.net/browse/JDK-8064846 Looks good. I think Aleksey's version removing 'sis' is a bit nea

Re: RFR: 8064846: Lazy-init thread safety problems in core reflection

2014-11-14 Thread Aleksey Shipilev
Hi Martin, On 11/14/2014 03:03 AM, Martin Buchholz wrote: > I'd like you to do a code review. > > http://cr.openjdk.java.net/~martin/webrevs/openjdk9/core-reflection-volatile/ > https://bugs.openjdk.java.net/browse/JDK-8064846 Looks good and sane, thanks for taking care of it. Not a big fan of