On Fri, 19 Aug 2022 17:05:38 GMT, Roger Riggs <[email protected]> wrote:
> On Mac OS X on aarch64, the timing of the sysctl vs the process life (pid) > can be such that the sysctl returns EIO. > The native implementation is modified to treat EIO the same as EINVAL, > leaving the information to be returned empty. > > Several tests in java/lang/ProcessHandle failed with the same cause including > OnExitTest, InfoTest, and TreeTest. The failing tests don't implicate the sysctl at 191 so I'm cautious about changing the code in that case. The spec for `ProcessHandle.info()` does not declare any exceptions so there is little risk changing the behavior by quietly returning in the case of EINVAL or EIO to make the cases similar when querying a pid. ------------- PR: https://git.openjdk.org/jdk/pull/9946
