Re: RFR (XS): 8147079: Add serviceability/logging folder to hotspot_serviceability test group

2016-01-14 Thread Marcus Larsson
Great, thanks for reviewing Jaroslav and Serguei! Marcus On 01/14/2016 08:07 PM, serguei.spit...@oracle.com wrote: +1 Ship it! Thanks, Serguei On 1/14/16 07:18, Jaroslav Bachorik wrote: Ship it! -JB- On 14.1.2016 16:09, Marcus Larsson wrote: Hi, Please review the following patch to add t

Re: RFR: 8146879: Truncate new UL log files

2016-01-14 Thread Marcus Larsson
On 01/14/2016 04:28 PM, Dmitry Samersoff wrote: Marcus, fopen(name, "wa+") truncate file before open it in append mode. Ah, didn't know you could do that. If it works that would be much better, I'll give it a shot. Thanks, Marcus -Dmitry On 2016-01-14 18:00, Marcus Larsson wrote: Hi,

Re: RFR[9u-dev] 8130425: libjvm crash due to stack overflow in executables with 32k tbss/tdata

2016-01-14 Thread David Holmes
On 15/01/2016 4:59 AM, Martin Buchholz wrote: The process grim reaper ends up being the first point of failure since it tries not to waste the user's memory and it's in a core library, but in principle it's not special. I think a more general workaround would be to add a hotspot flag that would

Re: RFR: JDK-8147388: Add diagnostic commands to attach JVMTI agent.

2016-01-14 Thread David Holmes
Hi Yasumasa, An enhancement like this requires new tests to go with it. Thanks, David On 15/01/2016 12:00 AM, Yasumasa Suenaga wrote: > Hi all, > > We can use Attach API to attach JVMTI agent to live process. > However, we have to write Java code for it. > > If we can attach JVMTI agents throu

Re: RFR: JDK-8147388: Add diagnostic commands to attach JVMTI agent.

