RFR: 8328630: Add logging when needed symbols in dll are missing. [v3]
Robbin Ehn
rehn at openjdk.org
Thu Mar 28 14:03:34 UTC 2024
On Thu, 28 Mar 2024 12:30:31 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Robbin Ehn has updated the pull request incrementally with one additional commit since the last revision:
>>
>> windows logging
>
> src/hotspot/os/posix/os_posix.cpp line 720:
>
>> 718: // It is possible that we found a NULL symbol, hence no error.
>> 719: if (tmp != nullptr) {
>> 720: log_debug(os)("Symbol %s not found in dll: %s", name, tmp);
>
> I'm still a little confused about the message here. Are we just reporting that the symbol doesn't exist, or are we actually reporting that the attempt to lookup the symbol failed due to some error?
Yes, the issue is that we don't know if there was an error or no such symbol, "undefined symbol".
>From dlsym/dlerror API perspective "symbol doesn't exist" is an error.
But for our case it would be logical to separate them.
All we know is that the user tried to find X in dll-file, and it was not found due to "string".
Happy to change it, but I can't think of a better message. For my case with hsdis this would had been good enough.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18404#discussion_r1543034630
More information about the hotspot-runtime-dev
mailing list