Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control

2018-05-17 Thread Remi Forax
Hi all, - Mail original - > De: "Alan Bateman" > À: "David Holmes" , "core-libs-dev" > > Envoyé: Mardi 15 Mai 2018 15:53:44 > Objet: Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: > Nest-Based Access Control > On 15/05/2018 01:52, David Holmes wrote: >> This review is be

Re: Bug Request: Please remove out-of-date files from bug

2018-05-17 Thread Adam Farley8
Hi David, Good catch. Copying to the Hotspot list. Best Regards Adam Farley OpenJDK Team Runtimes IBM From: David Holmes To: Adam Farley8 , core-libs-dev Date: 16/05/2018 22:32 Subject:Re: Bug Request: Please remove out-of-date files from bug Done. Though you sent

Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control

2018-05-17 Thread David Holmes
Hi Remi, On 17/05/2018 6:16 PM, Remi Forax wrote: Hi all, - Mail original - De: "Alan Bateman" À: "David Holmes" , "core-libs-dev" Envoyé: Mardi 15 Mai 2018 15:53:44 Objet: Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control On 15/05/2018 01:52

Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control

2018-05-17 Thread David Holmes
Paul, Alan, Just a quick thank you for taking a look at this so soon. I will respond to both of you as soon as practical. Thanks, David On 17/05/2018 4:00 AM, Paul Sandoz wrote: HI, Nice thorough work on this, surprisingly tricky in some areas esp. MHs. Class — 3857 * If there is any

Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control

2018-05-17 Thread forax
- Mail original - > De: "David Holmes" > À: "Remi Forax" , "Alan Bateman" > Cc: "core-libs-dev" > Envoyé: Jeudi 17 Mai 2018 10:37:46 > Objet: Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: > Nest-Based Access Control > Hi Remi, Hi David > > On 17/05/2018 6:16 PM, Rem

Re: [core-libs] RFR (L): 8010319: Implementation of JEP 181: Nest-Based Access Control

2018-05-17 Thread David Holmes
Clarification ... On 17/05/2018 6:37 PM, David Holmes wrote: Hi Remi, On 17/05/2018 6:16 PM, Remi Forax wrote: Hi all, - Mail original - De: "Alan Bateman" À: "David Holmes" , "core-libs-dev" Envoyé: Mardi 15 Mai 2018 15:53:44 Objet: Re: [core-libs] RFR (L): 8010319: Implementati

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread Claes Redestad
Shouldn't this be called "Faster rounding up to nearest power of two"? Patch looks OK to me, but I'd like to see numbers with the numberOfLeadingZeros intrinsic disabled so that we ensure we're not incurring an unreasonable penalty on platforms who don't have an intrinsic for this. Running yo

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread David Holmes
On 17/05/2018 9:07 PM, Claes Redestad wrote: Shouldn't this be called "Faster rounding up to nearest power of two"? Patch looks OK to me, but I'd like to see numbers with the numberOfLeadingZeros intrinsic disabled so that we ensure we're not incurring an unreasonable penalty on platforms who

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread Claes Redestad
On 2018-05-17 13:15, David Holmes wrote: diff -r de35abdfe5da src/java.base/share/classes/java/lang/Integer.java --- a/src/java.base/share/classes/java/lang/Integer.java Mon May 14 16:21:08 2018 +0200 +++ b/src/java.base/share/classes/java/lang/Integer.java Thu May 17 12:44:53 2018 +0200 @@

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread David Holmes
On 17/05/2018 9:24 PM, Claes Redestad wrote: On 2018-05-17 13:15, David Holmes wrote: diff -r de35abdfe5da src/java.base/share/classes/java/lang/Integer.java --- a/src/java.base/share/classes/java/lang/Integer.java Mon May 14 16:21:08 2018 +0200 +++ b/src/java.base/share/classes/java/lang/Integ

Re: RFR: Rename EFS in java.util.zip internals to something meaningful

