Re: RFR: 8023339: (xs) Refine UOE conditions for removeIf()

2013-09-16 Thread Paul Sandoz
Hi Mike, I suppose there could also be implementations of removeIf that always throw UOE regardless of whether an element matched or not i.e. those that override just to throw UOE. So perhaps: * @throws UnsupportedOperationException if elements cannot be removed * from this

Re: review request 7097386: Correct error in Predicate javadoc example

2013-09-16 Thread Aleksey Shipilev
On 09/15/2013 10:38 PM, Lance Andersen - Oracle wrote: I added a webrev http://cr.openjdk.java.net/~lancea/7097386/webrev.00/ as it might be a bit easier for this review. Notes: - change C-style int v[] declarations to Java-ish int[] v. - catching SQLException should probably return false

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Aleksey Shipilev
On 09/15/2013 08:32 PM, Paul Sandoz wrote: http://cr.openjdk.java.net/~psandoz/tl/JDK-8024253-tlr-seed/webrev/ +1. -Aleksey.

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Alan Bateman
On 15/09/2013 17:32, Paul Sandoz wrote: Hi, http://cr.openjdk.java.net/~psandoz/tl/JDK-8024253-tlr-seed/webrev/ Now that the hash seed functionality, which utilized ThreadLocalRandom, has been removed from Hashtable and WeakHashMap we can update TLR to use the same seed initialization

Re: review request 7097386: Correct error in Predicate javadoc example

2013-09-16 Thread Lance Andersen - Oracle
Thanks for the input. On Sep 16, 2013, at 4:58 AM, Aleksey Shipilev wrote: On 09/15/2013 10:38 PM, Lance Andersen - Oracle wrote: I added a webrev http://cr.openjdk.java.net/~lancea/7097386/webrev.00/ as it might be a bit easier for this review. Notes: - change C-style int v[]

Re: review request 7097386: Correct error in Predicate javadoc example

2013-09-16 Thread Aleksey Shipilev
On 09/16/2013 03:12 PM, Lance Andersen - Oracle wrote: Changes are at http://cr.openjdk.java.net/~lancea/7097386/webrev.01/ Thumbs up. -Aleksey.

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Doug Lea
On 09/16/2013 05:35 AM, Alan Bateman wrote: On 15/09/2013 17:32, Paul Sandoz wrote: Hi, http://cr.openjdk.java.net/~psandoz/tl/JDK-8024253-tlr-seed/webrev/ Now that the hash seed functionality, which utilized ThreadLocalRandom, has been removed from Hashtable and WeakHashMap we can update TLR

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Peter Levart
On 09/16/2013 01:32 PM, Doug Lea wrote: On 09/16/2013 05:35 AM, Alan Bateman wrote: On 15/09/2013 17:32, Paul Sandoz wrote: Hi, http://cr.openjdk.java.net/~psandoz/tl/JDK-8024253-tlr-seed/webrev/ Now that the hash seed functionality, which utilized ThreadLocalRandom, has been removed from

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Peter Levart
On 09/16/2013 02:46 PM, Peter Levart wrote: The InetAddress.getLocalHost() might throw SecurityException in some configurations (SecurityManager.checkConnect(localHostName, -1)). So perhaps, the call should be wrapped by AccessController.doPrivileged(...). Correction: SecurityException is not

hg: jdk8/tl/langtools: 8021112: Spurious unchecked warning reported by javac; ...

2013-09-16 Thread vicente . romero
Changeset: 4ce8148ffc4f Author:jlahoda Date: 2013-09-16 14:13 +0200 URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/4ce8148ffc4f 8021112: Spurious unchecked warning reported by javac 6480588: No way to suppress deprecation warnings when implementing deprecated interface

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Doug Lea
On 09/16/2013 08:46 AM, Peter Levart wrote: What worries me is that InetAddress.getLocalHost() involves name service look-up. It depends on configuration, but on my computer, it takes about 5s to evaluate the hostname - IP mapping the first time the program is run. NetworkInterface also has

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Paul Sandoz
Hi Peter, Nice observation about name resolving. On my MacBook, if i switch off the wifi, then 7 addresses are returned 4 for the en0 and 3 for lo0. Seems overkill to use all of them and the sub-interefaces, if any. I agree with Doug, selecting the first interface's MAC address is probably

hg: jdk8/tl/nashorn: 2 new changesets

