RFR: 8344903: Improve error handling TestJhsdbJstackPrintVMLocks.java

Leonid Mesnik lmesnik at openjdk.org
Sun Nov 24 04:05:19 UTC 2024


On Sat, 23 Nov 2024 13:08:13 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> The newly added test `test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackPrintVMLocks.java` intermittent fails `the return value of "jdk.test.lib.apps.LingeredApp.getProcess()" is null`. This PR check `getProcess()` is null or not before invoke `destroyForcibly`. Test-fix only, the change has been verified locally, no risk.

Thanks for fixing this!

-------------

Marked as reviewed by lmesnik (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/22342#pullrequestreview-2456607722


More information about the serviceability-dev mailing list