RE: [Patch][JDK10] Use Class.getPackageName() where possible

2017-11-03 Thread Christoph Dreis
Hi Mandy, > It's good to see JDK code be updated to use Class::getPackageName. One thing > to pay attention is that Class.getPackageName() returns "java.lang" for > primitive type and void. Your patch fixing ObjectStreamClass::getPackageName > and Proxy::checkNewProxyPermission look fine. > T

RE: [PROPOSAL][JDK10] Introduce Executable.getParameterType(index)

2017-11-03 Thread Christoph Dreis
Hi John, >> this has a bigger impact on the overall footprint of Method/Executable >> objects. What are your thoughts on this? > The footprint is probably about the same. Small List.of values > do not contain arrays, and may be smaller than arrays with the > same number of elements, since they

Re: RFR JDK-8185582, Update Zip implementation to use Cleaner, not finalizers

2017-11-03 Thread Peter Levart
Hi Sherman, I think this looks good now. Thanks. Regards, Peter On 11/01/2017 08:17 PM, Xueming Shen wrote: Hi Peter, I like the idea of moving get/releaseInflter() into CleanableResource, though I doubt how much it can really help the GC it should be a good thing to do to remove the strong

Re: JDK-8067661: transferTo proposal for Appendable

2017-11-03 Thread Alan Bateman
On 02/11/2017 19:55, Patrick Reinhart wrote: : If we are all happy with the API so far, I could start adding an initial implementation and test… I think the API looks fine so go ahead. -Alan

Re: [PROPOSAL][JDK10] Introduce Executable.getParameterType(index)

2017-11-03 Thread Alan Bateman
On 03/11/2017 08:11, Christoph Dreis wrote: Hi John, this has a bigger impact on the overall footprint of Method/Executable objects. What are your thoughts on this? The footprint is probably about the same. Small List.of values do not contain arrays, and may be smaller than arrays with the s

Re: [PROPOSAL][JDK10] Introduce Executable.getParameterType(index)

2017-11-03 Thread Claes Redestad
On 2017-11-03 14:17, Alan Bateman wrote: On 03/11/2017 08:11, Christoph Dreis wrote: Hi John, this has a bigger impact on the overall footprint of Method/Executable objects. What are your thoughts on this? The footprint is probably about the same.  Small List.of values do not contain arrays

Re: [PROPOSAL][JDK10] Introduce Executable.getParameterType(index)

2017-11-03 Thread Peter Levart
Hi, On 11/03/2017 02:17 PM, Alan Bateman wrote: On 03/11/2017 08:11, Christoph Dreis wrote: Hi John, this has a bigger impact on the overall footprint of Method/Executable objects. What are your thoughts on this? The footprint is probably about the same.  Small List.of values do not contain

Re: [10] RFR 8186046 Minimal ConstantDynamic support

2017-11-03 Thread Karen Kinnear
Thank you so much for doing this jointly. Couple of questions/comments: 1. thank you for making UseBootstrapCallInfo diagnostic 2. org/objectweb/asmClassReader.java why hardcoded 17 instead of ClassWriter.CONDY? 3. java/lang/invoke/package-info.java 128-134 Error handling could be clearer. My un

Re: JDK-8067661: transferTo proposal for Appendable

2017-11-03 Thread Patrick Reinhart
Hi Alan, I will have a version ready at Devoxx next week ;-) -Patrick > Am 03.11.2017 um 13:49 schrieb Alan Bateman : > > On 02/11/2017 19:55, Patrick Reinhart wrote: >> : >> If we are all happy with the API so far, I could start adding an initial >> implementation and test… >> > I think the

Re: [10] RFR 8186046 Minimal ConstantDynamic support

2017-11-03 Thread Paul Sandoz
> On 3 Nov 2017, at 11:14, Karen Kinnear wrote: > > Thank you so much for doing this jointly. > > Couple of questions/comments: > 1. thank you for making UseBootstrapCallInfo diagnostic > > 2. org/objectweb/asmClassReader.java > why hardcoded 17 instead of ClassWriter.CONDY? > I chose to mak

Re: [Patch][JDK10] Use Class.getPackageName() where possible

2017-11-03 Thread mandy chung
On 11/3/17 1:06 AM, Christoph Dreis wrote: Thanks - I updated both as you suggested to use Class::getPackageName. Please find the updated patch below. I have created https://bugs.openjdk.java.net/browse/JDK-8190733 for this patch. There is also a public static VerifyAccess::getPackageNa

Re: [Patch][JDK10] Use Class.getPackageName() where possible

2017-11-03 Thread Bernd Eckenfels
The private static helper in ObjectStreamClass became a oneliner and can be removed and the callsites can transform from getPackageName(c) to c.getPackageName(). Gruss Bernd -- http://bernd.eckenfels.net _ From: mandy chung mailto:mandy.ch...@oracle.com>> Sent: Samsta