RFR: 8339475: Check return value of pthread_create in jdk coding [v2]

Matthias Baesken mbaesken at openjdk.org
Thu Sep 26 14:44:53 UTC 2024


On Thu, 26 Sep 2024 07:10:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> It has been discussed that checking the return value of pthread_create should be done.
>> See the discussion here https://github.com/openjdk/jdk/pull/20812 about the splashscreen coding .
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove rc

I removed the very old Solaris 8 comment.
I adjusted the macOS related code mentioned above.
For pthread_detach, I switched to  JLI_ReportErrorMessage , because the manpage says that errno is not set; so better do not print it in the failure case on macOS.

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

PR Comment: https://git.openjdk.org/jdk/pull/21182#issuecomment-2377172814


More information about the client-libs-dev mailing list