RFR (XS) 8228352 : CANON_EQ breaks when pattern contains supplementary codepoint

2019-07-31 Thread Ivan Gerasimov
Hello! Pattern.compile fails with IOOB when normalizing a pattern that contains a surrogate pair. Would you please help review a trivial 1-line fix? BUGURL: https://bugs.openjdk.java.net/browse/JDK-8228352 WEBREV: http://cr.openjdk.java.net/~igerasim/8228352/00/webrev/ -- With kind regards,

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Dmitry Chuyko
Hi Andrew, Just a small comment about the tests. As you can see, some of tests in jdk/java/nio/channels/FileChannel check various modes, arguments, and expected exceptions. E.g. see MapTest, Mode and Args. I noticed that in your changes for the new map mode there are new exceptions thrown

[14] RFR: 8215181: Accounting currency format support

2019-07-31 Thread naoto . sato
Hi, Please review the fix to the following issue: https://bugs.openjdk.java.net/browse/JDK-8215181 The proposed changeset is located at: https://cr.openjdk.java.net/~naoto/8215181/webrev.00/ This is to enable "accounting" style currency formatting (negative values in parentheses) with CLDR.

Re: The final optimized version of Dual-Pivot Quicksort (ver.19.1)

2019-07-31 Thread Brent Christian
Thanks, Laurent. I can sponsor this fix, get a RFR thread going for JDK-8226297, keep webrevs updated as the review progresses, etc. However I've uncovered an issue with the fix that should be resolved before proceeding. Specifically, the new Arrays.COMMON_PARALLELISM static constant causes

Re: Review Request: JDK-8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works

2019-07-31 Thread Mandy Chung
Hi Peter, Daniel On 7/31/19 1:44 AM, Peter Levart wrote: On 7/31/19 9:59 AM, Peter Levart wrote: Hi, I think Daniel is talking about the "dispatch" semantics of unreflectSpecial here, right Daniel? Thanks for clarifying this. The findSpecial / unreflectSpecial is a MethodHandle

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Boris Ulasevich
Hi Andrew, I did a quick check of the change across our platforms. Arm32 and x86_64 built successfully. But I see it fails due to minor issues on aarch64 and x86_32 with webrev.09. Can you please have a look at this? > src/hotspot/cpu/aarch64/aarch64.ad:2202:1: error: expected ‘;’ before

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Andrew Dinn
On 31/07/2019 16:46, Aleksey Shipilev wrote: > On 7/31/19 4:46 PM, Andrew Dinn wrote: >> Well, the failure happened during the build process so I didn't >> (couldn't) debug it. I disabled the assert in supports_cpuflush() in >> order to allow the build to complete and then ran up the resulting JVM

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Aleksey Shipilev
On 7/31/19 4:46 PM, Andrew Dinn wrote: > Well, the failure happened during the build process so I didn't > (couldn't) debug it. I disabled the assert in supports_cpuflush() in > order to allow the build to complete and then ran up the resulting JVM > inside gdb to check what was going on. The

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Andrew Dinn
On 31/07/2019 12:40, Aleksey Shipilev wrote: > On 7/31/19 1:29 PM, Andrew Dinn wrote: >> I have an update regarding the change to the computation of the >> CPU_FLUSH flag. After posting the new webrev I built a debug version >> with the change that tests the clflush bit on x86_64. It crashed when

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Aleksey Shipilev
On 7/31/19 3:08 PM, Andrew Dinn wrote: > On 31/07/2019 13:01, Boris Ulasevich wrote: > I'm surprised by the x86_32 result as I /thought/ I had pushed the very > same change set to the submit repo and it came back with no errors: > >> Job: mach5-one-adinn-JDK-8224974-8-20190730-1325-4068436 >>

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Andrew Dinn
On 31/07/2019 13:01, Boris Ulasevich wrote: > I did a quick check of the change across our platforms. Arm32 and x86_64 > built successfully. But I see it fails due to minor issues on aarch64 > and x86_32 with webrev.09. > Can you please have a look at this? > >>

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Aleksey Shipilev
On 7/31/19 1:29 PM, Andrew Dinn wrote: > I have an update regarding the change to the computation of the > CPU_FLUSH flag. After posting the new webrev I built a debug version > with the change that tests the clflush bit on x86_64. It crashed when > the assert is reached in

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Andrew Dinn
Hi Aleksey, I have an update regarding the change to the computation of the CPU_FLUSH flag. After posting the new webrev I built a debug version with the change that tests the clflush bit on x86_64. It crashed when the assert is reached in VM_Version::supports_cpuflush: # A fatal error has been

Re: RFR: 8224974: Implement JEP 352

2019-07-31 Thread Andrew Dinn
Hi Aleksey On 30/07/2019 17:00, Aleksey Shipilev wrote: > On 7/30/19 5:04 PM, Andrew Dinn wrote: >> JEP 352 has now been targeted for inclusion in JDK14. The latest webrev >> for the implementation JIRA has been rebased to apply to the current >> tree. Is it now ok to push this change set? >> >>

Re: Review Request: JDK-8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works

2019-07-31 Thread Daniel Fuchs
Hi Peter, Mandy, On 31/07/2019 09:44, Peter Levart wrote: Expanding on this a little. The javadocs of MethodHandles.Lookup starts talking about the Lookup factory methods methods and their equivalence to bytecode instructions, but then present the equivalence between find* and Java source

Re: [8u] Request for backporting a series of issues affecting core-libs

2019-07-31 Thread Aleksey Shipilev
On 7/31/19 11:46 AM, chengjingwei wrote: > Would someone help to approve the backport of the following issues? Same here. You have to follow the process outlined here: https://wiki.openjdk.java.net/display/JDKUpdates/How+to+contribute+a+fix At very least, do not lump multiple issues together,

Re: Review Request: JDK-8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works

2019-07-31 Thread Daniel Fuchs
Hi Peter, Mandy, On 31/07/2019 08:59, Peter Levart wrote: Hi, I think Daniel is talking about the "dispatch" semantics of unreflectSpecial here, right Daniel? Yes, exactly! The findSpecial / unreflectSpecial is a MethodHandle equivalent for bytecode instruction invokespecial (sans actual

[8u] Request for backporting a series of issues affecting core-libs

2019-07-31 Thread chengjingwei
Hi, all Would someone help to approve the backport of the following issues? - Issue list: JDK-8151788 JDK-8026049 JDK-8149469 JDK-8149469 - Details: JDK-8151788 Reproduced on 8u:[Yes] Bug: https://bugs.openjdk.java.net/browse/JDK-8151788 Patch is clean:[Yes] JDK9 Changeset:

Re: Review Request: JDK-8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works

2019-07-31 Thread Peter Levart
On 7/31/19 9:59 AM, Peter Levart wrote: Hi, I think Daniel is talking about the "dispatch" semantics of unreflectSpecial here, right Daniel? The findSpecial / unreflectSpecial is a MethodHandle equivalent for bytecode instruction invokespecial (sans actual invoking). invokespecial is

Re: Review Request: JDK-8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works

2019-07-31 Thread Peter Levart
Hi, I think Daniel is talking about the "dispatch" semantics of unreflectSpecial here, right Daniel? The findSpecial / unreflectSpecial is a MethodHandle equivalent for bytecode instruction invokespecial (sans actual invoking). invokespecial is typically used for implementing the