2016-01-14 Thread Yasumasa Suenaga
Hi Dmitry, > Otherwise looks good for me (I'll sponsor the push). Thanks! > 1. It's better to check _libpath.value() and write a message, that the > parameter is required. I set true to 4th argument (mandatory) of DCmdArgument c'tor. If we execute jcmd without libpath, we get message as below:

Re: RFR: 8146879: Truncate new UL log files

2016-01-14 Thread Kim Barrett
On Jan 14, 2016, at 10:00 AM, Marcus Larsson wrote: > > Hi, > > Please review the following patch to make sure UL truncates existing log > files before writing to them. Since files are opened in append mode, > truncation isn't done automatically, so instead the patch adds an attempt to > remo

Re: RFR: 8146879: Truncate new UL log files

2016-01-14 Thread ecki
Hello, Especially for the GC log it is bad if the file is lost after a restart. It is of course possible to include PID or timestamp into the logfile, and then the truncation is no option, however if you do that you have to do your own purging. If you just want a number of generations with a fi

Re: RFR (XS): 8147079: Add serviceability/logging folder to hotspot_serviceability test group

2016-01-14 Thread serguei.spit...@oracle.com
+1 Ship it! Thanks, Serguei On 1/14/16 07:18, Jaroslav Bachorik wrote: Ship it! -JB- On 14.1.2016 16:09, Marcus Larsson wrote: Hi, Please review the following patch to add the serviceability/logging folder to the hotspot_serviceability test group. This will include the UL tests for JPRT run

Re: RFR[9u-dev] 8130425: libjvm crash due to stack overflow in executables with 32k tbss/tdata

2016-01-14 Thread Martin Buchholz
The process grim reaper ends up being the first point of failure since it tries not to waste the user's memory and it's in a core library, but in principle it's not special. I think a more general workaround would be to add a hotspot flag that would add a memory safety zone to all threads. If it'

[PING]Re: Unexpected ArithmeticException at sun.jvm.hotspot.utilities.CompactHashTable

2016-01-14 Thread KUBOTA Yuji
Hi all, Could you please review this patch? Thanks, Yuji 2015-12-18 15:27 GMT+09:00 KUBOTA Yuji : > Hi all, > > I caught an unexpected java.lang.ArithmeticException by CLHSDB through > jhsdb as below. > > - > ./jhsdb clhsdb --pid 16809 > Attaching to process 16809, please wait... > hsdb> cla

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Mandy Chung
> On Jan 14, 2016, at 1:51 AM, Dmitry Samersoff > wrote: > > David, > >> Is this because the management API's are actually split across >> the base module (java.lang.management) and the jdk.management module? >> If so that seem messy. If not then I'm not understanding the issue. > > Yes. Exac

Re: jmx-dev [ding] Re: [pong] Re: [ping] Re: RFR 8146015: JMXInterfaceBindingTest is failing intermittently for IPv6 addresses

2016-01-14 Thread Severin Gehwolf
Hi, On Wed, 2016-01-13 at 10:51 -0800, serguei.spit...@oracle.com wrote: > On 1/13/16 03:16, Jaroslav Bachorik wrote: > > On 12.1.2016 12:55, serguei.spit...@oracle.com wrote: > > > On 1/12/16 03:49, Jaroslav Bachorik wrote: > > > > On 12.1.2016 11:47, serguei.spit...@oracle.com wrote: > > > > > O

Re: RFR: 8146879: Truncate new UL log files

2016-01-14 Thread Dmitry Samersoff
Marcus, fopen(name, "wa+") truncate file before open it in append mode. -Dmitry On 2016-01-14 18:00, Marcus Larsson wrote: > Hi, > > Please review the following patch to make sure UL truncates existing log > files before writing to them. Since files are opened in append mode, > truncation isn't

Re: RFR (XS): 8147079: Add serviceability/logging folder to hotspot_serviceability test group

2016-01-14 Thread Jaroslav Bachorik
Ship it! -JB- On 14.1.2016 16:09, Marcus Larsson wrote: Hi, Please review the following patch to add the serviceability/logging folder to the hotspot_serviceability test group. This will include the UL tests for JPRT runs. Webrev: http://cr.openjdk.java.net/~mlarsson/8147079/webrev.00/ Issue

RFR (XS): 8147079: Add serviceability/logging folder to hotspot_serviceability test group

2016-01-14 Thread Marcus Larsson
Hi, Please review the following patch to add the serviceability/logging folder to the hotspot_serviceability test group. This will include the UL tests for JPRT runs. Webrev: http://cr.openjdk.java.net/~mlarsson/8147079/webrev.00/ Issue: https://bugs.openjdk.java.net/browse/JDK-8147079 Test

Re: RFR: JDK-8147388: Add diagnostic commands to attach JVMTI agent.

2016-01-14 Thread Dmitry Samersoff
Yasumasa, diagnosticCommand.cpp:294 1. It's better to check _libpath.value() and write a message, that the parameter is required. 2. It might be better to avoid malloc here by pre-calcualting length of required option length and than declare char *new_options[new_options_len]; Otherwise looks

RFR: 8146879: Truncate new UL log files

2016-01-14 Thread Marcus Larsson
Hi, Please review the following patch to make sure UL truncates existing log files before writing to them. Since files are opened in append mode, truncation isn't done automatically, so instead the patch adds an attempt to remove the log file before opening it. Webrev: http://cr.openjdk.java

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Dmitry Samersoff
Daniel, > OK. What of the sun.* implementation classes in java.management? > Should these be REQUIRED as well? java.management module might be missing. It's the main goal to the fix - provide a way to handle missing java.management module on VM level. i.e. if java.lang.management is missing, VM

RFR: JDK-8147388: Add diagnostic commands to attach JVMTI agent.

2016-01-14 Thread Yasumasa Suenaga
Hi all, We can use Attach API to attach JVMTI agent to live process. However, we have to write Java code for it. If we can attach JVMTI agents through jcmd, it is very useful. So I want to add two new diagnostic commands: * JVMTI.agent_load: Load JVMTI native agent. * JVMTI.javaagent_load: Loa

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Alan Bateman
On 14/01/2016 12:06, David Holmes wrote: Of course, but I'm having trouble seeing the overall architecture of the solution or understanding how the problem manifests. Is it just VM initialization that assumes classes are always present? I haven't looked at what Dmitry is doing but I think par

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Daniel Fuchs
Hi Dmitry, On 14/01/16 13:31, Dmitry Samersoff wrote: Daniel, What strategy did you use to decide whether to use OPTIONAL | REQUIRED? I'm not sure I understand the logic... Everything in java.lang.management should be REQUIRED, anything outside of it - OPTIONAL. java_lang_management_MemoryU

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Dmitry Samersoff
Daniel, > What strategy did you use to decide whether > to use OPTIONAL | REQUIRED? > I'm not sure I understand the logic... Everything in java.lang.management should be REQUIRED, anything outside of it - OPTIONAL. java_lang_management_MemoryUsage_klass should be required, it's just a typeo. -D

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread David Holmes
On 14/01/2016 8:46 PM, Alan Bateman wrote: On 14/01/2016 04:06, David Holmes wrote: Is this because the management API's are actually split across the base module (java.lang.management) and the jdk.management module? If so that seem messy. If not then I'm not understanding the issue. The two

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Daniel Fuchs
Hi Dmitry, First an observation: - java.lang.management and sun.management packages are part of the java.management module. - com.sun.management and com.sun.management.internal are part of jdk.management What strategy did you use to decide whether to use OPTIONAL | REQUIRED? I'm not sure I

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Alan Bateman
On 14/01/2016 04:06, David Holmes wrote: Is this because the management API's are actually split across the base module (java.lang.management) and the jdk.management module? If so that seem messy. If not then I'm not understanding the issue. The two management modules are: java.management

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread David Holmes
On 14/01/2016 7:51 PM, Dmitry Samersoff wrote: David, Is this because the management API's are actually split across the base module (java.lang.management) and the jdk.management module? If so that seem messy. If not then I'm not understanding the issue. Yes. Exactly. Moreover future managem

Re: RFR(S): JDK-8145698 Memory leak in add_lib_info_fd of libproc_impl.c:174

2016-01-14 Thread serguei.spit...@oracle.com
The fix looks good. However, it seems, there check at the lines 172 or 218 could be done before the call to the calloc(). In such a case, there would be no need to free the new_lib. It can be like this: if (strlen(libname) >= BUF_SIZE - 1) { print_debug("libname %s too long\n", libname);

Re: RFR(S): JDK-8145698 Memory leak in add_lib_info_fd of libproc_impl.c:174

2016-01-14 Thread Jaroslav Bachorik
On 14.1.2016 10:47, Dmitry Samersoff wrote: Everybody, Please review the fix: http://cr.openjdk.java.net/~dsamersoff/JDK-8145698/webrev.01/ added missed free() call. Looks good! Thanks, -JB- -Dmitry

Re: RFR(M): JDK-8141070 vm/services/management.cpp should be resilient to missing 'jdk.management' module

2016-01-14 Thread Dmitry Samersoff
David, > Is this because the management API's are actually split across > the base module (java.lang.management) and the jdk.management module? > If so that seem messy. If not then I'm not understanding the issue. Yes. Exactly. Moreover future management functionality may require additional modu

RFR(S): JDK-8145698 Memory leak in add_lib_info_fd of libproc_impl.c:174

2016-01-14 Thread Dmitry Samersoff
Everybody, Please review the fix: http://cr.openjdk.java.net/~dsamersoff/JDK-8145698/webrev.01/ added missed free() call. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.

Re: RFR: JDK-8130063: Refactoring tmtools jstat and jstack tests to jtreg

2016-01-14 Thread Alexander Kulyakhtin
Hi Jaroslav, Thank you very much for the review. Best regards, Alexander - Original Message - From: jaroslav.bacho...@oracle.com To: alexander.kulyakh...@oracle.com, serviceability-dev@openjdk.java.net Cc: stefan.sa...@oracle.com, staffan.lar...@oracle.com Sent: Wednesday, January 13, 20