RFR: 8139430

2015-11-09 Thread Alexandre (Shura) Iline
Hi, This is one of the ways to fix 8139430: http://cr.openjdk.java.net/~shurailine/8139430/webrev.03 Could you please take a look on it? A few comments. The biggest dependency on java.management was in jdk.testlibrary.ProcessTools.getProcessId() method. I have changed the method to use the

Re: RFR: 8139430

2015-11-09 Thread Alexandre (Shura) Iline
Hi I have just realized that an NPE could also be possible in test/lib/testlibrary/jdk/testlibrary/Platform.java so it should be updated also: http://cr.openjdk.java.net/~shurailine/8139430/webrev.04/ Shura > On Nov 9, 2015, at 8:54 PM, Alexandre (Shura) Iline > wrote: > > Hi, > > This is o

Re: RFR: 8139430

2015-11-10 Thread Jaroslav Bachorik
Hi, On 9.11.2015 19:12, Alexandre (Shura) Iline wrote: Hi I have just realized that an NPE could also be possible in test/lib/testlibrary/jdk/testlibrary/Platform.java so it should be updated also: http://cr.openjdk.java.net/~shurailine/8139430/webrev.04/ As for the original (03) webrev - I

Re: RFR: 8139430

2015-11-10 Thread Alexandre (Shura) Iline
> On Nov 10, 2015, at 9:04 PM, Mandy Chung wrote: > > Hi Shura, > > Thanks for doing it and it’s good to see the unnecessary dependency to > java.management eliminated. > > The new jdk.testlibrary.management package name is fine. It’s okay to keep > the class name InputArguments as Jaroslav

Re: RFR: 8139430

2015-11-10 Thread Mandy Chung
> On Nov 10, 2015, at 10:11 AM, Alexandre (Shura) Iline > wrote: > >> >> On Nov 10, 2015, at 9:04 PM, Mandy Chung wrote: >> >> Hi Shura, >> >> Thanks for doing it and it’s good to see the unnecessary dependency to >> java.management eliminated. >> >> The new jdk.testlibrary.management pac

Re: RFR: 8139430

2015-11-10 Thread Mandy Chung
Hi Shura, Thanks for doing it and it’s good to see the unnecessary dependency to java.management eliminated. The new jdk.testlibrary.management package name is fine. It’s okay to keep the class name InputArguments as Jaroslav suggests and it’s easier to tell what this class is about. There i

Re: RFR: 8139430

2015-11-10 Thread Alan Bateman
On 09/11/2015 19:12, Alexandre (Shura) Iline wrote: Hi I have just realized that an NPE could also be possible in test/lib/testlibrary/jdk/testlibrary/Platform.java so it should be updated also: http://cr.openjdk.java.net/~shurailine/8139430/webrev.04/ Shura I skimmed through the webrev and

Re: RFR: 8139430

2015-11-10 Thread Mandy Chung
> On Nov 10, 2015, at 12:42 PM, Alan Bateman wrote: > > Would it break many tests if getProcessId were changed to return long to > match ProcessHandle::getPid? There are not small number of tests doing Integer.toString(ProcessTools.getProcessId())); Most of them are in hotspot and there a

Re: RFR: 8139430

2015-11-11 Thread Chris Hegarty
On 10 Nov 2015, at 12:21, Jaroslav Bachorik wrote: > Hi, > > On 9.11.2015 19:12, Alexandre (Shura) Iline wrote: >> Hi >> >> I have just realized that an NPE could also be possible in >> test/lib/testlibrary/jdk/testlibrary/Platform.java so it should be updated >> also: >> http://cr.openjdk.j

Re: RFR: 8139430

2015-11-11 Thread Alexandre (Shura) Iline
> On Nov 10, 2015, at 11:42 PM, Alan Bateman wrote: > > > > On 09/11/2015 19:12, Alexandre (Shura) Iline wrote: >> Hi >> >> I have just realized that an NPE could also be possible in >> test/lib/testlibrary/jdk/testlibrary/Platform.java so it should be updated >> also: >> http://cr.openjdk.

Re: RFR: 8139430

2015-11-11 Thread Alexandre (Shura) Iline
> On Nov 10, 2015, at 9:04 PM, Mandy Chung wrote: > > Hi Shura, > > Thanks for doing it and it’s good to see the unnecessary dependency to > java.management eliminated. > > The new jdk.testlibrary.management package name is fine. It’s okay to keep > the class name InputArguments as Jaroslav

Re: RFR: 8139430

2015-11-16 Thread Alexandre (Shura) Iline
V6: http://cr.openjdk.java.net/~shurailine/8139430/webrev.06/ Thank you. Shura > On Nov 11, 2015, at 7:41 PM, Alexandre (Shura) Iline > wrote: > > >> On Nov 10, 2015, at 11:42 PM, Alan Bateman wrote: >> >> >> >> On 09/11/2015 19:12, Alexandre (Shura) Iline wrote: >>> Hi >>> >>> I have j

Re: RFR: 8139430

2015-11-16 Thread Jaroslav Bachorik
On 16.11.2015 14:01, Alexandre (Shura) Iline wrote: V6: http://cr.openjdk.java.net/~shurailine/8139430/webrev.06/ Looks good! Thanks, -JB- Thank you. Shura On Nov 11, 2015, at 7:41 PM, Alexandre (Shura) Iline wrote: On Nov 10, 2015, at 11:42 PM, Alan Bateman wrote: On 09/11/20

Re: RFR: 8139430

2015-11-16 Thread Alan Bateman
On 16/11/2015 13:01, Alexandre (Shura) Iline wrote: V6: http://cr.openjdk.java.net/~shurailine/8139430/webrev.06/ This looks okay to me. For completeness then I assume the THreadMXBeanTool.waitUntilXXX methods should re-assert the interrupt status if interrupted when waiting. -Alan

Re: RFR: 8139430

2015-11-17 Thread Mandy Chung
> On Nov 16, 2015, at 5:38 AM, Alan Bateman wrote: > > > > On 16/11/2015 13:01, Alexandre (Shura) Iline wrote: >> V6: >> http://cr.openjdk.java.net/~shurailine/8139430/webrev.06/ >> >> > This looks okay to me. For completeness then I assume the > THreadMXBeanTool.waitUntilXXX methods should

Re: RFR: 8139430

2015-11-19 Thread Alexandre (Shura) Iline
Yes, sorry. Since the methods do not have any work to complete before interrupting and also methods are not used anywhere currently, I assume re-throwing the InterruptedException is a better choice. http://cr.openjdk.java.net/~shurailine/8139430/webrev.07/test/lib/testlibrary/jdk/testlibrary/ma

Re: RFR: 8139430

2015-11-19 Thread Alan Bateman
On 19/11/2015 16:40, Alexandre (Shura) Iline wrote: Yes, sorry. Since the methods do not have any work to complete before interrupting and also methods are not used anywhere currently, I assume re-throwing the InterruptedException is a better choice. http://cr.openjdk.java.net/~shurailine/8

Re: RFR: 8139430

2015-11-23 Thread Mandy Chung
Hi Shura, I have pushed the changeset to jdk9/dev. Mandy > On Nov 19, 2015, at 8:40 AM, Alexandre (Shura) Iline > wrote: > > Yes, sorry. > > Since the methods do not have any work to complete before interrupting and > also methods are not used anywhere currently, I assume re-throwing the >