-
Bug
-
Resolution: Fixed
-
P4
-
17, 21, 23, 24
-
b15
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8341723 | 23.0.2 | Matthias Baesken | P4 | Resolved | Fixed | b03 |
JDK-8341824 | 21.0.6 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
JDK-8342876 | 17.0.14 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
java.lang.RuntimeException: Cannot allocate memory
at java.base/java.lang.ProcessHandleImpl.getProcessPids0(Native Method)
at java.base/java.lang.ProcessHandleImpl.children(ProcessHandleImpl.java:456)
at java.base/java.lang.ProcessHandleImpl.children(ProcessHandleImpl.java:434)
at PermissionTest.childrenWithPermission(PermissionTest.java:84)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:573)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
Probably sysctl fails here, but it is not fully clear; it would help to change the exception so that the standard text is shown too.
Also in case of ENOMEM, we can retry the failing sysctl call a few times.
- backported by
-
JDK-8341723 ProcessHandleImpl os_getChildren sysctl call - retry in case of ENOMEM and enhance exception message
- Resolved
-
JDK-8341824 ProcessHandleImpl os_getChildren sysctl call - retry in case of ENOMEM and enhance exception message
- Resolved
-
JDK-8342876 ProcessHandleImpl os_getChildren sysctl call - retry in case of ENOMEM and enhance exception message
- Resolved
- links to
-
Commit(master) openjdk/jdk17u-dev/3660c07f
-
Commit(master) openjdk/jdk21u-dev/978075f6
-
Commit(master) openjdk/jdk23u/81e186b0
-
Commit(master) openjdk/jdk/4ff72dc5
-
Review(master) openjdk/jdk17u-dev/2969
-
Review(master) openjdk/jdk21u-dev/1010
-
Review(master) openjdk/jdk23u/123
-
Review(master) openjdk/jdk/20839