[12]RFR of JDK-8210407:Refactor java.util.Calendar:i18n shell tests to plain java tests

2018-10-22 Thread Ying Zhou
Hello, test/java/util/Calendar/SupplementalJapaneseEraTest.sh test/java/util/Calendar/GenericTimeZoneNamesTest.sh test/java/util/Calendar/NarrowNamesTest.sh Please review this patch to refactor above shell script tests to java. Bug: https://bugs.openjdk.java.net/browse/JDK-8210407 Webrev: http

Re: [12] RFR of JDK-8210353: Move java/util/Arrays/TimSortStackSize2.java back to tier1

2018-10-22 Thread Amy Lu
Thank you for reviewing! Change now pushed. Thanks, Amy On 2018/10/23 1:24 PM, Weijun Wang wrote: +1. Thanks Max On Oct 11, 2018, at 2:27 PM, Remi Forax wrote: Looks good ! Rémi - Mail original - De: "Amy Lu" À: "core-libs-dev" Envoyé: Jeudi 11 Octobre 2018 08:13:44 Objet: Re

Re: Time-zone database issues

2018-10-22 Thread Florian Weimer
* Stephen Colebourne: > Fixing the parser to handle values like 25:00 would be relatively > easy. However, these rules are also exposed in the public API of > java.time.zone.ZoneOffsetTransitionRule [3]. Currently this class has > methods `getLocalTime()` and `isMidnightEndOfDay()`. These would ne

Re: [12] RFR of JDK-8210353: Move java/util/Arrays/TimSortStackSize2.java back to tier1

2018-10-22 Thread Weijun Wang
+1. Thanks Max > On Oct 11, 2018, at 2:27 PM, Remi Forax wrote: > > Looks good ! > > Rémi > > - Mail original - >> De: "Amy Lu" >> À: "core-libs-dev" >> Envoyé: Jeudi 11 Octobre 2018 08:13:44 >> Objet: Re: [12] RFR of JDK-8210353: Move >> java/util/Arrays/TimSortStackSize2.java bac

[PATCH] improve javadoc in TreeSet#add api documentation

2018-10-22 Thread Kishor Gollapalliwar
Hello Martin and Everyone, @Martin : Thank you for the response. I have attached the PATCH file to this email. Request you to sponsor this change. Please find file extract in case my attachment stripped out. diff -r ebe635565ff3 src/share/classes/java/util/TreeSet.java --- a/src/share/classes/

Re: [12] RFR of JDK-8209768: Refactor java/util/prefs/CheckUserPrefsStorage.sh to plain java test

2018-10-22 Thread Amy Lu
Please review. Thanks, Amy On 2018/10/11 4:47 PM, Amy Lu wrote: java/util/prefs/CheckUserPrefsStorage.sh Please review this patch to refactor above shell script test to java. bug: https://bugs.openjdk.java.net/browse/JDK-8209768 webrev: http://cr.openjdk.java.net/~amlu/8209768/webrev.00/ Tha

[12] RFR of JDK-8210908: Refactor java/util/prefs/PrefsSpi.sh to plain java test

2018-10-22 Thread Amy Lu
java/util/prefs/PrefsSpi.sh Please review this patch to refactor above shell script test to java. bug: https://bugs.openjdk.java.net/browse/JDK-8210908 webrev: http://cr.openjdk.java.net/~amlu/8210908/webrev.00/ Thanks, Amy

Time-zone database issues

2018-10-22 Thread Stephen Colebourne
The IANA time-zone database [1] provides details of how time-zones change over time. The latest release - 2018f - cannot be processed successfully by the current JDK parser [2]. A workaround exists however unlike previous cases of tzdb incompatibility, this time it makes sense for the JDK parser a

Re: Review Request: 6202130: java.util.jar.Attributes.writeMain() can't handle multi-byte chars

2018-10-22 Thread Philipp Kunz
Please find another revised and updated patch attached. On Sun, 2018-10-21 at 15:10 -0700, Martin Buchholz wrote: > I only took a quick look. > Looks good, but here's a nitpick - capitalize javadoc that begins > with "returns" > On Fri, Oct 19, 2018 at 1:27 AM, Philipp Kunz h> wrote: > > Hi Mart

