RFR: 8339487: ProcessHandleImpl native exceptions - include message text and last error information
Alan Bateman
alanb at openjdk.org
Wed Sep 4 09:32:18 UTC 2024
On Wed, 4 Sep 2024 09:11:53 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> The Apple sysctl manpage https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/sysctl.3.html documents a few ENOMEM related errors so the issue is probably related to these.
In your investigations, is it the first or second call to sysctl(3) that is failing? If the second call then it makes me wonder if there needs to be a loop here as the number of processes may have increased after allocating the buffer.
(I realise this is separate to the question as to whether the children method should be allowed to throw but an ENOMEM from the second call to sysctl suggests a bug)
How intermittent is this? I'm wondering if it's a genuine ENOMEM or something more intermittent. In the networking area, the JDK has code to retry setsockopt(IP_ADD_MEMBERSHIP) due to an intermittent ENOMEM. In that case we couldn't get a handle on the conditions when it happens.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20839#issuecomment-2328369278
More information about the core-libs-dev
mailing list