2018-05-17 Thread Martin Buchholz
Yup, I missed FLAG_EFS. diff --git a/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipConstants.java b/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipConstants.java --- a/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipConstants.java +++ b/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipConstants.java @@ -47,

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread Paul Sandoz
> On May 17, 2018, at 4:07 AM, Claes Redestad wrote: > > Shouldn't this be called "Faster rounding up to nearest power of two"? > > Patch looks OK to me, but I'd like to see numbers with the > numberOfLeadingZeros intrinsic > disabled so that we ensure we're not incurring an unreasonable pena

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread Doug Lea
On 05/17/2018 07:07 AM, Claes Redestad wrote: > Shouldn't this be called "Faster rounding up to nearest power of two"? > > Patch looks OK to me, but I'd like to see numbers with the > numberOfLeadingZeros intrinsic > disabled so that we ensure we're not incurring an unreasonable penalty > on platf

Re: RFR: JDK-8202788: Explicitly reclaim cached thread-local direct buffers at thread exit

2018-05-17 Thread Tony Printezis
Hi all, I have a new version of the code for your consideration: http://cr.openjdk.java.net/~tonyp/8202788/webrev.1/ I basically combined our two approaches. The usage is as Alan had proposed it: Users have to use JdkThreadLocal (which is only available within java.base) and override threadTermi

Re: RFR: Small cleanups in java.lang.ref

2018-05-17 Thread mark . reinhold
2018/5/16 18:31:15 -0700, marti...@google.com: > I've been confused by NULL vs null for years. That’s because `NULL` in ReferenceQueue.java refers to the singleton object `ReferenceQueue.NULL`, not the null value. See the long comment at the top of Reference.java for an explanation. To improve t

[11] RFR: 8202088: Japanese new era implementation

2018-05-17 Thread Naoto Sato
Hi, Please review the changes to the subject issue: https://bugs.openjdk.java.net/browse/JDK-8202088 The proposed change is located at: http://cr.openjdk.java.net/~naoto/8202088/webrev.01/ This is the implementation part of the upcoming Japanese new era, starting from May 1st, 2019. Current

Re: RFR: JDK-8202788: Explicitly reclaim cached thread-local direct buffers at thread exit

2018-05-17 Thread Peter Levart
Hi Tony, If we anticipate only small number of JdkThreadLocal(s) (there will be only one for the start) then this is a plausible solution. Then perhaps this limitation should be written somewhere in the JdkThreadLocal javadoc so that one day somebody will not be tempted to use JdkThreadLocal(

Re: RFR 8203279 : Faster calculation of power of two

2018-05-17 Thread Ivan Gerasimov
Thank you Claes for your review and the detailed analysis! On 5/17/18 4:07 AM, Claes Redestad wrote: Shouldn't this be called "Faster rounding up to nearest power of two"? Yes, it's more accurate. Patch looks OK to me, but I'd like to see numbers with the numberOfLeadingZeros intrinsic disa

Re: RFR: JDK-8200436 - String::isBlank

2018-05-17 Thread Jim Laskey
“isBlank" was primarily chosen because isBlank has been the name used in Apache StringUtils for the last fifteen years. The fact that Excel and Kotlin use isBlank as well might have influenced the choice. Not many other languages have the isBlank concept, usually requiring several method calls t

Re: [11] RFR: 8202088: Japanese new era implementation

2018-05-17 Thread Stephen Colebourne
The java.time change seems OK to me Stephen On 17 May 2018 at 21:31, Naoto Sato wrote: > Hi, > > Please review the changes to the subject issue: > > https://bugs.openjdk.java.net/browse/JDK-8202088 > > The proposed change is located at: > > http://cr.openjdk.java.net/~naoto/8202088/webrev.01/ > >

Re: RFR: jsr166 jdk integration 2018-05

2018-05-17 Thread Stuart Marks
I owe all of you replies on this, but I don't have time to continue the discussion, and I suspect you all want to get on with things. Let me have a quick chat with Paul tomorrow and then I'll propose a path forward. s'marks