RFR: JDK-8334217 : [AIX] Misleading error messages after JDK-8320005 [v2]
Joachim Kern
jkern at openjdk.org
Wed Jul 3 08:48:20 UTC 2024
On Tue, 2 Jul 2024 16:44:16 GMT, Suchismith Roy <sroy at openjdk.org> wrote:
> Where is the errno getting set here ?
errno is an implicit global variable set/modified by almost all runtime APIs in case of an error. In our case errno is set/modified in the ::dlopen() call. So the logic is first reset errno to 0 (no error), then call the API (here ::dlopen) which will set errno in case of an error with one of the values described in the APIs man-page, and directly after the API call but at least before the next API call save the content of errno into a local variable for further evaluation (here we return the value of eno to your function for the eno == ENOENT check).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19887#issuecomment-2205444771
More information about the hotspot-runtime-dev
mailing list