Re: Review Request JDK-8228336: Refactor native library loading implementation

2020-03-09 Thread Mandy Chung
Hi David, On 3/9/20 7:41 PM, David Holmes wrote: That's a core-libs decision but I'm not sure that's a namespace we want to increase usage of. I'm open to other suggestion.  This helper method avoids the call to doPrivileged when security manager is enabled and I think it's okay to add

Re: RFR(S): 8240734: ModuleHashes attribute not reproducible between builds

2020-03-09 Thread Bernd Eckenfels
Hello, I wonder why there are two times the same logic in internal public static methods. Maybe that could be consolidated as well? Gruss Bernd -- http://bernd.eckenfels.net Von: core-libs-dev im Auftrag von Yangfei (Felix) Gesendet: Tuesday, March 10, 2020

RFR(S): 8240734: ModuleHashes attribute not reproducible between builds

2020-03-09 Thread Yangfei (Felix)
Hi, We found module-info.class in java.base.jmod is not always consistent across different builds. The ModuleHashes attribute in this module-info.class is not reproducible between builds. Patch fixes the issue by using TreeMap instead of HashMap when computing ModuleHashes. Bug:

Re: RFR: 8240725: Some functions might not work with CJK character

2020-03-09 Thread Yasumasa Suenaga
) - create_unc_path() @ java_md.c (for Windows) - Platform::MultibyteStringToWideString() @ WindowsPlatform.cpp This change passed tests on submit repo (mach5-one-ysuenaga-JDK-8240725-20200309-0811-9304139). Thanks, Yasumasa [1] https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020

Re: Review Request JDK-8228336: Refactor native library loading implementation

2020-03-09 Thread David Holmes
Hi Mandy, On 10/03/2020 9:33 am, Mandy Chung wrote: This patch refactors the native library loading implementation out of ClassLoader and move them to jdk.internal.loader package. This introduces a new NativeLibraries abstraction which loads and registers the loaded native libraries. 

Re: RFR: 8240725: Some functions might not work with CJK character

2020-03-09 Thread Yasumasa Suenaga
: - ZFILE_Open() @ zip_util.c - JDK_Canonicalize() @ canonicalize_md.c (for Windows) - create_unc_path() @ java_md.c (for Windows) - Platform::MultibyteStringToWideString() @ WindowsPlatform.cpp This change passed tests on submit repo (mach5-one-ysuenaga-JDK-8240725-20200309-0811-9304139). Thanks

Re: Review Request JDK-8228336: Refactor native library loading implementation

2020-03-09 Thread Maurizio Cimadamore
Thanks Mandy, this refactoring would indeed enable Panama library loading to get rid of classloader-related restriction which are JNI-based and have little to do with the way Panama does things. I'm looking forward to be able to use something like this from my side of the fence :-) Cheers

Review Request JDK-8228336: Refactor native library loading implementation

2020-03-09 Thread Mandy Chung
This patch refactors the native library loading implementation out of ClassLoader and move them to jdk.internal.loader package. This introduces a new NativeLibraries abstraction which loads and registers the loaded native libraries.  Previously it was maintained in a nativeLibrary map in each

CSR review for 8238358: Implementation of JEP 371: Hidden Classes

2020-03-09 Thread Mandy Chung
Please review the CSR proposed for JEP 371 Hidden Classes [1]. CSR:   https://bugs.openjdk.java.net/browse/JDK-8238359 javadoc/specdiff: http://cr.openjdk.java.net/~mchung/valhalla/webrevs/hidden-classes/api/ http://cr.openjdk.java.net/~mchung/valhalla/webrevs/hidden-classes/specdiff/ JVMS

Re: [15] RFR: 8239836: ZoneRules.of() doesn't check transitionList/standardOffsetTL arguments validity

2020-03-09 Thread Roger Riggs
+1 On 3/9/20 12:05 PM, Joe Wang wrote: The changes look good to me. Best, Joe On 3/9/20 1:44 AM, Stephen Colebourne wrote: Fine by me, but I'm not an OpenJDK Reviewer Stephen On Mon, 9 Mar 2020 at 03:05, wrote: Thanks, Stephen. Updated the webrev for those two suggestions:

Re: JDK14 spec query : MethodHandles:dropLookupMode(int)

