RFR: 8061293: Update javax/xml tests to remove references of jre dir

2015-03-04 Thread Frank Yuan
Hi All Would you like to review the code change for bug: https://bugs.openjdk.java.net/browse/JDK-8061293, this is a Jigsaw related bug, it's to clean up the reference to "jre" dir. webrev: http://cr.openjdk.java.net/~fyuan/8061293/webrev/ Best Regards Frank

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread David Holmes
I'm only glancing at parts of this ... On 5/03/2015 6:21 AM, Andrew Haley wrote: John's suggestion works well; the code is smaller and neater. http://cr.openjdk.java.net/~aph/unaligned.jdk.3/ This doesn't make sense to me: 929 // The byte ordering of this machine 930 public final s

Re: RFR (JAXP): 8049378: Examine references to ${java.home}/lib in JAXP

2015-03-04 Thread huizhe wang
On 3/4/2015 1:46 PM, Lance Andersen wrote: Hi Joe, A couple other very minor suggestions to consider assuming -Xdoclint is clean: - Your new changes just use where the older code used . It would be nice if we can to be consistent if you have the time. I think a while a go it was dec

Re: RFR (JAXP): 8049378: Examine references to ${java.home}/lib in JAXP

2015-03-04 Thread huizhe wang
On 3/4/2015 1:15 PM, Alan Bateman wrote: On 04/03/2015 19:50, huizhe wang wrote: Hi, This is the additional specification change after the move from lib to conf in the jigsaw/m2 forest. Besides the change from lib to conf, the new specification also made the reference to the location non-no

Re: RFR(s): 8073923: Files.lines() documentation needs clarification

2015-03-04 Thread Stuart Marks
On 3/4/15 12:31 AM, Alan Bateman wrote: On 03/03/2015 23:05, Stuart Marks wrote: Updated webrev: http://cr.openjdk.java.net/~smarks/reviews/8073923/webrev.2/ This looks good. Minor re-wording suggestions, ignore if you want: "... reference to an open XXX, which is closed by ..." => "..

Re: RFR (JAXP): 8049378: Examine references to ${java.home}/lib in JAXP

2015-03-04 Thread Lance Andersen
Hi Joe, A couple other very minor suggestions to consider assuming -Xdoclint is clean: - Your new changes just use where the older code used . It would be nice if we can to be consistent if you have the time. I think a while a go it was decide that was the way to go. - In some cases you

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Phil Race
I like the overall approach. We can then attack the warnings lib by lib and/or platform by platform. I do want to mention that some libs like liblcms are 3rd party open source libraries and it may not always be possible to convince upstream to change their code. -phil. On 03/04/2015 08:30 AM

Re: RFR (JAXP): 8049378: Examine references to ${java.home}/lib in JAXP

2015-03-04 Thread Alan Bateman
On 04/03/2015 19:50, huizhe wang wrote: Hi, This is the additional specification change after the move from lib to conf in the jigsaw/m2 forest. Besides the change from lib to conf, the new specification also made the reference to the location non-normative. Please review: http://cr.openjdk.

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Stuart Marks
On 3/4/15 11:14 AM, Chris Hegarty wrote: On 4 Mar 2015, at 18:10, Stuart Marks wrote: Hi Chris, Instead of creating a socket factory for this purpose, this test can use RMI's test library TestLibrary.createRegistryOnUnusedPort(). Now, internally, this uses the now disfavored "getUnusedRand

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Andrew Haley
John's suggestion works well; the code is smaller and neater. http://cr.openjdk.java.net/~aph/unaligned.jdk.3/ http://cr.openjdk.java.net/~aph/unaligned.hotspot.3/hotspot.patch Andrew.

Compiler support for private interface methods.

2015-03-04 Thread Srikanth
Hello ! The javac team is pleased to inform you that the compiler support for private methods in interfaces has been released through here: JBS: https://bugs.openjdk.java.net/browse/JDK-8071453, HG: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/592d64800143 into the JDK9 dev stream. This

RFR (JAXP): 8049378: Examine references to ${java.home}/lib in JAXP

2015-03-04 Thread huizhe wang
Hi, This is the additional specification change after the move from lib to conf in the jigsaw/m2 forest. Besides the change from lib to conf, the new specification also made the reference to the location non-normative. Please review: http://cr.openjdk.java.net/~joehw/jdk9/8049378/webrev/ Bug

RFR: JDK-8074406 DateTimeFormatter.appendZoneOrOffsetId() fails to resolve a ZoneOffset for OffsetDateTime

