Re: jmx-dev RFR(S): 8234484: Add ability to configure third port for remote JMX

2020-01-13 Thread Daniel Fuchs
Hi Felix, On 11/01/2020 07:37, Yangfei (Felix) wrote: Hi Daniel, Thanks for the suggestions. I modified the patch making the third port also configurable via the management.properties file. New webrev: http://cr.openjdk.java.net/~fyang/8234484/webrev.01/ I think I would prefer

Re: jmx-dev RFR: 8213222: remove RMIConnectorServer.CREDENTIAL_TYPES

2020-01-13 Thread Daniel Fuchs
Hi Daniil, Looks good to me as well. I wonder however if the release note should point to the replacement? Something like: The terminally deprecated constant `javax.management.remote.rmi.RMIConnectorServer.CREDENTIAL_TYPE` has been removed. A filter pattern can be specified instead using `RMI

Re: RFR: 8236873: Worker has a deadlock bug

2020-01-15 Thread Daniel Fuchs
Hi Daniil, That looks fine to me. best regards, -- daniel On 15/01/2020 18:15, Daniil Titov wrote: Please review a change [1] that fixes a deadlock issue [2] in sun.tools.jconsole.Worker class. There is no need in guarding "stopped" flag by a lock. The fix removes this excessive locking an

Re: jmx-dev RFR(S): 8234484: Add ability to configure third port for remote JMX

2020-01-17 Thread Daniel Fuchs
Thanks Felix! On 16/01/2020 02:01, Yangfei (Felix) wrote: Modified accordingly in new webrev:http://cr.openjdk.java.net/~fyang/8234484/webrev.02/ Also renamed property to: com.sun.management.jmxremote.local.port That looks fine to me. best regards, -- daniel

Re: RFR 8232622: Technical debt in BadAttributeValueExpException

2020-02-13 Thread Daniel Fuchs
Hi Roger, I think you will need to preserve these cases: On 13/02/2020 15:52, Roger Riggs wrote: -    || valObj instanceof Long -    || valObj instanceof Integer -    || valObj instanceof Float -    || valObj instanceof Double -    ||

Re: RFR 8232622: Technical debt in BadAttributeValueExpException

2020-02-13 Thread Daniel Fuchs
Hi Roger, OK - I can accept that then. best regards, -- daniel On 13/02/2020 18:18, Roger Riggs wrote: Hi Daniel, That's part of the technical debt that has to go. The change to do the conversion in the constructor has been there since JDK8. And the value of the argument is informative.

Re: jmx-dev RFR 8240604: Rewrite sun/management/jmxremote/bootstrap/CustomLauncherTest.java test to make binaries from source file

2020-03-05 Thread Daniel Fuchs
Hi Alexander, Fixes to JMX & management agent are reviewed on the seviceability-dev (added in to:) these days. best regards, -- daniel On 05/03/2020 13:17, Alexander Scherbatiy wrote: Hello, Could you review a small enhancement where the test CustomLauncherTest is updated to build binary la

Re: jmx-dev MBean attribute deprecation

2020-07-23 Thread Daniel Fuchs
Hi Milan, JMX is being maintained by serviceability these days. I am forwarding your question there. This is an interesting observation. JMX makes it possible to define and use annotations on methods/getters/setters, to add key/value pairs to the Descriptor of the corresponding MBeanFeatureInfo.

Re: RFR (S) 8048215: [TESTBUG] java/lang/management/ManagementFactory/ThreadMXBeanProxy.java Expected non-null LockInfo

2018-10-15 Thread Daniel Fuchs
Hi David, Good finding! Looks reasonable to me. best regards, -- daniel On 15/10/2018 05:23, David Holmes wrote: bug: https://bugs.openjdk.java.net/browse/JDK-8048215 webrev: http://cr.openjdk.java.net/~dholmes/8048215/webrev/ Simple race condition in the test. The main thread does checks th

Re: RFR JDK-8212197: OpenDataException thrown when constructing CompositeData for StackTraceElement

2018-10-16 Thread Daniel Fuchs
Hi Mandy, This looks good to me. best regards, -- daniel On 15/10/2018 23:02, Mandy Chung wrote: Webrev: http://cr.openjdk.java.net/~mchung/jdk12/webrevs/8212197/webrev.00/ This simple patch fixes the issue Sven reports [1] where the order of names and values when creating CompositeData for

Re: Review Request JDK-8212795: ThreadInfoCompositeData.toCompositeData fails to map ThreadInfo to CompositeData

2018-10-25 Thread Daniel Fuchs
Hi Mandy, I agree that this looks more robust and will be better for long term maintainability. I'm just surprised that 156 static CompositeType compositeType() { 157 return STACK_TRACE_ELEMENT_COMPOSITE_TYPE; 158 } is no longer (or was never) needed in StackTraceElementCompo

Re: [RFR]8215622: Add dump to file support for jmap histo

2019-02-12 Thread Daniel Fuchs
Hi Paul, On 12/02/2019 16:27, Hohensee, Paul wrote: I don't see a way to change the Status from Closed to anything else. There's no option I can find to do so. It may be that only the assignee can see this. On the closed CSRs assigned to me I can see a "Back to Draft" button next to "More".

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-22 Thread Daniel Fuchs
Hi Severin, Did you manage to make the test pass locally? This test has had a long history of failing, and I've come to suspect that it might be flawed. First - it has /timeout=5. I believe that's much too short. It immediately failed the first time I ran it locally on my machine. Then it uses

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-25 Thread Daniel Fuchs
Hi Severin, Thanks for looking into this! On 25/02/2019 15:31, Severin Gehwolf wrote: Hi Daniel, Thanks for the review! Latest webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8219585/02/webrev/ On Fri, 2019-02-22 at 18:31 +, Daniel Fuchs wrote: Hi Severin, Did you manage to

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-26 Thread Daniel Fuchs
Hi Severin, On 25/02/2019 15:31, Severin Gehwolf wrote: Hi Daniel, Thanks for the review! Latest webrev: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8219585/02/webrev/ [...] I'm not sure we need a larger timeout. It's 20 seconds on my machine which seems more than enough. What makes yo

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-27 Thread Daniel Fuchs
On 26/02/2019 18:58, Severin Gehwolf wrote: FWIW, I use 'make test TEST="..."'. Isn't the testing system using that too? I am not sure. But I'd expect it to be similar. [...] When I was working on that patch years ago, I think one testing machine got configured in a way so that it wouldn't t

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-02-28 Thread Daniel Fuchs
Hi Severin, On 27/02/2019 16:26, Daniel Fuchs wrote: On Mac OS X and Linux - I saw it failed too - though with lower frequency (like 3 or 4 times every 100 runs), and AFAICS usually later and for a different reason: when it fails, it usually timeouts when trying to test over SSL. On Solaris

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-03-01 Thread Daniel Fuchs
Hi Severin, On 28/02/2019 15:47, Severin Gehwolf wrote: Yes, thanks for looking at this Daniel. That was my determination as well. However, even if we do all of the above, and add a test config with /etc/hosts mapping a non-loopback address to "localhost" it would break other tests. E.g. this on

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-03-01 Thread Daniel Fuchs
Hi Severin, On 01/03/2019 15:49, Severin Gehwolf wrote: On Fri, 2019-03-01 at 15:08 +, Daniel Fuchs wrote: I ran it 50 times in our test system - and it passed on all platforms, so there's yet hope :-) Thanks for this! I take it, it actually runs the test on some of those test sy

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-03-08 Thread Daniel Fuchs
-- daniel I'll run this through jdk/submit now. Could you run this through your test system too, please? Would you be OK with getting this patch pushed once we'd have positive results for both? Thanks, Severin On Fri, 2019-03-01 at 15:08 +, Daniel Fuchs wrote: Hi Severin, O

Re: RFR: JDK-8220257: fix headings in java.instrument

2019-03-12 Thread Daniel Fuchs
On 12/03/2019 14:24, Gary Adams wrote: Need one reviewer for this trivial correction . Having had to do the same for java.logging, I can say that the doc changes to package-info.java look good to me :-) AFAICT the changes to the copyright notice look OK too. best regards, -- daniel After

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-03-12 Thread Daniel Fuchs
Hi Severin, On 08/03/2019 13:20, Severin Gehwolf wrote: On Fri, 2019-03-08 at 11:59 +, Daniel Fuchs wrote: - please verify on your local box if testing both plain & SSL with a Thread.sleep(1000) in between makes the test more stable. If it does, then I'd prefer we go down

Re: RFR: 8219585: [TESTBUG] sun/management/jmxremote/bootstrap/JMXInterfaceBindingTest.java passes trivially when it shouldn't

2019-03-14 Thread Daniel Fuchs
18:22, Daniel Fuchs wrote: This is what I have tried: http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8219585/04/webrev/ If you think we should try this one. That's fine with me. I have now also tested webrev.04 with a test config that uses the fastdebug VM and observed many intermi

Re: RFR: JDK-8184770: JDWP support for IPv6

2019-04-01 Thread Daniel Fuchs
Hi Arthur, Not directly related to Alex's original question but... On 30/03/2019 00:03, Arthur Eubanks wrote: We have some ipv6 patches as well in this area as well (as well as other patches to support ipv6 only environments) that we're trying to upstream. I don't understand the code myself, b

Re: RFR: JDK-8224028: loop initial declarations introduced by JDK-8184770 (jdwp)

2019-05-16 Thread Daniel Fuchs
Hi Ao Qi, I'm adding serviceability-dev, since this is for jdwp. The proposed changes look good to me - but please get someone from the serviceability team to review this. best regards, -- daniel On 16/05/2019 08:41, Ao Qi wrote: Hi, I found build is failed on CentOS 7.6, because of loop i

Re: jmx-dev RFR: 8214545: sun/management/jmxremote/bootstrap tests hang in revokeall.exe on Windows

2019-05-20 Thread Daniel Fuchs
Hi, On 20/05/2019 01:43, David Holmes wrote: Webrev: http://cr.openjdk.java.net/~dtitov/8214545 Bug: https://bugs.openjdk.java.net/browse/JDK-8214545 The count-- is obvious as it is the loop counter, but it is far from clear to me that i++ is correct. I don't fully understand the logic but i i

Re: 8214545: sun/management/jmxremote/bootstrap tests hang in revokeall.exe on Windows

2019-05-21 Thread Daniel Fuchs
On 21/05/2019 04:25, Daniil Titov wrote: Please review un updated version of the previous change that also removes unnecessary line chmod ug+x $REVOKEALL from test/jdk/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh Webrev:http://cr.openjdk.java.net/~dtitov/8214545/webrev.03

Re: RFR (M): 8231209: [REDO] ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-20 Thread Daniel Fuchs
Hi Paul, It might be worth double checking what happens if you create a MXBean proxy to access the com.sun.management.ThreadMXBean in a remote server: https://download.java.net/java/early_access/jdk14/docs/api/java.management/java/lang/management/ManagementFactory.html#getPlatformMXBean(javax.ma

Re: RFR (M): 8231209: [REDO] ThreadMXBean::getThreadAllocatedBytes() can be quicker for self thread

2019-09-23 Thread Daniel Fuchs
Hi, On 21/09/2019 00:28, Hohensee, Paul wrote: java.lang.management.ThreadMXBean has two default methods that throw UnsupportedOperationException: ThreadInfo[] getThreadInfo(long[], boolean, boolean, int) ThreadInfo[] dumpAllThreads(boolean, boolean, int) Without actually testing it, is it sa

Re: RFR: JDK-6515161 If remote removeNotificationListener gets SecurityException, client no longer gets notifications

2017-05-07 Thread Daniel Fuchs
Hi Ujwal, For consistency I think the new getListenerIds method should: a) either return an array of Integer, even if it contains only 1 Integer: 1. The name of the method implies that an array is returned 2. You will need the array when you call connection.removeNotificationListeners

Re: RFR: JDK-6515161 If remote removeNotificationListener gets SecurityException, client no longer gets notifications

2017-05-08 Thread Daniel Fuchs
/jdk9/docs/api/javax/management/remote/rmi/RMIConnection.html#removeNotificationListeners-javax.management.ObjectName-java.lang.Integer:A-javax.security.auth.Subject- Thanks, Ujwal On 5/8/2017 12:03 PM, Daniel Fuchs wrote: Hi Ujwal, For consistency I think the new getListenerIds method should:

Re: RFR: JDK-6515161 If remote removeNotificationListener gets SecurityException, client no longer gets notifications

2017-05-08 Thread Daniel Fuchs
lly have a strong opinion on this and am okay with either names. -Harsha On Monday 08 May 2017 03:16 PM, Daniel Fuchs wrote: On 08/05/2017 09:45, Ujwal Vangapally wrote: Thanks for the Review Daniel, Harsha Please find the new webrev incorporating the review comments webrev : http://cr.openjdk.j

Re: RFR: JDK-6515161 If remote removeNotificationListener gets SecurityException, client no longer gets notifications

2017-05-09 Thread Daniel Fuchs
+1 Thanks Ujwal! -- daniel On 09/05/17 06:38, Ujwal Vangapally wrote: Hi Harsha, Daniel, updated method names as getListenerIds/getListenerId webrev : http://cr.openjdk.java.net/~uvangapally/webrev/2017/6515161/webrev.02/ On 5/8/2017 9:57 PM, Daniel Fuchs wrote: Hi Harsha, Well, I

Re: RFR : (JDK9) JDK-8179700 : Exceptions thrown in StartManagementAgent.java

2017-05-16 Thread Daniel Fuchs
Hi Amit, Can you point to the changeset (or the reason) which caused the exception to change? I'd like to make sure we don't have some regression lurking here... best regards, -- daniel On 16/05/2017 09:45, Amit Sapre wrote: Hello, Please review this trivial fix to StartManagementAgent tes

Re: RFR: JDK-8173180 VirtualMachine.startLocalManagementAgent() returns URI with unreliable IP address

2017-06-19 Thread Daniel Fuchs
Hi, If I'm not mistaken then this will make it impossible for earlier release to interoperate with newer releases as the LocalRMIClientSocketFactory class will not be present the client tries to deserialize the stub. best regards, -- daniel On 19/06/2017 11:52, Ujwal Vangapally wrote: Hi, Ki

Re: RFR: JDK-8173180 VirtualMachine.startLocalManagementAgent() returns URI with unreliable IP address

2017-06-20 Thread Daniel Fuchs
ter for out-of-jvm clients. I don't see how introducing this fix can cause new interoperability problems. Can you please elaborate? -Harsha On Monday 19 June 2017 10:23 PM, Daniel Fuchs wrote: Hi, If I'm not mistaken then this will make it impossible for earlier release to interop

Re: RFR: JDK-8173180 VirtualMachine.startLocalManagementAgent() returns URI with unreliable IP address

2017-06-20 Thread Daniel Fuchs
Thanks, Ujwal. On 6/20/2017 2:40 PM, Daniel Fuchs wrote: Hi Harsha, Maybe I'm missing something. How is the local agent started? If it's started when you connect jconsole to a process by specifying the process ID - then I suspect this will prevent e.g. jconsole or jvisualvm

Re: RFR : 8182485 - JMX connections should have configurable ObjectInputFilter

2017-06-20 Thread Daniel Fuchs
The fix looks good to me Harsha. best regards, -- daniel On 20/06/2017 07:10, Harsha Wardhana B wrote: Hi, Please review the below RFE, JDK-8182485 : JMX connections should have configurable ObjectInputFilter having webrev at http://cr.openjdk.java.net/~hb/8182485/webrev.00/ The enhanceme

Re: RFR: JDK-8185003 JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument

2017-08-03 Thread Daniel Fuchs
Hi Mandy, On 03/08/17 21:04, Mandy Chung wrote: Adding a public method to an interface is an incompatible source change unless there is a default body. On the other hand I am not sure how MXBean proxies will work when proxying an interface containing a default body. It would be interesting to

Re: RFR: JDK-8185003 JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument

2017-08-08 Thread Daniel Fuchs
Thanks, Ujwal On 8/4/2017 5:42 AM, Mandy Chung wrote: On Aug 3, 2017, at 2:10 PM, Daniel Fuchs wrote: Hi Mandy, On 03/08/17 21:04, Mandy Chung wrote: Adding a public method to an interface is an incompatible source change unless there is a default body. On the other hand I am not sure how

Re: RFR: JDK-8185003 JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument

2017-08-08 Thread Daniel Fuchs
y(connection, name, I.class).m() is actually what is returned by M.m(), not what is returned by I.m(). This means that you can evolve MBean interfaces by adding methods to them as long as you provide a default body (which is rather cool :-)) best regards, -- daniel Mandy On 8/8/17 2:22 AM, Dan

Re: RFR: JDK-8185003 JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument

2017-08-11 Thread Daniel Fuchs
Hi Ujwal, The java part looks good to me. ThreadMXBean.java: 775 * @implSpec if not implemented, the method will throw 776 * an UnsupportedOperationException. and 862 * @implSpec if not implemented, the method will throw 863 * an UnsupportedOperationException. I wonde

Re: [10] RFR(M) 8182701: Modify JVMCI to allow Graal Compiler to expose platform MBean

2017-09-13 Thread Daniel Fuchs
Hi Jaroslav, GraalMBeans.java: 77 @Override 78 public Set mbeanInterfaceNames() { 79 return Collections.singleton(name); 80 } This is not correct. The return set should be a set of MXBean interface names, as in Class.getName(), not a set of MXBean Obj

Re: RFE Review : JDK-5016517 - Replace plaintext passwords by hashed passwords for out-of-the-box JMX Agent

2017-10-06 Thread Daniel Fuchs
Hi Harsha, Good work! > http://cr.openjdk.java.net/~hb/5016517/webrev.03/ long standing typo in management.properties at line 90: measureRole => monitorRole HashedPasswordManager.java: loadPasswords() It seems this function will add the header to the file even if it already contains the he

Re: RFE Review : JDK-5016517 - Replace plaintext passwords by hashed passwords for out-of-the-box JMX Agent

2017-10-11 Thread Daniel Fuchs
09/10/2017 06:34, Harsha Wardhana B wrote: Hi Daniel, Below is the webrev addressing the review comments. http://cr.openjdk.java.net/~hb/5016517/webrev.04/ On Friday 06 October 2017 03:38 PM, Daniel Fuchs wrote: Hi Harsha, Good work! > http://cr.openjdk.java.net/~hb/5016517/webrev.03/ l

Re: [8u] RFR for backport of JDK-8177721: Improve diagnostics in sun.management.Agent#startAgent()

2017-10-25 Thread Daniel Fuchs
Hi Shafi, If I compare your webrev [1] with the JDK 9 changeset [2] then this looks OK to me. best regards, -- daniel [1] http://cr.openjdk.java.net/~shshahma/8177721/jdk8u/webrev.00/ [2] http://hg.openjdk.java.net/jdk10/jdk10/jdk/rev/9c9b8a48cd4a On 25/10/2017 09:11, Shafi Ahmad wrote: Hi,

Re: RFE Review : JDK-5016517 - Replace plaintext passwords by hashed passwords for out-of-the-box JMX Agent

2017-11-01 Thread Daniel Fuchs
On 31/10/2017 17:07, mandy chung wrote: On 10/31/17 8:55 AM, Harsha Wardhana B wrote: Hi Mandy, Below is the new webrev incorporating below review comments. http://cr.openjdk.java.net/~hb/5016517/webrev.06/ Looks okay in general except this: 286 // Check if header needs to be ins

Re: RFE Review : JDK-5016517 - Replace plaintext passwords by hashed passwords for out-of-the-box JMX Agent

2017-11-07 Thread Daniel Fuchs
e webrev addressing Daniel and Mandy's comments. http://cr.openjdk.java.net/~hb/5016517/webrev.07/ -Harsha On Wednesday 01 November 2017 09:42 PM, Daniel Fuchs wrote: On 31/10/2017 17:07, mandy chung wrote: On 10/31/17 8:55 AM, Harsha Wardhana B wrote: Hi Mandy, Below is the new webrev

Re: RFR : JDK-8024352 - MBeanOperationInfo accepts any int value as "impact"

2017-11-09 Thread Daniel Fuchs
Hi Ujwal, Give that there are only 4 legal values to check then maybe you could check all of them in the test (and not simply 2). best regards, -- daniel On 08/11/2017 18:34, Ujwal Vangapally wrote: Thanks for the suggestions Roger, Mandy. below is webrev incorporating review comments. htt

Re: RFR : JDK-8024352 - MBeanOperationInfo accepts any int value as "impact"

2017-11-09 Thread Daniel Fuchs
On 09/11/2017 10:40, Ujwal Vangapally wrote: Thanks for the Review Daniel, made changes as suggested. webrev : http://cr.openjdk.java.net/~uvangapally/webrev/2017/8024352/webrev.03/ Looks good to me. -- daniel Ujwal.

Re: RFE Review : JDK-5016517 - Replace plaintext passwords by hashed passwords for out-of-the-box JMX Agent

2017-11-10 Thread Daniel Fuchs
Hi Harsha, On 10/11/2017 12:38, Harsha Wardhana B wrote: Hi, Please find the below webrev with the following changes. 1. All the reads/writes into the password file are synchronized w.r.t threads within the JVM and across multiple JVM processes. It is possible that some edits made to file wh

Re: RFR : JDK-8024352 - MBeanOperationInfo accepts any int value as "impact"

2017-11-15 Thread Daniel Fuchs
Hi Ujwal, Still looks good to me. best regards, -- daniel On 15/11/2017 13:18, Ujwal Vangapally wrote: kindly review the updated webrev including changes to MBeanInfoHashCodeNPETest.java webrev : http://cr.openjdk.java.net/~uvangapally/webrev/2017/8024352/webrev.05/ Thanks, Ujwal. On

Re: [TestBug] RFR : JDK-8192909 - Invalid username or password in HashedPasswordFileTest.java

2017-12-05 Thread Daniel Fuchs
Hi Harsha, Looks good. nit: 366 if(random.nextBoolean()) { 367 String[] tokens = line.split("\\s+"); 368 if ((tokens.length == 4 || tokens.length == 3)) { inverting the two if () (testing for the applicability of the line first) would

Re: [TestBug] RFR : JDK-8192909 - Invalid username or password in HashedPasswordFileTest.java

2017-12-05 Thread Daniel Fuchs
+1 -- daniel On 05/12/2017 12:04, Harsha Wardhana B wrote: Hi Daniel, On Tuesday 05 December 2017 03:42 PM, Daniel Fuchs wrote: Hi Harsha, Looks good. Thanks for the review. nit:  366 if(random.nextBoolean()) {  367 String[] tokens = line.split(&quo

Re: RFR JDK-8198253: ThreadInfo.from(CompositeData) assigning fields incorrectly in JDK 9

2018-02-16 Thread Daniel Fuchs
Hi Jeremy, I'm not sure I understand exactly what is going on there. I wonder if this has anything to do with an issue I noticed some time back when the jvisualvm for JDK 8 and JDK 9 were still out of sync: https://bugs.openjdk.java.net/browse/JDK-8167099 I stumbled on that because at the time I

Re: RFR JDK-8198253: ThreadInfo.from(CompositeData) assigning fields incorrectly in JDK 9

2018-02-26 Thread Daniel Fuchs
Hi Mandy, Nice to see this fixed. In ThreadInfoCompositeData::initV6CompositeType 425 if (name.equals(STACK_TRACE)) { 426 ot = new ArrayType<>(1, StackTraceElementCompositeData.v5CompositeType()); 427 } else if (name.equals(LO

Re: RFR JDK-8198253: ThreadInfo.from(CompositeData) assigning fields incorrectly in JDK 9

2018-02-28 Thread Daniel Fuchs
Hi Mandy, This looks very good. In the API documentation of ThreadInfo::from, below the table that lists the attributes of StackTraceElement, I wonder if the following text should be added for completeness: ```A CompositeData representing a MonitorInfo of version N must contain a lockedStackTr