2020-03-09 Thread Mandy Chung
On 3/9/20 10:45 AM, Chris Hegarty wrote: Sure, I guess it somewhat depends on how you see 8240242 [1] turning out. 8240242 clearly describes a similar(ish) issue where dropping PUBLIC, when it is not currently held, has no effect, i.e. it does not result in “no access” - this is either a bug

Re: RFR 8232161: Align some one-way conversion in MS950 charset with Windows

2020-03-09 Thread naoto . sato
Looks good to me. Thanks for the update. Naoto On 3/9/20 10:37 AM, Ichiroh Takiguchi wrote: Hello Naoto. I appreciate your comments. I modified TestMS950.java testcase. I think it's easy to read. Could you review the fix again ? Bug:    https://bugs.openjdk.java.net/browse/JDK-8232161

Re: JDK14 spec query : MethodHandles:dropLookupMode(int)

2020-03-09 Thread Chris Hegarty
Mandy, > On 9 Mar 2020, at 16:37, Mandy Chung wrote: > > I have bcc'ed jdk-dev and add core-libs-dev mailing list where this thread > should be discussed. > > The spec says: > > "When dropping PACKAGE then the resulting lookup will not have PACKAGE or > PRIVATE access. When dropping

Re: RFR 8232161: Align some one-way conversion in MS950 charset with Windows

2020-03-09 Thread Ichiroh Takiguchi
Hello Naoto. I appreciate your comments. I modified TestMS950.java testcase. I think it's easy to read. Could you review the fix again ? Bug:https://bugs.openjdk.java.net/browse/JDK-8232161 Change: https://cr.openjdk.java.net/~itakiguchi/8232161/webrev.03/ Thanks, Ichiroh Takiguchi On

Re: RFR: 8240725: Some functions might not work with CJK character

2020-03-09 Thread naoto . sato
This change passed tests on submit repo (mach5-one-ysuenaga-JDK-8240725-20200309-0811-9304139). Thanks, Yasumasa [1] https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-March/038397.html

Re: JDK14 spec query : MethodHandles:dropLookupMode(int)

2020-03-09 Thread Mandy Chung
I have bcc'ed jdk-dev and add core-libs-dev mailing list where this thread should be discussed. The spec says: "When dropping|PACKAGE|then the resulting lookup will not have|PACKAGE|or|PRIVATE|access.When dropping|MODULE|then the resulting lookup will not have|MODULE|,|PACKAGE|,

Re: [15] RFR: 8239836: ZoneRules.of() doesn't check transitionList/standardOffsetTL arguments validity

2020-03-09 Thread Joe Wang
The changes look good to me. Best, Joe On 3/9/20 1:44 AM, Stephen Colebourne wrote: Fine by me, but I'm not an OpenJDK Reviewer Stephen On Mon, 9 Mar 2020 at 03:05, wrote: Thanks, Stephen. Updated the webrev for those two suggestions: http://cr.openjdk.java.net/~naoto/8239836/webrev.04/

Re: RFR: 8216407: java.util.UUID.fromString accepts input that does not match expected format

2020-03-09 Thread Roger Riggs
Hi, Updating the spec to match the implementation is a good idea. Whether adding a new method is worthwhile depends on whether *any* non-conforming UUID has been actually been seen.  Humans don't type UUID's so if there are non-conforming ones out there, they have been generated by some

RFR: 8240725: Some functions might not work with CJK character

2020-03-09 Thread Yasumasa Suenaga
::MultibyteStringToWideString() @ WindowsPlatform.cpp This change passed tests on submit repo (mach5-one-ysuenaga-JDK-8240725-20200309-0811-9304139). Thanks, Yasumasa [1] https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2020-March/038397.html

Re: [15] RFR: 8239836: ZoneRules.of() doesn't check transitionList/standardOffsetTL arguments validity

2020-03-09 Thread Stephen Colebourne
Fine by me, but I'm not an OpenJDK Reviewer Stephen On Mon, 9 Mar 2020 at 03:05, wrote: > > Thanks, Stephen. > > Updated the webrev for those two suggestions: > > http://cr.openjdk.java.net/~naoto/8239836/webrev.04/ > > Naoto > > On 3/8/20 4:22 PM, Stephen Colebourne wrote: > >