Re: RFR[S]: JDK-8211876,,Broken links in java.base files (ClassLoader.html#name)

2018-10-22 Thread Mandy Chung
Looks good. Thanks for fixing it. Mandy On 10/22/18 1:28 PM, Jonathan Gibbons wrote: OK, enough with fancy; here's the email again: Please review a small fix to a couple of classes in java.base to fix a number of broken links in the API documentation. In 3 places, the anchor ClassLoader.html

Re: RFR[S]: JDK-8211876,,Broken links in java.base files (ClassLoader.html#name)

2018-10-22 Thread Jonathan Gibbons
OK, enough with fancy; here's the email again: Please review a small fix to a couple of classes in java.base to fix a number of broken links in the API documentation. In 3 places, the anchor ClassLoader.html#name is updated to ClassLoader.html#binary-name. JBS: https://bugs.openjdk.java.net/b

Re: RFR[S]: JDK-8211876,,Broken links in java.base files (ClassLoader.html#name)

2018-10-22 Thread Lance Andersen
+1 > On Oct 22, 2018, at 4:26 PM, Jonathan Gibbons > wrote: > > Please review a small fix to a couple of classes in java.base to fix a number > of broken links in the API documentation. In 3 places, the anchor > |ClassLoader.html#name| is updated to |ClassLoader.html#binary-name|. > > JBS: ht

RFR[S]: JDK-8211876,,Broken links in java.base files (ClassLoader.html#name)

2018-10-22 Thread Jonathan Gibbons
Please review a small fix to a couple of classes in java.base to fix a number of broken links in the API documentation. In 3 places, the anchor |ClassLoader.html#name| is updated to |ClassLoader.html#binary-name|. JBS: https://bugs.openjdk.java.net/browse/JDK-8211876 Webrev: http://cr.openjdk.j

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Thomas Stüfe
Hi David, On Mon, Oct 22, 2018 at 9:00 PM David Lloyd wrote: > > On Mon, Oct 22, 2018 at 1:23 PM Thomas Stüfe wrote: > > Hi all, > [...] > > So far I have not read a single technical reason in this thread why > > vfork needs to be abandoned now > > Note that my patch does not abandon vfork. It

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Thomas Stüfe
Hi Florian, our mails crossed... I think I am fine now with posix_spawn(), provided we do enough testing. But I'll answer your questions inline. On Mon, Oct 22, 2018 at 9:00 PM Florian Weimer wrote: > > * Thomas Stüfe: > > > So far I have not read a single technical reason in this thread why >

Re: 6516099: InputStream.skipFully(int k) to skip exactly k bytes

2018-10-22 Thread Brent Christian
Hi, Brian 562 public void skipNBytes(long n) throws IOException { 563 if (n > 0 && skip(n) != n) { 564 throw new EOFException("End of stream before enough bytes skipped"); 565 } 566 } If an overrided skip() method were to skip < n bytes but not yet be a

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Thomas Stüfe
I ran some tests on my local I ran a number of tests on various machines and architectures, all with glibc variants older than 2.24, and straced them, and they all used vfork() internally. That made me curious, and I dug into the glibc sources and examined the history. If I understand this correc

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread David Lloyd
On Mon, Oct 22, 2018 at 1:23 PM Thomas Stüfe wrote: > Hi all, [...] > So far I have not read a single technical reason in this thread why > vfork needs to be abandoned now Note that my patch does not abandon vfork. It does not even change the default exec strategy away from vfork, nor does it ca

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Florian Weimer
* Thomas Stüfe: > So far I have not read a single technical reason in this thread why > vfork needs to be abandoned now - apart from it being obsolete. If you > read my initial thread from September, you know that I think we have > understood vfork's shortcomings very well, and that our (SAPs) > p

Re: RFR: 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

2018-10-22 Thread Claes Redestad
On 2018-10-22 20:52, Vladimir Ivanov wrote: Looks good! Thanks, Vladimir! /Claes

Re: RFR: 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

2018-10-22 Thread Vladimir Ivanov
Looks good! Best regards, Vladimir Ivanov On 22/10/2018 02:58, Claes Redestad wrote: Hi, StringConcatFactory uses a customized internal foldArguments implementation which takes positional arguments to avoid intermediary permutation steps, see JDK-8165492[1]. My intent has been to clean this up

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Thomas Stüfe
Hi all, First off, to be clear, I am certainly shedding no tears if I do not get to contribute my vfork+exec*2 patch to upstream. It is a lot of work, and I much rather do something else. However, I have spend too much of my life with the Runtime.exec() layer to be easy about changing it. So far

Re: Review Request: JDK-8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference

2018-10-22 Thread Mandy Chung
Thanks for the review, Tobias. I will rerun the tests and add hs-tier1-3 jobs before the push. Mandy On 10/21/18 11:26 PM, Tobias Hartmann wrote: Hi Mandy, the compiler related changes look good to me. Please run hs-tier1-3 if you haven't done so yet. Best regards, Tobias On 16.10.18 18:0

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread Florian Weimer
* David Lloyd: > Sure, but I don't really see this as necessary if glibc is already > following the vfork-like path. Another thing to know is that at least > in the 2.26 sources I have checked out, the POSIX_SPAWN_USEVFORK flag > is completely ignored. See also [2]. Right, the manual pages are

Re: 6850720: Allow POSIX_SPAWN to be used for ProcessImpl on Linux

2018-10-22 Thread David Lloyd
On Sun, Oct 21, 2018 at 7:25 PM Martin Buchholz wrote: > As author of the vfork strategy ... I'm supportive of the directions in this > thread. Great. > vfork is even (!) less in favor than it used to be, so migrating off of it > seems good. Just make sure we don't bring back the OOM problem

Re: RFR: 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

2018-10-22 Thread Claes Redestad
On 2018-10-22 14:07, Jim Laskey wrote: Thank you for doing this. Thanks for looking at this, Jim! The MethodHandle changes will simplify many a use case. Thanks! I'm particularly happy with how this optimization helped simplify the SCF code - no reason to think it won't help simplify oth

Re: RFR: 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

2018-10-22 Thread Jim Laskey
Thank you for doing this. The MethodHandle changes will simplify many a use case. Cheers, — Jim > On Oct 22, 2018, at 6:58 AM, Claes Redestad wrote: > > Hi, > > StringConcatFactory uses a customized internal foldArguments > implementation which takes positional arguments to avoid intermedia

RE: RFR : 8211106: [windows] Update OS detection code to recognize Windows Server 2019

2018-10-22 Thread Baesken, Matthias
Hi Alan , in case there is a re-release of Windows server 2019 the buildNumber might (or might not) increase. But it will not decrease. So I think we are fine with the current check . > although I assume we need to be cautious about back porting Sure we can wait a couple of weeks before

RFR: 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

2018-10-22 Thread Claes Redestad
Hi, StringConcatFactory uses a customized internal foldArguments implementation which takes positional arguments to avoid intermediary permutation steps, see JDK-8165492[1]. My intent has been to clean this up for possible inclusion in the public API. In preparation of that, I realized that we c