Re: RFR JDK-8198253: ThreadInfo.from(CompositeData) assigning fields incorrectly in JDK 9

2018-02-28 Thread Daniel Fuchs
avoid the ambiguity. * The {@code "lockedStackFrame"} attribute in * {@link MonitorInfo#from(CompositeData) MonitorInfo}'s composite type * must represent {@code StackTraceElement} of the same version N. Looks fine! -- daniel Mandy On 2/28/18 3:07 AM, Dan

Re: [11] RFR: 8205653: test/jdk/sun/management/jmxremote/bootstrap/RmiRegistrySslTest.java and RmiSslBootstrapTest.sh fail with handshake_failure

2018-06-28 Thread Daniel Fuchs
[ccing serviceability-dev@openjdk.java.net] Hi Siba, This looks good to me - but I'm not a SSL expert. It would be good to get someone from the security team eyeball those changes (Xuelei? Brad?) I added serviceability-dev@openjdk.java.net in cc as this is where reviews for JMX/Monitoring chang

Re: RFR : JDK-8170299 - Debugger does not stop inside the low memory notifications code

2018-08-23 Thread Daniel Fuchs
Hi Harsha, On a high level point of view, I think the fix looks good. I like the use of CopyOnWriteArrayList and removeIf. IIUC there is a single instance of ServiceThread in the VM, so using a static single thread executor to call the listeners should preserve the order in which the notification

Re: RFR : JDK-8170299 - Debugger does not stop inside the low memory notifications code

2018-08-24 Thread Daniel Fuchs
Hi Harsha, On 23/08/2018 17:35, Daniel Fuchs wrote: So all in all - maybe this is worth fixing but better early in the release than late. I also wonder whether such a behavior change should deserve a release note (or a switch to revert to the old behavior - though I do hope that isn't nece

Re: RFR(S): 6977426: sun/tools tests can intermittently fail to find app's Java pid

2014-12-17 Thread Daniel Fuchs
efully leave time enough for the while loop to take two histograms. Simply adding the extra condition to keep looping until we have at least two should do the trick. best regards, and thanks again for taking care of 6977426! -- daniel // Katja On 12/17/2014 10:55 AM, Daniel Fuchs wrote: Hi Katja

Re: RFR(S): 6977426: sun/tools tests can intermittently fail to find app's Java pid

2014-12-17 Thread Daniel Fuchs
enough even for slower configurations. Good suggestion. I should have thought of that :-) The new webrev can be found here: http://cr.openjdk.java.net/~ykantser/6977426/webrev.02/ Thumbs up from me! cheers, -- daniel // Katja On 12/17/2014 12:33 PM, Daniel Fuchs wrote: On 17/12/14 12

Re: jmx-dev RFR: 8068774 CounterMonitorDeadlockTest.java timed out

2015-01-13 Thread Daniel Fuchs
On 13/01/15 10:28, shanliang wrote: Hi Please review this test bug fix Bug: https://bugs.openjdk.java.net/browse/JDK-8068774 Webrev: http://cr.openjdk.java.net/~sjiang/JDK-8068774/00/ Looks good Shanliang! best regards, -- daniel The problem must be here: 98 monitorProxy.start(); 99 100

Re: jmx-dev RFR: 8065213 Specify and implement PlatformMBeanProvider for looking for all platform MBeans

2015-01-28 Thread Daniel Fuchs
Hi Shanliang, This looks good. ManagementFactory.java: line 871: there's a stray debug trace that you probably forgot to remove: 871 System.out.println("\n\n= jsl adding: "+provider); lines 877-885: I believe it would improved readability if the content of the forEachOrd

Re: RFR: 8065213 Specify and implement PlatformMBeanProvider for looking for all platform MBeans

2015-01-29 Thread Daniel Fuchs
On 28/01/15 07:46, Mandy Chung wrote: com/sun/management/internal/PlatformMBeanProviderImpl.java line 43: does this mxbeanList have to be created lazily? Would it be better to make it a final field and create it at the constructor? Hi Mandy, I was the one to suggest the lazy initializa

Re: RFR 8071641: java/lang/management/ThreadMXBean/SynchronizationStatistics.java intermittently failed with NPE

2015-01-29 Thread Daniel Fuchs
Hi Jaroslav, The only thread state that this test is waiting on seems to be Thread.State.BLOCKED - which makes me wonder if you could add a method: String waitForBlockedState(Thread t) throws InterruptedException { long tid = lt.getId(); ThreadInfo ti; while ( (ti = mbean.getThreadInf

Re: RFR 8071641: java/lang/management/ThreadMXBean/SynchronizationStatistics.java intermittently failed with NPE

2015-01-29 Thread Daniel Fuchs
On 29/01/15 16:21, Jaroslav Bachorik wrote: On 29.1.2015 14:58, Daniel Fuchs wrote: Hi Jaroslav, The only thread state that this test is waiting on seems to be Thread.State.BLOCKED - which makes me wonder if you could add a method: String waitForBlockedState(Thread t) throws

Re: RFR: 8065213 Specify and implement PlatformMBeanProvider for looking for all platform MBeans

2015-01-30 Thread Daniel Fuchs
y to defer loading providers and may be better to follow up the performance side in the second phase (that I expect more changes to sun/management classes) You may want to consider using limited doPrivileged (that can be done in the second phase). OK, now they are final, I will add doPrivileged

Re: RFR: 8065213 Specify and implement PlatformMBeanProvider for looking for all platform MBeans

2015-01-30 Thread Daniel Fuchs
On 30/01/15 20:05, Jaroslav Bachorik wrote: On 30.1.2015 19:52, Daniel Fuchs wrote: Hi Jaroslav, On 30/01/15 19:40, Jaroslav Bachorik wrote: Hi, On 30.1.2015 18:38, shanliang wrote: Hi, Thanks for all your comments, here is the new version: http://cr.openjdk.java.net/~sjiang/JDK

Re: jmx-dev RFR: 8065213 Specify and implement PlatformMBeanProvider for looking for all platform MBeans

2015-02-03 Thread Daniel Fuchs
Looks good to me Shanliang. -- daniel On 03/02/15 14:16, shanliang wrote: Hi, Hope this is last time :) http://cr.openjdk.java.net/~sjiang/JDK-8065213/02/ 1) Mandy Chung wrote: You may want to consider using limited doPrivileged (that can be done in the second phase). Done as in Managem

Re: 8072856: Eliminate ProcessTools.getProcessId dependency on sun.management.VMManagement

2015-02-11 Thread Daniel Fuchs
Looks good to me too. JEP 102 Process Updates will provide an easier way to get the current process PID but we don't have that yet :-) best regards, -- daniel On 11/02/15 17:42, Yekaterina Kantserova wrote: Hi, Could I please have a review of this small fix. bug: https://bugs.openjdk.java.n

Re: Review Request: 8062750 Separate SNMP messages from sun.management.resources.agent

2015-02-19 Thread Daniel Fuchs
Looks good Mandy! -- daniel On 19/02/15 20:01, Mandy Chung wrote: This removes the SNMP messages from the sun.management.resources.agent resource bundle: http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8062750/webrev.00/ thanks Mandy

Re: jmx-dev RFR: 8073148 "The server has decided to close this client connection" repeated continuously

2015-03-05 Thread Daniel Fuchs
Looks good to me too Shanliang. -- daniel On 04/03/15 19:41, Jaroslav Bachorik wrote: Hi Shanliang, This looks fine. I have few minor nits: * ClientNotifForwarder.java#544 - Should read "Received" instead of "Receives" * copyright year updates to both of files No need to re-review. -JB- O

Re: RFR 6712222: 6712222: Race condition in java/lang/management/ThreadMXBean/AllThreadIds.java

2015-03-06 Thread Daniel Fuchs
Hi Jaroslav, Looks reasonable to me. Not sure why you replaced Barrier with Semaphore but I don't really mind. best regards, -- daniel On 06/03/15 17:08, Jaroslav Bachorik wrote: Please, review the following test change Issue : https://bugs.openjdk.java.net/browse/JDK-671 Webrev: http://

Re: RFR 8042901: Allow com.sun.management to be in a different module to java.lang.management

2015-04-01 Thread Daniel Fuchs
Hi Shanliang, Impressive work! I know how long it took you and how much effort went into this! This does look good. One minor remark is that it might have been good to have a simple mechanical rule to transform the name of the MBean concrete implementation from the java.management module to the

Re: [ping] Re: RFR 8077327: ThreadStackTrace.java throws exception: BlockedThread expected to have BLOCKED but got RUNNABLE

2015-04-14 Thread Daniel Fuchs
Hi Jaroslav, Shouldn't you also wait for the blockedThread to be blocked on lockA at around line 252? (I mean - using Utils.waitForThreadState(blockedThread, State.BLOCKED)) best regards, -- daniel On 4/13/15 10:07 AM, Jaroslav Bachorik wrote: On 9.4.2015 20:11, Jaroslav Bachorik wrote: Plea

Re: [ping] Re: RFR 8077327: ThreadStackTrace.java throws exception: BlockedThread expected to have BLOCKED but got RUNNABLE

2015-04-14 Thread Daniel Fuchs
On 14/04/15 11:28, Jaroslav Bachorik wrote: Hi Daniel, On 14.4.2015 09:38, Daniel Fuchs wrote: Hi Jaroslav, Shouldn't you also wait for the blockedThread to be blocked on lockA at around line 252? (I mean - using Utils.waitForThreadState(blockedThread, State.BLOCKED)) Yes, nice

Re: RFR 8041565: JMX ObjectName could be refactored to save memory

2015-04-14 Thread Daniel Fuchs
Hi Jaroslav, I like this change, but it does introduce an incompatibility, so it probably needs a CCC and some release notes. For instance, this test passes with the current version of ObjectName: public class StringLengthTest { final static int smax = Short.MAX_VALUE; final static int

Re: RFR 8041565: JMX ObjectName could be refactored to save memory

2015-04-14 Thread Daniel Fuchs
On 14/04/15 14:56, Daniel Fuchs wrote: With that in mind I believe you should consider throwing InternalError - or IllegalArgumentException - instead of using 'assert' statements. Actually - MalformedObjectNameException would be more appropriate. Stupid me. -- daniel

Re: JDK 9 RFR of JDK-8077923: Add missing doclint in javax.management

2015-04-16 Thread Daniel Fuchs
Hi Joe, Looks good to me! +1 for doclint :-) best regards, -- daniel On 4/16/15 4:47 AM, joe darcy wrote: Hello, While trying to turn on doclint checking in the build on more modules, it came to my attention that various parts of the javax.management package are missing javadoc. Please re

Re: JDK 9 RFR of JDK-8078334: Mark regression tests using randomness

2015-04-22 Thread Daniel Fuchs
On 22/04/15 04:13, Joseph D. Darcy wrote: One goal of marking the tests using randomness is to help root out some remaining intermittent test failures. If one of the randomness tests is observed to fail intermittently, if it has not already been updated to print out the random seed and be able to

Re: RFR 8080663: Use sun.misc.SharedSecrets to allow access from java.management to @ConstructorProperties

2015-05-19 Thread Daniel Fuchs
On 19/05/15 15:39, Jaroslav Bachorik wrote: Please, review the following change Issue : https://bugs.openjdk.java.net/browse/JDK-8080663 Webrev: http://cr.openjdk.java.net/~jbachorik/8080663/webrev.00 The title says it all. This enhancement is about replacing the arbitrary reflection based code

Re: RFR 8129215: com.sun.jmx.mbeanserver.Introspector may provide results inconsistent with the JavaBeans Introspector

2015-06-18 Thread Daniel Fuchs
Hi Jaroslav, I haven't looked at the code, but if I understand well, that would be a spec change. Attribute names are case sensitive in JMX. getFoo() => attribute named "Foo" getfoo() => attribute named "foo" Are you proposing to change that? best regards, -- daniel On 18/06/15 18:39, Jar

Re: RFR 8129215: com.sun.jmx.mbeanserver.Introspector may provide results inconsistent with the JavaBeans Introspector

2015-06-18 Thread Daniel Fuchs
On 6/18/15 7:16 PM, Jaroslav Bachorik wrote: On 18.6.2015 18:47, Daniel Fuchs wrote: Hi Jaroslav, I haven't looked at the code, but if I understand well, that would be a spec change. Attribute names are case sensitive in JMX. getFoo() => attribute named "Foo" getfoo() =

Re: RFR 8129215: com.sun.jmx.mbeanserver.Introspector may provide results inconsistent with the JavaBeans Introspector

2015-06-19 Thread Daniel Fuchs
Hi guys, I believe there's a difference between Attribute names, and navigation into complex attributes. At the MBean level attribute names are case sensitive. At Attribute level (= within an attribute) I believe it follows the Bean patterns (like for instance the mapping of complex MXBean attri

Re: RFR (xs) 8132003: Update javax/management regression test for Verona (versioning)

2015-07-21 Thread Daniel Fuchs
Hi Iris, This looks reasonable to me. best regards, -- daniel On 21/07/15 07:30, Iris Clark wrote: Hi. Please review changes to resolve the following bug: 8132003: Update javax/management regression test for Verona (versioning) Bug: https://bugs.openjdk.java.net/browse/JDK-8132003 The regr

Re: [PING] Re: RFR 8129215: com.sun.jmx.mbeanserver.Introspector may provide results inconsistent with the JavaBeans Introspector

2015-07-31 Thread Daniel Fuchs
, Jaroslav Bachorik wrote: On 19.6.2015 18:20, Jaroslav Bachorik wrote: On 19.6.2015 15:50, Daniel Fuchs wrote: Hi guys, I believe there's a difference between Attribute names, and navigation into complex attributes. At the MBean level attribute names are case sensitive. At Attribute l

Re: RFR 8041565: JMX ObjectName could be refactored to save memory

2015-08-04 Thread Daniel Fuchs
roslav Bachorik wrote: On 14.4.2015 14:56, Daniel Fuchs wrote: Hi Jaroslav, I like this change, but it does introduce an incompatibility, so it probably needs a CCC and some release notes. For instance, this test passes with the current version of ObjectName: public class StringLengthTest {

Re: RFR 8041565: JMX ObjectName could be refactored to save memory

2015-08-13 Thread Daniel Fuchs
Jaroslav Bachorik : Eamonn, Daniel, thanks for the comments. I've updated the webrev to address them. Also, I've added a test to exercise the boolean flag en-/decoding in ObjectName. http://cr.openjdk.java.net/~jbachorik/8041565/webrev.03 Cheers, -JB- On 4.8.2015 23:02, Daniel

Re: RFR 7199353: Allow ConstructorProperties annotation from any package

2015-10-08 Thread Daniel Fuchs
Hi Jaroslav, I'll look at the code in more details, but doesn't your webrev miss some modifications to modules.xml? oh - I see you have module-info.java - are you planning to push that in jake repo first then? best regards, -- daniel On 08/10/15 13:49, Jaroslav Bachorik wrote: Please, review

Re: RFR 7199353: Allow ConstructorProperties annotation from any package

2015-10-08 Thread Daniel Fuchs
Hi Jaroslav, 1. I think it would be good to change the synopsis of the issue to match what the proposed change does. It seems to me that something like: Add a new javax.management.annotation.ConstructorProperties annotation would be a better description. 2. I agree with Alan th

Re: RFR 7199353: Allow ConstructorProperties annotation from any package

2015-10-09 Thread Daniel Fuchs
On 09/10/15 14:30, Jaroslav Bachorik wrote: Would it be possible for javac to recognise a class is an MXBean and turn-on -parameters for such classes only by default? Too hacky? Definitely :) Hacky as heck :) I agree with Jaroslav. FWIW - The @CP is not used for the MXBean itself, but for th

Re: RFR 7199353: Allow ConstructorProperties annotation from any package

2015-10-14 Thread Daniel Fuchs
Hi Jaroslav, This looks good to me. I wonder if @bug 7199353 should be added to some of the existing tests too, given that you modified them to use the new annotation. best regards, -- daniel On 14/10/15 11:36, Jaroslav Bachorik wrote: On 8.10.2015 13:49, Jaroslav Bachorik wrote: Please, rev

Re: jmx-dev RFR 8139870: sun.management.LazyCompositeData.isTypeMatched() fails for composite types with items of ArrayType

2015-10-19 Thread Daniel Fuchs
Hi Jaroslav, This - and the cleanup - look good to me, but it would be nicer if it was accompanied by a unit test :-) best regards, -- daniel On 19/10/15 13:37, Jaroslav Bachorik wrote: Please, review the following change Issue : https://bugs.openjdk.java.net/browse/JDK-8139870 Webrev: http:

Re: jmx-dev RFR 8139870: sun.management.LazyCompositeData.isTypeMatched() fails for composite types with items of ArrayType

2015-10-19 Thread Daniel Fuchs
On 19/10/15 15:36, Jaroslav Bachorik wrote: On 19.10.2015 14:40, Daniel Fuchs wrote: Hi Jaroslav, This - and the cleanup - look good to me, but it would be nicer if it was accompanied by a unit test :-) This time with test - http://cr.openjdk.java.net/~jbachorik/8139870/webrev.01 Thanks

