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

Matthias Baesken mbaesken at openjdk.org
Thu Sep 26 07:10:11 UTC 2024


On Thu, 26 Sep 2024 06:53:41 GMT, Christoph Langer <clanger at openjdk.org> wrote:

>> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove rc
>
> src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m line 278:
> 
>> 276:     int rslt = pthread_attr_init(&attr);
>> 277:     if (rslt != 0) return;
>> 278:     rc = pthread_create(&thr, &attr, SplashScreenThread, (void *) splash);
> 
> For the sake of symmetry, could you rename rc to rslt here?

Sure, I changed it .

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21182#discussion_r1776497907


More information about the client-libs-dev mailing list