Re: RFR [9] - 8060052: FutureTask; fix underflow when timeout = Long.MIN_VALUE

2014-10-14 Thread Martin Buchholz
On Sat, Oct 11, 2014 at 4:56 PM, Jeff Hain jeffh...@rocketmail.com wrote: Chris wrote: Webrev: http://cr.openjdk.java.net/~chegar/8060052/webrev.00/webrev/ An aside remark: Every time some nanos timeout needs to be kept track of, and that remaining time does not need to be returned,

Re: RFR: 8046817: JDK 8 schemagen tool does not generate xsd files for enum types

2014-10-14 Thread Aleksej Efimov
Hi XML experts, Can I humbly ask to review this simple fix. Thank you, Aleksej On 08.10.2014 13:09, Aleksej Efimov wrote: Hello, Please, review the fix [1] for the 8046817 [2]. Problem: schemagen tool doesn't generate schema file for the enum types [3]. SchemaGenerator class gets a list of

Re: [8u40] Request for approval and review : 8058695: [TESTBUG] Reinvokers with arity 253 can't be cached

2014-10-14 Thread Konstantin Shefov
Gently reminder Please, review this test bug fix backport -Konstantin On 13.10.2014 18:24, Konstantin Shefov wrote: On 10.10.2014 13:06, Konstantin Shefov wrote: Hello, Please review and approve the backport of the test bug fix to 8u40 The bug:

Re: [8u40] Request for approval and review: JDK-8058733: [TESTBUG] java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java and LFMultiThreadCachingTest.java failed on some platforms due to java.lang

2014-10-14 Thread Paul Sandoz
On Oct 14, 2014, at 10:26 AM, Konstantin Shefov konstantin.she...@oracle.com wrote: Gently reminder Please, review +1 Paul. -Konstantin On 13.10.2014 19:04, Vladimir Ivanov wrote: Looks good (not a Reviewer). Best regards, Vladimir Ivanov On 10/13/14, 6:22 PM, Konstantin

Re: RFR: 8059767: FileHandler should allow 'long' limits and handle overflow of MeteredStream.written.

2014-10-14 Thread Daniel Fuchs
Hi, Following a feedback from Alan - I dropped 'SecurityException' from the throws clause of the new constructor - keeping only the @throws in the API documentation. Here is the new webrev (the above is the only change compared to the previous webrev.01).

[9] Review request : JDK-8059070: [TESTBUG] java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java failed - timeout

2014-10-14 Thread Konstantin Shefov
Hello, Please review the test bug fix https://bugs.openjdk.java.net/browse/JDK-8059070 Webrev is http://cr.openjdk.java.net/~kshefov/8059070/webrev.00/ Thanks -Konstantin

Re: RFR JDK-8044627: Update JNDI to work with modules

2014-10-14 Thread Pavel Rappo
OK, so what I will do for now is I exclude these 4 files and push without them. I'll create a new issue to add them later. -Pavel On 14 Oct 2014, at 14:44, Alan Bateman alan.bate...@oracle.com wrote: On 14/10/2014 14:34, Daniel Fuchs wrote: Hi Pavel, I saw your mail on build-dev. I guess

Re: RFR JDK-8044627: Update JNDI to work with modules

2014-10-14 Thread Chris Hegarty
On 14 Oct 2014, at 15:03, Pavel Rappo pavel.ra...@oracle.com wrote: OK, so what I will do for now is I exclude these 4 files and push without them. I'll create a new issue to add them later. That sounds like a fine plan. This issue has already gone on for long enough, and I don’t think that

Re: RFR JDK-8044627: Update JNDI to work with modules

2014-10-14 Thread Daniel Fuchs
On 14/10/14 16:09, Chris Hegarty wrote: On 14 Oct 2014, at 15:03, Pavel Rappo pavel.ra...@oracle.com wrote: OK, so what I will do for now is I exclude these 4 files and push without them. I'll create a new issue to add them later. That sounds like a fine plan. This issue has already gone on

RFR 8060432: tools/pack200/TestNormal.java fails on Windows with java.io.FileNotFoundException after JDK-8058854

2014-10-14 Thread Amy Lu
Please review the test fix. bug: https://bugs.openjdk.java.net/browse/JDK-8060432 webrev: http://cr.openjdk.java.net/~weijun/8060432/webrev.00/ This test is to test compareJars(new JarFile(normalized.jar), new JarFile(repacked.jar)); where the jar files (normalized.jar repacked.jar and

Re: RFR JDK-8044627: Update JNDI to work with modules

2014-10-14 Thread Chris Hegarty
On 14 Oct 2014, at 15:15, Daniel Fuchs daniel.fu...@oracle.com wrote: On 14/10/14 16:09, Chris Hegarty wrote: On 14 Oct 2014, at 15:03, Pavel Rappo pavel.ra...@oracle.com wrote: OK, so what I will do for now is I exclude these 4 files and push without them. I'll create a new issue to add

Re: RFR JDK-8044627: Update JNDI to work with modules

2014-10-14 Thread Pavel Rappo
Thanks a lot! -Pavel On 14 Oct 2014, at 15:33, Chris Hegarty chris.hega...@oracle.com wrote: META-INF files in the webrev, two of which are in the wrong location. They are directly under 'META-INF’, where they should all be under ‘META-INF/services’. This is just a note for Pavel, when he

RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Aleksey Shipilev
Hi, Please review a trivial change in String.contentEquals: https://bugs.openjdk.java.net/browse/JDK-8060485 http://cr.openjdk.java.net/~shade/8060485/webrev.00/ It improves the performance drastically: http://cr.openjdk.java.net/~shade/8060485/perf.txt ...not to mention it improves the

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Martin Buchholz
Looks good to me! On Tue, Oct 14, 2014 at 9:05 AM, Aleksey Shipilev aleksey.shipi...@oracle.com wrote: Hi, Please review a trivial change in String.contentEquals: https://bugs.openjdk.java.net/browse/JDK-8060485 http://cr.openjdk.java.net/~shade/8060485/webrev.00/ It improves the

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Chris Hegarty
On 14 Oct 2014, at 17:33, Martin Buchholz marti...@google.com wrote: Looks good to me! +1 'noreg-hard' -Chris. On Tue, Oct 14, 2014 at 9:05 AM, Aleksey Shipilev aleksey.shipi...@oracle.com wrote: Hi, Please review a trivial change in String.contentEquals:

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Stanimir Simeonoff
Hi, This is an unrelated issue, yet is there any reason for the inner loop of equals to be written in such a (confusing) way? if (n == anotherString.value.length) { char v1[] = value; char v2[] = anotherString.value; int i = 0;

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Aleksey Shipilev
Thanks guys! And of course, I managed to do two minor mistakes in a two-line change: the indentation is a bit wrong, and cast to String is redundant. Here is the updated webrev and the changeset (need a Sponsor!): http://cr.openjdk.java.net/~shade/8060485/webrev.01/

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Aleksey Shipilev
On 14.10.2014 19:32, Stanimir Simeonoff wrote: Hi, This is an unrelated issue, yet is there any reason for the inner loop of equals to be written in such a (confusing) way? if (n == anotherString.value.length) { char v1[] = value; char v2[] =

Re: [9] [8u40] RFR (M): 8059877: GWT branch frequencies pollution due to LF sharing

2014-10-14 Thread Vladimir Ivanov
Paul, Thanks for the feedback! Updated version: http://cr.openjdk.java.net/~vlivanov/8059877/webrev.01/ http://cr.openjdk.java.net/~vlivanov/8059877/webrev.00/ https://bugs.openjdk.java.net/browse/JDK-8059877 Generally looks ok. - MethodHandleImpl 786 if

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Alan Bateman
On 14/10/2014 18:38, Aleksey Shipilev wrote: Thanks guys! And of course, I managed to do two minor mistakes in a two-line change: the indentation is a bit wrong, and cast to String is redundant. Here is the updated webrev and the changeset (need a Sponsor!):

Re: RFR (XS) 8060485: (str) contentEquals checks the String contents twice on mismatch

2014-10-14 Thread Stanimir Simeonoff
a On Tue, Oct 14, 2014 at 10:55 PM, Alan Bateman alan.bate...@oracle.com wrote: On 14/10/2014 18:38, Aleksey Shipilev wrote: Thanks guys! And of course, I managed to do two minor mistakes in a two-line change: the indentation is a bit wrong, and cast to String is redundant. Here is the

Re: RFR 8060432: tools/pack200/TestNormal.java fails on Windows with java.io.FileNotFoundException after JDK-8058854

2014-10-14 Thread Kumar Srinivasan
Amy, The modifications you have made will not test pack200 compression and normalization correctly, as the test needs .class files. Do you know why the test fails on windows ? Kumar On 10/14/2014 7:19 AM, Amy Lu wrote: Please review the test fix. bug:

Re: Review request for JDK-8051561: Convert JAXP function tests: javax.xml.xpath.* to jtreg (testNG) tests

2014-10-14 Thread Tristan Yan
Hi Joe If you’re okay with the code; would you be my sponsor for this. We need move forward and push these tests into openjdk repo. Thank you so much Tristan On Aug 29, 2014, at 11:21 AM, huizhe wang huizhe.w...@oracle.com wrote: Hi Tristan, Looks good. I left notes in the bug's comment

Re: RFR: 8060130: Simplify the synchronization of defining and getting java.lang.Package

2014-10-14 Thread Mandy Chung
On 10/13/2014 5:50 AM, David M. Lloyd wrote: On 10/10/2014 07:31 PM, Mandy Chung wrote: On 10/10/2014 8:10 AM, Claes Redestad wrote: Hi all, please review this patch which attempts to clean up synchronization and improve scalability when defining and getting java.lang.Package objects. I

Re: RFR: 8060130: Simplify the synchronization of defining and getting java.lang.Package

2014-10-14 Thread Mandy Chung
Claes, Peter, Thanks for the revised webrev and Peter's thorough review. webrev.05 looks much better. My comment is mostly minor. On 10/13/2014 8:41 AM, Claes Redestad wrote: http://cr.openjdk.java.net/~redestad/8060130/webrev.05 ClassLoader.java line 1582-1586 - I suggest to get rid of

Re: RFR: 8060130: Simplify the synchronization of defining and getting java.lang.Package

2014-10-14 Thread Mandy Chung
On 10/13/2014 2:04 AM, Peter Levart wrote: On 10/13/2014 04:18 AM, David Holmes wrote: Looking at definePackage it seems both old and new code have serious race conditions due to a lack of atomicity when checking the parent/system packages. A package of the same name could be defined in

Re: RFR 8060432: tools/pack200/TestNormal.java fails on Windows with java.io.FileNotFoundException after JDK-8058854

2014-10-14 Thread Amy Lu
On 10/15/14, 4:44 AM, Kumar Srinivasan wrote: Amy, The modifications you have made will not test pack200 compression and normalization correctly, as the test needs .class files. Sorry, I missed that. Please review the updated version, test works on .class files (Utils.TEST_CLS_DIR)