Re: 8185005: Improve performance of ThreadMXBean.getThreadInfo(long ids[], int maxDepth)

2019-09-17 Thread Daniil Titov
Hi Serguei, Please find below my answers to the concerns you mentioned in the previous email. 1. > I have a concern about the checks for thread->is_exiting(). > - the lines 632-633 are useless as they do not really protect from returning > an exiting thread > It is interesting what might

Re: RFR: 8230857: Avoid reflection in sun.tools.common.ProcessHelper

2019-09-17 Thread David Holmes
Hi Erik, Thanks for the additional details (I can't say I fully understand them :) ). David On 17/09/2019 11:39 pm, Erik Joelsson wrote: Hello, On 2019-09-17 05:59, David Holmes wrote: Hi Magnus, On 17/09/2019 9:26 pm, Magnus Ihse Bursie wrote: On 2019-09-17 01:01, David Holmes wrote: Hi

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

2019-09-17 Thread David Holmes
On 18/09/2019 12:10 am, Hohensee, Paul wrote: Thanks, Serguei. :) David, are you ok with the patch? Yep, nothing further from me. David Paul *From: *"serguei.spit...@oracle.com" *Date: *Tuesday, September 17, 2019 at 2:26 AM *To: *"Hohensee, Paul" , David Holmes , Mandy Chung *Cc:

Re: RFR: 8230857: Avoid reflection in sun.tools.common.ProcessHelper

2019-09-17 Thread Erik Joelsson
Hello, On 2019-09-17 05:59, David Holmes wrote: Hi Magnus, On 17/09/2019 9:26 pm, Magnus Ihse Bursie wrote: On 2019-09-17 01:01, David Holmes wrote: Hi Christoph, Sorry for the delay getting back you. cc'd build-dev to get some clarification on the below ... On 12/09/2019 7:30 pm, Langer,

Re: RFR: 8230857: Avoid reflection in sun.tools.common.ProcessHelper

2019-09-17 Thread David Holmes
Hi Magnus, On 17/09/2019 9:26 pm, Magnus Ihse Bursie wrote: On 2019-09-17 01:01, David Holmes wrote: Hi Christoph, Sorry for the delay getting back you. cc'd build-dev to get some clarification on the below ... On 12/09/2019 7:30 pm, Langer, Christoph wrote: Hi David, please review an

Re: RFR: 8230857: Avoid reflection in sun.tools.common.ProcessHelper

2019-09-17 Thread Magnus Ihse Bursie
On 2019-09-17 01:01, David Holmes wrote: Hi Christoph, Sorry for the delay getting back you. cc'd build-dev to get some clarification on the below ... On 12/09/2019 7:30 pm, Langer, Christoph wrote: Hi David, please review an enhancement which I've identified when working with

RE: RFR [XS]: 8230901: missing ReleaseStringUTFChars in servicability native code

2019-09-17 Thread Baesken, Matthias
Hi Serguei and Thomas , thanks for the reviews. >Should I open a bug for these ? > Probably, two different bug are needed: hotspot/runtime and AWT. Regarding the atoi on input provided by getenv - I’ll open 2 bugs for this. Best regards, Matthias From: serguei.spit...@oracle.com Sent:

Re: 8185005: Improve performance of ThreadMXBean.getThreadInfo(long ids[], int maxDepth)

2019-09-17 Thread David Holmes
Hi Serguei, On 17/09/2019 7:10 pm, serguei.spit...@oracle.com wrote: Hi Daniil, On 9/16/19 21:36, Daniil Titov wrote: Hi David, The case you have described is exact the reason why we still have a code inside ThreadsList::find_JavaThread_from_java_tid() method that does a linear scan and

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

2019-09-17 Thread serguei.spit...@oracle.com
Hi Paul, Thank you for refactoring and fixing the test. It looks great now! Thanks, Serguei On 9/15/19 02:52, Hohensee, Paul wrote: Hi, Serguei, thanks for the review. New webrev at

Re: 8185005: Improve performance of ThreadMXBean.getThreadInfo(long ids[], int maxDepth)

2019-09-17 Thread serguei.spit...@oracle.com
Hi Daniil, On 9/16/19 21:36, Daniil Titov wrote: Hi David, The case you have described is exact the reason why we still have a code inside ThreadsList::find_JavaThread_from_java_tid() method that does a linear scan and adds the requested thread to the thread table if it is not there (

Re: RFR: 8185005: Improve performance of ThreadMXBean.getThreadInfo(long ids[], int maxDepth)

2019-09-17 Thread serguei.spit...@oracle.com
Hi David, It is a nice catch! I would suggest to rewrite this fragment in a safe way: 95 { 96 MutexLocker ml(ThreadTableCreate_lock); 97 if (!_is_initialized) { 98 create_table(threads->length()); 99

Re: RFR: 8185005: Improve performance of ThreadMXBean.getThreadInfo(long ids[], int maxDepth)

2019-09-17 Thread serguei.spit...@oracle.com
Hi Daniil, Thank you for you patience in working on this issue! Also, I like that the current thread related optimizations in management.cpp were factored out. It was a good idea to separate them. I have a concern about the checks for