Re: Should we get rid of libnpt.so ?

2014-04-04 Thread Dmitry Samersoff
Kelly, Thank you for the background. -Dmitry On 2014-04-04 20:52, Kelly O'Hair wrote: > Just as background information... > > The serviceability team should do what they think is right here, I'll just > provide some history... ;) > > The original purpose of this library was to provide some

Re: Should we get rid of libnpt.so ?

2014-04-04 Thread Kelly O'Hair
Just as background information... The serviceability team should do what they think is right here, I'll just provide some history... ;) The original purpose of this library was to provide some generic native platform tools for dealing with things that will happen BEFORE the JVM is started an

Should we get rid of libnpt.so ?

2014-04-04 Thread Dmitry Samersoff
Hi Everybody, We have an libnpt.so[1] in JDK. This library contains bunch of UTF related functions. On a brief investigation it looks like most of these functions are not used. Six functions below called one time each from share/back/* and hprof_init.c [2] Should I file a CR to have it cleane

Re: RFR: 8039256 Add sun/jvmstat/monitor/MonitoredVm/CR6672135.java to ProblemList.txt

2014-04-04 Thread Alan Bateman
On 04/04/2014 12:33, Staffan Larsen wrote: Please review the change below to add a test to ProblemList.txt. For details, see https://bugs.openjdk.java.net/browse/JDK-8033104 Thanks, /Staffan diff --git a/test/ProblemList.txt b/test/ProblemList.txt --- a/test/ProblemList.txt +++ b/test/Proble

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Staffan Larsen
Thanks Ivan. I’ve been thinking a bit more about this and discussing with people here. I’m not sure anymore that it is a good idea to cap the error message. My original thought was that it made sense to not overflow the client with tons of output if something went wrong in the target. On the ot

Re: RFR 8038822: java/lang/management/MemoryMXBean/LowMemoryTest2.sh still fails with OutOfMemoryError: Metaspace

2014-04-04 Thread Daniel Fuchs
On 4/4/14 2:20 PM, Mattias Tobiasson wrote: Hi Daniel, Could you please sponsor the attached patch? Webrev: http://cr.openjdk.java.net/~ykantser/8038822/webrev.01 The only change is that I have made BoundlessLoaderThread.pool final. No Problem Mattias, I'll do it! -- daniel Mattias -

Re: RFR: 8031766: jstatd nightly tests failing with Expected one jstatd process, got 2. Test will be canceled.

2014-04-04 Thread Staffan Larsen
Looks good! Thanks, /Staffan On 4 apr 2014, at 16:02, Yekaterina Kantserova wrote: > Thanks, Jaroslav! > Please find the new webrev here: > http://cr.openjdk.java.net/~ykantser/8031766/webrev.01/ > > // Katja > > > > On 04/04/2014 03:32 PM, Jaroslav Bachorik wrote: >> Looks fine. >> You m

Re: RFR: 8031766: jstatd nightly tests failing with Expected one jstatd process, got 2. Test will be canceled.

2014-04-04 Thread Jaroslav Bachorik
No more comments. -JB- On 4.4.2014 16:02, Yekaterina Kantserova wrote: Thanks, Jaroslav! Please find the new webrev here: http://cr.openjdk.java.net/~ykantser/8031766/webrev.01/ // Katja On 04/04/2014 03:32 PM, Jaroslav Bachorik wrote: Looks fine. You might add a small performance improvem

Re: RFR: 8031766: jstatd nightly tests failing with Expected one jstatd process, got 2. Test will be canceled.

2014-04-04 Thread Yekaterina Kantserova
Thanks, Jaroslav! Please find the new webrev here: http://cr.openjdk.java.net/~ykantser/8031766/webrev.01/ // Katja On 04/04/2014 03:32 PM, Jaroslav Bachorik wrote: Looks fine. You might add a small performance improvement by taking out the regex out of the loop at line 99 (compile the pat

Re: RFR: 8031766: jstatd nightly tests failing with Expected one jstatd process, got 2. Test will be canceled.

2014-04-04 Thread Jaroslav Bachorik
Looks fine. You might add a small performance improvement by taking out the regex out of the loop at line 99 (compile the pattern before starting the loop). -JB- On 4.4.2014 15:25, Yekaterina Kantserova wrote: Hi, Could I please have a review of this fix. webrev: http://cr.openjdk.java.net/

Re: RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM

2014-04-04 Thread Alan Bateman
On 04/04/2014 13:29, David Holmes wrote: On 4/04/2014 10:00 PM, Staffan Larsen wrote: Please review the following small change to provide more information from jstat when it fails. bug: https://bugs.openjdk.java.net/browse/JDK-8028354 webrev: http://cr.openjdk.java.net/~sla/8028354/webrev.00/

RFR: 8031766: jstatd nightly tests failing with Expected one jstatd process, got 2. Test will be canceled.

2014-04-04 Thread Yekaterina Kantserova
Hi, Could I please have a review of this fix. webrev: http://cr.openjdk.java.net/~ykantser/8031766/webrev.00/ bug: https://bugs.openjdk.java.net/browse/JDK-8031766 The bug is not visible. But short summary is as follows. sun/tools/jstatd/TestJstatdPort.java, TestJstatdPortAndServer.java, Test

RE: RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM

2014-04-04 Thread Markus Grönlund
Looks good. /Markus -Original Message- From: Staffan Larsen Sent: den 4 april 2014 14:01 To: serviceability-dev@openjdk.java.net serviceability-dev@openjdk.java.net Subject: RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM Please review the

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Ivan Gerasimov
An alternative, more compact variant might be String getErrorMessage(InputStream sis, int maxlen) throws IOException { int n, off = 0, len = maxlen + 1; byte b[] = new byte[len]; while ((n = sis.read(b, off, len - off)) > 0) off +

RE: RFR: 8039256 Add sun/jvmstat/monitor/MonitoredVm/CR6672135.java to ProblemList.txt

2014-04-04 Thread Markus Grönlund
Looks good. /Markus -Original Message- From: Staffan Larsen Sent: den 4 april 2014 13:33 To: serviceability-dev@openjdk.java.net serviceability-dev@openjdk.java.net; core-libs-dev Libs Subject: RFR: 8039256 Add sun/jvmstat/monitor/MonitoredVm/CR6672135.java to ProblemList.txt Please r

Re: RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM

2014-04-04 Thread Staffan Larsen
On 4 apr 2014, at 14:29, David Holmes wrote: > On 4/04/2014 10:00 PM, Staffan Larsen wrote: >> Please review the following small change to provide more information from >> jstat when it fails. >> >> bug: https://bugs.openjdk.java.net/browse/JDK-8028354 >> webrev: http://cr.openjdk.java.net/~sl

Re: RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM

2014-04-04 Thread David Holmes
On 4/04/2014 10:00 PM, Staffan Larsen wrote: Please review the following small change to provide more information from jstat when it fails. bug: https://bugs.openjdk.java.net/browse/JDK-8028354 webrev: http://cr.openjdk.java.net/~sla/8028354/webrev.00/ Seems reasonable. But I bet there is a t

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Ivan Gerasimov
Now you reintroduced the smallish issue, when the message is exactly 200 characters (or whatever maxlen is). The dots will be appended to the message, even though it's not necessary. I think the only reliable way to deal with it is to try to read one extra character from sis. Something like t

Re: RFR 8038822: java/lang/management/MemoryMXBean/LowMemoryTest2.sh still fails with OutOfMemoryError: Metaspace

2014-04-04 Thread Mattias Tobiasson
Hi Daniel, Could you please sponsor the attached patch? Webrev: http://cr.openjdk.java.net/~ykantser/8038822/webrev.01 The only change is that I have made BoundlessLoaderThread.pool final. Mattias - Original Message - From: mattias.tobias...@oracle.com To: daniel.fu...@oracle.com Cc: ser

Re: RFR 8030628: MemoryMXBean/CollectionUsageThreshold.java is not applicable for VM SQE testing

2014-04-04 Thread Mattias Tobiasson
Hi, I have updated the patch with the following changes: Util.java line 130 - Moved Pattern from function to "private static final" RunUtil.java line 64 - Use diamond operator. webrev: http://cr.openjdk.java.net/~ykantser/8030628/webrev.04 I have created an enhancement for porting the other shel

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Staffan Larsen
I’m afraid you are right! Doh. Need to add more testing... How about this change: --- a/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java +++ b/src/share/classes/sun/tools/attach/HotSpotVirtualMachine.java @@ -267,9 +267,11 @@ String getErrorMessage(InputStream sis, int maxlen) t

RFR: 8028354 jstat does not provide enough information when fail to read data from remote JVM

2014-04-04 Thread Staffan Larsen
Please review the following small change to provide more information from jstat when it fails. bug: https://bugs.openjdk.java.net/browse/JDK-8028354 webrev: http://cr.openjdk.java.net/~sla/8028354/webrev.00/ Thanks, /Staffan

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Ivan Gerasimov
Thank you Staffan for fixing them! But I'm afraid that now the function will never add ellipsis to the message, even if it gets truncated. Sincerely yours, Ivan On 04.04.2014 15:47, Staffan Larsen wrote: Thanks for finding these bugs, Ivan! I have updated the webrev at: http://cr.openjdk.j

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Staffan Larsen
Thanks for finding these bugs, Ivan! I have updated the webrev at: http://cr.openjdk.java.net/~sla/8039173/webrev.01/, and I have also included the diff below. The updated webrev also has some changes in the javadoc for VirtualMachine to clarify that some methods can now throw AttachOperationF

RFR: 8039256 Add sun/jvmstat/monitor/MonitoredVm/CR6672135.java to ProblemList.txt

2014-04-04 Thread Staffan Larsen
Please review the change below to add a test to ProblemList.txt. For details, see https://bugs.openjdk.java.net/browse/JDK-8033104 Thanks, /Staffan diff --git a/test/ProblemList.txt b/test/ProblemList.txt --- a/test/ProblemList.txt +++ b/test/ProblemList.txt @@ -273,4 +273,7 @@ # 8031482 sun

Re: RFR: 8039173 Propagate errors from Diagnostic Commands as exceptions in the attach framework

2014-04-04 Thread Ivan Gerasimov
Hi Staffan! I think there is a couple of minor bugs in getErrorMessage(InputStream sis, int maxlen). 1) If maxlen is exactly the size of the message to read, the function will add an ellipsis, even though the message isn't truncated, 2) If maxlen is greater than needed, then sis.read(b, off,