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

2014-04-07 Thread Yekaterina Kantserova
Hi David, The tests start a couple of external processes and have a procedure of destroying them if something unexpected happens. But when JVM crashes in the middle of the execution this procedure is useless and processes are left on servers. It should be up to framework to do clean-up. Unfortu

Re: RFR: 8038296 sun/tools/jinfo/Basic.sh: java.io.IOException: Command failed in target VM

2014-04-07 Thread [email protected]
On 4/3/14 2:31 AM, Staffan Larsen wrote: Thanks Serguei, I don’t think it is necessary to initialize ‘end’ since strtol will always set it. Ok. I still need an official Reviewer for this change. I'm not an official reviewer yet. Thanks, Serguei Thanks, /Staffan On 28 mar 2014, at 0

Re: Should we get rid of libnpt.so ?

2014-04-07 Thread [email protected]
On 4/6/14 11:13 PM, Staffan Larsen wrote: Curious: What does NPT stand for? This is from Kelly: 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 and Java code can be called. Thanks,

Re: Testlibrary changes need their own changesets

2014-04-07 Thread Yekaterina Kantserova
Since the testlibrary exists even in the JDK part I would like to add the Serviceability and Corelibs teams to this discussion. Thanks, Katja - Original Message - From: [email protected] To: [email protected] Sent: Monday, April 7, 2014 3:50:14 AM GMT +01:00 Amsterdam

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread Jaroslav Bachorik
Hi, Sorry for the noise but I need to get the fix re-reviewed. Due to the way jtreg cooperates with TestNG when runnning in agentvm I can not use package private methods or constructor or fields. The updated patch - http://cr.openjdk.java.net/~jbachorik/8039080/webrev.01 - makes the JInfo co

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread Staffan Larsen
Looks good, but should we maybe have a comment in JInfo.java about the structure being needed for testing? Just looking at the code this is not obvious. /Staffan On 7 apr 2014, at 12:46, Jaroslav Bachorik wrote: > Hi, > > Sorry for the noise but I need to get the fix re-reviewed. > Due to th

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread shanliang
Jaroslav, Is it necessary to add "ValidationException"? Could we change the constructor JInfo to: private static boolean validateArgs(String[] args); the method returns false if the args are illegal, or throw an IllegalArgumentException and declare the variables "args" and "useSA" as stati

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread Jaroslav Bachorik
On 7.4.2014 14:10, shanliang wrote: Jaroslav, Is it necessary to add "ValidationException"? Well, for the implementation when the validation is performed at the moment a new instance of JInfo is being created it is necessary. Could we change the constructor JInfo to: private static bool

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread shanliang
shanliang wrote: Jaroslav, Is it necessary to add "ValidationException"? Could we change the constructor JInfo to: private static boolean validateArgs(String[] args); the method returns false if the args are illegal, or throw an IllegalArgumentException and declare the variables "args" an

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread Jaroslav Bachorik
On 7.4.2014 14:23, shanliang wrote: shanliang wrote: Jaroslav, Is it necessary to add "ValidationException"? Could we change the constructor JInfo to: private static boolean validateArgs(String[] args); the method returns false if the args are illegal, or throw an IllegalArgumentException

Re: RFR 8039080: "jinfo server_id@host" fails with "Invalid process identifier"

2014-04-07 Thread shanliang
Jaroslav Bachorik wrote: On 7.4.2014 14:10, shanliang wrote: Jaroslav, Is it necessary to add "ValidationException"? Well, for the implementation when the validation is performed at the moment a new instance of JInfo is being created it is necessary. Could not use an existing Exception? like I

RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Dmitry Samersoff
Hi Everybody, Please review the patch http://cr.openjdk.java.net/~dsamersoff/JDK-8038392/webrev.02/ it's based on the patch contributed by Carlos Santos (see CR) and all credentials belong to him. -Dmitry -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would lov

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Dmitry Samersoff
Carlos, I'd droppend changes in libproc_impl.c as it seems to be not related to prelink issue. PS: (from proposed patch) libproc_impl.c : + if (namelen >= sizeof(newlib->name)) { sizeof(newlib->name) is PATH_MAX + NAME_MAX Are you able to reproduce the issue with too long library name? if yes

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

