Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-31 Thread Sundararajan Athijegannathan
gt;>>>> Dan >>>>> >>>>> >>>>> On 7/29/16 7:19 AM, Sundararajan Athijegannathan wrote: >>>>>> Well, we can't code for that kind of overrides - Findbugs or any >>>>>> such tool is about normal mode of execution. With that argum

RE: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-31 Thread Jini Susan George
nathan; Jini Susan George; > serviceability-dev@openjdk.java.net > Subject: Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger > may expose internal representation > > On 30/07/2016 2:26 AM, Daniel D. Daugherty wrote: > > I didn't miss this part: > > >

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-31 Thread David Holmes
e even if –XaddExports is used ? Regards, Jini. *From:*Sundararajan Athijegannathan *Sent:* Friday, July 29, 2016 5:11 PM *To:* serviceability-dev@openjdk.java.net *Subject:* Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation If cloning is do

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Daniel D. Daugherty
om:*Sundararajan Athijegannathan *Sent:* Friday, July 29, 2016 5:11 PM *To:* serviceability-dev@openjdk.java.net *Subject:* Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation If cloning is done to avoid exposing byte[] outside SA, this fix is not ne

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Sundararajan Athijegannathan
t;>> Thank you, JB and Sundar. Sundar, would that hold true even if >>> –XaddExports is used ? >>> >>> >>> >>> Regards, >>> >>> Jini. >>> >>> >>> >>> *From:*Sundararajan Athijegannathan >>

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Daniel D. Daugherty
used ? Regards, Jini. *From:*Sundararajan Athijegannathan *Sent:* Friday, July 29, 2016 5:11 PM *To:* serviceability-dev@openjdk.java.net *Subject:* Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation If cloning is done to avoid exposing byte[] ou

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Sundararajan Athijegannathan
d that hold true even if > –XaddExports is used ? > > > > Regards, > > Jini. > > > > *From:*Sundararajan Athijegannathan > *Sent:* Friday, July 29, 2016 5:11 PM > *To:* serviceability-dev@openjdk.java.net > *Subject:* Re: RFR: (XS): JDK-8068004: >

RE: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Jini Susan George
Thank you, JB and Sundar. Sundar, would that hold true even if –XaddExports is used ?   Regards, Jini.   From: Sundararajan Athijegannathan Sent: Friday, July 29, 2016 5:11 PM To: serviceability-dev@openjdk.java.net Subject: Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Sundararajan Athijegannathan
If cloning is done to avoid exposing byte[] outside SA, this fix is not needed in jdk9. In jdk9, none of the SA packages are exposed and code outside SA cannot access this. Besides, Page data may be very big - cloning that ever constructor and getter may be too costly. -Sundar On 7/29/2016 5:07

Re: RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Jaroslav Bachorik
Hi Jini, 'null' seems to be a valid value for 'data' field in both of the places you are using 'data.clone()' - you should guard for null and call 'clone()' only if the passed in value is non-null. Cheers, -JB- On Fri, Jul 29, 2016 at 11:29 AM, Jini Susan George wrote: > Hi all, > > Please re

RFR: (XS): JDK-8068004: [Findbugs]sun.jvm.hotspot.debugger may expose internal representation

2016-07-29 Thread Jini Susan George
Hi all, Please review the fix for the following SA defect (to avoid exposing internal representations by storing or returning externally mutable objects directly). Bug ID: https://bugs.openjdk.java.net/browse/JDK-8068004 Webrev: http://cr.openjdk.java.net/~sballal/sponsorship/8068004/webrev.00