[8u] RFR: 8213448: [TESTBUG] enhance jfr/jvm/TestDumpOnCrash
Mario Torre
neugens at redhat.com
Tue Sep 8 10:57:07 UTC 2020
Hi Ekaterina,
Sorry for dropping the ball on this one. The patch is good!
Cheers,
Mario
On Fri, Aug 14, 2020 at 4:46 PM Ekaterina Vergizova <katya at azul.com> wrote:
>
> Hello,
> I would like to backport JFR test only issue 8213448 to 8u as a prerequisite for JDK-8217362 backport.
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8213448
> Original patch: https://hg.openjdk.java.net/jdk/jdk/rev/f0af7fd0c9ca
> Webrev for 8u: https://cr.openjdk.java.net/~apetushkov/jfr_backports_katya/8213448/webrev.00/
>
> The patch doesn't apply cleanly due to the different context (Crasher.main method content, ProcessTools.createJavaProcessBuilder parameters), reapplied manually.
> Then I made the following modifications to adjust the test to 8u:
> - ProcessHandle.current().pid() calls are replaced by ProcessTools.getProcessId()
> - Process.pid() call is replaced by obtaining pid from the process output due to lack of Process.pid() method in 8u.
>
> The affected test passed successfully on Linux and Windows.
>
> Thanks,
> Ekaterina
>
--
Mario Torre
Associate Manager, Software Engineering
Red Hat GmbH <https://www.redhat.com>
9704 A60C B4BE A8B8 0F30 9205 5D7E 4952 3F65 7898
More information about the jdk8u-dev
mailing list