Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-19 Thread Hohensee, Paul
I'll have the default method throw UOE. That's the same as the other default methods do. The necessary test fix is in test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/server/ServerThreadMXBeanNew.java, which needs a new getCurrentThreadAllocatedBytes method, defined as public long

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread David Holmes
On 19/09/2019 12:57 pm, Mandy Chung wrote: On 9/18/19 5:00 PM, Hohensee, Paul wrote: They all implement com.sun.management.ThreadMXBean, so adding a getCurrentThreadAllocatedBytes broke them. Potential fix is to give it a default implementation, vis public default long

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Mandy Chung
On 9/18/19 5:00 PM, Hohensee, Paul wrote: They all implement com.sun.management.ThreadMXBean, so adding a getCurrentThreadAllocatedBytes broke them. Potential fix is to give it a default implementation, vis public default long getCurrentThreadAllocatedBytes() { return -1; }

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
gt;> > > > >> It looks great now! > >>> > > > >> > >>> > > > >> Thanks, > >>> > > >

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
gt; >>> > > > >> Thanks, >>> > > > >> Serguei >>> > > > >> >>> > > > >> >>> > > > >> On 9/15/19 02:52, Hohensee, P

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
> > >> Serguei >>> > > > >> >>> > > > >> >>> > > > >>

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread David Holmes
>  >  >  > David      >      >  >  > >      >  >  >> Paul      >      >      >  >> >  >  >  >> *From:

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
On 18/09/2019 8:50 am, David Holmes wrote: >> > > > > On 18/09/2019 12:10 am, Hohensee, >> Paul wrote: >> > > > >>

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
> >> > > > > >> David, are you ok with the patch? > > > > > > > > > > Yep, nothing further from me. > > > > > > > > >

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
instances of “TEST FAILED: “. >  >  >  >>      >  >  >  >> >  >  >  >>     

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
> > > > > >> Paul > > > >> > > > >> *From: *"serguei.spit...@oracle.com" > > > >> *Date: *Tuesday, Septem

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
> > > > > David > > > > > > > >> Paul > > > >> > > > >> *From: *"serguei.spit...@oracle.com" > >

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
  >  >  >> return path after it >  >  >> >  >  >>      has obtained the first memory value. The check might also >  >  >> fail if using      > 

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
> David > > > > > >> Paul > > >> > > >> *From: *"serguei.spit...@oracle.com" > > >> *Date: *Tuesday, Septem

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread David Holmes
gt; *Date: *Tuesday, September 17, 2019 at 2:26 AM >> *To: *"Hohensee, Paul" , David Holmes >> , Mandy Chung >> *Cc: *OpenJDK Serviceability , >> "hotspot-gc-...@openjdk.java.net" >>

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
> > >> Paul > > >> > > >> *From: *"serguei.spit...@oracle.com" > > >> *Date: *Tuesday, September 17, 2019 at 2:26 AM > >

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
>> *From: *"serguei.spit...@oracle.com" > >> *Date: *Tuesday, September 17, 2019 at 2:26 AM > >> *To: *"Hohensee, Paul" , David Holmes > >> , Mandy Chung > >> *Cc: *OpenJD

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
>> *Date: *Tuesday, September 17, 2019 at 2:26 AM > >> *To: *"Hohensee, Paul" , David Holmes > >> , Mandy Chung > >> *Cc: *OpenJDK Serviceability , > >> "hotspot-gc-...@openjdk.ja

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Daniel D. Daugherty
t; that results in >> >> it executing a handshake operation that performs >> allocation. Potentially >> >> there could be numerous non-deterministic actions that >> might occur >>

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
l" >> <mailto:hohen...@amazon.com>, David Holmes >> <mailto:david.hol...@oracle.com>, Mandy Chung >> <mailto:mandy.ch...@oracle.com> >> *Cc: *OpenJDK Serviceability >&g

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
>> *Date: *Tuesday, September 17, 2019 at 2:26 AM >> *To: *"Hohensee, Paul" , David Holmes >> , Mandy Chung >> *Cc: *OpenJDK Serviceability , >> "hotspot-gc-...@openjdk.java.net" >> *Subje

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
" >> <mailto:hohen...@amazon.com>, David Holmes >> <mailto:david.hol...@oracle.com>, Mandy Chung >> <mailto:mandy.ch...@oracle.com> >> *Cc: *OpenJDK Serviceability >> <mailto:serviceability-dev@ope

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread David Holmes
om>, Mandy Chung     <mailto:mandy.ch...@oracle.com>     *Cc: *OpenJDK Serviceability     <mailto:serviceability-dev@openjdk.java.net>,     "hotspot-gc-...@openjdk.java.net"     <mailto:hotspot-gc-...@openjdk.java.net>         <mailto:hotspot-gc-...@openjdk.java.net>    

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-18 Thread Hohensee, Paul
hung > <mailto:mandy.ch...@oracle.com> > *Cc: *OpenJDK Serviceability > <mailto:serviceability-dev@openjdk.java.net>, > "hotspot-gc-...@openjdk.java.net" > <mailto:hotspot-gc-...@openjdk.java.net>

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-17 Thread David Holmes
, Mandy Chung *Cc: *OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" *Subject: *Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread Hi Paul, Thank you for refactoring and fixing the test. It looks great now! Thanks, Serguei On 9/15/

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-17 Thread serguei.spit...@oracle.com
enJDK Serviceability , "hotspot-gc-...@openjdk.java.net" Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread   Hi Paul,

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-13 Thread serguei . spitsyn
k it is reliably doable. Thanks, David - > > Paul > > *From: *Mandy Chung > *Date: *Thursday, September 12, 2019 at 10:09 AM > *To: *"Hohensee, Paul" > *Cc: *OpenJDK Serviceability , > "hotspot-gc-

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-13 Thread David Holmes
10:09 AM > *To: *"Hohensee, Paul" > *Cc: *OpenJDK Serviceability , > "hotspot-gc-...@openjdk.java.net" > *Subject: *Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() > can be quicker for self thread > > On 9/3/19 12:38 PM,

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-13 Thread Hohensee, Paul
> Paul > > *From: *Mandy Chung > *Date: *Thursday, September 12, 2019 at 10:09 AM > *To: *"Hohensee, Paul" > *Cc: *OpenJDK Serviceability , > "hotspot-gc-...@openjdk.java.net" > *Subject: *Re: RFR (M): 8207266: ThreadMXBea

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-13 Thread David Holmes
207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread On 9/3/19 12:38 PM, Hohensee, Paul wrote: Minor update in new webrevhttp://cr.openjdk.java.net/~phh/8207266/webrev.05/. I only reviewed the library side implementation that looks good.  I expect the serviceab

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-12 Thread Hohensee, Paul
Paul" Date: Thursday, September 12, 2019 at 5:29 PM To: Mandy Chung Cc: OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread Thanks for clarifying the review rules

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-12 Thread Hohensee, Paul
t; Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread On 9/3/19 12:38 PM, Hohensee, Paul wrote: Minor update in new webrev http://cr.openjdk.java.net/~phh/8207266/webrev.05/. I only reviewed the library side implementation that l

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-12 Thread Mandy Chung
On 9/3/19 12:38 PM, Hohensee, Paul wrote: Minor update in new webrev http://cr.openjdk.java.net/~phh/8207266/webrev.05/. I only reviewed the library side implementation that looks good.  I expect the serviceability team to review the test and hotspot change. Need a confirmatory review to

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-12 Thread Hohensee, Paul
;Hohensee, Paul" Cc: OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread CSR reviewed. management.cp

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-06 Thread Hohensee, Paul
Paul From: Mandy Chung Date: Friday, August 30, 2019 at 4:26 PM To: "Hohensee, Paul" Cc: OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAl

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-03 Thread Hohensee, Paul
ity-dev@openjdk.java.net>, "hotspot-gc-...@openjdk.java.net"<mailto:hotspot-gc-...@openjdk.java.net> <mailto:hotspot-gc-...@openjdk.java.net> Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread Hi Paul,

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-31 Thread Hohensee, Paul
, Paul" Cc: OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread CSR reviewed. management.cpp 2083 java_thread = (JavaThread*)THREAD; 2084 if (java_thread->is_Java_

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-30 Thread Mandy Chung
the test please? Paul *From: *Mandy Chung *Date: *Friday, August 30, 2019 at 10:22 AM *To: *"Hohensee, Paul" *Cc: *OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" *Subject: *Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self t

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-30 Thread Hohensee, Paul
bility-dev@openjdk.java.net>, "hotspot-gc-...@openjdk.java.net"<mailto:hotspot-gc-...@openjdk.java.net> <mailto:hotspot-gc-...@openjdk.java.net> Subject: Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread Hi Paul, The CSR propose

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-30 Thread Mandy Chung
s, Paul *From: *Mandy Chung *Date: *Wednesday, August 28, 2019 at 3:59 PM *To: *"Hohensee, Paul" *Cc: *OpenJDK Serviceability , "hotspot-gc-...@openjdk.java.net" *Subject: *Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread Hi

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-29 Thread Hohensee, Paul
Yes. See previous email. Thanks, On 8/29/19, 12:19 AM, "Alan Bateman" wrote: On 28/08/2019 23:58, Mandy Chung wrote: > Hi Paul, > > The CSR proposes this method in java.lang.management.ThreadMXBean as a > Java SE feature. > > Has this been discussed with the GC

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-29 Thread Alan Bateman
On 28/08/2019 23:58, Mandy Chung wrote: Hi Paul, The CSR proposes this method in java.lang.management.ThreadMXBean as a Java SE feature. Has this been discussed with the GC team to commit measuring current thread's allocated bytes as Java SE feature?   Can this be supported by all JVM

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-28 Thread Mandy Chung
Hi Paul, The CSR proposes this method in java.lang.management.ThreadMXBean as a Java SE feature. Has this been discussed with the GC team to commit measuring current thread's allocated bytes as Java SE feature?   Can this be supported by all JVM implementation?   What is the overhead if

Re: RFR (M): 8207266: ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-08-28 Thread Alan Bateman
On 28/08/2019 20:22, Hohensee, Paul wrote: Please review a performance improvement for ThreadMXBean.getThreadAllocatedBytes and the addition of getCurrentThreadAllocatedBytes. JBS issue:https://bugs.openjdk.java.net/browse/JDK-8207266