On Mon, 19 Feb 2024 13:25:28 GMT, Joachim Kern <jk...@openjdk.org> wrote:

>> Thanks for the detailed explanation @JoKern65 . Do then in this errno check 
>> may not be necessary ? or can we still set errno and access it some way ?
>
> In this special case here I would not use errno, but the string returned in 
> ebuf, in case the result is nullptr.

Argh, I keep forgetting `dlopen` does not set errno (at least its not 
guaranteed by the standard).

Ok, in this case, I would not analyze the string either because it may be 
locale-dependent.

Never mind then; I'd thought this would be easy. One could probably use load() 
instead of dlopen() on AIX, but that change would require more investigations 
to see if load() and dlopen() are equivalent.

Okay, in that case just skip the errno test and call the second dlopen 
directly. Lets hope for the best then.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16604#discussion_r1494586044

Reply via email to