Re: RFR: 8238561 serviceability/sa tests continue to run out of memory on Win* machines

2020-04-24 Thread Daniil Titov
Hi Leonid, I run the test with -XComp at Mach5 linux-x64-debug builds before and after the changes the forwards VM and test options to j-* tools and here is the difference in the execution times for some serviceability/sa tests: serviceability/sa/sadebugd/SADebugDTest.java, before : 2m 23s ,

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread Daniil Titov
Hi Chris and Serguei, Please review a new version of the fix [1] that makes the tests try to repeat the check only once. Regarding the question Serguei asked: > 97 while(true) { > 113 if (mbeanCount * 2 == counterCount || isSecondAttempt) { > 114 assertEqu

Re: RFR: JDK-8242522: Minor LingeredApp improvements

2020-04-24 Thread Chris Plummer
On 4/24/20 6:52 PM, Alex Menkov wrote: Hi Chris, On 04/24/2020 15:42, Chris Plummer wrote: Hi Alex, Overall it looks good, although I'm not so sure I agree with removing getAppOutput(). It's a generally useful utility API. Seems it is better off in LingeredApp.java rather than in the one tes

Re: RFR: JDK-8242522: Minor LingeredApp improvements

2020-04-24 Thread Alex Menkov
Hi Chris, On 04/24/2020 15:42, Chris Plummer wrote: Hi Alex, Overall it looks good, although I'm not so sure I agree with removing getAppOutput(). It's a generally useful utility API. Seems it is better off in LingeredApp.java rather than in the one test that currently uses it. To me the me

Re: RFR(S/T) : 8243568 : serviceability/logging/TestLogRotation.java uses 'test.java.opts' and not 'test.vm.opts'

2020-04-24 Thread Chris Plummer
Adding hotspot-runtime-dev since logging is owned by runtime, not serviceability. Chris On 4/24/20 3:41 PM, Leonid Mesnik wrote: Looks good. (Need a 'R'eview.) Leonid. On Apr 24, 2020, at 3:30 PM, Igor Ignatyev wrote: http://cr.openjdk.java.net/~iignatyev//8243568/webrev.00 8 lines chang

Re: RFR: JDK-8242522: Minor LingeredApp improvements

2020-04-24 Thread Chris Plummer
Hi Alex, Overall it looks good, although I'm not so sure I agree with removing getAppOutput(). It's a generally useful utility API. Seems it is better off in LingeredApp.java rather than in the one test that currently uses it. thanks, Chris On 4/24/20 3:17 PM, Alex Menkov wrote: Hi all, P

Re: RFR(S/T) : 8243568 : serviceability/logging/TestLogRotation.java uses 'test.java.opts' and not 'test.vm.opts'

2020-04-24 Thread Leonid Mesnik
Looks good. (Need a 'R'eview.) Leonid. > On Apr 24, 2020, at 3:30 PM, Igor Ignatyev wrote: > > http://cr.openjdk.java.net/~iignatyev//8243568/webrev.00 >> 8 lines changed: 0 ins; 6 del; 2 mod; > > Hi all, > > could you please review this small and trivial patch which updates > serviceabilit

Re: RFR: JDK-8242522: Minor LingeredApp improvements

2020-04-24 Thread Leonid Mesnik
Looks good. (Not a 'R'eview though.) Leonid. > On Apr 24, 2020, at 3:17 PM, Alex Menkov wrote: > > Hi all, > > Please review the fix for > https://bugs.openjdk.java.net/browse/JDK-8242522 > webrev: > http://cr.openjdk.java.net/~amenkov/jdk15/LingeredApp_improve/webrev/ > > The fix contains mi

RFR(S/T) : 8243568 : serviceability/logging/TestLogRotation.java uses 'test.java.opts' and not 'test.vm.opts'

2020-04-24 Thread Igor Ignatyev
http://cr.openjdk.java.net/~iignatyev//8243568/webrev.00 > 8 lines changed: 0 ins; 6 del; 2 mod; Hi all, could you please review this small and trivial patch which updates serviceability/logging/TestLogRotation.java test to pass both 'test.java.opts' and not 'test.vm.opts' ? to do that, the pa

Re: RFR (L): 8241807: JDWP needs update for hidden classes

2020-04-24 Thread serguei.spit...@oracle.com
events with class filters. Testing:   The mach5 job is in progress:     https://mach5.us.oracle.com/mdash/jobs/sspitsyn-HiddenClass-jdi-event-tests-20200424-0350-10464032 Thanks, Serguei

Re: RFR (S): 8242237: Improve JVM TI HiddenClasses tests

2020-04-24 Thread serguei.spit...@oracle.com
mments Testing:   Tested locally on Linux, mach5 test run is in progress:    https://mach5.us.oracle.com/mdash/jobs/sspitsyn-HiddenClass-jvmti-test-20200424-1829-10

RFR: JDK-8242522: Minor LingeredApp improvements

2020-04-24 Thread Alex Menkov
Hi all, Please review the fix for https://bugs.openjdk.java.net/browse/JDK-8242522 webrev: http://cr.openjdk.java.net/~amenkov/jdk15/LingeredApp_improve/webrev/ The fix contains minor fixes/improvements for LingeredApp and tests which use it. See jira for details. Tested all tests which use L

Re: RFR (S): 8242237: Improve JVM TI HiddenClasses tests

2020-04-24 Thread Leonid Mesnik
llBytes >- added ClassPrepare event >- removed unneeded capability can_get_source_file_name >- added more comments > > Testing: > Tested locally on Linux, mach5 test run is in progress: > > https://mach5.us.oracle.com/mdash/jobs/sspitsyn-HiddenClass-j

RE: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Reingruber, Richard
Hi Patricio, > > @Patricio, coming back to my question [1]: > > > > In the example you gave in your answer [2]: the java thread would execute a > > vm operation during a > > direct handshake operation, while the VMThread is actually in the middle of > > a VM_HandshakeAllThreads > > operation, wa

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread Daniil Titov
Hi Chris, I agree with you. I will change the test to retry just once. Thank you, Daniil From: Chris Plummer Date: Friday, April 24, 2020 at 1:27 PM To: Daniil Titov , "serguei.spit...@oracle.com" , serviceability-dev Subject: Re: RFR: 8242239: [Graal] javax/management/generifie

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread Chris Plummer
Hi Daniil, I think a retry count more in line with our current expectations would make more sense since it is deterministic how many retries are might actually be needed. You just used a large number in case more “lazy-registered” mbeans are added in the fu

Re: RFR (L): 8241807: JDWP needs update for hidden classes

2020-04-24 Thread Leonid Mesnik
vent   These tests are to provide a test coverage  which was impossible to provide with the jdb testing framework.   It includes ClassPrepare, Breakpoint and ModificationWatchpoint events with class filters. Testing:   The mach5 job is in progress: https://mach5.us.oracle.com/mdash/jobs/sspitsyn-HiddenClass-jdi-event-tests-20200424-0350-10464032 Thanks, Serguei

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread Daniil Titov
Hi Serguei and Chris, Thank you for your comments. I wanted to make the fix  more generic  and not limit it just to Graal management bean. In this case we could expect that after the first retry is triggered by Graal MBean registration some other “lazy-registered” MBean got registered an

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread serguei.spit...@oracle.com
Hi Daniil, Besides what Chris is pointed out the fix looks good. Minor: 97 while(true) { 113 if(mbeanCount * 2 == counterCount || retryCounter++ > MAX_RETRY_ATTEMPT) { 114 assertEquals(mbeanCount * 2, counterCo

RFR (S): 8242237: Improve JVM TI HiddenClasses tests

2020-04-24 Thread serguei.spit...@oracle.com
Tested locally on Linux, mach5 test run is in progress:    https://mach5.us.oracle.com/mdash/jobs/sspitsyn-HiddenClass-jvmti-test-20200424-1829-10485216 Thanks, Serguei

Re: RFR: 8242239: [Graal] javax/management/generified/GenericTest.java fails: FAILED: queryMBeans sets same

2020-04-24 Thread Chris Plummer
Hi Daniil,   84 // If new MBean (e.g. Graal MBean) is registred while the test is running names1,  106 // If new MBean (e.g. Graal MBean) is registred while the test is running mbeans1, registred -> registered ',' after "running" Just wondering how you chose 10 as the

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Patricio Chilano
Hi Richard, Just jumping into your last question for now.  : ) On 4/24/20 1:08 PM, Reingruber, Richard wrote: Hi Yasumasa, Patricio, I will send review request to replace VM_SetFramePop to handshake in early next week in JDK-8242427. Does it help you? I think it gives you to remove workarou

RE: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Reingruber, Richard
Hi Yasumasa, Patricio, > >> I will send review request to replace VM_SetFramePop to handshake in early > >> next week in JDK-8242427. > >> Does it help you? I think it gives you to remove workaround. > > > > I think it would not help that much. Note that when replacing > > VM_SetFramePop with a

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Yasumasa Suenaga
Hi Richard, On 2020/04/24 23:44, Reingruber, Richard wrote: Hi Yasumasa, I will send review request to replace VM_SetFramePop to handshake in early next week in JDK-8242427. Does it help you? I think it gives you to remove workaround. I think it would not help that much. Note that when repl

RE: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Reingruber, Richard
Hi Yasumasa, > I will send review request to replace VM_SetFramePop to handshake in early > next week in JDK-8242427. > Does it help you? I think it gives you to remove workaround. I think it would not help that much. Note that when replacing VM_SetFramePop with a direct handshake you could not

Re: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Yasumasa Suenaga
Hi Richard, I will send review request to replace VM_SetFramePop to handshake in early next week in JDK-8242427. Does it help you? I think it gives you to remove workaround. (The patch is available, but I want to see the result of PIT in this weekend whether JDK-8242425 works fine.) Thanks,

RE: RFR(S) 8238585: Use handshake for JvmtiEventControllerPrivate::enter_interp_only_mode() and don't make compiled methods on stack not_entrant

2020-04-24 Thread Reingruber, Richard
Hi Patricio, Vladimir, and Serguei, now that direct handshakes are available, I've updated the patch to make use of them. In addition I have done some clean-up changes I missed in the first webrev. Finally I have implemented the workaround suggested by Patricio to avoid nesting the handshake i

RFR(M) 8243500: SA: Incorrect BCI and Line Number with jstack if the top frame is in the interpreter (BSD and Windows)

2020-04-24 Thread Chris Plummer
Hello, Please review the following: https://bugs.openjdk.java.net/browse/JDK-8243500 http://cr.openjdk.java.net/~cjplummer/8243500/webrev.00/index.html A couple years ago JDK-8214226 fixed an issue on Linux-x64 with SA stack dumps not properly displaying the correct line number for the topmost