2013-09-16 Thread sundararajan . athijegannathan
Changeset: 38378024a332 Author:sundar Date: 2013-09-16 15:08 +0530 URL: http://hg.openjdk.java.net/jdk8/tl/nashorn/rev/38378024a332 8024847: Java.to should accept mirror and external JSObjects as array-like objects as well Reviewed-by: hannesw, attila, lagergren !

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Paul Sandoz
Hi Doug, Perhaps it would be conservative to find the first non-loopback interface, if any, just in case the first one in the enumeration is a loopback (which will return a null byte array)? e.g.: while (ifcs.hasMoreElements()) { byte[] bs =

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Alan Bateman
On 16/09/2013 15:00, Paul Sandoz wrote: Hi Peter, Nice observation about name resolving. On my MacBook, if i switch off the wifi, then 7 addresses are returned 4 for the en0 and 3 for lo0. Seems overkill to use all of them and the sub-interefaces, if any. I agree with Doug, selecting the

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Peter Levart
On 09/16/2013 03:54 PM, Doug Lea wrote: On 09/16/2013 08:46 AM, Peter Levart wrote: What worries me is that InetAddress.getLocalHost() involves name service look-up. It depends on configuration, but on my computer, it takes about 5s to evaluate the hostname - IP mapping the first time the

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Peter Levart
On 09/16/2013 04:25 PM, Alan Bateman wrote: On 16/09/2013 15:00, Paul Sandoz wrote: Hi Peter, Nice observation about name resolving. On my MacBook, if i switch off the wifi, then 7 addresses are returned 4 for the en0 and 3 for lo0. Seems overkill to use all of them and the sub-interefaces,

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Guy Steele
On Sep 16, 2013, at 10:50 AM, Doug Lea d...@cs.oswego.edu wrote: try { EnumerationNetworkInterface ifcs = NetworkInterface.getNetworkInterfaces(); boolean retry = false; // retry once if getHardwareAddress is null while

RFR(M): 8024265: Enable new build on AIX (jdk part)

2013-09-16 Thread Volker Simonis
Hi, could you please review the following webrev which contains the changes needed in the 'jdk' repository in order to build the OpenJDK on AIX: http://cr.openjdk.java.net/~simonis/webrevs/8024265_jdk/ With this change and 8024854: Basic changes and files to build the class library on AIX

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Peter Levart
Hi Doug, This seems reasonable for majority of environments. Regards, Peter On 09/16/2013 04:50 PM, Doug Lea wrote: On 09/16/2013 10:39 AM, Peter Levart wrote: So perhaps the right strategy would be to get the hardware address of the 1st interface that has it, but don't bother to search

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Chris Hegarty
On some platforms, Windows, tunneling interfaces report a very bad mac address, e.g. 00-00-00-00-00-00-00-E0. I wonder if it is worth skipping all isVirtual() nifs? -Chris. On 16/09/2013 16:06, Peter Levart wrote: Hi Doug, This seems reasonable for majority of environments. Regards, Peter

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Aleksey Shipilev
On 09/16/2013 09:02 PM, Doug Lea wrote: (This might stand as a record for the most expert attention spent on the least important issue ever in JDK :-)! +1. -Aleksey.

hg: jdk8/tl/jdk: 8024874: Copy-paste typo in the spec for j.u.Comparator.thenComparing(Function, Comparator)

2013-09-16 Thread henry . jen
Changeset: 86aa8e7503e9 Author:henryjen Date: 2013-09-16 10:28 -0700 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/86aa8e7503e9 8024874: Copy-paste typo in the spec for j.u.Comparator.thenComparing(Function, Comparator) Reviewed-by: mduigou !

Re: RFR: Direct LambdaMetaFactory invocation from CallSite significantly improves lambda linkage performance

2013-09-16 Thread John Rose
Thanks for those interesting measurements, Sergey. As you point out, the 8024761 changes are be more broadly beneficial to most 292 users, such as Nashorn and JRuby. So I'm glad to hear they hit near the mark of the specialized tweak. We can keep your tweak in our back pocket in case we need

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Doug Lea
On 09/16/2013 11:39 AM, Chris Hegarty wrote: On some platforms, Windows, tunneling interfaces report a very bad mac address, e.g. 00-00-00-00-00-00-00-E0. I wonder if it is worth skipping all isVirtual() nifs? Good idea. This makes it impossible to also take advantage of Guy's

RFR(L): 8024854: Basic changes and files to build the class library on AIX

2013-09-16 Thread Volker Simonis
Hi, could you please review the following webrev which contains the basic changes and files needed in the 'jdk' repository in order to build the OpenJDK on AIX: http://cr.openjdk.java.net/~simonis/webrevs/8024854 This change together with 8024265: Enable new build on AIX (jdk

Re: RFR(L): 8024854: Basic changes and files to build the class library on AIX

2013-09-16 Thread Alan Bateman
On 16/09/2013 18:37, Volker Simonis wrote: Hi, could you please review the following webrev which contains the basic changes and files needed in the 'jdk' repository in order to build the OpenJDK on AIX: http://cr.openjdk.java.net/~simonis/webrevs/8024854 Hi Volker, You'll probably need

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Guy Steele
On Sep 16, 2013, at 1:02 PM, Doug Lea d...@cs.oswego.edu wrote: On 09/16/2013 11:39 AM, Chris Hegarty wrote: On some platforms, Windows, tunneling interfaces report a very bad mac address, e.g. 00-00-00-00-00-00-00-E0. I wonder if it is worth skipping all isVirtual() nifs? Good idea.

Re: RFR 8024405: Spliterators.spliterator should support CONCURRENT characteristic

2013-09-16 Thread Martin Buchholz
delete the typo + * @param characteristics Characteristics of the this spliterator's source A top-level Spliterator should not report CONCURRENT and SIZED = A top-level Spliterator should not report both CONCURRENT and SIZED I think the docs for SIZED can make it clearer that it is an

Re: RFR [8023130] (process) ProcessBuilder#inheritIO does not work on Windows

2013-09-16 Thread Martin Buchholz
I'm only doing superficial review, but Looks Good To Me!

Re: RFR 8024405: Spliterators.spliterator should support CONCURRENT characteristic

2013-09-16 Thread Paul Sandoz
On Sep 16, 2013, at 8:27 PM, Martin Buchholz marti...@google.com wrote: delete the typo + * @param characteristics Characteristics of the this spliterator's source A top-level Spliterator should not report CONCURRENT and SIZED = A top-level Spliterator should not report both

Re: RFR: 8023339: (xs) Refine UOE conditions for removeIf()

2013-09-16 Thread Mike Duigou
I think this is a reasonable compromise (and will be what I use for the other cases). Thanks! Mike On Sep 16 2013, at 01:13 , Paul Sandoz wrote: Hi Mike, I suppose there could also be implementations of removeIf that always throw UOE regardless of whether an element matched or not i.e.

Re: JDK-8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions

2013-09-16 Thread Eric McCorkle
I pulled the class files into byte array constants, as a temporary measure until a viable method for testing bad class files is developed. The webrev has been refreshed. The class files will be taken out before I push. http://cr.openjdk.java.net/~emc/8020981/ On 09/13/13 20:48, Joe Darcy

RFR(L): 8024854: Basic changes and files to build the class library on AIX

2013-09-16 Thread Volker Simonis
Resending this to more lists as requested by Alan Bateman with the kind request to anybody to review the parts for which he feels responsible:) For those not up to date, this change is part of the ongoing PowerPC/AIX Porting Project: http://openjdk.java.net/projects/ppc-aix-port

Re: RFR 8024405: Spliterators.spliterator should support CONCURRENT characteristic

2013-09-16 Thread Martin Buchholz
On Mon, Sep 16, 2013 at 12:13 PM, Paul Sandoz paul.san...@oracle.comwrote: I think the docs for SIZED can make it clearer that it is an error for the size to change while the spliterator is in progress. One can imagine CONCURRENT data structures whose SIZE does not change. An iterator

Re: RFR(M): 8024265: Enable new build on AIX (jdk part)

2013-09-16 Thread Vladimir Kozlov
Volker, You need different bug ID for these JDK changes. 8024265 (top level changes) is already fixed: https://bugs.openjdk.java.net/browse/JDK-8024265 I created new one for you: https://bugs.openjdk.java.net/browse/JDK-8024900 Thanks, Vladimir On 9/16/13 8:20 AM, Volker Simonis wrote:

Re: RFR: 7057785 : (xs) Add note to hashCode() that support for self referential is optional

2013-09-16 Thread Joseph Darcy
Looks fine; cheers, -Joe On 9/16/2013 3:49 PM, Mike Duigou wrote: Ping! (still need a reviewer on this) Mike On Sep 4 2013, at 11:44 , Mike Duigou wrote: Hello all; I have updated the proposed changeset for this issue. I have moved the note to the interface documentation for Collection

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Doug Lea
On 09/16/2013 02:11 PM, Guy Steele wrote: Okay, as long as we're obsessing: the code defends against the hardware address being longer than 8 bytes. This was to protect ourselves from the impact of this code being used in some alternative universe in which hardware addresses are not always

Re: JDK 7u-dev review request 8024356: Double.parseDouble() is slow for long Strings

2013-09-16 Thread Brian Burkhalter
On Sep 13, 2013, at 7:02 PM, Dmitry Nadezhin wrote: I agree with 1100 for this review (JDK7). OK. I will post an approval request to 7u-dev for the patch as-is. I think that we shouldn't change from 1100 to 768 in JDK8 because this is a small performance enhancement. This will save time

Re: RFR: 7057785 : (xs) Add note to hashCode() that support for self referential is optional

2013-09-16 Thread Mike Duigou
Ping! (still need a reviewer on this) Mike On Sep 4 2013, at 11:44 , Mike Duigou wrote: Hello all; I have updated the proposed changeset for this issue. I have moved the note to the interface documentation for Collection and Map and made it more general: Some collection operations

RFR: 8024826: (s) : Remove alt-rt.jar, used by +AggressiveOps

2013-09-16 Thread Mike Duigou
Hello all; This is a cross-repo patch which disables building and enabling of the alt-rt.jar file. The alt-rt.jar file has been used with the -XX:+AggressiveOpts option (which will be remaining for other optimizations). This jar file formerly contained (closed-source) versions of several JDK

Re: RFR: 8024826: (s) : Remove alt-rt.jar, used by +AggressiveOps

2013-09-16 Thread Vladimir Kozlov
Looks good. Both. I assume you will send webrev for closed changes. Thanks, Vladimir PS: RIP jbb2005 ;) On 9/16/13 5:16 PM, Mike Duigou wrote: Hello all; This is a cross-repo patch which disables building and enabling of the alt-rt.jar file. The alt-rt.jar file has been used with the

