Integrated: JDK-8315026: ProcessHandle implementation listing processes on AIX should use getprocs64

Joachim Kern jkern at openjdk.org
Fri Oct 13 08:33:32 UTC 2023


On Thu, 5 Oct 2023 10:02:05 GMT, Joachim Kern <jkern at openjdk.org> wrote:

> We see rather often failures in java/lang/ProcessHandle/TreeTest.java on AIX in TreeTest.test5.
> The reason is: Previously the implementation based on the /proc file system lead to double pids in the child list; at least intermittent. Using the API getprocs64() instead I was able to eliminate those double pids (and increase the performance by a factor of 4). Otherwise we would have to add an algorithm to filter out the doubles after creating the raw list.

This pull request has now been integrated.

Changeset: 4d904204
Author:    Joachim Kern <jkern at openjdk.org>
Committer: Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4d9042043ecade75d50c25574a445e6b8ef43618
Stats:     139 lines in 2 files changed: 130 ins; 0 del; 9 mod

8315026: ProcessHandle implementation listing processes on AIX should use getprocs64

Reviewed-by: rriggs, stuefe, mbaesken

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

PR: https://git.openjdk.org/jdk/pull/16051


More information about the core-libs-dev mailing list