2014-04-07 Thread Yekaterina Kantserova
Jaroslav, Staffan, thanks for the reviews! Jaroslav, could you please be my sponsor and apply the patch attached to this mail? Best regards, Katja On 04/04/2014 04:04 PM, Jaroslav Bachorik wrote: No more comments. -JB- # HG changeset patch # User ykantser # Date 1396880023 -7200 # Node

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Dmitry Samersoff
Carlos, I might be missing something. Sorry about that. Looking at openjdk7 code http://hg.openjdk.java.net/jdk7/hotspot/hotspot/file/9b0ca45cd756/agent/src/os/linux/libproc_impl.c newlib->base is unconditionally initialized at ll. 157 so if we move it after symtab initialization at ll. 181 it

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

2014-04-07 Thread Jaroslav Bachorik
On 7.4.2014 16:31, Yekaterina Kantserova wrote: Jaroslav, Staffan, thanks for the reviews! Jaroslav, could you please be my sponsor and apply the patch attached to this mail? Yep, will do that. -JB- Best regards, Katja On 04/04/2014 04:04 PM, Jaroslav Bachorik wrote: No more comments.

Re: Should we get rid of libnpt.so ?

2014-04-07 Thread Kelly O'Hair
Might have been native platform toolkit... ;) -kto On Apr 7, 2014, at 12:12 AM, [email protected] wrote: > On 4/6/14 11:13 PM, Staffan Larsen wrote: >> Curious: What does NPT stand for? > > This is from Kelly: > > > The original purpose of this library was to provide some generic nati

Re: Should we get rid of libnpt.so ?

2014-04-07 Thread Kelly O'Hair
Keep in mind that there are 3 sets of sources for npt, share/npt, solaris/npt and windows/npt it is quite platform specific, using iconv libraries on solaris/linux, and multi/wide byte strangeness on windows. So it wasn't just the functionality that drove it into it's own library, the implement

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Carlos Santos
- Original Message - > Hi Everybody, > > Please review the patch > > http://cr.openjdk.java.net/~dsamersoff/JDK-8038392/webrev.02/ The fix in agent/src/os/linux/libproc_impl.c contained in my original patch is missing. Was it included in a separate patch? Carlos Santos (casantos) Senio

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Carlos Santos
Dmitry, You are right. I got confused because a previous version of the patch incorrectly removed the assignment that existed in line 157, so I added it back later. Carlos Santos (casantos) Senior *Software* Maintenance Engineer (no, I'm not going to fix your roof) Red Hat, Inc - Original

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Carlos Santos
Dmitry, The main problem in libproc_impl.c is that newlib->base is left uninitialized. The check for the name length is just a safety measure. We can live without it but I'd prefer to avoid the risk. Carlos Santos (casantos) Senior *Software* Maintenance Engineer (no, I'm not going to fix your

Re: RFR(S): JDK-8038392 Generating prelink cache breaks JAVA 'jinfo' utility normal behavior

2014-04-07 Thread Dmitry Samersoff
Carlos, Are you OK with proposed changes? -Dmitry On 2014-04-07 20:17, Carlos Santos wrote: > Dmitry, > > You are right. I got confused because a previous version of the patch > incorrectly removed the assignment that existed in line 157, so I added it > back later. > > Carlos Santos (casant

Re: Should we get rid of libnpt.so ?

2014-04-07 Thread Dmitry Samersoff
Kelly, Thank you for the reminder. I'd checked it before posting this letter - platform specific code is used in two places: 1) in src/share/back/transport.c the use of utf-8 here is not consistent e.g. ll. 621 /* Construct complete command line (all in UTF-8) */ commandLine = jvmtiAlloc

Re: Should we get rid of libnpt.so ?

2014-04-07 Thread Kelly O'Hair
I thought the debugger backend too, you might check src/share/back, inside util.h and debugInit.h Grep for gdata->npt But I've been away from the code for a long time, so my knowledge might be dusty. -kto On Apr 7, 2014, at 10:05 AM, Dmitry Samersoff wrote: > Kelly, > > Thank you for the rem

RFR: 8033104 sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms

2014-04-07 Thread Staffan Larsen
The problem here is that the code for finding local VMs is not looking for the data in the correct place. When a JVM is started it will create the perf-data file in a user-specific directory inside /tmp (*). The code in the JDK (PerfDataFile.java) that lists all active JVMs looks for the user-

Re: RFR: 8033104 sun/jvmstat/monitor/MonitoredVm/CR6672135.java failing on all platforms

2014-04-07 Thread Staffan Larsen
And the links: bug: https://bugs.openjdk.java.net/browse/JDK-8033104 webrev: http://cr.openjdk.java.net/~sla/8033104/webrev.00/ Sorry about that, /Staffan On 7 apr 2014, at 20:08, Staffan Larsen wrote: > > The problem here is that the code for finding local VMs is not looking for > the data