2015-03-04 Thread Xueming Shen
Stephen and Roger, This is the DTF.appendZoneOrOffsetId() issues we discussed last year. Somehow the ball was dropped somewhere :-) Here is the proposed change we discussed. The only difference is I leave the ZoneOffset to throw the DateTimeException, instead of inside the Parsed.query() direc

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Chris Hegarty
> On 4 Mar 2015, at 18:10, Stuart Marks wrote: > > Hi Chris, > > Instead of creating a socket factory for this purpose, this test can use > RMI's test library TestLibrary.createRegistryOnUnusedPort(). Now, internally, > this uses the now disfavored "getUnusedRandomPort" pattern, but it can (a

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Chris Hegarty
> On 4 Mar 2015, at 17:56, Stuart Marks wrote: > > Hi Chris, Roger, > > Just as a background, the loop with System.gc() and sleep() was arrived at > via review comments between Eric Wang and David Holmes. See this thread: > > http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-June/0105

java.text.SimpleDateFormat.parse should recognize America/Los_Angeles

2015-03-04 Thread Douglas Surber
java.text.SimpleDateFormat.parse does not recognize time zone ids. new SimpleDateFormat("-MM-dd HH:mm:ss ").parse("2015-03-03 09:25:00 America/Los_Angeles") does not recognize "America/Los_Angeles" as a time zone. "America/Los_Angeles" is a time zone id and the "" format looks

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Stuart Marks
Hi Chris, Instead of creating a socket factory for this purpose, this test can use RMI's test library TestLibrary.createRegistryOnUnusedPort(). Now, internally, this uses the now disfavored "getUnusedRandomPort" pattern, but it can (and should) be changed to avoid this. In, fact, passing 0 wil

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Stuart Marks
Hi Chris, Roger, Just as a background, the loop with System.gc() and sleep() was arrived at via review comments between Eric Wang and David Holmes. See this thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-June/010592.html which continued here: http://mail.openjdk.java.net/p

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Tim Bell
Magnus: Looks good to me as well. Tim On 03/04/15 05:31, Erik Joelsson wrote: Hello, Really nice to finally see this patch getting done! Only one comment: flags.m4: In the grep expression, could you move the extra [] outside of the actual command line options to grep so that the command li

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Alan Bateman
On 04/03/2015 15:03, Magnus Ihse Bursie wrote: I believe all warnings are important to check! Unfortunately, this has not been done for a lot of warnings for a lot of time. :( Right, although in the past we had some areas close to be cleared of warnings, it's just that we didn't keep up the effo

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Chris Hegarty
On 04/03/15 15:58, Roger Riggs wrote: Hi Chris, ok, though if System.gc is good enough it would not need a loop and timeout logic. Ah ok, so some common library function taking a Predicate, or similar. I got you now. It would be interesting to know if it ever needs to go through the loop m

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Roger Riggs
Thanks, looks fine to me. Roger On 3/4/2015 10:53 AM, Chris Hegarty wrote: On 04/03/15 15:26, Roger Riggs wrote: Hi Chris, Is the choice of as the ephemeral port ok? It should be, or it could be any positive integer value. Though it is artificial is there any chance it will be confus

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Roger Riggs
Hi Chris, ok, though if System.gc is good enough it would not need a loop and timeout logic. It would be interesting to know if it ever needs to go through the loop more than once. Maybe some indication of that can be added to the test output. Thanks, Roger On 3/4/2015 10:57 AM, Chris Heg

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Chris Hegarty
On 04/03/15 15:17, Roger Riggs wrote: Hi Chris, looks fine. Thanks Roger. Do you suppose the test library should have a function that takes a set of (Weak)Refs and does whatever it takes to clear them (or timeout). Well, the problem is: What is "whatever it takes"? The changes in this tes

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Paul Sandoz
On Mar 4, 2015, at 4:35 PM, Andrew Haley wrote: > On 03/04/2015 03:07 PM, Paul Sandoz wrote: > >> If so then presumably that would be applicable to both get* and >> set*? > > I think so. > >> Could those boolean accepting methods be intrinsified or would they >> always be Java only? > > Sure

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Chris Hegarty
On 04/03/15 15:26, Roger Riggs wrote: Hi Chris, Is the choice of as the ephemeral port ok? It should be, or it could be any positive integer value. Though it is artificial is there any chance it will be confused with a real port? There should be no confusion since the test is providin

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Andrew Haley
On 03/04/2015 03:07 PM, Paul Sandoz wrote: > If so then presumably that would be applicable to both get* and > set*? I think so. > Could those boolean accepting methods be intrinsified or would they > always be Java only? Sure, but I've been wondering if it's necessary. Suppose we had some hyp

Re: RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Roger Riggs
Hi Chris, Is the choice of as the ephemeral port ok? Though it is artificial is there any chance it will be confused with a real port? Would a negative number (or zero) work just as well for this purpose? Or does it get rejected in one of the layers it has to pass through. typo: "supp

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Andrew Haley
On 03/04/2015 02:29 PM, Andrew Haley wrote: >> My inclination is to remove the get*Unaligned(..., boolean >> bigEndian) methods and thereby consistently use Bits.swap in the >> heap buffer. A similar pattern applies for float/double conversion. > > I suggest that you and John argue that between you

Re: RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Roger Riggs
Hi Chris, looks fine. Do you suppose the test library should have a function that takes a set of (Weak)Refs and does whatever it takes to clear them (or timeout). Perhaps even a public API in Runtime... Roger On 3/4/2015 9:59 AM, Chris Hegarty wrote: This is a small, test only, review reque

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Paul Sandoz
On Mar 4, 2015, at 3:29 PM, Andrew Haley wrote: > On 03/04/2015 02:15 PM, Paul Sandoz wrote: > >> The flag UseUnalignedAccesses feels a little awkward. IIUC it seems >> to be acting as two things, a flag signalling an unaligned >> architecture and a developer option to disable/enable unaligned

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Magnus Ihse Bursie
On 2015-03-04 14:48, Alan Bateman wrote: On 04/03/2015 13:17, Magnus Ihse Bursie wrote: : I intend to file individual bugs to handle these remaining warnings, so the net result will be a completely warning free build. I also intend to file individual bugs on all the libraries that has had w

RFR 8068260: java/io/Serializable/clearHandleTable/ClearHandleTable.java timed out

2015-03-04 Thread Chris Hegarty
This is a small, test only, review request to fix an intermittently failing test. It replaces a "bad" technique, heap exhaustion, with the "less bad" technique of calling System.gc, potentially multiple times, to clear weak references. With this change the test runs much quicker, and has not

RFR 8005226: TEST_BUG: java/rmi/transport/pinClientSocketFactory/PinClientSocketFactory.java fails intermittently

2015-03-04 Thread Chris Hegarty
This is a small, test only, review request to fix an intermittently failing test. There is an inherent race, and possible failure, following the getUnusedRandomPort pattern. This test can be modified to use a custom socket factory, supporting listening on an ephemeral port, without changing t

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Andrew Haley
On 03/04/2015 02:15 PM, Paul Sandoz wrote: > The flag UseUnalignedAccesses feels a little awkward. IIUC it seems > to be acting as two things, a flag signalling an unaligned > architecture and a developer option to disable/enable unaligned > intrinsics. Should this flag even be allowed to be set

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Paul Sandoz
On Mar 2, 2015, at 8:30 PM, Andrew Haley wrote: > On 02/25/2015 04:43 PM, Andrew Haley wrote: >> On 02/24/2015 11:18 PM, John Rose wrote: >>> My bottom line: I think we should use the internal HotSpot >>> API bytes.hpp by surfacing relevant parts of it up into Unsafe. > > I have done this exce

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Alan Bateman
On 04/03/2015 13:17, Magnus Ihse Bursie wrote: : I intend to file individual bugs to handle these remaining warnings, so the net result will be a completely warning free build. I also intend to file individual bugs on all the libraries that has had warnings disabled. I expect the outcome of

Re: RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Erik Joelsson
Hello, Really nice to finally see this patch getting done! Only one comment: flags.m4: In the grep expression, could you move the extra [] outside of the actual command line options to grep so that the command line could be copied to the shell for debugging in the future? Also, how hard would

RFR: JDK-8074096 Disable (most) native warnings in JDK on a per-library basis

2015-03-04 Thread Magnus Ihse Bursie
When building the native code in the jdk repo, a lot of warnings are generated. So many that it's hard to spot any new issues. While the ultimate goal must be to address and fix these warnings individually, this bug is about disabling these warnings where they occur, so that it is easier to sp

Re: RFR 8074067: Cleanup in java.base/share/native/libjava/Bits.c

2015-03-04 Thread Ivan Gerasimov
Thanks Alan, thanks Martin! Sincerely yours, Ivan On 03.03.2015 23:24, Alan Bateman wrote: On 03/03/2015 18:39, Ivan Gerasimov wrote: : http://cr.openjdk.java.net/~igerasim/8074067/2/webrev/src/java.base/share/native/libjava/Bits.c.sdiff.html I think you are good to go too. -Alan

Re: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics

2015-03-04 Thread Andrew Haley
On 03/03/15 20:48, John Rose wrote: > On Mar 2, 2015, at 11:30 AM, Andrew Haley wrote: >> >> On 02/25/2015 04:43 PM, Andrew Haley wrote: >> I have done this as much as is possible, but methods which assemble >> and split sub-words are necessarily endian-dependent. I have >> separated the native b

Re: RFR(s): 8073923: Files.lines() documentation needs clarification

2015-03-04 Thread Alan Bateman
On 03/03/2015 23:05, Stuart Marks wrote: : Updated webrev: http://cr.openjdk.java.net/~smarks/reviews/8073923/webrev.2/ This looks good. Minor re-wording suggestions, ignore if you want: "... reference to an open XXX, which is closed by ..." => "... reference to an open XXX. The XXX is