RFR: 8339487: ProcessHandleImpl native exceptions - include message text and last error information

Matthias Baesken mbaesken at openjdk.org
Wed Sep 4 12:25:19 UTC 2024


On Wed, 4 Sep 2024 12:05:09 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > Unfortunately I don't know (but with this change and added JDK message text I would know next time).
> 
> My guess is that it's the second call that is failing and the bug is that the number of processes increased between the first and second call to sysctl. I think we'll need to put a loop around this.

Hi , my guess is too that it is the second call.
In case we want to go for a loop, should we have a maximum number of retry operations like 10 or 100 ?
Another option might be to always make the buffer a little bigger (how much can be discussed)  and use the larger buffer to account  for some increase in the number of processes.

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

PR Comment: https://git.openjdk.org/jdk/pull/20839#issuecomment-2328838545


More information about the core-libs-dev mailing list