Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread Kirk Pepperdine
Hi, > On Dec 18, 2017, at 9:11 PM, gary.ad...@oracle.com wrote: > > The only legitimate reason libinstrument would be missing is if > java.instrument was not included. > Any other speculation about why libinstrument was not found is hard to > explain. e.g. until > the vm is initialized we can n

Re: [8u] RFR(S) 8059036: Implement Diagnostic Commands for heap and finalizerinfo

2017-12-18 Thread mandy chung
On 12/14/17 9:42 PM, David Buck wrote: Hi! May I please get a review of the following very simple backport of this serviceability improvement to JDK 8? : JDK 8 backport webrevs for review: http://cr.openjdk.java.net/~dbuck/8059036.0_jdk8/ This patch looks okay to me. Mandy

Re: [8u] RFR(S) 8059036: Implement Diagnostic Commands for heap and finalizerinfo

2017-12-18 Thread David Buck
Hi! Any love out there for my review request? Cheers, -Buck On 2017/12/15 14:42, David Buck wrote: Hi! May I please get a review of the following very simple backport of this serviceability improvement to JDK 8? The two hotspot jtreg test cases needed to be modified slightly because of th

Re: RFR: JDK-8188856: Incorrect file path in an exception message when .java_pid is not accessible on Unix

2017-12-18 Thread Chris Plummer
On 12/18/17 1:22 PM, gary.ad...@oracle.com wrote: On 12/18/17 2:26 PM, Chris Plummer wrote: Hi Gary, On 12/18/17 6:47 AM, Gary Adams wrote: Here's a simple fix to correct the error message when the java_pid socket is not found. The code previously reported the attach_pid file name rather than

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread Chris Plummer
Yes. On 12/18/17 1:14 PM, gary.ad...@oracle.com wrote: I can just the error message. What would you like it to say? "Module java.instrument may be missing" On 12/18/17 4:09 PM, serguei.spit...@oracle.com wrote: Hi Gary, I have the same concern and like Chris's suggestion. The JMX case must

Re: RFR: JDK-8188856: Incorrect file path in an exception message when .java_pid is not accessible on Unix

2017-12-18 Thread gary.ad...@oracle.com
On 12/18/17 2:26 PM, Chris Plummer wrote: Hi Gary, On 12/18/17 6:47 AM, Gary Adams wrote: Here's a simple fix to correct the error message when the java_pid socket is not found. The code previously reported the attach_pid file name rather than the socket file name that was not found.   Issue:

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread serguei.spit...@oracle.com
On 12/18/17 13:14, gary.ad...@oracle.com wrote: I can just the error message. What would you like it to say? "Module java.instrument may be missing" Looks good to me (assuming it is for the sub_msg2). Thanks, Serguei On 12/18/17 4:09 PM, serguei.spit...@oracle.com wrote: Hi Gary, I have

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread gary.ad...@oracle.com
I can just the error message. What would you like it to say? "Module java.instrument may be missing" On 12/18/17 4:09 PM, serguei.spit...@oracle.com wrote: Hi Gary, I have the same concern and like Chris's suggestion. The JMX case must be simpler as there is no need to load the agent library

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread gary.ad...@oracle.com
The only legitimate reason libinstrument would be missing is if java.instrument was not included. Any other speculation about why libinstrument was not found is hard to explain. e.g. until the vm is initialized we can not explicitly say whether java.instrument module is present or not. On 12/

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread serguei.spit...@oracle.com
Hi Gary, I have the same concern and like Chris's suggestion. The JMX case must be simpler as there is no need to load the agent library early at startup. So that it is possible to identify the module jdk.management.agent is absent in the image. I think, it happens in the java.lang.Module.Res

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread Chris Plummer
Hi Gary, Overall looks good. There's one minor change you might wanted to consider. It's possible the library failed to load for reasons other than java.instrument not being included. I see the error output already includes the error message from the failed dll_open() call, so why not just su

Re: RFR: JDK-8188856: Incorrect file path in an exception message when .java_pid is not accessible on Unix

2017-12-18 Thread Chris Plummer
Hi Gary, On 12/18/17 6:47 AM, Gary Adams wrote: Here's a simple fix to correct the error message when the java_pid socket is not found. The code previously reported the attach_pid file name rather than the socket file name that was not found.   Issue: https://bugs.openjdk.java.net/browse/JDK-81

Re: RFR: JDK-8188856: Incorrect file path in an exception message when .java_pid is not accessible on Unix

2017-12-18 Thread serguei.spit...@oracle.com
Hi Gary, It looks good to me. Thanks, Serguei On 12/18/17 06:47, Gary Adams wrote: Here's a simple fix to correct the error message when the java_pid socket is not found. The code previously reported the attach_pid file name rather than the socket file name that was not found.   Issue: https

RE: FW: RFR(M): 8189102: All tools should support -?, -h and --help

2017-12-18 Thread Lindenmaier, Goetz
Hi, I had to update my webrev after the javah launcher had been removed: http://cr.openjdk.java.net/~goetz/wr17/8189102-helpMessage/webrev.07/ I would appreciate a final decision to push this. Best regards, Goetz. -Original Message- From: serviceability-dev [mailto:serviceability-dev

Re: RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread Alan Bateman
On 18/12/2017 14:38, Gary Adams wrote: Here's a simple fix to include additional information when the instrument library is missing from the jre and the command line requests -javaagent.  Issue: https://bugs.openjdk.java.net/browse/JDK-8180709  Webrev: http://cr.openjdk.java.net/~gadams/8180709

RFR: JDK-8188856: Incorrect file path in an exception message when .java_pid is not accessible on Unix

2017-12-18 Thread Gary Adams
Here's a simple fix to correct the error message when the java_pid socket is not found. The code previously reported the attach_pid file name rather than the socket file name that was not found. Issue: https://bugs.openjdk.java.net/browse/JDK-8188856 Webrev: http://cr.openjdk.java.net/~gadams

RFR: JDK-8180709: java -javaagent:agent.jar with run-time that does not contain java.instrument prints confusing error

2017-12-18 Thread Gary Adams
Here's a simple fix to include additional information when the instrument library is missing from the jre and the command line requests -javaagent. Issue: https://bugs.openjdk.java.net/browse/JDK-8180709 Webrev: http://cr.openjdk.java.net/~gadams/8180709/webrev.00/