Re: RFR: Caching MethodType's descriptor string improves lambda linkage performance

2013-09-16 Thread John Rose
The algorithmic change (string cache) is acceptable, although it will tend to increase footprint somewhat. We can tweak that later if necessary. There are probably only a small number of such strings, so maybe a small leaky map would do the trick as well. What you propose is fine. But,

Re: RFR: 8024826: (s) : Remove alt-rt.jar, used by +AggressiveOps

2013-09-16 Thread David Holmes
Reviewed both hotspot and jdk changes. Thumbs up and good riddance! :) How do you propose to handle the coordination of the push? Thanks, David On 17/09/2013 10:16 AM, Mike Duigou wrote: Hello all; This is a cross-repo patch which disables building and enabling of the alt-rt.jar file. The

Re: RFR: 8024826: (s) : Remove alt-rt.jar, used by +AggressiveOps

2013-09-16 Thread Mike Duigou
On Sep 16 2013, at 19:37 , David Holmes wrote: Reviewed both hotspot and jdk changes. Thumbs up and good riddance! :) How do you propose to handle the coordination of the push? The hotspot and jdk changes can go in any order. I plan to push them sequential after cross platform test

Re: RFR 8024253: ThreadLocal random can use SecureRandom for the initial seed

2013-09-16 Thread Paul Sandoz
On Sep 17, 2013, at 1:22 AM, Doug Lea d...@cs.oswego.edu wrote: On 09/16/2013 02:11 PM, Guy Steele wrote: Okay, as long as we're obsessing: the code defends against the hardware address being longer than 8 bytes. This was to protect ourselves from the impact of this code being used in some

Re: RFR: 8023339: (xs) Refine UOE conditions for removeIf()

2013-09-16 Thread Paul Sandoz
On Sep 16, 2013, at 9:49 PM, Mike Duigou mike.dui...@oracle.com wrote: I think this is a reasonable compromise (and will be what I use for the other cases). OK, +1 from me. Paul. Thanks! Mike On Sep 16 2013, at 01:13 , Paul Sandoz wrote: Hi Mike, I suppose there could also