Re: jmx-dev RFR 8139870: sun.management.LazyCompositeData.isTypeMatched() fails for composite types with items of ArrayType

2015-10-20 Thread Daniel Fuchs
On 10/20/15 10:00 AM, Jaroslav Bachorik wrote: Ran JCK, just to be sure. It did pass, as expected (I am changing the internal sun.management implementation and not a Java SE API, afterall). Thanks Jaroslav! Looks good to me then :-) -- daniel

Re: jmx-dev RFR 6425769: jmx remote bind address

2015-11-02 Thread Daniel Fuchs
Hi Severin, Adding serviceability-dev@openjdk.java.net into the loop - that's a better alias than hotspot-dev for this kind of changes - maybe someone from serviceability-dev will offer to sponsor :-) I will let serviceability team members comment on the hotspot changes. ConnectorBootstrap.java

Re: RFR: 8143121: javax/management/remote/mandatory/loading/MethodResultTest.java fails intermittently

2015-11-23 Thread Daniel Fuchs
Hi Alexander, This looks a bit dangerous to me - it could create a busy loop if for some reason the connection can never go through. I would suggest retrying only once (or retrying a fixed number of times) - and possibly introducing a small delay (Thread.sleep) before retrying. best regards, -

Re: RFR: 8143121: javax/management/remote/mandatory/loading/MethodResultTest.java fails intermittently

2015-11-23 Thread Daniel Fuchs
Hi Alexander, Looks good to me :-) I like the: System.out.println("Connection error. Retrying after delay..."); which will help diagnose if something more serious is causing this failure: if we see 100th of them then I guess it will mean that the test needs further debugging to get at the conn

  1   2   3   4   >