RFR: 8276651: java/lang/ProcessHandle/InfoTest.java failed with "RuntimeException: Input/output error"

Roger Riggs rriggs at openjdk.org
Fri Aug 19 17:14:29 UTC 2022


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.

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

Commit messages:
 - 8276651: java/lang/ProcessHandle/InfoTest.java failed with "RuntimeException: Input/output error"

Changes: https://git.openjdk.org/jdk/pull/9946/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9946&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8276651
  Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9946.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9946/head:pull/9946

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


More information about the core-libs-dev mailing list